mlsanityData to 7 Oct 2026

Learning Chain Of Thoughts Prompts for Predicting Entities, Relations, and even Literals on Knowledge Graphs

arXiv 2604.12651 ↗First posted 14 Apr 2026cs.CL cs.AIcited by 0

On the map: LLM reasoning → Prompting and chain-of-thought reasoning

Abstract (arXiv)

Knowledge graph embedding (KGE) models perform well on link prediction but struggle with unseen entities, relations, and especially literals, limiting their use in dynamic, heterogeneous graphs. In contrast, pretrained large language models (LLMs) generalize effectively through prompting. We reformulate link prediction as a prompt learning problem and introduce RALP, which learns string-based chain-of-thought (CoT) prompts as scoring functions for triples. Using Bayesian Optimization through MIPRO algorithm, RALP identifies effective prompts from fewer than 30 training examples without gradient access. At inference, RALP predicts missing entities, relations or whole triples and assigns confidence scores based on the learned prompt. We evaluate on transductive, numerical, and OWL instance retrieval benchmarks. RALP improves state-of-the-art KGE models by over 5% MRR across datasets and enhances generalization via high-quality inferred triples. On OWL reasoning tasks with complex class expressions (e.g., exists hasChild.Female, ≥ 5 ; hasChild.Female), it achieves over 88% Jaccard similarity. These results highlight prompt-based LLM reasoning as a flexible alternative to embedding-based methods. We release our implementation, training, and evaluation pipeline as open source: https://github.com/dice-group/RALP .

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 12 of its 38 references that are in the map. First posted on arXiv 14 Apr 2026.

Builds on

12 of 38 references.

References · 12

  1. 2024Qwen2.5 Technical Reportcited by 4,713
  2. 2024Qwen2 Technical Reportcited by 2,076
  3. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
  4. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  5. 2022Large Language Models Can Self-Improvecited by 656
  6. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  7. 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 189
  8. 2019Knowledge Graph Convolutional Networks for Recommender Systemscited by 121
  9. 2024Knowledge Graph Large Language Model (KG-LLM) for Link Predictioncited by 36
  10. 2023Enabling Intelligent Interactions between an Agent and an LLM: A Reinforcement Learning Approachcited by 28
  11. 2022KGLM: Integrating Knowledge Graph Structure in Language Models for Link Predictioncited by 15
  12. 2024LinkGPT: Teaching Large Language Models To Predict Missing Linkscited by 9

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025GCoT: Chain-of-Thought Prompt Learning for Graphs
  2. 2023Resprompt: Residual Connection Prompting Advances Multi-Step Reasoning in Large Language Models
  3. 2026Clustering as Reasoning: A k-Means Interpretation of Chain-of-Thought Graph Learning
  4. 2022Reasoning Through Memorization: Nearest Neighbor Knowledge Graph Embeddings
  5. 2024Chain-of-Thought Augmentation with Logit Contrast for Enhanced Reasoning in Language Models
  6. 2023Graph Elicitation for Guiding Multi-Step Reasoning in Large Language Models
  7. 2023An automatically discovered chain-of-thought prompt generalizes to novel models and datasets
  8. 2024Structure Guided Prompt: Instructing Large Language Model in Multi-Step Reasoning by Exploring Graph Structure of the Text