Microsoft Research has introduced Lens, a text-to-image model that achieves competitive performance while using a fraction of the compute required by larger rivals. The model, detailed in a technical report, requires roughly one-fifth the pre-training compute of comparable models like Z-Image and outperforms several larger models on key benchmarks. For instance, Hunyuan-Image-3.0 has about 80 billion parameters, while Lens has just 3.8 billion.
The efficiency gains stem from a more compact architecture, richer information per training step, and faster convergence. Central to this approach is the Lens-800M dataset, comprising 800 million image-text pairs with captions generated by GPT-4.1. These captions average around 100 words, far more detailed than typical web alt-text. An ablation study confirmed that training with these long descriptions yields significantly better results than using short or mixed captions.
The training process also mixes various resolutions and aspect ratios within each batch, allowing the model to generalize to unseen formats and resolutions up to about two megapixels, saving costly high-resolution training runs. For the architecture, the team evaluated several variational autoencoders and found that the semantic VAE from FLUX.2 performed best and sped up convergence.
Lens uses GPT-OSS, an openly available language model from OpenAI, as its text encoder. Stronger language encoders improve learning speed and enable the model to handle prompts in languages it never saw during training, such as Chinese, French, Japanese, or Spanish.
After pre-training, the model undergoes reinforcement learning with a custom prompt set, Lens-RL-8K, covering ten categories. GPT-4.1 generates evaluation criteria for each prompt, and GPT-4.1-mini serves as the reward model. A reasoner placed before the image model rewrites vague user inputs into detailed prompts, using GPT-5.5 by default or GPT-OSS without extra memory.
For faster inference, the distilled variant Lens-Turbo generates images in just four steps, producing a one-megapixel image in under a second on an H100 GPU, compared to the standard model's three seconds. Lens outperforms FLUX.2-Klein and Z-Image in benchmarks for prompt fidelity, text rendering, and complex scenes, and in some cases surpasses Qwen-Image, which has five times more parameters.
Microsoft has released Lens's code and model checkpoints under the MIT license, available on Hugging Face and GitHub. The model is intended for research only and not cleared for production use, as its training data includes web sources that may introduce bias or problematic content, requiring users to implement their own safety measures.