{"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-22216","title":"Gumbel Distillation for Parallel Text Generation","arxiv_id":"2603.22216","date":"2026-03-23","proceeding":null,"authors":["Chi Zhang","Xixi Hu","Bo Liu","Qiang Liu"],"abstract":"The slow, sequential nature of autoregressive (AR) language models has driven the adoption of parallel decoding methods. However, these non-AR models often sacrifice generation quality as they struggle to model the complex joint distribution of token sequences. To narrow this performance gap, we introduce Gumbel Distillation, a novel distillation technique that enables parallel decoders to learn this distribution effectively. Our method leverages the Gumbel-Max trick to create a deterministic mapping from a latent Gumbel noise space to the output tokens of a high-performing AR teacher. As a model-agnostic technique, Gumbel Distillation seamlessly integrates with diverse parallel decoding architectures, including MDLM and BD3-LM. Experiments on LM1B and OpenWebText show that Gumbel Distillation substantially improves the generation quality of parallel language models, achieving a 30.0% improvement in MAUVE score and 10.5% in generative perplexity over MDLM trained on OpenWebText dataset. Code available at https://github.com/hxixixh/gumbel-distill.","url_abs":"https://arxiv.org/abs/2603.22216","url_pdf":"https://arxiv.org/pdf/2603.22216","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":"https://app.syntology.ai/?focus=2603.22216","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.22216"}},"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/hxixixh/gumbel-distill","reach":null}],"summary":{"ran":8,"ran_violates":1,"ran_fixture":3,"ran_draft_wrong":1,"ran_honours":3,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":19,"ran":16,"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":19,"samples":[{"code_sha256_prefix":"86fec9b064072440","entry":"DDiTBlock","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"86fec9b064072440"}},{"code_sha256_prefix":"8ce17998895192fd","entry":"DDiTBlockCausal","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8ce17998895192fd"}},{"code_sha256_prefix":"f2c2fc5cf1e7ae01","entry":"DDiTFinalLayer","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f2c2fc5cf1e7ae01"}},{"code_sha256_prefix":"a26dfd38a7ca0f3f","entry":"EmbeddingLayer","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a26dfd38a7ca0f3f"}},{"code_sha256_prefix":"f731aca918f3d54e","entry":"GumbelNoiseEmbedder","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f731aca918f3d54e"}},{"code_sha256_prefix":"cdb5490054e8737a","entry":"LayerNorm","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cdb5490054e8737a"}},{"code_sha256_prefix":"64d54c6f56485c6d","entry":"Rotary","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"64d54c6f56485c6d"}},{"code_sha256_prefix":"1a545c77d3bb49b8","entry":"TimestepEmbedder","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1a545c77d3bb49b8"}},{"code_sha256_prefix":"f080db2e3db70ca8","entry":"apply_rotary_pos_emb_torchscript","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f080db2e3db70ca8"}},{"code_sha256_prefix":"fbbc6722b74bda27","entry":"bias_dropout_add_scale","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fbbc6722b74bda27"}},{"code_sha256_prefix":"1db46c6c34b8dce1","entry":"bias_dropout_add_scale_fused_inference","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1db46c6c34b8dce1"}},{"code_sha256_prefix":"ee894c881614c3ec","entry":"bias_dropout_add_scale_fused_train","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ee894c881614c3ec"}},{"code_sha256_prefix":"14959ccf1e594504","entry":"block_diff_mask","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"14959ccf1e594504"}},{"code_sha256_prefix":"78b555034273f3c7","entry":"modulate","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"78b555034273f3c7"}},{"code_sha256_prefix":"45d7695ab56ca287","entry":"modulate_fused","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"45d7695ab56ca287"}},{"code_sha256_prefix":"8526ce179df04bd4","entry":"rotate_half","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8526ce179df04bd4"}},{"code_sha256_prefix":"776d7545fb6e9737","entry":"GumbelDIT","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"776d7545fb6e9737"}},{"code_sha256_prefix":"2700f6838f384546","entry":"apply_rotary_pos_emb","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2700f6838f384546"}},{"code_sha256_prefix":"b4f2749f771988c2","entry":"fused_flex_attention","repo":"hxixixh/gumbel-distill","repo_kind":"found_in_text","path":"models/dit_gumbel.py","file_url":"https://github.com/hxixixh/gumbel-distill/blob/HEAD/models/dit_gumbel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b4f2749f771988c2"}}]},"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}