Time-Sensitve Retrieval-Augmented Generation for Question Answering
Retrieval-augmented generation (RAG) enhances large language models (LLMs) by accessing external data sources, offering a promising way to improve accuracy and reliability. Despite its potential, conventional retrievers encounter bias and flaws with time-sensitive queries. In this paper, a benchmark query dataset is constructed to retrieve documents containing time-evolving facts, and the results show that current embedding-based similarity-matching methods struggle to handle queries with explicit temporal constraints. Therefore, we propose a novel approach that integrates supervised contrastive learning with tailored negative sample pairs for temporal constraints to train the retriever of an RAG system, along with query-side fine-tuning and routing techniques. Experimental results show that our approach significantly enhances the retriever performance of time-sensitive queries while ensuring the effectiveness of general queries. We will make the code and dataset publicly available at https://github.com/suzhou-22/TS-Retriever.
Authors
- Feifan Wu (ORCID: https://orcid.org/0009-0008-2311-6379)
- Lingyuan Liu (ORCID: https://orcid.org/0009-0008-9777-4550)
- Zhiqiang Zhang (ORCID: https://orcid.org/0000-0002-2321-7259)
- Meng Wang (ORCID: https://orcid.org/0000-0002-2293-1709)
- He Wentao (ORCID: https://orcid.org/0000-0001-8737-1397)
- Haofen Wang
- Ziqi Liu (ORCID: https://orcid.org/0000-0002-4112-3504)
Institutions
- Tongji University (CN)
- Southeast University (CN)
Publication Details
- Published
- 2024-10-20
- DOI
- https://doi.org/10.1145/3627673.3679800
- Citations
- 5
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 1.74