A researcher examines a digital document translation workflow, transforming a scanned page into multilingual versions.
When a machine-learning experiment goes sideways on a coding benchmark, most engineers tweak a few hyperparameters, sigh at the GPU bill, and move on. Microsoft machine-learning engineer Anuar Sharafudinov took a sharper turn. In a November 30, 2026 post on Microsoft's Command Line blog, Sharafudinov detailed how an initially frustrating hackathon project with diffusion language models (DLMs) on software engineering tasks led him to pivot toward machine translation—and uncover an architecture fit that could reshape how developers think about long-form AI workloads.

For the past several years, the AI world has largely marched to the beat of autoregressive large language models (LLMs), which predict text sequentially, one token after another. Diffusion language models take a fundamentally different route: instead of writing left to right like a typist who can never look ahead, they start from noise or masked placeholders and iteratively refine an entire sequence of tokens in parallel. It is the same broad noise-to-signal philosophy that powered image generators like DALL-E and Stable Diffusion, adapted to discrete text. Yet despite growing research interest—including academic efforts like LLaDA and industry explorations such as Google DeepMind's Gemini Diffusion—diffusion models have remained conspicuously scarce on major coding leaderboards. Sharafudinov set out to learn whether that absence reflected raw capability limits or an industry ecosystem rigged around autoregressive habits.

A researcher examines a digital document translation workflow, transforming a scanned page into multilingual versions. Why Diffusion Stumbled as a Coding Agent​

Sharafudinov began with DiffusionGemma-27B, fine-tuning the model on software engineering datasets including SWE-Smith and SWE-Rebench. Rather than stopping at supervised fine-tuning, he layered on reinforcement learning (RL) driven by LLM-based feedback, scoring individual messages and actions inside each trajectory so helpful reasoning steps were rewarded while irrelevant or harmful detours were penalized.

After multiple RL cycles—during which training continued on SWE-Bench Verified without access to ground-truth solutions—the model reached a reported score of 71.3%. On paper, that sounds like a headline triumph. In practice, Sharafudinov hit a brick wall: in roughly 5% to 10% of cases, the model emitted malformed, incorrectly formatted outputs.

In conversational chat, a stray bracket or mangled markdown block is a minor annoyance. In an automated coding agent—where a model must navigate repositories, invoke shell tools, and respect strict schema contracts—a 5–10% formatting failure rate is a dealbreaker. As Sharafudinov explained, the issue was not just under-training; it stemmed from a structural difference in how diffusion models generate text:

  • No natural finish line: Autoregressive models simply stop when they emit an end-of-sequence token. Diffusion models refine dozens of tokens at once across multiple denoising passes, leaving engineers with a thorny stopping-rule problem.
  • Fragile heuristics: Sharafudinov notes that practitioners can halt denoising using average token entropy, confidence thresholds, step-to-step stability, or a hard iteration cap. Stop too soon and corrupted tokens slip through; run too long and compute evaporates.
  • Format sensitivity: Across repeated combinations of stopping heuristics, he could not reliably eliminate malformed structured outputs—meaning coding agents simply demanded more syntactic rigidity than his denoising loop could guarantee.

It is also worth keeping that 71.3% figure in perspective. Because the Command Line write-up does not publish full evaluation parameters, confidence intervals, or standardized harness configurations for that run, it cannot be treated as a directly apples-to-apples leaderboard entry. Still, the practical engineering lesson was clear enough: forcing a parallel denoiser into a brittle, multi-turn tool-calling harness was fighting the architecture's nature.

Section Summary: DiffusionGemma-27B achieved a 71.3% score in Sharafudinov's SWE-Bench Verified experiments, but a persistent 5–10% rate of malformed outputs exposed how tricky denoising stopping criteria remain for strict coding-agent protocols.

The Pivot to Machine Translation​

So why did machine translation look like greener pasture? Think about what a translator actually needs to do compared to a software engineering agent. A translation model does not have to run terminal commands, patch multi-file diffs, or maintain a stateful JSON protocol. It takes a coherent source passage and produces a coherent target passage—and because the entire input context is known up front, refining multiple output tokens concurrently is a natural fit.

To test that intuition, Sharafudinov adapted DiffusionGemma-27B into a translation model operating over a fixed 1,024-token canvas. He split the public CoCoDoc-MT dataset into roughly 79.1K training samples and 200 test samples, then ran a two-stage training pipeline:

  1. Supervised fine-tuning (SFT): One full epoch on a single NVIDIA A100 GPU.
  2. Reinforcement learning: Fine-tuning over 260 samples, evaluating four candidate generations per step with GPT-5.4 serving as the LLM judge.

During inference, instead of stepping through 1,024 sequential token predictions, the diffusion model denoises the entire canvas in 30 to 40 steps, effectively processing around 30 tokens per forward pass. Outputs shorter than the 1,024-token canvas are padded after the end-of-sequence token. That padding detail carries an important operational consequence: the sequential step-count advantage is largest on long documents. For short, one-sentence snippets, an autoregressive model only needs as many steps as the output is long, wiping out much of the step-count gap.

Benchmarking Quality—With Crucial Caveats​

Sharafudinov evaluated his adapted diffusion model across four English-to-target language pairs—Spanish, French, Russian, and Traditional Chinese—on the 200-sample CoCoDoc-MT test split. Using the chrF++ metric, he compared it against Microsoft Translator API and GPT-5 mini.

Language PairDiffusion Model (chrF++)Microsoft Translator API (chrF++)GPT-5 mini (chrF++)
English → Spanish74.6572.0274.00
English → French71.8769.3871.00
English → Russian68.9464.3066.90
English → Traditional Chinese34.5532.7235.40
Overall69.4266.6668.49

On this test set, the diffusion model posted higher chrF++ scores than both baselines in Spanish, French, and Russian, and edged out Microsoft Translator API in Traditional Chinese while trailing GPT-5 mini by 0.85 points.

Before anyone declares traditional translators obsolete, however, three technical caveats deserve front-page billing:

  • Fewer sequential passes is not "30× cheaper": Sharafudinov explicitly emphasizes that needing roughly 30 times fewer sequential generation passes is a step-count comparison, not a measured 30-fold reduction in total compute, energy use, or real-world latency. Full-canvas forward passes carry their own computational footprint, and the post provides no end-to-end throughput, memory, or hardware-matched cost benchmarks.
  • Automated n-grams are not human judgment: chrF++ measures character and word n-gram overlap against reference translations. While useful for quick automated comparisons, it does not capture subtle meaning shifts, register, or fluency the way human bilingual reviewers do, and no confidence intervals or significance tests were reported on the 200-sample split.
  • UN prose is a specialized domain: According to the CoCoDoc-MT dataset card on Hugging Face, the benchmark is a document-level, long-context parallel corpus built from United Nations documents (listing roughly 79.2K rows in its training split across tiered document lengths). That means its source material leans heavily toward formal, diplomatic, and institutional phrasing rather than casual chat, technical documentation, or software UI strings. Strong scores on UN records do not automatically guarantee identical behavior on everyday consumer or enterprise text.

Sharafudinov also made an experimental web demo available at dlmtranslate.vercel.app. Readers testing it out should treat it strictly as a developer-built research prototype rather than an official, SLA-backed Microsoft service, as no production guarantees or data-handling commitments accompany the demo.

Section Summary: On a 200-sample CoCoDoc-MT test split, the diffusion translator beat Microsoft Translator API across all four tested languages and topped GPT-5 mini in three of four on chrF++, while cutting sequential generation steps by roughly 30× for full-canvas outputs—though total compute, latency, and broader domain generalization remain unmeasured.

What Windows Developers and IT Teams Should Take Away​

For developers building AI features on Windows, Azure, or local workstations, the real headline here is not a single hackathon leaderboard table. It is a reminder that model architecture should match task topology.

Right now, almost every piece of mainstream AI infrastructure—from inference engines and KV-cache optimizers to agent frameworks and benchmark suites—assumes sequential autoregressive decoding. Yet in scenarios where the model processes a well-bounded input and refines a long output block without fragile tool-calling syntax, parallel denoising looks surprisingly competitive. Researchers are already exploring multiple ways to bridge diffusion models with standard LLM workflows, including continuous-space variants like CDCD that borrow bidirectional intuition from BERT-style models, and gradient-masking techniques that keep prompt tokens fixed as conditioning context while denoising target spans.

Sharafudinov sees several promising next steps for this line of work:

  • Charting how translation quality scales as the number of denoising steps changes.
  • Building adaptive canvas sizes to move beyond the rigid 1,024-token ceiling.
  • Expanding beyond four English-to-target directions to broader multilingual coverage.
  • Implementing adaptive denoising that detects when specific tokens have converged and reallocates compute dynamically.

He also points to offline speech recognition and optical character recognition (OCR) as prospective workloads that could benefit from refining multiple tokens concurrently, though those remain untested hypotheses for now. For enterprise IT teams and software engineers, the takeaway is refreshingly grounded: diffusion language models are not ready to replace your autoregressive coding copilots today, especially when strict formatting reliability is non-negotiable. Still, if parallel refinement matures for long-context translation and document processing, the next big leap in AI responsiveness may come not from predicting the next token faster, but from rethinking one-token-at-a-time generation altogether.

 

References

  1. From coding to machine translation: The benefits of diffusion language models - Microsoft Microsoft 2026-11-30T16:58:53+00:00
  2. deepmind.google deepmind.google
  3. huggingface.co huggingface.co