arXiv:2506.16644cs.LGcs.IR2025-06ACL

用嵌入模型和近似搜索高效识别并移除文本中的无关内容

Semantic Outlier Removal with Embedding Models and LLMs

  • 基于多语言句向量与近邻搜索定位核心内容
  • 在多种语言下精度接近大模型,成本仅为几分之一
  • 适合需要高效率多语言文本清理的生产系统

现代文本处理流程需要鲁棒的方法来去除冗余内容,同时保留文档核心信息。传统方法如HTML模板提取或关键词过滤在多语言场景下表现不佳,且难以处理上下文敏感的细微差别;而大型语言模型虽效果更好,但计算成本过高。我们提出SORE(语义异常值移除),一种低成本、可解释的方法,利用多语言句子嵌入与近似最近邻搜索,识别并剔除不需要的文本片段。首先通过元数据嵌入确定核心内容,再标记与预定义异常组高度匹配或显著偏离核心的段落。在HTML数据集上的实验表明,SORE优于结构化方法,在多种场景中均实现高精度。该系统已投入生产,每日处理数百万份跨语言文档,兼顾效率与准确性。为促进复现与研究,我们公开了代码与评估数据集。

原文摘要 · Abstract (English)

Modern text processing pipelines demand robust methods to remove extraneous content while preserving a document's core message. Traditional approaches such as HTML boilerplate extraction or keyword filters often fail in multilingual settings and struggle with context-sensitive nuances, whereas Large Language Models (LLMs) offer improved quality at high computational cost. We introduce SORE (Semantic Outlier Removal), a cost-effective, transparent method that leverages multilingual sentence embeddings and approximate nearest-neighbor search to identify and excise unwanted text segments. By first identifying core content via metadata embedding and then flagging segments that either closely match predefined outlier groups or deviate significantly from the core, SORE achieves near-LLM extraction precision at a fraction of the cost. Experiments on HTML datasets demonstrate that SORE outperforms structural methods and yield high precision in diverse scenarios. Our system is currently deployed in production, processing millions of documents daily across multiple languages while maintaining both efficiency and accuracy. To facilitate reproducibility and further research, we release our implementation and evaluation datasets.

文本清洗嵌入模型多语言高效算法

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