LineRetriever: Planning-Aware Observation Reduction for Web Agents

Imene Kerboua, Sahar Omidi Shayegan, Megh Thakkar, Xing Han Lù, Massimo Caccia +4 more
6/30/2025
cs.CL

No confident code implementation found for this paper.

Abstract

While large language models have demonstrated impressive capabilities in web navigation tasks, the extensive context of web pages, often represented as DOM or Accessibility Tree (AxTree) structures, frequently exceeds model context limits. Current approaches like bottom-up truncation or embedding-based retrieval lose critical information about page state and action history. This is particularly problematic for adaptive planning in web agents, where understanding the current state is essential for determining future actions. We hypothesize that embedding models lack sufficient capacity to capture plan-relevant information, especially when retrieving content that supports future action prediction. This raises a fundamental question: how can retrieval methods be optimized for adaptive planning in web navigation tasks? In response, we introduce \textit{LineRetriever}, a novel approach that leverages a language model to identify and retrieve observation lines most relevant to future navigation steps. Unlike traditional retrieval methods that focus solely on semantic similarity, \textit{LineRetriever} explicitly considers the planning horizon, prioritizing elements that contribute to action prediction. Our experiments demonstrate that \textit{LineRetriever} can reduce the size of the observation at each step for the web agent while maintaining consistent performance within the context limitations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kerboua2025lineretriever,
  title  = {LineRetriever: Planning-Aware Observation Reduction for Web Agents},
  author = {Imene Kerboua and Sahar Omidi Shayegan and Megh Thakkar and Xing Han Lù and Massimo Caccia and Véronique Eglin and Alexandre Aussem and Jérémy Espinas and Alexandre Lacoste},
  year   = {2025},
  eprint = {2507.00210},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.00210v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.00210.svg)](https://codeofpaper.com/paper/2507.00210)

Discussion