A study of a self-hosted email agent shows why its decisions should be checked against independent labels before training: production keyword rules identified message type correctly only 28% of the time, compared with 58% for the majority class. The paper compares nine systems on real Italian- and English-language emails.
The authors describe a measurement protocol using stratified sampling, frozen snapshots, thread-grouped test splits, and human labels. The mailbox owner labelled 739 messages; 231 came from an unbiased sample and 500 were selected adversarially. The approach is intended to avoid evaluating an agent solely against labels that the system itself produced.
With about 200 labels, TF-IDF with logistic regression achieved the highest accuracy for message type, urgency, need for a reply, and noise detection: 0.79, 0.74, 0.83, and 0.90. However, it never predicted the two rarest classes and was statistically tied with Gemma 4 on message type. Few-shot prompting did not close the gap.
The study also finds that classification accuracy does not automatically translate into better actions: the most accurate system more often ignored emails needing action than the best tested LLM, at 18% versus 4%. A threshold for noise probability chosen according to cost halved that rate and, according to the paper, made the system the cheapest option. The original paper provides further detail on the measurement protocol and individual system results.
Source: arXiv