Assimilation and Accommodation: Task-Adaptive Hierarchical Abstraction for Solving Web Tasks

Xinyu Pang, Ruixin Hong, Hongming Zhang, Changshui ZhangACL 2025

Introduction

Building autonomous agents capable of navigating the dynamic landscape of the web—from booking flights to managing collaborative development platforms—remains a significant challenge in artificial intelligence. While Large Language Models (LLMs) possess immense potential, they often struggle with the sheer volume of HTML elements and the ever-changing layouts of modern websites. The A² (Assimilation and Accommodation) framework addresses these hurdles by introducing a "task-adaptive hierarchical abstraction" method, enabling agents to learn from experience much like humans do.

The Challenge of Web Navigation

Current approaches to web agent development often rely on "summarizing workflows," which provide the model with a guide based on past successes. However, these summaries frequently suffer from two critical flaws: noise and rigidity. They often include excessive low-level details that distract the model or lack a task-specific objective, leading an agent to apply an irrelevant workflow (e.g., a "First Class" booking routine) to a conflicting user request (e.g., an "Economy" booking).

The A² Framework: Assimilation and Accommodation

Inspired by Jean Piaget’s theory of cognitive development, the A² framework operates in three distinct stages to create a more flexible and efficient reasoning process:

  1. Assimilation (General Knowledge Extraction): As the agent completes tasks, it extracts "semantic abstractions." These are hierarchical structures that group low-level actions into high-level goals, creating a reusable library of general patterns.
  2. Accommodation (Task-Specific Refinement): When faced with a new query, the agent filters and refines its general knowledge into a focused episodic abstraction. This ensures the guidance is strictly relevant to the current objective, effectively pruning "distractions."
  3. Utilization: The agent uses this lean, task-adaptive abstraction to guide its step-by-step reasoning and action prediction within the web environment.
Comparison of a traditional linear workflow versus the A² hierarchical abstraction approach.

Technically, these abstractions are organized as natural language goal specifications paired with executable implementation procedures (such as element IDs and operation types) within a tree-like hierarchy. This structure allows the model to understand the intent behind groups of actions, making it more robust to UI changes.

Experimental Evaluation

The framework was evaluated on two major web task benchmarks using GPT-4o-mini:

  • Webarena: A realistic environment featuring long-horizon tasks across e-commerce, social media, and development platforms. A² achieved a 4.6% improvement in average success rate over state-of-the-art baselines.
  • Mind2web: Featuring over 2,000 tasks across 137 real-world websites, A² showed a 0.7% increase in overall success and significant gains in "Step Success Rate" (up to 4.5% in specific subsets).

Beyond performance gains, A² proved to be highly cost-effective. By utilizing succinct episodic abstractions, the framework consumes a fraction of the tokens required by traditional trajectory-based memory methods, making it both faster and cheaper to operate.

Conclusion and Future Work

The A² framework demonstrates that task-adaptive hierarchical abstraction significantly enhances the robustness and efficiency of web agents. While currently focused on navigation and data processing, future work may expand its reasoning scope to complex mathematics or code synthesis. Additionally, the authors aim to develop better conflict-detection mechanisms to handle potential contradictions between old abstractions and new website updates, further refining the agent's ability to adapt to the evolving web.

Summary updated

BibTeX
@inproceedings{pang2025assimilation,
  author = {Xinyu Pang and Ruixin Hong and Hongming Zhang and Changshui Zhang},
  title = {{Assimilation and Accommodation: Task-Adaptive Hierarchical Abstraction for Solving Web Tasks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure