{"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-2603-00454","title":"Rooted Absorbed Prefix Trajectory Balance with Submodular Replay for GFlowNet Training","arxiv_id":"2603.00454","date":"2026-02-28","proceeding":"ICML","authors":["Xi Wang","Wenbo Lu","Shengjie Wang"],"abstract":"Generative Flow Networks (GFlowNets) enable fine-tuning large language models to approximate reward-proportional posteriors, but they remain prone to mode collapse, manifesting as prefix collapse and length bias. We attribute this to two factors: (i) weak credit assignment to early prefixes, and (ii) biased replay that induces a shifted, non-representative training flow distribution. We propose Rooted absorbed prefix Trajectory Balance RapTB, an objective that anchors subtrajectory supervision at the root and propagates terminal rewards to intermediate prefixes via absorbed suffix-based backups, providing dense prefix-level learning signals. To mitigate replay-induced distribution shift, we further introduce SubM, a submodular replay refresh strategy that promotes both high reward and diversity. Empirically, on tasks such as molecule generation with LLM using SMILES strings, RapTB combined with SubM consistently improves optimization performance and molecular diversity while preserving high validity. The code is released on https://github.com/ComDec/ChemGFN.","url_abs":"https://arxiv.org/abs/2603.00454","url_pdf":"https://arxiv.org/pdf/2603.00454","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":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2603.00454","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.00454"}},"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/ComDec/ChemGFN","reach":null}],"summary":{"ran_honours":1,"ran_fixture":5,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":8,"ran":6,"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":"4aeffcaa0571f585","entry":"_delta_cumsum","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4aeffcaa0571f585"}},{"code_sha256_prefix":"821b75a611c331d7","entry":"_gather_by_index","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"821b75a611c331d7"}},{"code_sha256_prefix":"3f6af32ab237d03d","entry":"_reconstruct_ref_logP","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f6af32ab237d03d"}},{"code_sha256_prefix":"ee765fd680fe36d4","entry":"_suffix_future_max","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ee765fd680fe36d4"}},{"code_sha256_prefix":"a82db6f5f7ba0436","entry":"_suffix_future_soft","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a82db6f5f7ba0436"}},{"code_sha256_prefix":"4b84e390ddb447a9","entry":"_sum_log_pf_upto_tau","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4b84e390ddb447a9"}},{"code_sha256_prefix":"710a188fe5a63ef1","entry":"GFNLoss","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"710a188fe5a63ef1"}},{"code_sha256_prefix":"c6cde18be550b62d","entry":"RapTBLoss","repo":"ComDec/ChemGFN","repo_kind":"found_in_text","path":"chemgfn/models/losses.py","file_url":"https://github.com/ComDec/ChemGFN/blob/HEAD/chemgfn/models/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c6cde18be550b62d"}}]},"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}