[Paper Review] Rethinking with Retrieval: Faithful Large Language Model Inference
This paper proposes a post-processing approach that uses chain-of-thought prompts to generate reasoning paths, retrieves external knowledge for each step, and selects the most faithful prediction without any training or fine-tuning.
Despite the success of large language models (LLMs) in various natural language processing (NLP) tasks, the stored knowledge in these models may inevitably be incomplete, out-of-date, or incorrect. This motivates the need to utilize external knowledge to assist LLMs. Unfortunately, current methods for incorporating external knowledge often require additional training or fine-tuning, which can be costly and may not be feasible for LLMs. To address this issue, we propose a novel post-processing approach, rethinking with retrieval (RR), which retrieves relevant external knowledge based on the decomposed reasoning steps obtained from the chain-of-thought (CoT) prompting. This lightweight approach does not require additional training or fine-tuning and is not limited by the input length of LLMs. We evaluate the effectiveness of RR through extensive experiments with GPT-3 on three complex reasoning tasks: commonsense reasoning, temporal reasoning, and tabular reasoning. Our results show that RR can produce more faithful explanations and improve the performance of LLMs.
Motivation & Objective
- Motivate the need to supplement LLMs with external knowledge due to incomplete or outdated stored knowledge.
- Introduce a post-processing method (Rethinking with Retrieval, RR) that uses chain-of-thought reasoning to guide retrieval from external knowledge bases.
- Show that RR improves faithfulness and prediction accuracy across multiple reasoning tasks without training or fine-tuning.
- Evaluate RR on three tasks (commonsense, temporal, tabular) using GPT-3 and various knowledge sources.
- Provide analysis of variants and limitations to guide future work in knowledge-augmented LLM inference.
Proposed method
- Use chain-of-thought prompting to generate a diverse set of reasoning paths (R1,...,RN) with explanations Ei and predictions Pi.
- Retrieve external knowledge KB for each reasoning path by applying BM25 to sentences in explanations, selecting a similar paragraph with MPNet, and scoring with a neural entailment model to obtain f_KB(Ri).
- Compute the final prediction by selecting Pi with the maximum faithfulness score across paths (Equation 1).
- Retrieval is based on decomposed reasoning steps, not the original query, enabling faithful inference even with long or complex prompts.
- Evaluate RR as a post-processing step that does not require training or fine-tuning of the LLM.
- Experiment with three reasoning tasks and multiple knowledge bases (Wikipedia, Wikidata, WordNet, ConceptNet) and compare against zero-shot, few-shot, CoT, and self-consistency baselines.
Experimental results
Research questions
- RQ1Does RR improve faithfulness of explanations and accuracy of predictions across diverse reasoning tasks without additional training?
- RQ2Is decomposition-based retrieval (based on reasoning steps) more effective than query-based retrieval for knowledge augmentation?
- RQ3How does RR perform with different external knowledge sources across commonsense, temporal, and tabular reasoning?
- RQ4What are the trade-offs and limitations of RR in practice?
Key findings
- RR consistently outperforms all baselines on commonsense, temporal, and tabular reasoning without extra training.
- Decomposition-based retrieval yields better results than query-based retrieval for both accuracy and faithfulness.
- Using external knowledge with RR improves faithfulness of explanations and prediction accuracy across tasks.
- RR achieves higher accuracy than CoT prompting and self-consistency across all three evaluated tasks.
- The approach remains effective with varying LM sizes, indicating robustness to model scale.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.