arXiv:2604.16425cs.DBcs.LG2026-04中稿 · ICML

用大模型自动聚合网页数据,抗结构变化且防幻觉

Method for Aggregating Unstructured Data Using Large Language Models

  • 混合爬虫+大模型提取,动态静态页面都支持
  • 关键字段准确率高,网页结构变化也不影响
  • 适合新闻聚合、日志监控等实时场景

本文提出一种基于大语言模型(LLM)的自动化方法,用于从多样化网络来源聚合非结构化数据。现有技术在网页结构变动时不稳定,难以处理动态加载内容,且需人工设计预处理流程。该方法结合静态页面的Goose3与动态页面的Selenium+WebDriver混合爬虫,将数据存入非关系型MongoDB数据库,并利用大模型按预设JSON模式智能提取与标准化信息。核心创新在于两阶段验证机制:通过不同温度参数生成多个大模型输出,比较其嵌入向量以消除潜在幻觉,辅以形式化规则监控数据一致性与完整性。实验表明,关键字段完成度高,对网页结构变化具有强鲁棒性,适用于新闻聚合、实时监控和日志分析等任务,可快速扩展至更多数据源。

原文摘要 · Abstract (English)

This paper presents a method for the automated collection and aggregation of unstructured data from diverse web sources, utilizing Large Language Models (LLMs). The primary challenge with existing techniques is their instability when the structure of webpages changes, their limited support for dynamically loaded content during information collection, and the requirement for labor-intensive manual design of data pre-processing processes. The proposed algorithm integrates hybrid web scraping (Goose3 for static pages and Selenium+WebDriver for dynamic ones), data storage in a non-relational MongoDB database management system (DBMS), and intelligent extraction and normalization of information using LLMs into a predetermined JSON schema. A key scientific contribution of this study is a two-stage verification process for the generated data, designed to eliminate potential hallucinations byy comparing the embeddings of multiple LLM outputs obtained with different temperature parameter values, combined with formalized rules for monitoring data consistency and integrity. The experimental findings indicate a high level of accuracy in the completion of key fields, as well as the robustness of the proposed methodology to changes in web page structures. This makes it suitable for use in tasks such as news content aggregation, monitoring, and log analysis in near real-time mode, with the capacity to scale rapidly in terms of the number of sources.

数据聚合大模型应用网页爬虫去幻觉

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。