Think-then-Act: A Dual-Angle Evaluated Retrieval-Augmented Generation

Yige Shen, Hao Jiang, Hua Qu, Jihong Zhao
6/18/2024
cs.CL

No confident code implementation found for this paper.

Abstract

Despite their impressive capabilities, large language models (LLMs) often face challenges such as temporal misalignment and generating hallucinatory content. Enhancing LLMs with retrieval mechanisms to fetch relevant information from external sources offers a promising solution. Inspired by the proverb "Think twice before you act," we propose a dual-angle evaluated retrieval-augmented generation framework \textit{Think-then-Act}. Unlike previous approaches that indiscriminately rewrite queries or perform retrieval regardless of necessity, or generate temporary responses before deciding on additional retrieval, which increases model generation costs, our framework employs a two-phase process: (i) assessing the input query for clarity and completeness to determine if rewriting is necessary; and (ii) evaluating the model's capability to answer the query and deciding if additional retrieval is needed. Experimental results on five datasets show that the \textit{Think-then-Act} framework significantly improves performance. Our framework demonstrates notable improvements in accuracy and efficiency compared to existing baselines and performs well in both English and non-English contexts. Ablation studies validate the optimal model confidence threshold, highlighting the resource optimization benefits of our approach.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shen2024thinkthenact,
  title  = {Think-then-Act: A Dual-Angle Evaluated Retrieval-Augmented Generation},
  author = {Yige Shen and Hao Jiang and Hua Qu and Jihong Zhao},
  year   = {2024},
  eprint = {2406.13050},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13050v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.13050.svg)](https://codeofpaper.com/paper/2406.13050)

Discussion