{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-23396","title":"Lost in Decoding? Reproducing and Stress-Testing the Look-Ahead Prior in Generative Retrieval","arxiv_id":"2604.23396","date":"2026-04-25","proceeding":null,"authors":["Kidist Amde Mekonnen","Yongkang Li","Yubao Tang","Simon Lupart","Maarten de Rijke"],"abstract":"Generative retrieval (GR) ranks documents by autoregressively generating document identifiers. Because many GR methods rely on trie-constrained beam search, they are vulnerable to early pruning of relevant prefixes under finite-beam decoding. Planning Ahead in Generative Retrieval (PAG) mitigates this failure mode by using simultaneous decoding to compute a document-level look-ahead prior that guides subsequent sequential decoding. We reproduce PAG at inference time and stress-test its decoding behavior. Using the authors' released checkpoint and identifier/trie artifacts under the reported decoding setup, we reproduce the main effectiveness results on MS MARCO Dev and TREC-DL 2019/2020, and corroborate the reported beam-size-latency trade-off in our hardware setting. Beyond reproduction, we introduce plan drift diagnostics that quantify how intent-preserving query variations alter the planner's top-n candidate set and highest-weight planner tokens, and how these changes affect guided decoding. We find that PAG's planning signal is brittle under lexical surface-form variation: intent-preserving typos can trigger plan collapse, where the planned candidate pool shifts enough that the look-ahead bonus provides little useful guidance, effectively reverting decoding toward weaker unguided search. We further evaluate fixed-index cross-lingual robustness using non-English mMARCO queries against an English index, and assess query-side mitigation strategies that require no re-indexing; query translation provides the strongest recovery in our setting. Overall, our results confirm PAG's reported effectiveness and the benefit of planning-guided decoding under the released inference setup, while showing that these gains depend on the stability of the planning signal under realistic query variation and query-document mismatch.","url_abs":"https://arxiv.org/abs/2604.23396","url_pdf":"https://arxiv.org/pdf/2604.23396","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.23396"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/kidist-amde/lost-in-decoding","reach":null}],"summary":{"ran":5,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":13,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"e60a7fd26a85fd56","entry":"cand_overlap_at_k","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/plan_diagnostics.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/plan_diagnostics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e60a7fd26a85fd56"}},{"code_sha256_prefix":"305e9e86014cdab7","entry":"prepare_translated_query_dir","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/baseline_translate.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/baseline_translate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"305e9e86014cdab7"}},{"code_sha256_prefix":"b8d56674c2bd7402","entry":"run_json_to_trec","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/retrieval_engine.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/retrieval_engine.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b8d56674c2bd7402"}},{"code_sha256_prefix":"fb01a776f67be3a9","entry":"tok_jaccard_at_k","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/plan_diagnostics.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/plan_diagnostics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fb01a776f67be3a9"}},{"code_sha256_prefix":"2f7d900bcce2b8d0","entry":"translate_queries_with_log","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/baseline_translate.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/baseline_translate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2f7d900bcce2b8d0"}},{"code_sha256_prefix":"93b61cc5e4023f00","entry":"compute_metrics","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/evaluate.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"93b61cc5e4023f00"}},{"code_sha256_prefix":"76aa0a521bd28bfa","entry":"compute_per_query_metrics","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/evaluate.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"76aa0a521bd28bfa"}},{"code_sha256_prefix":"0973d122a80995a8","entry":"download_mmarco_queries","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/data_loader.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0973d122a80995a8"}},{"code_sha256_prefix":"1c781c9ba57efa73","entry":"load_mmarco_queries","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/data_loader.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1c781c9ba57efa73"}},{"code_sha256_prefix":"f684968bb36ccc46","entry":"load_model_hf","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"robustness/utils/load_model.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/robustness/utils/load_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f684968bb36ccc46"}},{"code_sha256_prefix":"1bf3d3612db6e207","entry":"save_metrics","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/evaluate.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1bf3d3612db6e207"}},{"code_sha256_prefix":"03d8c77cb047e466","entry":"summary_stats","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/plan_diagnostics.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/plan_diagnostics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"03d8c77cb047e466"}},{"code_sha256_prefix":"1646462d410c836d","entry":"validate_qid_overlap","repo":"kidist-amde/lost-in-decoding","repo_kind":"found_in_text","path":"cross_lingual/data_loader.py","file_url":"https://github.com/kidist-amde/lost-in-decoding/blob/HEAD/cross_lingual/data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1646462d410c836d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}