arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.03945cs.LGcs.AI
收藏

使用大型语言模型理解 HTML

Understanding HTML with Large Language Models

Google Research(谷歌研究院)

Izzeddin Gur, Ofir Nachum, Yingjie Miao, Mustafa Safdari, Austin Huang, Aakanksha Chowdhery, Sharan Narang, Noah Fiedel, Aleksandra Faust

AI总结:

研究探索了大型语言模型在HTML理解任务上的能力,发现在标准自然语言语料库上预训练的LLMs能高效迁移至语义分类、描述生成和自主导航任务,并开源了相关数据集。

摘要:

大型语言模型(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑