Papers › RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models

RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models

15 Aug 2023arXiv:2308.07922archive 2025-07-28

Jie Huang, Wei Ping, Peng Xu, Mohammad Shoeybi, Kevin Chen-Chuan Chang, Bryan Catanzaro

In this paper, we investigate the in-context learning ability of retrieval-augmented encoder-decoder language models. We first conduct a comprehensive analysis of existing models and identify their limitations in in-context learning, primarily due to a mismatch between pretraining and inference, as well as a restricted context length. To address these issues, we propose RAVEN, a model that combines retrieval-augmented masked language modeling and prefix language modeling. We further introduce Fusion-in-Context Learning to enhance the few-shot performance by enabling the model to leverage more in-context examples without requiring additional training. Through extensive experiments, we demonstrate that our simple yet effective design significantly improves performance, achieving results comparable to the most advanced language models in certain scenarios, despite having substantially fewer parameters. Our work underscores the potential of retrieval-augmented encoder-decoder language models for in-context learning and encourages further research in this direction.

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="2308.07922")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 9 ran with no contract checked.

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

jeffhj/raven officialmentioned in papermentioned on GitHubpytorchNOASSERTION 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

14 samples harvested; 11 ran; 1 honoured the contract we drafted; 3 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 · honoured contract
1ran · our draft was wrong
9ran
3unverified

Licence: 14 of the 14 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 jeffhj/raven. “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.

all_gather jeffhj/raven/src/dist_utils.py official repository ran fingerprinted no licence file found · pointer only · 59ea1420911ddd97 · report
deserialize_listdocs jeffhj/raven/src/index.py official repository ran no licence file found · pointer only · a47d716bd6cdafab · report
em jeffhj/raven/src/evaluation.py official repository ran no licence file found · pointer only · 38c3b1ee62b65838 · report
encode_passages jeffhj/raven/src/atlas.py official repository ran · our draft was wrong no licence file found · pointer only · e4a21bc7a716330c · report
f1 jeffhj/raven/src/evaluation.py official repository ran no licence file found · pointer only · 5e2f0b798a3d70d2 · report
gather_wgrad jeffhj/raven/src/dist_utils.py official repository ran fingerprinted no licence file found · pointer only · 094781db771538f0 · report
get_checkpoint_path jeffhj/raven/src/model_io.py official repository ran no licence file found · pointer only · c3e2125348379a5c · report
normalize_answer jeffhj/raven/src/evaluation.py official repository ran fingerprinted no licence file found · pointer only · 6205dd62c2627dde · report
select_crossattention_scores jeffhj/raven/src/atlas.py official repository ran · honoured contract no licence file found · pointer only · c4bca944bda65eb2 · report
serialize_listdocs jeffhj/raven/src/index.py official repository ran no licence file found · pointer only · 55955fc3f98f2a29 · report
varsize_all_gather jeffhj/raven/src/dist_utils.py official repository ran fingerprinted no licence file found · pointer only · fc996bc980b83cab · report
cross_attention_forward jeffhj/raven/src/fid.py official repository unverified no licence file found · pointer only · a94b66d049f10dc8 · report
load_tf_weights_in_bert jeffhj/raven/src/modeling_bert.py official repository unverified no licence file found · pointer only · d009b630f4496e64 · report
load_tf_weights_in_t5 jeffhj/raven/src/modeling_t5.py official repository unverified no licence file found · pointer only · 136abfa3e8ce028d · report

Tasks

DecoderIn-Context LearningLanguage ModelingLanguage ModellingMasked Language ModelingOpen-Domain Question AnsweringRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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