ZICQ
中 Log in / Sign up
Newsroom Official Agentic #Zhipu AI #CogAgent-9B #GUI Agents #Vision-Language Models #Open-Source Models

Zhipu AI Open-Sources CogAgent-9B for Screenshot-Driven GUI Agents

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Zhipu AI has open-sourced CogAgent-9B-20241220, the base model behind GLM-PC. Built on GLM-4V-9B, it operates from a natural-language instruction, an action history, and GUI screenshots without requiring HTML, DOM trees, or Set-of-Marks annotations. Its structured reasoning separates status, planning, natural-language actions, executable operations, and sensitivity judgments. The release is technically significant because it turns screen perception, grounding, planning, and action generation in


What Zhipu AI Actually Open-Sourced

On December 30, 2024, Zhipu AI open-sourced CogAgent-9B-20241220, the base model behind the GLM-PC desktop agent. It is built on the GLM-4V-9B vision-language backbone. Zhipu had introduced the GLM-OS concept and the AutoGLM and GLM-PC agents on November 29; this release makes the model underneath GLM-PC available for further community development.

The distinction matters: the announcement focuses on the CogAgent foundation model, not a claim that the complete GLM-PC client, desktop executor, and permission system are open source. The project provides model weights, code, the paper, and a technical report. Code is available at https://github.com/THUDM/CogAgent, while the model is hosted at https://huggingface.co/THUDM/cogagent-9b-20241220.

Mechanism: A Screenshot-Only GUI Action Loop

CogAgent takes three inputs: the user's natural-language instruction, a history of completed actions, and the current GUI screenshot. It does not require HTML, DOM trees, accessibility trees, or Set-of-Marks annotations, allowing the same model to operate across desktop applications, websites, mobile devices, and in-vehicle interfaces.

Execution is sequential. The model predicts an action, an application such as GLM-PC or the CogAgent demo injects that action into the GUI, the screen changes, and the action is appended to the history. This loop repeats until the model decides the task is complete. The end-to-end cost is therefore closer to:

T_task ≈ Σ(T_capture + T_prefill + T_decode + T_execute)

rather than the latency of a single model call.

The model separates its output into four layers:

  • Status & Plan: the current screen state and global plan, with optional generation controlled by parameters.
  • Action: a natural-language description of the next behavior, also written into the action history.
  • Operation: a function-call-like structured operation and its arguments.
  • A sensitivity judgment that distinguishes routine actions from potentially irreversible ones, such as the final send action in an email task.

The action space includes basic operations such as clicking and typing, as well as advanced behaviors such as LAUNCH, QUOTE_TEXT, and language-model invocation. Post-training also mixes output patterns such as Status-Action-Operation and Action-Operation, allowing deployments to trade reasoning depth against latency and accuracy.

Training: GUI Grounding Followed by Two-Stage Post-Training

CogAgent-9B-20241220 uses a unified visual module and resizes screenshots to 1120×1120 during training and inference. Parameterized downsampling reduces visual computation while fixed-resolution training limits input-distribution drift. Zhipu says the model remains accurate on 2K or higher-resolution displays, but also recommends enlarging icons and text so they remain legible after downscaling.

The pretraining stage introduces GUI Grounding. REG training predicts the layout representation associated with a screenshot region, while REC training predicts the location of an element described in text. Zhipu reports that the initial work constructed 140 million REC and REG samples from 400,000 web pages, with desktop and mobile layout data added later.

Post-training has two stages. GUI instruction tuning combines heterogeneous GUI tasks to strengthen interface understanding. GUI-agent supervised fine-tuning then uses data such as Mind2Web, cross-application trajectories, and additional proprietary collections to improve state interpretation, planning, and next-action prediction. Zhipu also used self-generated data to expand coverage.

Engineering Trade-Offs

Vision-only input is portable but demanding. Avoiding DOM dependencies works across browsers, desktop software, mobile apps, and embedded interfaces. The cost is greater dependence on visual grounding for small icons, table cells, dense text, and occluded controls. Resizing everything to 1120×1120 saves compute but can erase fine-grained details; legibility after downscaling is more relevant than the nominal screen resolution.

Memory use exceeds the weight file. A rough calculation for a 9B-parameter model gives roughly 18GB for BF16/FP16 weights and a theoretical 4.5GB lower bound for 4-bit weights. The vision encoder, quantization metadata, runtime workspace, and KV cache must be added. A 24GB GPU is generally more comfortable for BF16 experiments, while 8GB-to-12GB systems may require quantization and short histories, subject to actual profiling.

Long-horizon errors compound. If every step succeeds with 98% probability, an illustrative ten-step trajectory succeeds with only 0.98^10 ≈ 81.7%. This is not a reported CogAgent result, but it explains why strong single-step grounding does not automatically translate into reliable task completion. Action histories also grow with every step, increasing prefill cost. Production systems should maintain compact structured state, summarize redundant actions, and cap history length.

Sensitivity labels are not a security boundary. The model can flag risky actions, but enforcement belongs outside it. Sending, deleting, purchasing, paying, authorizing, and entering credentials should require independent confirmation, permission allowlists, sandboxed execution, idempotency checks, and audit logs. GUI screenshots may also expose personal data or secrets, so sensitive regions should be redacted before inference even when processing remains local.

Benchmark Results and Their Limits

Zhipu evaluated CogAgent-9B-20241220 on Screenspot, OmniAct, CogAgentBench-basic-cn, and OSWorld. The comparison set included GPT-4o-20240806, Claude-3.5-Sonnet, GPT-4o combined with UGround or OS-Atlas, and open GUI models such as Qwen2-VL, ShowUI, and SeeClick.

According to the official announcement, CogAgent led on GUI grounding, single-step operation, and the Chinese step-wise benchmark, while placing slightly behind the computer-use-specialized Claude-3.5-Sonnet and the GPT-4o plus external grounding pipelines on OSWorld. These are not perfectly equivalent system comparisons. GPT-4o plus a grounding model adds another component and its latency, whereas CogAgent integrates perception and grounding into one model. The provided results also omit absolute scores, repeated-run variance, hardware, quantization, prompt templates, and the exact reasoning mode, so the size of each lead cannot be translated directly into production advantage.

Teams should benchmark their own environments rather than copy the official ranking. Useful metrics include grounding accuracy, single-step success, end-to-end task success, human intervention, retries, per-step and total latency, memory use, and false-positive and false-negative rates for sensitive-action gates. Browser zoom, display scaling, operating-system theme, language, application version, and screenshot resolution must remain fixed.

Deployment Recommendations

  1. Define one execution contract. Standardize screenshot scaling, action schemas, screen coordinates, window mappings, retry behavior, and parser errors so that the model and operating-system adapter cannot drift apart.
  2. Select reasoning depth by task. Simple or high-risk flows can suppress the full Status & Plan chain to reduce decoding latency. Complex cross-application tasks should retain state and planning while applying a bounded history policy.
  3. Enforce safety outside the model. Add confirmation for irreversible operations and restrict application, filesystem, network, and credential permissions.
  4. Benchmark complete systems. Test browsers, productivity software, mobile environments, and vehicle simulations. Compare CogAgent with external-grounding pipelines on end-to-end success and cost, not click accuracy alone.
  5. Verify licensing before commercial use. The announcement does not directly state the model and code licenses, so deployment should rely on the LICENSE files in the model card and code repository. A version adapted for Ascend is also listed in the Modelers community, but operator compatibility, quantization quality, and throughput still require local testing.

Source: Zhipu AI News (2024-12-30)

— END —

Tags: #Zhipu AI #CogAgent-9B #GUI Agents #Vision-Language Models #Open-Source Models

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…