AXIS: Efficient Human-Agent-Computer Interaction with API-First LLM-Based Agents

Junting Lu, Zhiyang Zhang, Fangkai Yang, Jue Zhang, Lu Wang, Chao Du, Qingwei Lin, Saravan Rajmohan, Dongmei Zhang, Qi Zhang

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:

  1. Latency: Each step in a UI sequence requires a high-latency LLM call.
  2. Compounding Errors: A single misidentified button can lead to total task failure.
  3. 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:

  1. Stage I: Trajectory Collection: Agents (Followers and Explorers) interact with the application to gather execution logs and visual data.
  2. 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.
  3. 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.
The three-stage AXIS framework: Trajectory Collection, Skill Generation, and Skill Validation.

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.

Comparison of manual operation, a standard UI Agent, and AXIS. AXIS completes the task in a single API call.

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

BibTeX
@inproceedings{lu2025axis,
  author = {Junting Lu and Zhiyang Zhang and Fangkai Yang and Jue Zhang and Lu Wang and Chao Du and Qingwei Lin and Saravan Rajmohan and Dongmei Zhang and Qi Zhang},
  title = {{AXIS: Efficient Human-Agent-Computer Interaction with API-First LLM-Based Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure