Learning Chain Of Thoughts Prompts for Predicting Entities, Relations, and even Literals on Knowledge Graphs
Baci, Alkid, Friedrichs, Luke, Demir, Caglar, Kouagou, N'Dah Jean, Ngomo, Axel-Cyrille Ngonga
–arXiv.org Artificial Intelligence
Knowledge graphs (KGs) are a foundational component of modern AI systems, supporting applications such as search [1, 2], question answering [3, 4, 5], and recommender [6, 7] systems. Central to maintaining their utility is the task of link prediction--inferring missing facts by modeling the underlying structure of the graph. Traditional knowledge graph embedding (KGE) models [8, 9, 10] have made progress toward link prediction problem by representing entities and relations as continuous vectors and applying learned scoring functions. However, these methods are inherently limited when faced with unseen entities or relations, and they struggle to reason over literals, such as numerical values or descriptive text, which are pervasive in real-world KGs. Meanwhile, LLMs have demonstrated remarkable capabilities in few-shot and zero-shot learning through prompting--conditioning the model on examples or task instructions [11]. Prompting plays a critical role in retrievalaugmented generation (RAG) systems [12], where relevant context from external sources is injected into prompts to improve task performance [13, 14, 15]. While many RAG pipelines rely on handcrafted prompt templates, recent work explores automated prompt optimization using techniques such as APE [16], OPRO [17], EvoPrompt [18], and MIPRO [19]. DSPy [20] further formalizes LLM pipelines as transformation graphs with learnable prompts via declarative modules. These advances suggest that high-quality prompts can be learned to maximize downstream performance--even without access to gradients.
arXiv.org Artificial Intelligence
Apr-15-2026