Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Understanding HTML with Large Language Models (2210.03945v2)

Published 8 Oct 2022 in cs.LG and cs.AI

Abstract: LLMs have shown exceptional performance on a variety of natural language tasks. Yet, their capabilities for HTML understanding -- i.e., parsing the raw HTML of a webpage, with applications to automation of web-based tasks, crawling, and browser-assisted retrieval -- have not been fully explored. We contribute HTML understanding models (fine-tuned LLMs) and an in-depth analysis of their capabilities under three tasks: (i) Semantic Classification of HTML elements, (ii) Description Generation for HTML inputs, and (iii) Autonomous Web Navigation of HTML pages. While previous work has developed dedicated architectures and training procedures for HTML understanding, we show that LLMs pretrained on standard natural language corpora transfer remarkably well to HTML understanding tasks. For instance, fine-tuned LLMs are 12% more accurate at semantic classification compared to models trained exclusively on the task dataset. Moreover, when fine-tuned on data from the MiniWoB benchmark, LLMs successfully complete 50% more tasks using 192x less data compared to the previous best supervised model. Out of the LLMs we evaluate, we show evidence that T5-based models are ideal due to their bidirectional encoder-decoder architecture. To promote further research on LLMs for HTML understanding, we create and open-source a large-scale HTML dataset distilled and auto-labeled from CommonCrawl.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (9)
  1. Izzeddin Gur (23 papers)
  2. Ofir Nachum (64 papers)
  3. Yingjie Miao (12 papers)
  4. Mustafa Safdari (4 papers)
  5. Austin Huang (5 papers)
  6. Aakanksha Chowdhery (19 papers)
  7. Sharan Narang (31 papers)
  8. Noah Fiedel (22 papers)
  9. Aleksandra Faust (60 papers)
Citations (58)
X Twitter Logo Streamline Icon: https://streamlinehq.com