Papers › Generative Dense Retrieval: Memory Can Be a Burden

Generative Dense Retrieval: Memory Can Be a Burden

19 Jan 2024arXiv:2401.10487archive 2025-07-28

Peiwen Yuan, Xinglin Wang, Shaoxiong Feng, Boyuan Pan, Yiwei Li, HeDa Wang, Xupeng Miao, Kan Li

Generative Retrieval (GR), autoregressively decoding relevant document identifiers given a query, has been shown to perform well under the setting of small-scale corpora. By memorizing the document corpus with model parameters, GR implicitly achieves deep interaction between query and document. However, such a memorizing mechanism faces three drawbacks: (1) Poor memory accuracy for fine-grained features of documents; (2) Memory confusion gets worse as the corpus size increases; (3) Huge memory update costs for new documents. To alleviate these problems, we propose the Generative Dense Retrieval (GDR) paradigm. Specifically, GDR first uses the limited memory volume to achieve inter-cluster matching from query to relevant document clusters. Memorizing-free matching mechanism from Dense Retrieval (DR) is then introduced to conduct fine-grained intra-cluster matching from clusters to relevant documents. The coarse-to-fine process maximizes the advantages of GR's deep interaction and DR's scalability. Besides, we design a cluster identifier constructing strategy to facilitate corpus memory and a cluster-adaptive negative sampling strategy to enhance the intra-cluster mapping ability. Empirical results show that GDR obtains an average of 3.0 R@100 improvement on NQ dataset under multiple settings and has better scalability.

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

Code

Syntology Ran 15 of 19 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 13 ran with no contract checked.

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

ypw0102/gdr officialmentioned in paperjax 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

19 samples harvested; 15 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.

2ran · our draft was wrong
13ran
4unverified

Licence: 19 of the 19 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 ypw0102/gdr. “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.

swish ypw0102/gdr/GDR_model/transformers/activations.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 0f786c407fb1ee4c · report
E_CL ypw0102/gdr/GDR_model/main_helper_loss.py official repository ran no licence file found · pointer only · f9be524a39f343b5 · report
E_Reg_loss ypw0102/gdr/GDR_model/main_helper_loss.py official repository ran no licence file found · pointer only · f4d5ea96900f4114 · report
doc_reweight_loss ypw0102/gdr/GDR_model/main_helper_loss.py official repository ran no licence file found · pointer only · c90481d879d6e74f · report
gelu ypw0102/gdr/GDR_model/transformers/activations_tf.py official repository ran fingerprinted no licence file found · pointer only · 14a1c81ea568d152 · report
gelu_fast ypw0102/gdr/GDR_model/transformers/activations.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · a4475703ff58ecf9 · report
gelu_new ypw0102/gdr/GDR_model/transformers/activations.py official repository ran fingerprinted no licence file found · pointer only · aef07bb1e2787431 · report
gelu_new ypw0102/gdr/GDR_model/transformers/activations_tf.py official repository ran fingerprinted no licence file found · pointer only · 13718ddda6b66f8e · report
get_ckpt ypw0102/gdr/GDR_model/main_utils.py official repository ran no licence file found · pointer only · 923d19a187027958 · report
grad_status ypw0102/gdr/GDR_model/main_utils.py official repository ran no licence file found · pointer only · 4ed3a54ebfd50cc5 · report
lmap ypw0102/gdr/GDR_model/main_utils.py official repository ran no licence file found · pointer only · 64e8746cf3f62e8e · report
load_candidate_from_stream ypw0102/gdr/GDR_model/main_metrics.py official repository ran no licence file found · pointer only · a4d8ea61b62189e8 · report
load_reference ypw0102/gdr/GDR_model/main_metrics.py official repository ran no licence file found · pointer only · b75e94e5d0c04ad5 · report
load_reference_from_stream ypw0102/gdr/GDR_model/main_metrics.py official repository ran no licence file found · pointer only · e99a1fef3b9d445c · report
simple_tok ypw0102/gdr/GDR_model/bm25_preprocess.py official repository ran fingerprinted no licence file found · pointer only · 1713558286ecf0e4 · report
build_or_load_embedding_tree ypw0102/gdr/GDR_model/main_models.py official repository unverified no licence file found · pointer only · e79bfbea5d698632 · report
load_embedding ypw0102/gdr/GDR_model/main_models.py official repository unverified no licence file found · pointer only · da402819a398f4a7 · report
mish ypw0102/gdr/GDR_model/transformers/activations_tf.py official repository unverified no licence file found · pointer only · cc8c8c3ebf0c343f · report
tree_embedding_calculate ypw0102/gdr/GDR_model/main_models.py official repository unverified no licence file found · pointer only · 097315a106ec7d48 · report

Tasks

Retrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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