# Microsoft engineer shifts diffusion model from coding to translation

Published 2026-11-30 · AI.info Team · AI.info

> A Microsoft engineer adapted a diffusion language model for translation after coding tests produced malformed outputs. The translation experiment scored above two comparison systems overall, though its reduction in sequential passes was not a measured computing speedup.

A Microsoft engineer redirected a diffusion language model from coding to translation after the coding version produced incorrectly formatted output in roughly 5–10% of cases. In a [Microsoft Command Line](https://commandline.microsoft.com/diffusion-language-models-machine-translation-public-benchmarks/) post published November 30, Anuar Sharafudinov said the adapted model scored above Microsoft Translator API and GPT-5 mini overall on a translation test, while cautioning that fewer generation steps did not amount to a measured gain in total compute.

## From coding to translation

The experiment began as a hackathon project using DiffusionGemma-27B, fine-tuned on software engineering datasets including SWE-Smith and SWE-Rebench. Alongside supervised fine-tuning, Sharafudinov tried reinforcement learning with language-model feedback, scoring individual messages and actions according to whether they helped or hindered a solution.

After several rounds of reinforcement learning, the model achieved 71.3% on SWE-Bench Verified, he reported. The model continued training on that benchmark during the experiments, without access to ground-truth solutions. But roughly 5–10% of its outputs were incorrectly formatted, a level of waste Sharafudinov considered unacceptable for coding agents.

Unlike autoregressive language models, which generate tokens sequentially, diffusion models progressively denoise a sequence and refine multiple tokens in a forward pass. That creates a choice about when to stop denoising: stopping too early can leave incorrect tokens, while continuing too long uses more computation. Sharafudinov tried different stopping methods but said he could not reliably eliminate malformed output.

## A smaller translation test

The engineer turned to translation as a task that could use parallel generation without the complex output formatting needed by a coding agent. A translation model does not have to navigate a repository, execute commands or maintain the same kind of interaction protocol.

The translation version uses a 1,024-token canvas. The public CoCoDoc-MT dataset was split into about 79.1K training samples and 200 test samples. Training began with one full epoch of supervised fine-tuning on a single A100 GPU. It then used reinforcement learning on 260 samples, with four candidates per step and GPT-5.4 as the judge.

The initial experiment translated English into Spanish, French, Russian and traditional Chinese. On the CoCoDoc-MT test set, the adapted model had an overall chrF++ score of 69.42, compared with 66.66 for Microsoft Translator API and 68.49 for GPT-5 mini, according to Sharafudinov.

For English-to-Spanish translation, the diffusion model scored 74.65, against 72.02 for Microsoft Translator API and 74.00 for GPT-5 mini. For French, the respective scores were 71.87, 69.38 and 71.00. The diffusion model also led on Russian, scoring 68.94 against 64.30 and 66.90; for traditional Chinese, it scored 34.55, between Microsoft Translator API's 32.72 and GPT-5 mini's 35.40.

## Fewer passes, not a measured speedup

The model typically completes generation in 30–40 denoising steps, processing approximately 30 tokens per forward pass, Sharafudinov said. For a 1,024-token output, autoregressive decoding requires approximately 1,024 sequential generation steps.

Sharafudinov estimated roughly 30 times fewer sequential generation passes for the diffusion approach. That comparison is a reduction in sequential steps, not a measured 30-fold gain in total compute. Outputs shorter than the canvas are padded after the end-of-sequence token, and he said shorter inputs would not see the same advantage because an autoregressive model only needs as many steps as its output is long.

A translator based on the experiment is available at [dlmtranslate.vercel.app](https://dlmtranslate.vercel.app/). The engineer said he would like to explore next translation quality at different numbers of denoising steps, expanding language coverage and translation directions, and investigating adaptive canvas sizes and denoising.

## Microsoft on AI.info

- Company: [Microsoft](https://ai.info/companies/microsoft) — Microsoft is a technology company that provides software, cloud services, devices, gaming, and artificial intelligence products.

## Sources

1. Original source [Microsoft Command Line](https://commandline.microsoft.com/diffusion-language-models-machine-translation-public-benchmarks/) “From coding to machine translation: The benefits of diffusion language models” commandline.microsoft.com

## Companies in this story

- [Microsoft](https://ai.info/companies/microsoft)

## In the tracker

- [GPT-5](https://ai.info/tracker/models/gpt-5)
- [GPT-5 Mini](https://ai.info/tracker/models/gpt-5-mini)

## Related stories

- [NVIDIA releases Sigma diffusion language models in two sizes](https://ai.info/news/nvidia-nemotron-labs-sigma-continuous-diffusion-models)
- [Model Atlas pairs coding benchmarks with results from project work](https://ai.info/news/model-atlas-benchmarks-real-development-work)
- [Cognition releases SWE-2.1 coding model with cybersecurity variant](https://ai.info/news/cognition-swe-2-1-coding-model-cybersecurity)
- [PrismML releases Bonsai 2.5 27B for local coding agents](https://ai.info/news/prismml-bonsai-2-5-27b-local-coding-agents)
- [Microsoft publishes quantized Aion model for WebGPU](https://ai.info/news/microsoft-aion-instruct-onnx-webgpu-model)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/microsoft-diffusion-model-coding-translation-experiment
