SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.03908 · 2026

Decide Then Retrieve: A Training-Free Framework with Uncertainty-Guided Triggering and Dual-Path Retrieval

Yang Li, Wang Chen, Guanqiang Qi, Weikang Li, Deguo Xia, Jizhou Huang, Carolina Panthers

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2601.03908.json · badge: /api/ran/2601.03908.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ChenWangHKU/DTR canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
ems Ran
ran, violated the contract we drafted
ChenWangHKU/DTR/evaluation/metrics.py
pointer only (licence: NONE) · get_code("f6c9530a516eaf65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

exact_match_score Ran
ran, violated the contract we drafted
ChenWangHKU/DTR/evaluation/metrics.py
pointer only (licence: NONE) · get_code("108d116eb5bdf952")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_index_path Ran
ran; our contract draft was wrong, not the code
ChenWangHKU/DTR/dataset/load_data.py
pointer only (licence: NONE) · get_code("33eb0683baa7dede")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_answer Ran
ran; our contract draft was wrong, not the code
ChenWangHKU/DTR/evaluation/metrics.py
pointer only (licence: NONE) · get_code("b92b07bb3574992a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

select_topk_of_query_info Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ChenWangHKU/DTR/agent/reranker.py
pointer only (licence: NONE) · get_code("88a469213f973bf8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_corpus Not yet run
unverified (harvested, no recorded run)
ChenWangHKU/DTR/dataset/load_data.py
pointer only (licence: NONE) · get_code("dadf6ea008f1bb13")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_test_qa Not yet run
unverified (harvested, no recorded run)
ChenWangHKU/DTR/dataset/load_data.py
pointer only (licence: NONE) · get_code("d30ac111ebcbb2aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenWangHKU/DTR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
exact_match_score 56 other papers
55 dated earlier, 1 the same month
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 53 more not named here
normalize_answer 9 other papers
8 dated earlier, 1 the same month
2305.12421 (2023-05)
Evaluating Open-QA Evaluation
2308.11730 (2023-08)
Knowledge Graph Prompting for Multi-Document Question Answering
2310.14393 (2023-10)
Merging Generated and Retrieved Knowledge for Open-Domain QA
and 6 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Retrieval-augmented generation (RAG) enhances large language models (LLMs) by incorporating external knowledge, but existing approaches indiscriminately trigger retrieval and rely on single-path evidence construction, often introducing noise and limiting performance gains. In this work, we propose Decide Then Retrieve (DTR), a training-free framework that adaptively determines when retrieval is necessary and how external information should be selected. DTR leverages generation uncertainty to guide retrieval triggering and introduces a dual-path retrieval mechanism with adaptive information selection to better handle sparse and ambiguous queries. Extensive experiments across five open-domain QA benchmarks, multiple model scales, and different retrievers demonstrate that DTR consistently improves EM and F1 over standard RAG and strong retrieval-enhanced baselines, while reducing unnecessary retrievals. The code and data used in this paper are available at https://github.com/ChenWangHKU/DTR.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2601.03908")
get_code_for_paper("2601.03908")
have("2601.03908")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2601.03908.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2601.03908.svg)](https://syntology.ai/paper/2601.03908)

Connect an agent — have() is free.