Trust but Verify: Designing Region-Inhomogeneous Forward Dynamics for Discrete Diffusion

The paper introduces region‑inhomogeneous forward dynamics for discrete diffusion, letting models treat context with varying trust levels to improve robustness against corrupted inputs.

Trust but Verify: Designing Region-Inhomogeneous Forward Dynamics for Discrete Diffusion

Introduction

Discrete diffusion models, especially for language generation, have traditionally treated the forward corruption process as a binary trust problem: the observed context is either fully trusted or completely discarded. This all‑or‑nothing approach can cause errors to cascade when the input contains noise or adversarial corruption. In Trust but Verify, Gunmay Jhingran reopens the design space of forward dynamics by mixing absorbing and uniform‑mixing kernels in a region‑dependent manner. The resulting system lets the model trust some tokens while verifying others, improving resilience without changing the underlying architecture.

Region‑Inhomogeneous Forward Dynamics

The core idea is simple yet powerful. During training, each token is assigned one of two forward processes:

  1. Absorbing dynamics – the token is left untouched, preserving the original context.
  2. Uniform‑mixing dynamics – the token is replaced with a random token from the vocabulary at a low rate.

Missing positions (the target of infill) always follow the absorbing dynamics, while surrounding context is split between the two regimes based on a region‑specific rate. This creates a spectrum of trust: high‑trust regions remain stable, whereas low‑trust regions expose the model to uncertain, potentially corrupted tokens. The model learns to distinguish reliable from unreliable context, assigning roughly 50 % probability to observed tokens even when they are random noise.

Inference Heuristic: Re‑injecting Noise

At generation time, a heuristic sampler re‑injects noise into tokens that appear suspicious, guided by an annealed intensity schedule. Early in the diffusion trajectory, the sampler allows more aggressive noise injection, encouraging the model to reconsider dubious context. As the trajectory progresses, updates to the context are gradually frozen, preventing unnecessary perturbations once confidence is established. This “trust‑but‑verify” loop enables the model to correct corrupted spans while preserving clean conditioning.

Empirical Findings

Using a 170 M‑parameter masked diffusion model fine‑tuned for 8,000 steps (under five hours on a 6 GB laptop GPU), the authors report:

  • Corruption detection: 0.96 recall and 0.91 precision for uniformly random corrupted tokens.
  • Infill quality: Token‑F1 improvements of 3.8 points at 10 % corruption and 6.4 points at 20 % corruption, eliminating the typical accuracy dip near corrupted regions.
  • Clean conditioning: No measurable regression; false‑edit rate stays below 0.4 %.
  • Plausible corruptions: Modest gains (≈0.5 F1 points) that were not statistically significant, suggesting that subtle, semantically plausible noise is harder to detect.

These results highlight a key insight: the detectability and damage of corruption depend jointly on how far the noise deviates from the data distribution. Distant, high‑contrast noise is easy to spot and highly destructive, while nearby, low‑contrast noise blends in and is less harmful.

Practical Takeaways

  • Design flexibility: Adjusting forward dynamics offers a lightweight way to introduce intermediate trust levels without architectural changes.
  • Training efficiency: The approach works with modest compute—fine‑tuning a 170 M model on a consumer‑grade GPU in a few hours.
  • Robust generation: By re‑injecting noise during inference, models can self‑correct when faced with unexpected context, making them more reliable for downstream applications such as code completion or document editing.

Conclusion

Trust but Verify demonstrates that region‑inhomogeneous forward dynamics can effectively balance trust and verification in discrete diffusion models. By exposing the model to controlled noise during training and employing a noise‑re‑injection sampler at inference, the method improves robustness to corrupted inputs while preserving performance on clean data. This work opens a promising avenue for future research: exploring richer region‑dependent schedules, extending the approach to larger models, and integrating it with other robustness techniques.

Source

Read original source

Why we picked this

Core AI paper introducing new methods for discrete diffusion dynamics

← Back to all articles