K-文化的一切——从回归到 K-美妆,发送到您的邮箱订阅邮件

METAL MEDIA

When Do LLMs Actually Help? Evaluating LLMs as Data Quality Annotators

arXiv:2608.181582026-08-20

LLM并非数据清洗万能药:能不能派上用场要看具体任务

研究用GPT-4o-mini在两项电商数据质量任务(实体匹配和品牌标错检测)上与规则基线做对比测试。当商品名字面重合度本来就高时,LLM相比简单规则几乎没有优势;但在需要背景知识判断的品牌标错任务上,LLM明显胜出。同时模型在重复提问下表现出很高的自我一致性,但在小样本上看似有效的提示词改进,放到全量数据上反而效果变差。

METAL MEDIA 解读图

LLM并非数据清洗万能药:能不能派上用场要看具体任务

  1. 01在Abt-Buy基准(2,194对已标注商品)上,用词汇重叠规则(Jaccard相似度)和LLM零样本提示分别判断两条商品记录是否指同一商品
  2. 02在500条亚马逊商品数据(人为随机互换制造商名称制造标错样本)上,用同样方式对比品牌标错检测
  3. 03实体匹配任务中规则基线(F1=0.950)和LLM零样本(F1=0.948)几乎打平;品牌标错任务中LLM(F1=0.833)明显优于简单规则(F1=0.721)
  4. 04一个要求模型优先参考型号/SKU代码的提示词改进,在小验证集(67个错误案例+50个对照案例)上修复了28个错误,但应用到全部2,194对数据后F1反而从0.948降到0.914
  5. 05在200对样本上以温度0.7重复提问5次,模型平均自我一致率达99.7%,而用5次投票取多数答案仅比单次提升0.005的F1,却要付出5倍的推理成本
这是 METAL MEDIA 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 在Abt-Buy基准(2,194对已标注商品)上,用词汇重叠规则(Jaccard相似度)和LLM零样本提示分别判断两条商品记录是否指同一商品
  2. 在500条亚马逊商品数据(人为随机互换制造商名称制造标错样本)上,用同样方式对比品牌标错检测
  3. 实体匹配任务中规则基线(F1=0.950)和LLM零样本(F1=0.948)几乎打平;品牌标错任务中LLM(F1=0.833)明显优于简单规则(F1=0.721)
  4. 一个要求模型优先参考型号/SKU代码的提示词改进,在小验证集(67个错误案例+50个对照案例)上修复了28个错误,但应用到全部2,194对数据后F1反而从0.948降到0.914
  5. 在200对样本上以温度0.7重复提问5次,模型平均自我一致率达99.7%,而用5次投票取多数答案仅比单次提升0.005的F1,却要付出5倍的推理成本
Fig. 1: Example prompts and responses for the two prompting strategies tested. Panel (a) shows a correctly resolved match under zero-shot prompting; panel (b) shows a true match incorrectly rejected under few-shot SKU-guidance prompting.
Fig. 1: Example prompts and responses for the two prompting strategies tested. Panel (a) shows a correctly resolved match under zero-shot prompting; panel (b) shows a true match incorrectly rejected under few-shot SKU-guidance prompting.
TABLE I: Precision, recall, F1, and accuracy for the three entity matching methods evaluated on the Abt-Buy benchmark (2,194 labeled pairs).
MethodPrecisionRecallF1Accuracy
Rule-based (Jaccard, threshold=0.2)0.9940.9100.9500.952
LLM zero-shot0.9990.9020.9480.951
LLM few-shot + SKU guidance0.9940.8460.9140.920
Fig. 2: Comparison of precision, recall, F1, and accuracy across the three entity matching methods on the Abt-Buy benchmark.
Fig. 2: Comparison of precision, recall, F1, and accuracy across the three entity matching methods on the Abt-Buy benchmark.
TABLE II: Precision, recall, F1, and accuracy for the two brand mislabeling detection methods evaluated on 500 Amazon product listings.
MethodPrecisionRecallF1Accuracy
Rule-based (manufacturer-title)0.5641.0000.7210.622
LLM zero-shot0.8270.8400.8330.836
Fig. 4: Consistency of LLM predictions across five repeated runs at temperature 0.7 on a 200-pair sample (left), and F1 score for a single deterministic run versus a five-run majority vote on the same sample (right).
Fig. 4: Consistency of LLM predictions across five repeated runs at temperature 0.7 on a 200-pair sample (left), and F1 score for a single deterministic run versus a five-run majority vote on the same sample (right).

为什么重要

对想把LLM用于数据清洗流程的从业者来说,这项研究给出了具体证据:当文本本身就能提供足够线索时不必依赖昂贵的LLM,只有在需要额外背景知识判断时LLM才真正有优势。研究也提醒,仅凭小样本验证提示词改进就推广到全量数据,可能是有风险的做法。

本文术语

  • 零样本/少样本提示 · 零样本指不给模型任何示例直接提问,少样本则先给几个示例再让模型作答
  • F1分数 · 综合精确率和召回率的评价指标,越接近1表示效果越好
  • Jaccard相似度 · 通过计算两段文本共享词语的比例来判断相似程度的简单规则方法
  • 多数投票 · 对同一问题多次提问后,选择出现次数最多的答案作为最终结果
  • 温度(temperature) · 控制模型输出随机性的参数,为0时每次回答固定不变,数值越高回答越可能变化

论文原文摘要(英文)

LLMs have been increasingly used to catch data quality issues automatically, but we know very little about how consistent these judgments actually are. This study tests an LLM on two e-commerce data quality tasks, entity matching and brand mislabeling, against rule based baselines and human verified ground truth, under both zero-shot and few-shot prompting. On entity matching while using the Abt Buy benchmark (2,194 labeled pairs), a simple rule based baseline (F1=0.950) performed about as well as LLM zero shot prompting (F1=0.948). Moreover, a few-shot prompt revision that looked effective on a small validation sample reduced full-scale performance to F1=0.914. This showed that small sample prompt evaluation can be misleading. On brand mislabeling detection, using 500 Amazon product listings with synthetically injected labeling errors, the LLM clearly outperformed a naive rule based baseline (F1=0.833 vs 0.721), because it could draw on background knowledge of brand product relationships that a simple rule could not access. Testing consistency across repeated runs (200 pairs, 5 runs at temperature 0.7) showed the model agreeing with itself 99.7% of the time on average, with 99% of pairs giving identical answers across all 5 runs. Using majority voting across these runs only improved F1 by 0.005, at 5 times the inference cost. These results suggest that the value of using an LLM over traditional methods depends heavily on the task. LLMs offer little advantage when strong lexical signals already exist, but a clear advantage when the task requires background knowledge, all while remaining highly consistent across repeated queries.

作者 · Praphulla Lal Shrestha

在 arXiv 阅读

最新论文

全部论文 →

METAL MEDIA 最新报道

图片来源: Praphulla Lal Shrestha et al., arXiv:2608.18158, CC BY 4.0