SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yao, Zijun, Qi, Weijian, Pan, Liangming, Cao, Shulin, Hu, Linmei, Liu, Weichuan, Hou, Lei, Li, Juanzi
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929402129940480
author Yao, Zijun
Qi, Weijian
Pan, Liangming
Cao, Shulin
Hu, Linmei
Liu, Weichuan
Hou, Lei
Li, Juanzi
author_facet Yao, Zijun
Qi, Weijian
Pan, Liangming
Cao, Shulin
Hu, Linmei
Liu, Weichuan
Hou, Lei
Li, Juanzi
contents This paper introduces Self-aware Knowledge Retrieval (SeaKR), a novel adaptive RAG model that extracts self-aware uncertainty of LLMs from their internal states. SeaKR activates retrieval when the LLMs present high self-aware uncertainty for generation. To effectively integrate retrieved knowledge snippets, SeaKR re-ranks them based on LLM's self-aware uncertainty to preserve the snippet that reduces their uncertainty to the utmost. To facilitate solving complex tasks that require multiple retrievals, SeaKR utilizes their self-aware uncertainty to choose among different reasoning strategies. Our experiments on both complex and simple Question Answering datasets show that SeaKR outperforms existing adaptive RAG methods. We release our code at https://github.com/THU-KEG/SeaKR.
format Preprint
id arxiv_https___arxiv_org_abs_2406_19215
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation
Yao, Zijun
Qi, Weijian
Pan, Liangming
Cao, Shulin
Hu, Linmei
Liu, Weichuan
Hou, Lei
Li, Juanzi
Computation and Language
This paper introduces Self-aware Knowledge Retrieval (SeaKR), a novel adaptive RAG model that extracts self-aware uncertainty of LLMs from their internal states. SeaKR activates retrieval when the LLMs present high self-aware uncertainty for generation. To effectively integrate retrieved knowledge snippets, SeaKR re-ranks them based on LLM's self-aware uncertainty to preserve the snippet that reduces their uncertainty to the utmost. To facilitate solving complex tasks that require multiple retrievals, SeaKR utilizes their self-aware uncertainty to choose among different reasoning strategies. Our experiments on both complex and simple Question Answering datasets show that SeaKR outperforms existing adaptive RAG methods. We release our code at https://github.com/THU-KEG/SeaKR.
title SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation
topic Computation and Language
url https://arxiv.org/abs/2406.19215