paper-with-me

홈 › Papers

Code-on-Graph: Iterative Programmatic Reasoning via Large Language Models on Knowledge Graphs

2026-06-02 · Weiwei Ding, Zixuan Li, Long Bai, Zhuo Chen, Kun Su, Fei Wang, Xiaolong Jin, Jin Zhang, Jiafeng Guo, Xueqi Cheng arxiv

Knowledge Graphs (KGs) are widely used to mitigate the limitations of Large Language Models (LLMs), such as outdated knowledge and hallucinations. Existing LLM-KG integration frameworks typically rely on predefined operators to retrieve factual knowledge from KGs and inject it into prompts for answer generation. This paradigm faces two critical bottlenecks: 1) Inflexibility: The predefined operators are limited in scope and thus lack sufficient compositional expressiveness to fully capture the complex semantics required by KG questions. 2) Unscalability: Direct injection of factual knowledge into prompts limits scalability in handling large-scale factual knowledge. To address these two bottlenecks, we propose Code-on-Graph (CoG), a programmatic reasoning framework for LLM-KG integration. Specifically, given the factual knowledge retrieved at each reasoning step, CoG first identifies the corresponding KG schemas and represents these schemas as Python classes, which serve as abstract interfaces to the retrieved facts. It then generates executable code grounded in these classes, with the retrieved facts instantiated as objects of the corresponding classes during execution. This design enables flexible code-based reasoning while avoiding the direct injection of large-scale factual knowledge into prompts. Experiments on WebQSP, CWQ, and GrailQA demonstrate that CoG outperforms prior state-of-the-art models by up to 10.5%.

📄 PDF Abstract BibTeX arXiv:2606.03705

Code (0)

등록된 구현이 없습니다.

Tasks

Answer GenerationKnowledge Graphs

Similar Papers 제목 키워드 기반

A Schema-Guided Reason-while-Retrieve framework for Reasoning on Scene Graphs with Large-Language-Models (LLMs)

2025-02-05 · Yiye Chen, Harpreet Sawhney, Nicholas Gydé, Yanan Jian 외

Scene graphs have emerged as a structured and serializable environment representation for grounded spatial reasoning with Large Language Models (LLMs). In this work, we propose SG-RwR, a Schema-Guided Retrieve-while-Reas…

HallucinationSpatial ReasoningTask Planning

HPP: Hierarchical Programmatic Probing for Long Video Understanding by Decoupling Perception and Reasoning

2026-06-19 · Awais Rauf, Ahmed Hasssan, Greg Slabaugh arxiv

Understanding long videos requires fine-grained perception and multi-step, higher-order reasoning over complex, long-range spatio-temporal dynamics. Vision-language models (VLMs) encode video frames into visual tokens an…

Relational ReasoningSemantic Retrieval

Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problems

2026-02-06 · Qifan Zhang, Jianhao Ruan, Aochuan Chen, Kang Zeng 외 arxiv

Large Reasoning Models (LRMs) have advanced rapidly; however, existing benchmarks in mathematics, code, and common-sense reasoning remain limited. They lack long-context evaluation, offer insufficient challenge, and prov…

Enhancing Mathematical Problem Solving in LLMs through Execution-Driven Reasoning Augmentation

2026-02-03 · Aditya Basarkar, Benyamin Tabarsi, Tiffany Barnes, Dongkuan Xu arxiv

Mathematical problem solving is a fundamental benchmark for assessing the reasoning capabilities of artificial intelligence and a gateway to applications in education, science, and engineering where reliable symbolic rea…

Mathematical Reasoning

Gold-Guided Programmatic Distillation for Financial Reasoning over Hybrid Tables and Text

2026-07-16 · Yun Dong, Erica Zhao, Elana Chen arxiv

Financial question answering over hybrid tabular and textual data may require multi-source reasoning and precise numerical computation. While large language models (LLMs) can generate intermediate reasoning steps, natura…

Question AnsweringProgram Synthesis