microsoft/Mage-VL-Cowork
Captured source
source ↗Mage-VL-Cowork A Full Training Recipe to Learn Hybrid Computer Use from Evolved Harnesses
---
> One compact 4B policy that knows when to click — and when to code.
Computer-use agents (CUAs) that confine themselves to pixels pay a heavy tax: a single screenshot consumes thousands of tokens, and re-deriving structured file edits through dozens of mouse clicks discards the fastest, most verifiable channel on the machine. Conversely, giving a frontier model naive access to both GUI and terminal tools does not automatically produce hybrid competence — without an optimized execution scaffold, even frontier teachers exhibit suboptimal channel habits that transfer directly to distilled students. Worse, existing CUA post-training pipelines rely on checkpoints already heavily specialized for GUI grounding and coding.
Mage-VL-Cowork bridges this gap. Trained end-to-end from an intermediate 4B [`Mage-VL`](https://huggingface.co/microsoft/Mage-VL) checkpoint through a progressive five-stage specialize-then-unify curriculum, it combines screenshot-grounded GUI interaction (computer_use) and persistent code/terminal execution (bash) inside a single vision-language policy — with no external orchestrator. Upstream of training, we evolve the teacher harness (pruning redundant action routes and equipping domain libraries) and build Mage-CUA-Forge, a workflow-first synthesis engine that generates 293,806 tasks across 6,915 atomic skills while cutting recurring per-task generation cost by 82.6%.
At 4B parameters, Mage-VL-Cowork reaches 66.0% on OSWorld-Verified under a 50-step budget — achieving the best performance among 4B models and demonstrating that an efficient small VLM can excel at complex computer use, pushing the frontier of on-device intelligence. Across training stages, online reinforcement learning adds +10.16 percentage points over Hybrid SFT while simultaneously cutting mean model calls by 13.0% and output tokens by 25.4%.
✨ Highlights
- Best-in-class 4B hybrid computer use (66.0% OSWorld-Verified). Achieving the highest score at the 4B scale,
Mage-VL-Coworkproves that an efficient small VLM can master end-to-end computer use — leading on Operating System tasks at 87.5%, reaching 62.7% on Multi-Application Workflows, and advancing the frontier of on-device intelligence. - Internalized turn-level channel routing. Without an external multi-agent router, the policy dynamically selects
computer_usefor visual layouts, canvas editing, and live in-memory application state, and switches tobashfor structured programmatic edits (spreadsheets, documents, presentations) and deterministic ground-truth verification. - Evolved teacher harnesses amplify student distillation (+12.5 pp). Evolving and pruning the teacher scaffold before rollout (removing overlapping tools like
xdotooland accessibility trees while pre-installing domain Python libraries) lifts the GPT-5.4 teacher to 92.0% with 29.2% fewer steps, which expands into a +12.5 pp student gain (37.6% vs. 25.1%) at the 4B scale. - Workflow-first synthesis at −82.6% recurring cost. Mage-CUA-Forge authors reusable, skill-conditioned generation workflows and application-specific preparers once per skill rather than running open-ended agent loops per task — reducing token consumption by 93.3% (1,276K → 85K tokens/task) and expenditure from $0.906 to $0.158 per task.
- Specialize-then-unify five-stage curriculum (+20.44 pp). Starting from an intermediate 4B
Mage-VLcheckpoint, the model builds standalone visual grounding (30.6% → 56.9% on OSWorld-G; 78.8% → 87.2% on ScreenSpot-v2), GUI execution, and coding/terminal competence before unifying them via Hybrid SFT and asynchronous Online Hybrid RL (45.56% → 55.84% → 66.0%). - **Stronger *and* more compact after Online RL. Online GRPO with verifiable task rewards improves task accuracy by +10.16 pp over Hybrid SFT while compressing interaction length from 21.57 to 18.77 model calls (−13.0%) and output tokens from 7,374 to 5,499 per task** (−25.4%).
📥 Model Overview
A single unified checkpoint, microsoft/Mage-VL-Cowork, handles visual grounding, multi-step GUI manipulation, programmatic file/system operations, and dynamic GUI-to-CLI channel switching.
| Property | Specification | | :--- | :--- | | Developer | Microsoft Mage Team | | Model Type | Multimodal hybrid computer-use agent (llava_onevision2 architecture; image + text → text) | | Parameters | 4B (9.48 GB in bfloat16 across 2 safetensors shards) | | Backbone | Mage-ViT (16×16 patch grid, spatial_merge_size=2, 3D RoPE) + Qwen3-4B (Qwen3-4B-Instruct-2507) | | Context Length | 32,768 tokens (active training & inference window; architecture supports up to 262,144) | | Working Memory | Asymmetric sliding window: 3 most recent screenshots + 4 full responses + folded Action: history | | Action Channels | computer_use (11 GUI primitives in [0, 999] normalized coordinates) + bash (persistent shell & Python env) | | Outputs | 3-part structured turn: ... rationale + Action: summary + ... | | Training Compute | 7.79 ZFLOPs nominal LM compute across 5 stages (32 × NVIDIA B200 + 1,120 CPU sandbox slots for RL) | | License | Apache-2.0 |
| Model | Role | Backbone | Hugging Face | | :--- | :--- | :--- | :--- | | Mage-VL-Cowork | 4B hybrid computer-use agent (GUI + code & terminal) | Mage-VL-4B | 🤗 microsoft/Mage-VL-Cowork | | Mage-VL | 4B codec-native streaming multimodal foundation model | Mage-ViT + Qwen3-4B | 🤗 microsoft/Mage-VL | | Mage-ViT | From-scratch visual encoder | Codec-ViT | 🤗 microsoft/Mage-ViT |
🏗️ Architecture & Training Recipe
1. Evolved Hybrid CUA Harness
A strong teacher model does not automatically produce clean hybrid supervision. Before large-scale trajectory collection, an authoring agent evolves the external harness $\mathcal{H} = (\mathcal{F}, \mathcal{T}, \mathcal{P}, \mathcal{E})$ — refining the execution scaffold $\mathcal{F}$, tool interfaces $\mathcal{T}$, system prompt $\mathcal{P}$, and pre-installed terminal environment $\mathcal{E}$ (equipping domain packages...
Excerpt shown — open the source for the full document.
Notability
notability 7.0/10New model release from Microsoft