arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05027cs.LGcs.CLcs.IR
收藏

通过大型语言模型知识蒸馏的网页内容过滤

Web Content Filtering through knowledge distillation of Large Language Models

Sophos Inc.(索福斯公司)

Tamás Vörös, Sean Paul Bergeron, Konstantin Berlin

AI总结:

本文提出利用LLM知识蒸馏构建轻量级学生模型进行URL分类,以9%准确率提升超越现有方法,参数减少175倍,数据需求降低三个数量级,用于高效网页内容过滤。

摘要:

我们介绍了一种最先进的URL分类方法,利用大型语言模型(LLMs)的力量来实现网页内容过滤的主要目标:保护组织免受法律和道德风险,限制对高风险或可疑网站的访问,并促进安全专业的办公环境。我们的方法利用LLMs生成准确的分类,然后采用成熟的知识蒸馏技术来创建更小、更专业的学生模型,专门用于网页内容过滤。蒸馏结果产生了一个学生模型,在将来自大型安全供应商收集的客户遥测数据中的网站,基于其URL分类为30个不同的内容类别时,准确率提高了9%,超过了当前最先进的方法。我们的学生模型以175倍少的参数匹配了教师LLM的性能,使得该模型能够用于大量URL的在线扫描,并且所需的人工标注训练数据比当前最先进的方法少3个数量级。根据具体用例,我们的方法生成的输出可以直接返回,或用作涉及网站图像或HTML的更资源密集型操作的预过滤器。

英文摘要:

We introduce a state-of-the-art approach for URL categorization that leverages the power of Large Language Models (LLMs) to address the primary objectives of web content filtering: safeguarding organizations from legal and ethical risks, limiting access to high-risk or suspicious websites, and fostering a secure and professional work environment. Our method utilizes LLMs to generate accurate classifications and then employs established knowledge distillation techniques to create smaller, more specialized student models tailored for web content filtering. Distillation results in a student model with a 9% accuracy rate improvement in classifying websites, sourced from customer telemetry data collected by a large security vendor, into 30 distinct content categories based on their URLs, surpassing the current state-of-the-art approach. Our student model matches the performance of the teacher LLM with 175 times less parameters, allowing the model to be used for in-line scanning of large volumes of URLs, and requires 3 orders of magnitude less manually labeled training data than the current state-of-the-art approach. Depending on the specific use case, the output generated by our approach can either be directly returned or employed as a pre-filter for more resource-intensive operations involving website images or HTML.

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

↑