Back to directory

Atlas: Few-shot Learning with Retrieval Augmented Language Models

Research code from Meta that jointly pretrains a retrieval-augmented sequence-to-sequence language model, combining a dense passage retriever with an encoder-decoder model for few-shot question answering and other tasks.

Atlas: Few-shot Learning with Retrieval Augmented Language Models

Atlas is a research codebase for pretraining, fine-tuning, retrieving and evaluating a retrieval-augmented sequence-to-sequence language model. It jointly pretrains a passage-based dense retriever together with an encoder-decoder language model, and includes pretrained models, corpora and indices used in the accompanying paper.

The code supports fusion-in-decoder sequence-to-sequence models up to 11B parameters, distilling relevance signals from those models into dense retrievers, and end-to-end retrieval-augmented training over a user-supplied corpus of passages with retrieval integrated into the training loop. It supports masked-language modeling, prefix-language modeling, Wikipedia section generation, open-domain question answering, multiple-choice question answering, fact checking and KILT tasks.

It also includes a parallel, distributed GPU-based exact and approximate maximum inner product search for dense vector retrieval, in-place index refreshes, and memory optimizations for training retrievers in the loop. The repository is no longer actively maintained.

More in RAG

See all 540
  • ai·rete·rag

    ai-rete-rag.com

    A platform that pairs a Rete rule engine with retrieval-augmented generation, so deterministic rules decide an outcome and grounded retrieval explains the decision in plain language.

  • Xtriever

    github.com

    A hybrid retrieval engine for retrieval-augmented generation, written in Rust to run on-device on a phone or a laptop, combining lexical BM25 search, dense embedding search, reciprocal-rank fusion and cross-encoder re-ranking with no server.

  • FileFlux

    github.com

    A .NET library that turns PDF, DOCX, HWP and other documents into optimized chunks for RAG systems, through a five-stage pipeline built on high-performance Rust FFI readers.