跳过导航
Introducing Self-RAG, a new easy-to-train, customizable, and powerful framework for making an LM…
0:00 / 0:29

Introducing Self-RAG, a new easy-to-train, customizable, and powerful framework for making an LM…

Akari Asai

@AkariAsai2.4万 位关注者

在 X 上查看
726 个赞下载原帖

170,996 次观看

Introducing Self-RAG, a new easy-to-train, customizable, and powerful framework for making an LM learn to retrieve, generate, and critique its own outputs and retrieved passages, by using model-predicted reflection tokens. 📜: 🌐:

10 条评论

评论来自 X (Twitter) 上的原帖

  • Akari Asai 的头像

    @AkariAsai

    Augmenting the input space of LMs with retrieved passages (often called RAG) is powerful. Yet, it may still result in hallucinations as LMs can still ignore passages and irrelevant passages can distract LMs. Unnecessary retrieval can also hurt the quality or efficiency. [2/N]

    13 个赞

  • Akari Asai 的头像

    @AkariAsai

    Self-RAG enables an LM to learn to retrieve on demand and criticize its own generations & passages by decoding special tokens (reflection tokens) while standard RAG often retrieves fixed times e.g., once at the beginning, and never second revisits the passages/outputs. [3/N]

    17 个赞

  • Akari Asai 的头像

    @AkariAsai

    Self-RAG trains an LM on augmented diverse instruction-output data with intermitting passages and reflection tokens. As it is a simple LM training with expanded vocabularies, it’s much easier & memory-efficient than RLHF / end-to-end RAG training. [4/N]

    10 个赞

  • Akari Asai 的头像

    @AkariAsai

    During decoding, Self-RAG uses reflection tokens probabilities as fine-grained critique scores and chooses the best output, enabling the LM to tailor its behavior to diverse task requirements (e.g., creativity/fluency v.s. citation precision/factuality). [5/N]

    11 个赞

  • Akari Asai 的头像

    @AkariAsai

    So how good they are? Self-RAG outperforms many powerful LLMs (incl. ChatGPT) w/ and w/o standard RAG on six tasks and improves factuality and citation accuracy in long-form generations. Also, Self-RAG can tailor its behaviors for different preferences at inference time. [6/N]

    11 个赞

  • Akari Asai 的头像

    @AkariAsai

    Our model checkpoints and codes are available, and you can download and try out self-rag (7B, 13b) easily! [7/N] We also provide an inference script run Self-RAG w/ Contriever on 1 GPU

    15 个赞

  • Akari Asai 的头像

    @AkariAsai

    Work done with my fantastic collaborators @zeqiuwu1 @yizhongwyz @aviaviavi__ @HannaHajishirzi at @uwnlp!

    7 个赞

  • Owen Colegrove 的头像

    @ocolegro

    this is really cool! Currently working on building a massive RAG database + pipeline - I would love to hook this up to it for some tests.

    3 个赞

  • neron 的头像

    @NeuralNeron

    Nice! How does it compares to reranking models? I use them for this specific case, it’s not perfect but it’s an easy and fast way to improve context—without burning tokens on a multi LLM step solution

    1 个赞

  • Akari Asai 的头像

    @AkariAsai

    Reranking context is another way to measure the relevance of documents to improve RAG quality. Yet, feeding the highest ranked passages may still result in unsupported generation ( which Self-RAG’s fine-grained critique guided decoding can address.

    5 个赞