RaCoT: Plug-and-Play Contrastive Example Generation Mechanism for Enhanced LLM Reasoning Reliability

Authors

  • Kaitong Cai Sun Yat-sen University
  • Jusheng Zhang Sun Yat-sen University
  • Yijia Fan Sun Yat-sen University
  • Jing Yang Sun Yat-sen University
  • Keze Wang Sun Yat-sen University Guangdong Key Laboratory of Big Data Analysis and Processing

DOI:

https://doi.org/10.1609/aaai.v40i36.40260

Abstract

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.

Downloads

Published

2026-03-14

How to Cite

Cai, K., Zhang, J., Fan, Y., Yang, J., & Wang, K. (2026). RaCoT: Plug-and-Play Contrastive Example Generation Mechanism for Enhanced LLM Reasoning Reliability. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30112–30120. https://doi.org/10.1609/aaai.v40i36.40260

Issue

Section

AAAI Technical Track on Natural Language Processing I