Using Gen AI to Enhance Trust and Safety at Thumbtack: Applying a fine-tuned LLM model to review messages

Xiuming Zhu2 Jan 2025

Problem

Thumbtack, a home-services marketplace, screens every message between customers and service professionals (pros). Keyword rules catch abusive language, but subtler violations such as job seeking or partnership requests slip through. The old convolutional neural network (CNN) classifier handled simple cases and failed on nuanced language, sarcasm and implied threats. Missed violations reach pros, and suspicious messages go to a manual review team.

Example from the article: a message that asks a pro for a position in the pro's company, instead of requesting actual professional work, counts as job seeking and violates the policy.

Solution in brief

Prompting off-the-shelf LLMs gave an AUC of only 0.56, so the team fine-tuned an LLM on tens of thousands of labeled messages and reached 0.93. To avoid running the GPU model on all traffic, the old CNN became a pre-filter with a tuned threshold that passes most legitimate messages, so the LLM sees about 20% of all messages.

Questions this case answers
  • How to detect rare, context-dependent policy violations in a high-volume text stream when an existing classifier misses nuanced cases and running a large model on everything is too expensive
  • How to catch subtle policy violations in marketplace messages that keyword rules and an older CNN miss?
  • How to decide between prompt engineering and fine-tuning an LLM for a moderation classifier?
  • How to keep LLM inference cost down when most messages are legitimate?

Tools and methods

  • Supervised fine-tuning of an LLM — the moderation classifier itself
  • Prompt engineering — the baseline that failed (AUC 0.56)
  • Legacy CNN as a pre-filter — a threshold passes obviously good messages and cuts LLM volume
  • LangChain — a centralized internal LLM service shared across teams
Continue reading — it's free

Google or a one-time email code. No password.