The Impact of Element Ordering on LM Agent Performance
Wayne Chi, Ameet Talwalkar, Chris Donahue
TL;DR
This work investigates how UI element ordering in an LM agent's input influences performance when only pixel-based GUI information is available. Using ablations on VisualWebArena and OmniACT, the authors show that element ordering is a dominant factor, with random orders severely reducing task success; text representations remain essential, and captions outperform alt text. They propose and evaluate ordering methods, notably 2D-to-1D dimensionality reduction via t-SNE, which consistently improves performance, especially for larger models and harder tasks, and they train a Faster-RCNN–based UI element detector to derive elements from pixels. Their end-to-end approach, combining pixel-based element detection with t-SNE ordering and a high-level action space, achieves state-of-the-art results on OmniACT, more than doubling previous performance. The work highlights a practical path to robust LM-enabled GUI navigation in environments lacking explicit DOM or accessibility structures, with broad implications for building adaptable, pixel-only agents.
Abstract
There has been a surge of interest in language model agents that can navigate virtual environments such as the web or desktop. To navigate such environments, agents benefit from information on the various elements (e.g., buttons, text, or images) present. It remains unclear which element attributes have the greatest impact on agent performance, especially in environments that only provide a graphical representation (i.e., pixels). Here we find that the ordering in which elements are presented to the language model is surprisingly impactful--randomizing element ordering in a webpage degrades agent performance comparably to removing all visible text from an agent's state representation. While a webpage provides a hierarchical ordering of elements, there is no such ordering when parsing elements directly from pixels. Moreover, as tasks become more challenging and models more sophisticated, our experiments suggest that the impact of ordering increases. Finding an effective ordering is non-trivial. We investigate the impact of various element ordering methods in web and desktop environments. We find that dimensionality reduction provides a viable ordering for pixel-only environments. We train a UI element detection model to derive elements from pixels and apply our findings to an agent benchmark--OmniACT--where we only have access to pixels. Our method completes more than two times as many tasks on average relative to the previous state-of-the-art.
