Not All Tokens Earn the Reward: Contrastive Credit Assignment for Production Detection

Tejas Alisyam, Prateek Sircar, Deepak Gupta


Abstract
Seller-authored product titles often contradict their own bullet points (a title reading “128GB” against a bullet claiming “512GB”), which misleads shoppers and drives returns. At catalog scale, detection is precision-binding: even a small false-positive rate flags a huge absolute volume of good listings. We deploy a two-stage cascade on one national storefront of a large e-commerce marketplace: a compact 4B detector flags candidates and a strong reasoning model (DeepSeek R1) verifies them, reaching >99% precision while scoring all 36M listings. Verification is the expensive stage, so our goal is to fold it into the cheap model and run on the 4B detector alone; until then, every gain in the detector’s recall catches more defects per verifier call and lifts coverage. We improve that first stage with Contrastive Token Weighting (CTW), a per-token credit-assignment method for GRPO. GRPO spreads one sequence-level advantage uniformly across a completion, even though only a few pivotal tokens decide correctness; CTW instead reads credit from a signal the reward already computes, the split of each sampled group into correct and incorrect completions, and upweights positions where a frozen scorer tells the two apart. The scorer can be a separate stronger teacher (CTW-T) or, when none is available, a frozen copy of the student itself (CTW-S, teacher-free); the teacher-free variant is the one we deploy, and it lifts the detector to 85.9 F1 (+2.2 over SFT, with the gain concentrated in recall, +3.4). A controlled math study shows the reward-induced partition, not the reweighting itself, is what drives the gain.
Anthology ID:
2026.emnlp-industry.198
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Pepa Atanasova, Gholamreza Haffari, Minghan Wang
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
3322–3333
Language:
URL:
https://aclanthology.org/2026.emnlp-industry.198/
DOI:
Bibkey:
Cite (ACL):
Tejas Alisyam, Prateek Sircar, and Deepak Gupta. 2026. Not All Tokens Earn the Reward: Contrastive Credit Assignment for Production Detection. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 3322–3333, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Not All Tokens Earn the Reward: Contrastive Credit Assignment for Production Detection (Alisyam et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-industry.198.pdf