TL;DR
DIFFUSION-MF is the first discrete diffusion sequence labeller that integrates a linear-chain conditional random field (LCRF) directly into its denoising loop. By leveraging parallel Mean-Field approximation, it efficiently performs structured inference at every step, capturing both local transitions and global context. The model achieves state-of-the-art results across multilingual POS tagging, named-entity recognition, and joint Chinese segmentation/POS tagging.
What Problem Does This Paper Address?
Sequence labelling tasks—such as Part-of-Speech (POS) tagging or Named Entity Recognition (NER)—require models to predict a sequence of categorical tags for a given input sentence. Traditional approaches like Linear-Chain Conditional Random Fields (LCRFs) excel at modeling dependencies between adjacent labels (e.g., an adjective is likely followed by a noun). However, they struggle to capture long-range, global interactions without becoming computationally intractable.
While diffusion models offer a principled way to model global context through iterative refinement, existing diffusion sequence labellers rely on continuous relaxations. They map discrete tags to continuous bit vectors and apply Gaussian noise. This continuous approach imposes an artificial geometry on categorical labels and lacks explicit sequence scores, making it difficult to enforce hard structural constraints during final decoding.
Methods
The authors introduce DIFFUSION-MF, which keeps the diffusion process entirely within the discrete label space. Instead of using continuous approximations, the denoiser defines an explicit distribution over categorical label sequences.
At each denoising step, an LCRF is embedded directly inside the loop to score both unary potentials and adjacent-label interactions. Normally, calculating exact marginal probabilities for an LCRF requires sequential algorithms (like Forward/Backward) that scale linearly with sentence length, creating a massive computational bottleneck when repeated across multiple diffusion steps.
To solve this, the authors use parallel Mean-Field approximation. This technique recovers position-wise independent computation, allowing the structured denoising loop to run highly efficiently in parallel.
The overall architecture pairs an encoder (either trained from scratch or a pretrained model like RoBERTa) with a Diffusion Transformer block that conditions updates on the input text, the evolving noisy sequence, and the current timestep.
Datasets
The model was evaluated across three sequence labelling tasks spanning six distinct experimental settings (using both scratch-built and pretrained encoders):
- Multilingual POS Tagging: Evaluated on four Universal Dependencies (UD 2.15) treebanks (English, German, French, Dutch) using token accuracy.
- CoNLL-2003 English NER: Evaluated using entity-level Precision, Recall, and F1 score.
- Chinese GSDSimp: A joint word segmentation and POS tagging task, evaluated using a joint F1 score.
Key Insights and Ideas
- Structure Inside the Loop Helps: Incorporating adjacent-label structure during the denoising process (via Mean-Field) consistently outperformed unstructured diffusion baselines. This proves that local transition constraints provide valuable guidance even when global context is available.
- Discrete Beats Continuous Relaxation: Operating directly on discrete categorical label distributions avoids the artificial geometry introduced by continuous relaxations (like
DIFFUSIONSL), allowing for cleaner integration of structured decoding constraints. - Exact Inference Isn't Always Better: Surprisingly, exact LCRF denoising (
DIFFUSION-LCRF) did not outperform the Mean-Field approximation and was significantly slower. Parallel approximate inference acts as both an efficiency win and an effective regularizer.
Key Results
DIFFUSION-MF achieved the best primary results across all six task-encoder combinations, outperforming both traditional non-diffusion baselines and continuous diffusion models.
- Performance Gains: On the CoNLL-2003 NER task using a scratch encoder,
DIFFUSION-MFachieved an F1 score of 80.65, outperforming the standard LCRF baseline (78.89) and continuousDIFFUSIONSL(79.84). On Chinese Seg+POS, it reached a Joint F1 of 86.69, compared to 83.78 for the standard LCRF. - Efficiency: Mean-Field inference proved dramatically faster than exact LCRF decoding. For example, during NER inference, the Mean-Field approach processed 273.7 sentences per second on a single NVIDIA A100 GPU, compared to just 56.8 sentences per second for the exact LCRF model.
Limitations and Future Work
- Structural Scope: The current work is limited to first-order linear-chain structures. The authors note that it remains to be seen how this method scales to higher-order structures or longer sequence lengths.
- Inference Latency: Although Mean-Field is faster than exact LCRF, diffusion models still require multiple sequential denoiser calls (the authors use a 10-step halving schedule), making them inherently slower than standard single-pass neural network architectures.
- Convergence Guarantees: Parallel Mean-Field approximation is an approximation and lacks general convergence guarantees; its accuracy depends heavily on the number of iterations and the strength of the pairwise potentials.
Summary updated