Mage-Flow: An Efficient Native-Resolution Foundation Model for Image Generation and Editing

· Source: cs.CV updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, extended

Summary

Mage-Flow, a compact 4B-scale generative stack developed by Microsoft, offers efficient text-to-image generation and instruction-based image editing at native resolutions. It comprises Mage-VAE, a lightweight latent tokenizer reducing tokenization cost by over 10x, and a Native-Resolution Multimodal Diffusion Transformer trained with rectified flow matching. This co-designed system, enhanced by native-resolution packing and stack-level CUDA kernel fusion, achieves a 2.5x training throughput improvement. Mage-Flow-Turbo generates a 1024x1024 image in 0.59s, and Mage-Flow-Edit-Turbo edits one in 1.02s on a single NVIDIA A100 GPU, maintaining a small 18-20 GB memory footprint. It delivers competitive performance against much larger open-source models across generation and editing benchmarks.

Key takeaway

For AI Architects and ML Engineers evaluating foundation models for high-resolution image generation and editing, Mage-Flow offers a compelling balance of performance and efficiency. Its compact 4B scale enables rapid inference, with generation in 0.59s and editing in 1.02s at 1024x1024. A low 18-20 GB memory footprint makes local desktop deployment and interactive applications practical. Consider integrating Mage-Flow to reduce compute costs and accelerate development for specialized visual domains.

Key insights

Co-designing a compact 4B generative stack with an efficient tokenizer and native-resolution modeling enables high-performance, low-latency image generation and editing.

Principles

Method

Mage-Flow uses Mage-VAE for one-step latent tokenization and a 4B Native-Resolution Multimodal Diffusion Transformer trained with rectified flow matching. It employs native-resolution packing and stack-level CUDA kernel fusion for efficient training and inference.

In practice

Topics

Code references

Best for: AI Engineer, Computer Vision Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CV updates on arXiv.org.