将零售产品名称编码为消费者价格类别的机器学习:基于规则加词袋的流水线,结合可靠性加权的人工参与标注
Machine Learning for Coding Retail Product Names to Consumer-Price Categories: A Rule-plus-Bag-of-Words Pipeline with Reliability-Weighted Human-in-the-Loop Labeling
AI总结:
本文提出一种结合规则和词袋模型的流水线方法,并采用可靠性加权的人工参与标注协议,将零售产品名称映射到消费者价格类别(如UN COICOP),实验表明词袋模型在该任务上已接近饱和(F1约0.99),而标注协议中可靠性加权投票仅略优于简单多数投票。
摘要:
消费者价格测量越来越多地依赖替代数据源——扫描仪、网络抓取和交易/收据数据。一个反复出现的障碍是,这些来源中的产品描述简短、嘈杂且缩写,没有标准产品代码,因此每个项目必须首先映射到消费分类(例如,联合国COICOP方案),然后才能比较价格。本文将该映射作为一种通用的、可重复的方法进行研究。流水线包括:(i) 对嘈杂项目名称进行文本归一化和分词;(ii) 基于每类关键词和停用词的前缀树(trie)规则预分类器;(iii) 每个类别的二元确认模型,决定一个项目是否属于暂定分配的类别。对于大规模标注,我们使用人工参与协议,其中标注者给出二元有效/拒绝判断,通过动态更新的可靠性权重进行聚合;模型加入相同的规则,实现持续微调。我们的实证发现是通货紧缩的:在一个受控、无泄漏的研究中(一个类别,真实正例与困难负例,五个随机种子),词袋模型基本上饱和了任务(F1约0.99)——线性分类器匹配多层感知器,显式词序(n-gram)特征没有增加任何价值,约67个标注样本已经足够。标注协议的蒙特卡洛研究表明,可靠性加权投票勉强超过简单多数投票(其加性权重饱和),而Dawid-Skene方法明显更好地恢复标签。我们还讨论了价格层面的质量控制和统计办公室考虑交易数据时的设计经验。所有数字均为示意性;未复制任何机密数据、代码或文档。
英文摘要:
Price statistics increasingly draw on scanner, web-scraped and receipt data whose product names are short, noisy and carry no standard code, so they must be coded to consumption categories. We release a synthetic benchmark of six categories with character-level noise, which favours character features, and hard negatives, and compare seven models trained from scratch (four logistic regressions on word or character n-grams, an MLP, a CNN and an LSTM) and two pretrained encoders under one matched protocol of 30 category-seed cells, reporting wins, losses and ties rather than mean differences alone. A character n-gram logistic regression is the most accurate model in every category and wins every paired comparison against the other models trained from scratch; the CNN and LSTM, once trained to the same stopping rule, are not reliably worse than the word-level models but cost 212 and 258 times as much to train as unigram bag-of-words. A fine-tuned DistilBERT comes within half a point of the character model without passing it, at about 460 times its single-thread CPU inference cost. Character features reduce inference throughput 4.6-fold relative to unigram bag-of-words. A rule-based prefix-tree stage admits 75-86% of positive items, so in a cascade it bounds the recall of the whole pipeline. A Monte Carlo study of label aggregation with simulated annotators shows that an additive reliability weight barely improves on majority vote while Dawid-Skene aggregation recovers labels markedly better, and that this difference carries through to the character n-gram classifier. Sensitivity checks cover a planted shortcut, generator noise, training budget and annotator population. The benchmark is synthetic and English-language because the production data are under non-disclosure. Code, data and scripts are released; accuracies of models trained from scratch reproduce exactly, timings as ratios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。