大型语言模型(LLMs)在各种自然语言任务上表现出色。然而,它们对 HTML 理解的能力——即解析网页的原始 HTML,应用于基于 Web 的任务自动化、爬取和浏览器辅助检索——尚未得到充分探索。我们贡献了 HTML 理解模型(微调的 LLMs),并深入分析了它们在三项任务下的能力:(i) HTML 元素的语义分类,(ii) HTML 输入的描述生成,以及 (iii) HTML 页面的自主 Web 导航。虽然之前的工作为 HTML 理解开发了专门的架构和训练程序,但我们展示了在标准自然语言语料库上预训练的 LLMs 能很好地迁移到 HTML 理解任务。例如,与仅在任务数据集上训练的模型相比,微调的 LLMs 在语义分类上的准确率提高了 12%。此外,当在 MiniWoB 基准测试的数据上进行微调时,与之前最佳的监督模型相比,LLMs 使用减少了 192 倍的数据成功完成了多 50% 的任务。在我们评估的 LLMs 中,我们展示了证据表明基于 T5 的模型由于其双向编码器-解码器架构而成为理想选择。为了促进对用于 HTML 理解的 LLMs 的进一步研究,我们创建并开源了一个从 CommonCrawl 蒸馏并自动标注的大规模 HTML 数据集。
英文摘要:
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 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.
AccessGuru: Leveraging LLMs to Detect and Correct Web Accessibility Violations in HTML Code
University of Stuttgart, Artificial Intelligence(斯图加特大学人工智能学院);Artificial Intelligence, University of Stuttgart(人工智能学院,斯图加特大学);University of Stuttgart(斯图加特大学);University of Southampton(南安普顿大学)
Controllable Generation from Pre-trained Language Models via Inverse Prompting
Tsinghua University(清华大学);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院);Recurrent AI, Ltd.(Recurrent AI 有限公司);DAMO Academy, Alibaba Inc.(阿里巴巴达摩院)
TreeReader: A Hierarchical Academic Paper Reader Powered by Language Models
University of Toronto(多伦多大学);Vector Institute for Artificial Intelligence(向量人工智能研究所);University of Toronto Mississauga(多伦多大学密西沙加分校);Acceleration Consortium(加速联盟);Canadian Institute for Advanced Research (CIFAR)(加拿大高级研究院);NVIDIA(英伟达)
Language (Re)modelling: Towards Embodied Language Understanding
The Hebrew University of Jerusalem(耶路撒冷希伯来大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究院);University of Washington(华盛顿大学);International Computer Science Institute(国际计算机科学研究所)