Notabletraining methods

Twist, Don't Tilt: Trajectory-Exact Constrained Decoding for Masked Diffusion Models

Aditya Thimmaiah, Lara Marinov, Jayanth Srinivasa, Haris Vikalo, Junyi Jessy Li, Milos Gligoric

Published
Sep 28, 2026 — 16:54 UTC

Problem

The paper addresses the issue of trajectory bias in constrained decoding for Masked Diffusion Language Models (MDLMs). This bias can lead to suboptimal generation outputs that do not adhere to specified structural or syntactic constraints. The authors highlight that existing methods do not adequately correct for this bias, which can significantly impact the quality of generated text. Notably, this work is presented as a preprint and has not undergone peer review.

Method

The authors propose a novel constrained decoding approach that ensures generated outputs satisfy specified constraints. The core components of their method include:

  • Model Architecture: The framework is built upon Masked Diffusion Language Models (MDLMs).
  • Constrained Decoding: The method employs exact constrained sampling through dynamic programming techniques.
  • Bias Derivation: The authors derive an exact expression for trajectory bias, defined as a product of ratios that measure changes in valid continuation mass.
  • Correction Method: The proposed TWISTER method utilizes an automaton-twisted Sequential Monte Carlo decoder to correct for trajectory bias.
  • Proposal Method: A step-exact decoder is used as the proposal mechanism for sampling.
  • Feynman-Kac Correction: This correction is computable for regular language constraints, with twists derived from pre-computed quantities to facilitate step-exact sampling.

Results

The paper targets an unbiased Doob h-transformed path law conditioned on constraint satisfaction. However, the available text does not report quantitative results or specific performance metrics against named baselines on established benchmarks.

Limitations

The authors acknowledge that their results may not generalize to other types of constraints beyond those specifically addressed in the paper. This limitation suggests that while the proposed method is effective for certain constraints, its applicability may be restricted in broader contexts.

Why it matters

The implications of this work are significant for downstream applications in natural language processing where adherence to structural constraints is critical. By providing a method to correct trajectory bias in MDLMs, this research could enhance the reliability and quality of generated text in various applications, including dialogue systems, text summarization, and other generative tasks that require strict compliance with linguistic rules.

Summarised from the primary source with AI assistance under human editorial oversight. Turing Wire is not a primary source — read the original for the authoritative account.

Source: arXiv cs.AI