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

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

27 Jun 2024arXiv:2406.19215archive 2025-07-28

Zijun Yao, Weijian Qi, Liangming Pan, Shulin Cao, Linmei Hu, Weichuan Liu, Lei Hou, Juanzi Li

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.

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

Code

Syntology Ran 8 of 12 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 8 ran with no contract checked.

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

thu-keg/seakr officialmentioned in paperpytorchGPL-3.0 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

12 samples harvested; 8 ran; 0 honoured the contract we drafted; 4 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.

8ran
4unverified

Licence: 12 of the 12 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 thu-keg/seakr. “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.

async_request_deepspeed_mii thu-keg/seakr/vllm_uncertainty/benchmarks/backend_request_func.py official repository ran GPL-3.0 (copyleft) · pointer only · 5109c385e92b727e · report
async_request_tgi thu-keg/seakr/vllm_uncertainty/benchmarks/backend_request_func.py official repository ran GPL-3.0 (copyleft) · pointer only · a58940aabfd794f9 · report
async_request_trt_llm thu-keg/seakr/vllm_uncertainty/benchmarks/backend_request_func.py official repository ran GPL-3.0 (copyleft) · pointer only · fa581ebc13cb414d · report
bm25search_search thu-keg/seakr/SEAKR/retriever.py official repository ran GPL-3.0 (copyleft) · pointer only · 1a724cf510e5bb93 · report
check_wheel_size thu-keg/seakr/vllm_uncertainty/.buildkite/check-wheel-size.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · e8d1a899df6f301a · report
elasticsearch_lexical_multisearch thu-keg/seakr/SEAKR/retriever.py official repository ran GPL-3.0 (copyleft) · pointer only · 0410394e1f61026a · report
get_answer thu-keg/seakr/main_simpleqa.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 64fc92f1ad0464da · report
run_and_read_all thu-keg/seakr/vllm_uncertainty/collect_env.py official repository ran GPL-3.0 (copyleft) · pointer only · 5ae630bfc3821b6e · report
elasticsearch_hit_template thu-keg/seakr/SEAKR/retriever.py official repository unverified GPL-3.0 (copyleft) · pointer only · 189363ca95998f9a · report
get_dataset thu-keg/seakr/SEAKR/dataset.py official repository unverified GPL-3.0 (copyleft) · pointer only · c39d142cd9d5522d · report
run thu-keg/seakr/vllm_uncertainty/collect_env.py official repository unverified GPL-3.0 (copyleft) · pointer only · 6b73fe0480a96ad9 · report
run_and_parse_first_match thu-keg/seakr/vllm_uncertainty/collect_env.py official repository unverified GPL-3.0 (copyleft) · pointer only · ce7a62e37fe78c0d · report

Tasks

Question AnsweringRAGRetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPEDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionRAGResidual ConnectionSoftmaxWeight DecayWordPiece

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