Papers › Trustworthy Alignment of Retrieval-Augmented Large Language Models via Reinforcement Learning

Trustworthy Alignment of Retrieval-Augmented Large Language Models via Reinforcement Learning

22 Oct 2024arXiv:2410.16843archive 2025-07-28

Zongmeng Zhang, Yufeng Shi, Jinhua Zhu, Wengang Zhou, Xiang Qi, Peng Zhang, Houqiang Li

Trustworthiness is an essential prerequisite for the real-world application of large language models. In this paper, we focus on the trustworthiness of language models with respect to retrieval augmentation. Despite being supported with external evidence, retrieval-augmented generation still suffers from hallucinations, one primary cause of which is the conflict between contextual and parametric knowledge. We deem that retrieval-augmented language models have the inherent capabilities of supplying response according to both contextual and parametric knowledge. Inspired by aligning language models with human preference, we take the first step towards aligning retrieval-augmented language models to a status where it responds relying merely on the external evidence and disregards the interference of parametric knowledge. Specifically, we propose a reinforcement learning based algorithm Trustworthy-Alignment, theoretically and experimentally demonstrating large language models' capability of reaching a trustworthy status without explicit supervision on how to respond. Our work highlights the potential of large language models on exploring its intrinsic abilities by its own and expands the application scenarios of alignment from fulfilling human preference to creating trustworthy agents.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.16843")

Code

Syntology Ran 1 of 13 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · fixture could not drive it.

By repository: official repository: 13 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zmzhang2000/trustworthy-alignment officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 1 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
12unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zmzhang2000/trustworthy-alignment. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gather_log_probs zmzhang2000/trustworthy-alignment/dschat/rlhf/ppo_trainer.py official repository ran · fixture could not drive it no licence file found · pointer only · 2f0a690c70d11c23 · report
best_subspan_em zmzhang2000/trustworthy-alignment/dschat/utils/metrics.py official repository unverified no licence file found · pointer only · 0aadf110b32fdf12 · report
calculate_flops zmzhang2000/trustworthy-alignment/dschat/utils/perf.py official repository unverified no licence file found · pointer only · 069f56cb00324e10 · report
causal_lm_model_to_fp32_loss zmzhang2000/trustworthy-alignment/dschat/utils/model/model_utils.py official repository unverified no licence file found · pointer only · b6934717c02ba140 · report
create_hf_model zmzhang2000/trustworthy-alignment/dschat/utils/model/model_utils.py official repository unverified no licence file found · pointer only · 4d2823b65af0c2df · report
generate_qa_attributed_prompt zmzhang2000/trustworthy-alignment/dschat/utils/prompts.py official repository unverified no licence file found · pointer only · eff7424deef19565 · report
generate_qa_base_prompt zmzhang2000/trustworthy-alignment/dschat/utils/prompts.py official repository unverified no licence file found · pointer only · 9a6cc185b5239af7 · report
generate_qa_opinion_prompt zmzhang2000/trustworthy-alignment/dschat/utils/prompts.py official repository unverified no licence file found · pointer only · 062abf04b8fabe82 · report
get_eval_ds_config zmzhang2000/trustworthy-alignment/dschat/utils/ds_utils.py official repository unverified no licence file found · pointer only · 792e87a1badc5642 · report
get_hf_configs zmzhang2000/trustworthy-alignment/dschat/utils/perf.py official repository unverified no licence file found · pointer only · df20c2f4083d17af · report
log_init zmzhang2000/trustworthy-alignment/dschat/rlhf/rlhf_engine.py official repository unverified no licence file found · pointer only · 429d42a3bf925da5 · report
multi_choice_hit zmzhang2000/trustworthy-alignment/dschat/utils/metrics.py official repository unverified no licence file found · pointer only · cf3df3743796f762 · report
normalize_answer zmzhang2000/trustworthy-alignment/dschat/utils/metrics.py official repository unverified no licence file found · pointer only · 9706a9a0b961096b · report

Tasks

RetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections