Abstract
Large Language Model (LLM) agents traditionally interact with software through graphical user interfaces (GUIs), emulating human click-and-type behavior. However, this "UI-first" approach is often slow, unreliable, and computationally expensive. We present AXIS, a framework that shifts the paradigm toward "API-first" interaction. By automatically discovering and wrapping complex UI sequences into reusable API-like "skills," AXIS significantly improves task success rates and execution speed while reducing the cognitive burden on users.
The Challenge of UI-First Agents
Current LLM-based agents typically identify UI elements and execute actions sequentially. While this mimics human interaction, it introduces several inefficiencies:
- Latency: Each step in a UI sequence requires a high-latency LLM call.
- Compounding Errors: A single misidentified button can lead to total task failure.
- Generalization Issues: Agents often fail on unfamiliar UIs not present in their training data.
AXIS proposes a move toward Human-Agent-Computer Interaction (HACI), where agents prioritize direct Application Programming Interface (API) calls over manual UI manipulation.
The AXIS Framework
The AXIS framework builds a robust library of high-level "skills" through a three-stage process:
- Stage I: Trajectory Collection: Agents (Followers and Explorers) interact with the application to gather execution logs and visual data.
- Stage II: Skill Generation: A Monitor extracts meaningful interaction segments, which a Generator converts into UI-based code. A Translator then uses Retrieval-Augmented Generation (RAG) and technical documentation to map these sequences to efficient API calls.
- Stage III: Skill Validation: Skills undergo static syntax checks and dynamic validation, where a Validator generates test cases and an Evaluator verifies the outcome in a live environment.
Experimental Evaluation
AXIS was evaluated using Microsoft Word, a complex application with deep menu structures. The researchers developed a benchmark of tasks ranging from low difficulty (L1) to high difficulty (L2). Through self-exploration, AXIS successfully discovered and validated 73 unique skills.
Key Results
Compared to state-of-the-art UI agents like UFO, AXIS demonstrated superior performance:
- Speed: Task completion was twice as fast (29.9s vs. 59.5s).
- Reliability: Success rates on complex tasks jumped from 52% to 84%.
- User Experience: User studies showed a 38%-53% reduction in NASA-TLX cognitive workload scores.
The API-First Paradigm Shift
The core innovation of AXIS is bypassing the UI whenever possible. By mining documentation to create high-level functions (e.g., "Highlight Text"), AXIS transforms multi-step UI trajectories into atomic, deterministic API calls.
This approach envisions an "Agent OS" where the primary interface is a set of robust APIs designed for LLM orchestration, with the UI serving as a secondary monitoring tool for the human user.
Limitations and Future Directions
While effective, AXIS currently relies on specific language bindings (e.g., Python win32com). Future work will focus on optimizing the exploration phase and expanding the framework to cross-application workflows, creating a unified action interface across diverse software ecosystems.
Summary updated