cs.CLJun 25, 2025

ππ-CoT: Prolog-Initialized Chain-of-Thought Prompting for Multi-Hop Question-Answering

Authors: Chao Wan, Albert Gong, Mihir Mishra, Carl-Leander Henneking, Claas Beger, Kilian Q. Weinberger

Organizations: Cornell University.

Abstract

Chain-of-Thought (CoT) prompting significantly enhances large language models' (LLMs) problem-solving capabilities, but still struggles with complex multi-hop questions, often falling into circular reasoning patterns or deviating from the logical path entirely. This limitation is particularly acute in retrieval-augmented generation (RAG) settings, where obtaining the right context is critical. We introduce Prolog-Initialized Chain-of-Thought (ππ-CoT), a novel prompting strategy that combines logic programming's structural rigor with language models' flexibility. ππ-CoT reformulates multi-hop questions into Prolog queries decomposed as single-hop sub-queries. These are resolved sequentially, producing intermediate artifacts, with which we initialize the subsequent CoT reasoning procedure. Extensive experiments demonstrate that ππ-CoT matches or outperforms standard RAG and in-context CoT on multi-hop question-answering benchmarks, with the largest gains on questions for which retrieval surfaces the necessary evidence.

Figures & tables

Appendix figures & tables32 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ConRAG: Consensus-Driven Evidence Flow for Multi-Hop Question Answering

    May 27, 2026Yikai Zhu, Kunfeng Chen, Qihuang Zhong +2Multi-Hop QARetrieval-Augmented Generation

  2. Retrieval is Cheap, Show Me the Code: Executable Multi-Hop Reasoning for Retrieval-Augmented Generation

    May 13, 2026Jiashuo Sun, Jimeng Shi, Yixuan Xie +10Multi-Hop QARetrieval-Augmented Generation

  3. D2^2F-ReAG: Dynamic Decomposition and Filtering for Multi-Hop Reasoning-Augmented Generation

    Aug 5, 2026Jiaoyang Li, Junhao Ruan, Shengwei Tang +4Multi-Hop QARetrieval-Augmented Generation