RaCoT:用于增强LLM推理可靠性的即插即用对比示例生成机制
RaCoT: Plug-and-Play Contrastive Example Generation Mechanism for Enhanced LLM Reasoning Reliability
AI总结:
RaCoT通过检索前生成对比问题并提取差异提示,抑制语义干扰,在多个基准上提升LLM推理准确率0.9-2.4个百分点,兼具低延迟和高鲁棒性。
摘要:
检索增强生成(RAG)面临一个核心瓶颈,即知识稀疏且语义模糊的长尾查询,其中检索噪声会扭曲推理并需要昂贵的后处理。为解决此问题,我们提出了RaCoT(检索感知的对比思维),一种新颖的框架,将对比思维转移到检索前阶段。通过自动生成一个语义相邻但答案不同的对比问题,并提取一个$\Delta$-Prompt来捕捉它们的关键差异,RaCoT引导模型主动关注“决定答案分歧的关键细节”。这种方法使其能够在单次检索中抑制语义干扰,克服了单向量查询难以同时编码“关注什么”和“忽略什么”信号的理论瓶颈。在包括PopQA和TriviaQA-unfiltered在内的六个权威基准上,RaCoT比RankRAG和Self-RAG等强基线高出0.9-2.4个百分点。它表现出卓越的鲁棒性,在对抗性测试中性能仅下降8.6%,远超其他方法超过15%的下降幅度。此外,其低延迟(3.12秒)和令牌开销(11.54)使其处于精度-效率帕累托前沿,而消融研究验证了每个组件的必要性。最终,RaCoT将RAG范式从“事后上下文清理”重新定义为“先验塑造判别性推理”,为实时、资源受限部署中的可靠AI系统提供了一条高效且稳健的路径。
英文摘要:
Retrieval-Augmented Generation (RAG) faces a core bottleneck with knowledge-sparse and semantically ambiguous long-tail queries, where retrieval noise distorts reasoning and necessitates costly post-processing. To tackle this, we propose RaCoT (Retrieval-aware Contrastive-of-Thought), a novel framework that shifts contrastive thinking to the pre-retrieval stage. By automatically generating a semantically adjacent yet differently answered contrastive question and extracting a $Δ$-Prompt to capture their key differences, RaCoT guides the model to proactively focus on the ``critical details that determine answer divergence." This approach allows it to suppress semantic interference within a single retrieval pass, overcoming the theoretical bottleneck of single-vector queries that struggle to simultaneously encode signals for what to attend to and what to ignore. On six authoritative benchmarks, including PopQA and TriviaQA-unfiltered, RaCoT outperforms strong baselines like RankRAG and Self-RAG by 0.9-2.4 percentage points. It exhibits superior robustness, with a performance drop of only 8.6\% in adversarial tests, far surpassing the over 15\% degradation in other methods. Furthermore, its low latency (3.12s) and token overhead (11.54) place it on the accuracy-efficiency Pareto frontier, while ablation studies validate the necessity of each component. Ultimately, RaCoT reframes the RAG paradigm from ``post-hoc context cleaning" to ``a priori shaping of discriminative reasoning", offering an efficient and robust path toward reliable AI systems for real-time, resource-constrained deployments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。