arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.32955cs.CLcs.HCcs.LG
收藏

训练前先测量:用于个人多语言收件箱路由的类型化决策模型、经典基线与生成式大语言模型的对比

Measure Before You Train: Typed Decision Models vs. a Classical Baseline vs. a Generative LLM for Routing a Personal Multilingual Inbox

Federico Lucca

AI总结:

该研究提出自托管收件箱智能体Foyer及测量协议,对比9种系统,发现逻辑回归准确率高但无法预测稀有类别,联系人关系需从联系人图获取,成本阈值可优化系统表现。

摘要:

个人邮件智能体需为每封邮件判断其类型、是否紧急、是否需要撰写回复、创建任务或忽略它,但其错误率很少被测量,因为存储的标签由系统自身生成。本文提出日常使用的自托管个人收件箱智能体Foyer,以及一种测量协议(分层抽样、冻结快照、线程分组划分、预注册假设、智能体审核环节中的人工标签),可在任何训练前生成真实标签。在由所有者标注的739封真实意大利语/英语邮件(231封无偏样本、500封对抗采样样本)上,通过线程分组交叉验证对比9种系统:生产关键词规则、TF-IDF+逻辑回归基线、本地类型化决策模型(Tev1、Nimble)、托管决策模型(Nimble v4-max)以及托管生成式大语言模型(Qwen2.5-7B、Gemma 4 26B/31B),得出四项结果:1. 生产规则在邮件类型上的得分为28%,而多数类占比58%,该最突出字段无信息价值;2. 逻辑回归仅需约200个标签,在所有字段上准确率最高(类型0.79、紧急程度0.74、需回复0.83、为噪声0.90),但从未预测两个最稀有类别,且在类型上与Gemma 4统计持平,少样本提示未缩小差距;3. 若联系人已被见过,可从同一联系人的其他邮件中以98.6%的准确率恢复其关系(客户、供应商、服务),任何模型都无法从单封邮件推断该信息,它属于联系人图而非提示;4. 准确率并非产品指标,组合成动作后,最准确的系统常忽略需处理的邮件(18% vs 最佳大语言模型的4%),对其噪声概率采用成本选择阈值可将该比例减半,使其成为成本最低的系统。

英文摘要:

Personal email agents decide, for every message, its type and urgency and whether to draft a reply, create a task or ignore it. In production these decisions are delegated to a generative LLM or to rules, and their error rate is rarely measured: the stored labels were written by the system itself. We describe Foyer, a self-hosted personal inbox agent, and a measurement protocol (stratified sampling, frozen snapshots, thread-grouped splits, secret redaction, human labels in the review loop) that produces ground truth before any training. On 231 emails in Italian and English we compare eleven systems: the stored production type, a TF-IDF + logistic-regression baseline, local and hosted typed decision models (Tev1, Nimble, Jeva, Jev) and generative LLMs. Four results. The stored production type scores 28% against a 57% majority class. With about two hundred labels a logistic regression has the highest point accuracy on every field (type 0.77 +/- 0.02 over five seeds) at a thousandth of the latency, but on every field at least one hosted model is statistically indistinguishable from it (exact McNemar, Holm-corrected). A generative model recovers part of the sender's relationship to the owner from the text (0.60); inheritance from the contact is right 98.6% of the time where the sender was seen before: it belongs in the contact graph, not in the prompt. Per-email accuracy is not the product metric: composed into actions, the classifier ignores 18% of the emails that needed action, against 4% for the best generative model; a cost-chosen threshold cuts that to 10%, indistinguishable from the hosted decision model's; on the adversarial corpus the thresholded classifier is the cheapest system above a missed-email price of 4. Two blind annotators agree with the reference at kappa 0.81 and 0.86 on type. v4 corrects threshold results computed on a truncated corpus in v1-v3.

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

↑