Skip to content
AI.info

Research

Dynamic Content Moderation in Livestreams: Combining Supervised Classification with MLLM-Boosted Similarity Matching

Overview Research area: Computer Vision / multimodal content moderation for live-streaming platforms, combining supervised classification, retrieval-based similarity matching, multimodal large languag

arXiv
2512.03553
Published
2025-12-03
Authors
Wei Chee Yew, Hailun Xu, Sanjay Saha, Xiaotian Fan, Hiok Hian Ong, David Yuchen Wang, Kanchan Sarkar, Zhenheng Yang, Danhui Guan

AI summary

Overview

Research area: Computer Vision / multimodal content moderation for live-streaming platforms, combining supervised classification, retrieval-based similarity matching, multimodal large language model (MLLM) knowledge distillation, and production A/B testing.

Technical level: Advanced.

Scope: A production-deployed, dual-path moderation system from TikTok that detects policy-violating livestream content using a distilled multimodal classifier alongside an MLLM-boosted retrieval-and-re-ranking pipeline over 20-second clips.

What This Paper Is About

Livestreaming platforms must catch policy violations in real time, but livestreams are long, multimodal, and constantly evolving, which makes large models too slow and too expensive to run directly in the online path. The authors build a hybrid moderation framework that pairs a lightweight supervised classifier for known violation types with a reference-based similarity search that retrieves and re-ranks clips against a library of previously confirmed violations, so the system can also catch novel or subtle cases. Both paths are trained with knowledge distilled from a much larger multimodal language-vision teacher model that cannot be deployed online.

Key Contributions

  1. Hybrid multimodal moderation architecture: A dual-path system uniting supervised multiclass classification with reference-based similarity retrieval across text, audio, and visual modalities. The paper reports that reference matching contributes approximately 22% additional coverage beyond the classification branch, so the two paths are complementary rather than redundant.
  2. Efficient knowledge distillation and contrastive pre-training for real-time use: A fine-tuned LLaVA-One-Vision teacher distills knowledge into a lightweight re-ranking model and a lightweight classifier, while MoCo-style contrastive pre-training with a memory bank and momentum encoder, plus CLIP loss, aligns semantic and perceptual embeddings across modalities.
  3. Production-scale deployment with impact evaluation: The system runs on a live platform processing millions of hours of content, and large-scale A/B tests report a 6–8% reduction in user views of unwanted livestreams.
  4. Large-scale ablation validation: Detailed ablations over modality inclusion, backbone size, embedding dimension, fusion depth, and distillation report the accuracy-versus-throughput trade-offs that guided the deployed configuration.

Main Findings

  • Deployed classification pipeline: The preset violation detection model achieves an Average Precision (AP) of 75.84% and F1 of 73.61%, with recall of 75.63% at P70, 71.40% at P75, 66.70% at P80, 62.93% at P85, and 47.37% at P90. The abstract states the classification pipeline achieves 67% recall at 80% precision.
  • Deployed similarity pipeline: The re-ranking model achieves AP 74.82% and F1 73.49%, with recall of 75.40% at P70, 71.51% at P75, 66.13% at P80, 59.84% at P85, and 41.42% at P90. The abstract states the similarity pipeline achieves 76% recall at 80% precision.
  • Retrieval recall is very high: The video retrieval model reaches Recall@Top-5 of 90.53% and Recall@Top-100 of 98.99% for retrieving at least one relevant match ("Recall one"); "Recall all" rises from 53.81% at Top-5 to 74.56% at Top-100.
  • Audio helps: Adding audio to visual features raised AP by 6.3% for the small model (64.70% to 71.05%) and by 2.7% for the MLLM (77.35% to 80.03%).
  • The teacher is strongest but undeployable: The MLLM reaches the highest AP at 80.03% for preset violation detection and 77.60% for re-ranking, but its cost makes it impractical for real-time production.
  • Distillation closes most of the gap: Distilling the MLLM into the small student raised its AP from 71.05% to 75.84% for preset violation detection, and from 71.05% to 74.82% for re-ranking.
  • Aggressive compression is cheap: Dropping embedding dimensions from 768 to 128 had negligible impact on retrieval recall (MoCo + CLIP at 128 dims: 90.53% Recall@Top-5, 98.99% Recall@Top-100).
  • CLIP alignment on top of MoCo matters a lot: At Top-5, MoCo + CLIP exceeded 90% Recall one versus roughly 60% for MoCo alone (59.31%); the gap narrows but persists at higher Top-K.
  • Speed versus accuracy trade-off: The heaviest configuration (Swin Large visual, Whisper-Small audio, XLM-RoBERTa text, 12-layer fusion, 650M params) reached 77.35% AP at only 14 QPS, while the deployed 75M-parameter Swin-Tiny/Whisper-Base configuration ran at 87 QPS with 71.05% AP (pre-distillation).
  • Online A/B results: The preset violation pipeline upgrade produced a 1.2% decrease in violation-related user views, with standard deviation 0.055, 95% confidence interval [-0.1476%, -0.087%], p-value approximately 0, and a minimum detectable effect of 0.04%, plus a 2.7% decrease in watch duration on flagged streams. The reference matching upgrade produced a 0.6% reduction in views of unwanted livestreams, a 0.25% decrease in streams flagged for sensitive issues, and a 2.33% reduction in duplicate livestream views.
  • Long-term backtest: The preset violation detection pipeline alone led to about a 4% reduction in user views of unwanted livestreams; adding reference matching reduced unwanted views by roughly a further 2% to 4%.
  • Latency is asymmetric: On average per 20-second clip, the preset violation branch ran in 417.55 ms (50th percentile 350.06 ms, 90th 703.42 ms, 99th 1000.00 ms), while the reference matching branch ran in 3980.00 ms (50th 4120.00 ms, 90th 5490.00 ms, 99th 6310.00 ms).
  • Over-moderation safeguards: Thresholds are tuned at P90 precision, human moderators review detections in the lower-precision P70–P85 bands, and an appeal mechanism routes disputed cases to human review.

Methodology in Plain English

The system treats a livestream as a stream of 20-second clips and analyzes each clip through two parallel paths.

The first path is a small, fast classifier trained on labeled examples of known violation types (for example, official or paid content such as sports events, TV shows, films, and music videos broadcast on non-official livestreams). It extracts visual features with a Swin-Tiny encoder and audio features with a Whisper-Base encoder, pools them, fuses them with a METER fusion module, and produces a prediction through a multilayer perceptron. It is trained with cross-entropy loss on labeled data.

The second path answers a different question: has this clip been seen before, in a form that already violated policy? It computes embeddings for each query clip using a Swin-Large visual encoder, searches a vector index for similar historical violating clips, and then re-ranks the retrieved candidates with a multimodal re-ranking model that fuses visual features with automatic speech recognition transcripts to produce a similarity score. Because repeated backgrounds, interfaces, or host behavior cause false positives in purely visual matching, the re-ranking model exists to filter them out. Because a single matching clip is noisy, an aggregation algorithm groups matches at the sequence level using timestamp alignment within a tolerance window.

The clever part is how the authors get small models to behave like large ones. A modified LLaVA-One-Vision model, extended to accept audio embeddings, is supervised-fine-tuned on proprietary data (with the SigLip visual encoder and Whisper-Small audio encoder frozen and the language model adapted via LoRA) and used as a teacher. The student models are trained to match the teacher's final hidden states with mean squared error loss and the teacher's logits with KL divergence, on top of supervised cross-entropy. The retrieval embeddings are trained with MoCo contrastive learning (memory bank plus momentum encoder, optimized with a multi-similarity loss) and then strengthened with CLIP-style cross-modal alignment between visual, text, and audio embeddings, using Matryoshka Representation Learning so one model can emit embeddings of dimensions such as 32, 64, 128, 512, or 768. Searches run over Hierarchical Navigable Small World indices maintained separately per violation category. An active learning module based on the Info-Coevolution framework samples high-value, difficult production examples for human annotation to keep the classifier current.

Training and deployment used NVIDIA H100 GPUs, with model tracing, post-training quantization (PTQ), and quantization-aware training (QAT) to reduce latency and memory.

Why This Matters

Impact on research: The paper argues that livestream moderation is under-studied relative to pre-recorded short-video moderation, and it shows a concrete recipe for using an undeployable MLLM as a teacher to make deployable small models nearly as good. It also provides a rare account of offline metrics translated into measured online business outcomes, which is uncommon in moderation literature.

Real-world applications:

  • Copyright and paid-content enforcement, detecting officially owned sports, television, film, and music content rebroadcast on unauthorized livestreams.
  • Duplicate and re-posted violating content detection, which the paper links to a 2.33% reduction in duplicate livestream views.
  • Emerging-trend response, where the retrieval path flags violation patterns that classifiers have not yet been trained on.
  • Scalable platform trust-and-safety triage, with tighter thresholds for automated enforcement and human review in lower-precision bands plus a creator appeal path.

Industry relevance: The reported deployment on a platform processing millions of hours of content, the 0.4-second and 4-second per-clip latencies, and the explicit QPS-versus-accuracy tables give engineers concrete guidance on where distillation and compression are worth the effort. The 6–8% reduction in unwanted livestream views reported from large-scale A/B tests is the kind of result platform operators can evaluate directly against their own moderation stack.

Future Directions

  • Closing the teacher-student gap: Distilled models reach 75.84% AP versus the MLLM teacher's 80.03% for classification, leaving headroom to recover. The paper does not report whether larger student capacity or different distillation objectives narrow this further.
  • Reducing the reference matching latency: At roughly 3980 ms average per 20-second clip, the retrieval path is about ten times slower than the classification path; the paper does not report plans for further acceleration.
  • Keeping pace with adversarial behavior: The paper describes active learning via Info-Coevolution for continuous data refresh but does not report longitudinal results on how quickly the system adapts to new violation tactics.
  • Generalization beyond the reported categories: The paper notes separate HNSW indices for categories such as copyright infringement and duplicate content, but does not report how the framework scales to other policy areas or to additional languages beyond the LAION-2B multilingual subsets.

Target Audience

This paper suits industry machine learning engineers and trust-and-safety practitioners building real-time multimodal moderation systems, applied researchers working on knowledge distillation from multimodal LLMs into deployable models, and retrieval engineers interested in embedding compression, contrastive pre-training, and re-ranking for video similarity. Readers need familiarity with contrastive learning, distillation losses, and approximate nearest-neighbor search to follow the method sections, though the production results and latency tables are accessible to a broader technical audience.

Authors’ abstract

Content moderation remains a critical yet challenging task for large-scale user-generated video platforms, especially in livestreaming environments where moderation must be timely, multimodal, and robust to evolving forms of unwanted content. We present a hybrid moderation framework deployed at production scale that combines supervised classification for known violations with reference-based similarity matching for novel or subtle cases. This hybrid design enables robust detection of both explicit violations and novel edge cases that evade traditional classifiers. Multimodal inputs (text, audio, visual) are processed through both pipelines, with a multimodal large language model (MLLM) distilling knowledge into each to boost accuracy while keeping inference lightweight. In production, the classification pipeline achieves 67% recall at 80% precision, and the similarity pipeline achieves 76% recall at 80% precision. Large-scale A/B tests show a 6-8% reduction in user views of unwanted livestreams}. These results demonstrate a scalable and adaptable approach to multimodal content governance, capable of addressing both explicit violations and emerging adversarial behaviors.

Read the original paper