{"id": "http://arxiv.org/abs/2607.26504v1", "title": "From Interface to Inference: Eliciting Any-Order Inference from Any-Order Models", "abstract": "Many discrete reasoning tasks, such as code generation, are inherently non-causal: programmers move between high-level structure and local details, a process we call any-order inference. For autoregressive language models, which lack a native any-order interface, non-causal abilities such as infilling and next-edit prediction require hand-designed mechanisms. Can we instead design models that natively support any-order inference? Masked diffusion models have recently emerged as compelling candidates, as their any-order training objective naturally offers an any-order prediction interface. This interface, however, does not automatically yield any-order inference. We demonstrate that this interface-inference gap stems from positional uncertainty: fixed-canvas, token-level models may know what semantic component should appear without knowing where to place it. In light of this, we propose two complementary approaches: (1) Insertion-based masked diffusion, building on FlexMDM (Kim et al, 2025), relaxes fixed-position commitments via insertions, enabling generation across non-contiguous regions. (2) Latent-space masked diffusion shifts prediction to coarser semantic segments, enabling search over latent generation orders. Empirically, we train a 7B FlexMDM for Python coding and a 125M LatentMDM for GSM8K and show that both approaches induce distinct any-order inference behaviors and improve downstream performance. We release our codebase at https://github.com/SeunggeunKimkr/genuine-any-order.", "published_at": "2026-07-29T06:09:12+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2607.26504v1", "source_hash": "7e8fd81f6661fba61e589f439f1c5ecb6c4e1555f31c0cedd9afe20f41194d39", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion", "reasoning", "code-generation"], "code_url": "https://github.com/SeunggeunKimkr/genuine-any-order", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.00495v1", "http://arxiv.org/abs/2608.30922v1", "http://arxiv.org/abs/2608.20123v1"], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "explanations": {}, "resources": {"version": "paper-resources-v1", "source_hash": "7e8fd81f6661fba61e589f439f1c5ecb6c4e1555f31c0cedd9afe20f41194d39", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"span": [1462, 2102], "evidence": "ser semantic segments, enabling search over latent\ngeneration orders. Empirically, we train a 7B FlexMDM for Python coding and a\n125M LatentMDM for GSM8K and show that both approaches induce distinct any-\norder inference behaviors and improve downstream performance. We release our\ncodebase at https://github.com/SeunggeunKimkr/genuine-any-order.\n\n…\n\nreturn False\n\n### Expectation\n\n### Positional Uncertainty\n\nfor n in\nnums:\n\nreturn True\n\nm\n\nfor n\nin\nnums:\n\nreturn False\n?\n?\n\n①def has_zero(nums):\n\n②for n in nums:\n\n⑤return False\n\nreturn\nFalse\n\nreturn\nFalse\n\nm\nm\n\nm\nm\n\ndef has_zero(nums):\n\n①\n②\nm\nm\n\n⑤\n\n1. Insertion-based Masked Diffusion\n\n##", "origin": "source_excerpt", "kind": "code", "evidence_hash": "242a20d5e9592d439f7d884b1767d2a0842fe05695ab7ab198d7b0be8973d962", "url": "https://github.com/SeunggeunKimkr/genuine-any-order"}]}, "slug": "2607.26504-from-interface-to-inference-eliciting-any-order-inference-from-any-order-models", "full_text_brief": null}