· Masked / discrete diffusion, Controllability · Source

ILRR: Inference-Time Steering Method for Masked Diffusion Language Models

SourceFull paper

Article overview

Verdict

ILRR is an effective inference-time control method for masked diffusion language models: it substantially improves attribute transfer without fine-tuning, at the cost of one additional parallel pass per denoising step. The advantage is demonstrated for toxicity and sentiment on LLaDA and MDLM, but is not established for other tasks.

Main idea

The method transfers high-level semantics from a single reference sequence into generated text by aligning reference and current-generation hidden activations during denoising. The model retains syntax and details rather than directly copying the reference.

Mechanism

State variables: hidden activations from selected layers and denoising steps for a noised reference sequence and the current generation. Algorithm: run both sequences in parallel; apply sliding-window 1D average pooling as a semantic extractor; compute A(reference)−A(generation); update the generation with h ← h + α(A(reference)−A(generation)). α controls steering strength globally or per layer, and intervention can be restricted to selected steps. For length mismatch, downsample longer-generation activations with adaptive pooling, interpolate the difference, and distribute it with position-dependent cosine weights. No training objective or data construction is required. Inference follows ordinary denoising with one additional parallel pass per selected step; exact layers, timesteps, and universally optimal pooling size are not specified. Reproduction: (1) load LLaDA or MDLM; (2) prepare and noise the reference at the current step; (3) obtain parallel reference and generation activations; (4) apply pooling, differencing, and scale α; (5) use spatial modulation for length mismatch; (6) continue denoising and compare control, copying, and compute against baselines.

What this is useful for

The method is useful for inference-time control of style, sentiment, and other attributes in masked diffusion language models, especially when fine-tuning and extensive candidate search are undesirable. Spatial modulation extends use to long generations guided by short references.

Risks / not proven

The method adds computation—one parallel forward pass per denoising step—and requires tuning α, layers, timesteps, and pooling. Very small pooling kernels increase copying. Malicious references may amplify undesirable attributes. The source does not establish transfer to other models, tasks, or distributions and does not provide a complete universal tuning recipe.

Full abstract

Discrete Diffusion Language Models (DLMs) offer a promising non-autoregressive alternative for text generation, yet effective mechanisms for inference-time control remain relatively underexplored. Existing approaches include sampling-level guidance procedures or trajectory optimization mechanisms. In this work, we introduce Iterative Latent Representation Refinement (ILRR), a learning-free framework for steering DLMs using a single reference sequence. ILRR guides generation by dynamically aligning the internal activations of the generated sequence with those of a given reference throughout the denoising process. This approach captures and transfers high-level semantic properties, with a tunable steering scale enabling flexible control over attributes such as sentiment. We further introduce Spatially Modulated Steering, an extension that enables steering long texts using shorter references by regulating guidance intensity across the sequence. Empirically, we demonstrate that ILRR achieves effective attribute steering on LLaDA and MDLM architectures with a minor computational overhead, requiring only one additional parallel forward pass per denoising step. Under the same compute budget, ILRR improves attribute accuracy over comparable baselines by 10$\%$ to 60$\%$ points, while maintaining high generation quality.

Source

BibTeX · RIS · Markdown · JSON