One pipeline for intent, sentiment and toxicity
A pattern from AI communication automation: do not build three separate classifiers when one shared encoder will do.
Intent, sentiment and toxicity all read the same message. A shared text encoder with three small heads:
- runs one forward pass instead of three;
- keeps the three labels consistent with each other;
- lets new heads (language, urgency) be added cheaply.
The heads still get separate thresholds and separate evaluation, because the cost of a mistake differs: a missed toxic message is not the same as a misread intent.