The Key Leap of Next-Generation General-Purpose LLMs Toward AGI
This article explores why screen understanding combined with computer operation is becoming a critical path toward AGI. It explains the shift from single-turn generation to long-horizon task execution, outlines two common evaluation approaches for computer-use agents, and presents a practical five-layer engineering architecture with core design principles. The article also covers security, compliance, and governance boundaries, along with current challenges and future directions, helping developers build a reliable and controllable technical framework.
1. Introduction: From Answering Questions to Operating Computers
Over the past year, the narrative around general-purpose large models has shifted noticeably. Early comparisons focused on knowledge Q&A, text generation, and code completion. Today, the discussion has moved toward a more demanding question: can a model independently complete a multi-step task in a real digital environment?
This shift is not marketing language. It is driven by real-world constraints.
Software ecosystems are highly fragmented. Many enterprise systems were built long ago and lack public APIs. Some business systems only expose a graphical interface, with missing or outdated documentation. Even some newer applications iterate quickly, and their interface contracts change constantly. In this environment, requiring every system to provide a standardized API is unrealistic.
A more general and lower-adaptation-cost solution has emerged: treat the graphical interface itself as the most universal API. This allows a model to look at the screen, move the pointer, click controls, fill out forms, and switch between applications like a human, completing tasks end to end.
This article discusses the principles, evaluation methods, engineering architecture, and governance boundaries of this technical paradigm in an abstract way. It does not cover any specific vendor product. The goal is to help developers build a practical technical understanding framework.
2. Why Screen Understanding and Computer Operation Matter for AGI
2.1 The Interface Is the Most Accessible API
From an engineering perspective, the cost of adapting interfaces is often higher than the cost of model inference. If an enterprise has hundreds of legacy systems, modifying each interface one by one requires substantial investment and a long timeline. A graphical interface, however, is the lowest common denominator shared by all software.
When a model directly understands interface semantics and performs operations, the adaptation layer shifts from the system side to the model side. This significantly reduces marginal costs.
2.2 From Single-Turn Generation to Long-Horizon Task Loops
Traditional conversational models are good at single-turn or few-turn generation. Real work, however, often involves long-horizon tasks: opening an application, retrieving information, moving data across systems, verifying results, and rolling back when errors occur.
This requires the model to have:
- State tracking: remembering completed steps and intermediate outputs;
- Planning and replanning: adjusting the path when pop-ups, errors, or layout changes appear;
- Tool invocation and execution: turning decisions into concrete mouse and keyboard actions;
- Self-verification: using screen feedback to determine whether the goal has been achieved.
Together, these four capabilities form the core stack of a computer-operation agent. They are also an important measure of whether the agent is approaching general intelligence.
2.3 A Complementary Relationship with Coding Ability
Operating a computer and writing code are not substitutes. They are complementary.
Coding solves problems that can be standardized and automated. Screen operation solves long-tail problems that lack APIs and require strong interaction. A mature general-purpose agent should switch freely between the two: write a script when possible, and operate the interface directly when scripting is not feasible.
3. How to Evaluate Computer-Operation Agents
The original text mentions two typical evaluation approaches. Here they are organized abstractly to help readers build a methodology.
3.1 Screen Grounding Accuracy
The first type of evaluation focuses on whether the model can “see accurately.” Given a screenshot and an instruction, the model must output the coordinates or region of the target control. A common metric is the hit rate, which measures whether the predicted location falls within the correct region.
This type of evaluation tests visual understanding, control semantic recognition, and spatial grounding. High-resolution interfaces, dense layouts, and non-standard controls can significantly reduce the hit rate.
3.2 Task Completion Rate in Realistic Environments
The second type of evaluation focuses on whether the model can “get things done.” The model is placed in a real or simulated desktop environment and given a composite task. The goal is to observe whether it can complete the task within a limited time.
Key metrics include task completion rate, average time consumption, step redundancy, and the number of human interventions. This type of evaluation is closer to production environments and can expose planning flaws and robustness issues.
3.3 Three Key Points for Evaluation Design
- Task distribution should reflect real usage: cover high-frequency scenarios such as office work, data transfer, form filling, and cross-application collaboration;
- The environment should include disturbances: pop-ups, network latency, and control loading failures should all be included;
- Metrics should be multi-dimensional: do not look only at success rate; also consider time, cost, and recoverability.
4. Engineering Implementation: Building a Usable Computer-Operation Agent
4.1 Overall Architecture
A deployable system usually consists of five layers:
- Perception layer: screen capture, window and control tree acquisition, OCR, and icon recognition;
- Understanding layer: interface semantic parsing, task state modeling, and candidate action generation;
- Decision layer: task planning, action selection, and risk and permission checks;
- Execution layer: mouse and keyboard event injection, application switching, and clipboard and file operations;
- Feedback layer: post-execution screenshot comparison, logging, failure rollback, and human takeover.
4.2 Key Design Principles
- Least privilege: grant only the minimum operation scope required to complete the task;
- Rollback capability: take snapshots or backups before critical write operations;
- Observability: record every action, screenshot, and decision rationale;
- Human-agent collaboration: high-risk actions must be confirmed by a human.
4.3 Illustrative Code: The Action Decision Loop
The following code is only a structural illustration to help explain the “perceive-decide-execute-verify” loop:
def run_task(task, env, max_steps=50):state = env.snapshot()for step in range(max_steps):screen = env.capture_screen()plan = model.decide(task, state, screen) # output the next actionif plan.action == "click":env.click(plan.x, plan.y)elif plan.action == "type":env.type_text(plan.text)elif plan.action == "key":env.press(plan.key)elif plan.action == "finish":return verify(task, env.capture_screen())state = update_state(state, plan)if env.has_popup() or env.is_error():plan = model.replan(task, state, env.capture_screen())return {"status": "timeout", "state": state}
4.4 Combining with General Cloud Capabilities
In production environments, an agent usually needs to work with general cloud capabilities: object storage for task snapshots and outputs; message queues for task distribution and peak shaving; container platforms for execution sandboxes; and logging and monitoring services for full-chain observability. Baidu AI Cloud provides mature capabilities in these general categories and can serve as a reference foundation for building such systems.
5. Security, Compliance, and Governance Boundaries
Computer-operation agents naturally have “high-privilege” characteristics, so governance must be built in from the start:
- Data minimization: capture only the screen regions necessary for the task and avoid full-screen recording;
- Sensitive information masking: identify and mask fields such as account numbers, identity documents, and amounts;
- Operation auditing: all actions should be traceable to a person, task, and time;
- Red-blue team exercises: regularly use adversarial samples to test misclicks, incorrect entries, and privilege escalation risks;
- Compliance assessment: operations involving personal information and business data must comply with relevant regulations.
6. Challenges and Outlook
This paradigm still faces three types of challenges. First, long-horizon task stability: the more steps there are, the more obvious the accumulation of errors. Second, generalization across applications and resolutions. Third, security and controllability, especially the irreversibility of write operations.
Future breakthroughs will likely come from stronger interface semantic understanding, more reliable long-horizon planning, finer-grained permission and rollback mechanisms, and deeper integration with code execution capabilities.
7. Conclusion
The “screen as API” paradigm moves general-purpose large models from generating content to executing tasks. This is a key step toward AGI.
For developers, the real opportunity is not chasing a specific product, but mastering this methodology: how to perceive interfaces, how to plan tasks, how to execute safely, and how to evaluate continuously. Once you understand this framework, you can quickly build reliable, controllable, and deployable agent systems regardless of how the underlying models evolve.
