Introduction
Content moderation policies are a moving target. Social media platforms must navigate varying legal requirements and community standards across different regions and products. Traditionally, this necessitates training "bespoke" models for every specific policy. However, when rules change—such as a new regulation regarding "rude gestures"—developers must re-label data and re-train models, a process that is slow, expensive, and difficult to scale.
To address this, many platforms adopt a multiple subtask approach. Instead of a monolithic model, they utilize specialized detectors for granular elements (e.g., weapons, blood, or specific gestures). A policy is then defined as a logical combination of these subtasks. The primary challenge is reliability: machine learning scores are often uncalibrated across different tasks. To ensure safety, platforms must find optimal thresholds for these subtasks that guarantee high precision while maximizing the volume of content handled automatically.
The TruSThresh Method
The authors introduce TruSThresh (Truncated Surrogate gradient for Threshold optimization), a post-processing method designed to optimize thresholds on a small validation set. TruSThresh is computationally efficient, finding optimal parameters in seconds on a CPU.
Key technical innovations include:
- Score Normalization: Rank-based normalization makes optimization agnostic to skewed subtask score distributions.
- Sine-based Surrogate Gradients: To overcome the non-differentiability of the Heaviside step function used in thresholding, TruSThresh employs a sine function with a learnable width as a surrogate.
- Width Truncation: This mechanism restricts gradient flow to samples near the current threshold. By making this window learnable, the model dynamically focuses on the most informative samples, stabilizing optimization.
- Penalty Method: A penalty term in the loss function strictly enforces safety constraints, ensuring the model meets target precision levels (e.g., 99%).
Experimental Evaluation
TruSThresh was evaluated across diverse domains:
- UnSmile: A Korean hate speech dataset with 9 subtasks.
- Azar: A real-world dataset from a major social discovery platform, featuring professional moderator annotations.
- Standard Benchmarks: Versatility was tested on DCASE17/19 (audio), CelebA (image attributes), and EurLex (legal text).
Key Insights and Results
A significant finding is that optimizing thresholds on subtasks can outperform bespoke models trained for specific policies. This advantage likely stems from subtask models being trained on larger, more diverse datasets.
The study also highlights the difficulty of "Use Case 2"—skipping harmless content—compared to filtering harmful content. The former often involves complex "AND" operations that reduce positive sample counts, making precision constraints harder to satisfy.
Performance Highlights: * Superior Reliability: In high-precision scenarios (target precision > 0.975), TruSThresh consistently outperformed existing methods like SGLThresh and greedy heuristics. * Operational Impact: On the Azar platform, TruSThresh improved recall by 5.6% to 6.5% over baselines while maintaining a 98.5% precision rate. This translates to a significant reduction in manual human review hours. * Efficiency: The ability to find optimal thresholds in seconds allows platforms to respond nearly instantly to policy changes or viral trends without intensive GPU retraining.
Conclusion and Future Work
While TruSThresh is a powerful post-processing tool, it is dependent on the quality of the underlying subtask models. Future research could explore automatically learning the decision functions (currently manually designed logical operations) alongside the thresholds to uncover complex, non-obvious relationships between subtasks.
Summary updated