Beyond Pixels: Exploring DOM Downsampling for LLM-Based Web Agents
By: Thassilo M. Schiepanski, Nicholas Piël
Potential Business Impact:
Helps AI understand websites better by simplifying their code.
Frontier LLMs only recently enabled serviceable, autonomous web agents. At that, a model poses as an instantaneous domain model backend. Ought to suggest interaction, it is consulted with a web-based task and respective application state. The key problem lies in application state serialisation $\unicode{x2013}$ referred to as snapshot. State-of-the-art web agents are premised on grounded GUI snapshots, i.e., screenshots enhanced with visual cues. Not least to resemble human perception, but for images representing relatively cheap means of model input. LLM vision still lag behind code interpretation capabilities. DOM snapshots, which structurally resemble HTML, impose a desired alternative. Vast model input token size, however, disables reliable implementation with web agents to date. We propose D2Snap, a first-of-its-kind DOM downsampling algorithm. Based on a GPT-4o backend, we evaluate D2Snap on tasks sampled from the Online-Mind2Web dataset. The success rate of D2Snap-downsampled DOM snapshots (67%) matches a grounded GUI snapshot baseline (65%) $\unicode{x2013}$ within the same input token order of magnitude (1e3). Our best evaluated configurations $\unicode{x2013}$ one token order above, but within the model's context window $\unicode{x2013}$ outperform this baseline by 8%. Our evaluation, moreover, yields that DOM-inherent hierarchy embodies a strong UI feature for LLMs.
Similar Papers
Evaluating the Use of LLMs for Automated DOM-Level Resolution of Web Performance Issues
Software Engineering
Computers fix website speed problems automatically.
Prune4Web: DOM Tree Pruning Programming for Web Agent
Artificial Intelligence
Helps computers understand websites faster and better.
InSTA: Towards Internet-Scale Training For Agents
Machine Learning (CS)
Teaches computers to browse the web like people.