Understanding HTML with Large Language Models
Izzeddin Gur Ofir Nachum Yingjie Miao Mustafa Safdari Austin Huang Affiliation: Aakanksha Chowdhery, Sharan Narang, Noah Fiedel, Aleksandra Faust Affiliation: Google Research Email: {izzeddin,ofirnachum,yingjiemiao,msafdari,austinvhuang Email:
Abstract
Large language models (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
原文 arXiv:2210.03945;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2210.03945v2