Square builds RoBERTa-based merchant categorization model achieving ~30% accuracy improvement
Square's merchant categorization relied heavily on self-selection during onboarding, which was highly susceptible to miscategorization. Historical ML approaches used older methods and over-indexed on self-selected data as ground truth, leading to inefficiencies and missed opportunities.
Previous ML attempts at Square used older methods, over-indexed on self-selected onboarding data as labels, and narrowly focused on new seller onboarding without leveraging post-onboarding signals.
The RoBERTa model achieved an absolute ~30% improvement in categorization accuracy over existing methods, with per-category accuracy gains including 13% for food_and_drink and 38% for retail, and now powers all Square business metrics requiring merchant category segmentation.
Show all 9 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
The RoBERTa model achieved an absolute ~30% improvement in categorization accuracy over existing methods, with per-category accuracy gains including 13% for food_and_drink and 38% for retail, and now powers all Square…
What tools did this team use?
RoBERTa, Databricks, PySpark, Huggingface.
What results were reported?
Overall categorization accuracy improvement: ~30%; Accuracy increase - beauty and personal care: 32%; Accuracy increase - food and drink: 13%; Accuracy increase - health care and fitness: 22% (source-reported, not independently verified).
What failed first in this deployment?
Previous ML attempts at Square used older methods, over-indexed on self-selected onboarding data as labels, and narrowly focused on new seller onboarding without leveraging post-onboarding signals.
How is this back office ops AI workflow structured?
Daily inference trigger → Remove auto-created services → Rank catalog by purchase frequency → RoBERTa merchant classification → Incremental prediction check → Output prediction tables → Power business metrics.