Training LLMs to Cite Faithfully in RAG
| Type | Status | Published | Supervisors | |
| MA, MAP | Open | 26 November 2026 | Nasim Nezhadsistani |
nezhadsistani@ifi.uzh.ch |
Retrieval-augmented generation (RAG) systems back their answers with inline citations so users can check each claim [1]. Current models often cite correctly but not faithfully. The cited passage supports the sentence, but the model never actually relied on it [2]. Instead, the model answers from its own memory and then attaches whichever source looks close enough. This is called post-rationalisation. In adversarial tests, up to 57% of citations from a RAG-optimised model were found to be unfaithful [2]. A 2026 reproduction measured roughly one unfaithful citation in seven on Wikipedia-based QA. It also showed that reinforcement learning on correct answers does not reduce the problem [6].
Existing training methods improve whether a citation supports a claim [5, 7]. SelfCite comes closest to faithfulness: it rewards citations that are necessary and sufficient for the answer [3]. Context-attribution methods such as ContextCite can measure what a model really used [4]. However, no method yet trains a model to avoid post-rationalisation directly.
In this project you will fine-tune an open 7–8B model with a composite reward that combines:
- answer correctness
- citation support
- SelfCite's necessity and sufficiency signals [3]
- a penalty from a planting probe [6]
You will compare your model against SelfCite [3], LongCite [7] and Trust-Align [5] on ALCE [1], LongBench-Cite [7], HAGRID and RAGTruth. You will check faithfulness independently with ContextCite [4].
You will learn: RAG, LLM evaluation, preference optimisation (DPO with LoRA), explainability methods, and rigorous experimental design.
Prerequisites: solid Python and PyTorch; some experience with Hugging Face Transformers; interest in trustworthy AI.
Key terms
- RAG (Retrieval-Augmented Generation): the model first retrieves relevant documents, then writes an answer based on them.
- Citation correctness: the cited document actually supports the sentence. It is usually checked automatically with a natural language inference (NLI) model [1].
- Citation faithfulness: the model actually used the cited document to write the sentence, not just a document that happens to agree [2].
- Post-rationalisation: the model writes the answer from memory first, then picks a citation that looks plausible. The citation can be correct but still misleading [2, 6].
- Planting probe: a test for post-rationalisation. A few words from the model's own sentence are inserted into a document it did not cite, and the question is asked again. If the model now cites that document, its citation followed surface similarity rather than real evidence [6].
- Necessity and sufficiency: a citation is necessary if removing it makes the model much less likely to produce the same sentence. It is sufficient if keeping only that citation still produces the sentence [3].
- Context attribution (ContextCite): removes different parts of the context, measures how the output changes, and estimates which parts the model really relied on [4].
- Composite reward: a single score that combines several goals (correctness, support, necessity and sufficiency, probe penalty), so the model is trained on all of them at once.
- DPO (Direct Preference Optimisation): a training method that shows the model pairs of better and worse answers and teaches it to prefer the better one. LoRA makes this affordable by training only a small set of extra weights.
References
- Gao, T. et al. (2023). Enabling Large Language Models to Generate Text with Citations. EMNLP 2023.
- Wallat, J. et al. (2025). Correctness is not Faithfulness in RAG Attributions. ICTIR 2025.
- Chuang, Y.-S. et al. (2025). SelfCite: Self-Supervised Alignment for Context Attribution in LLMs. ICML 2025.
- Cohen-Wang, B. et al. (2024). ContextCite: Attributing Model Generation to Context. NeurIPS 2024.
- Song, M. et al. (2025). Measuring and Enhancing Trustworthiness of LLMs in RAG through Grounded Attributions and Learning to Refuse. ICLR 2025.
- Khan, M. & Bhuyan, M. S. I. (2026). Attributable Post-Rationalization in RAG Citations: A Controlled Reproduction and an RLVR Comparison. arXiv.
- Zhang, J. et al. (2025). LongCite: Enabling LLMs to Generate Fine-grained Citations in Long-Context QA. Findings of ACL 2025.
Prerequisites
| Area | Requirements |
|---|---|
| Programming | Good Python programming skills and familiarity with Git and GitHub. |
| Machine Learning | Fundamental knowledge of machine learning, neural networks, and model evaluation. |
| LLMs | Basic understanding of Transformers, and Large Language Models. |
| Software Development | Ability to design and implement modular Python applications and work with existing open-source repositories. |
| Research Skills | Ability to read scientific papers, reproduce experimental results, analyze findings, and write technical documentation in English. |