Scaling ML Annotation Platform with LLMs for Content Classification

spotify · Media & Entertainment · 2024 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: content annotation platform

Spotify needed to generate high-quality annotations at catalog scale so ML teams could train and evaluate models for tracks, podcast episodes, content relations, and policy violations.

Constraints:

Architecture

Spotify built an annotation platform around three pillars: scaling human expertise, annotation tooling, and workflow/ML integration. Domain expert workforces provide first-pass review; configurable LLM systems run in parallel to grow annotations; custom interfaces support classification, audio/video, and NLP tasks; backend services manage projects, access, distribution, metrics, agreement, escalation, and integration with batch orchestration and model training/evaluation.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Content catalog"] --> B["Annotation sampling pipeline"]
  B --> C["Annotation tooling"]
  C --> D["Human expert workforces"]
  C --> E["LLM annotation system"]
  C --> F["Project metrics"]
  D --> G["Quality analysts"]
  F --> G
  F --> H["ML training and evaluation workflows"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Content catalog Tracks, albums, podcast audio/video, and metadata that need classification labels. Annotation sampling pipeline
Annotation sampling pipeline Samples predictions or items for expert/LLM review. Content catalog, Annotation tooling
Annotation tooling Custom interfaces for classification, audio/video, NLP, and project-specific annotation tasks. Annotation sampling pipeline, Human expert workforces, LLM annotation system, Project metrics
Human expert workforces Domain experts who provide first-pass review and judgment. Annotation tooling, Quality analysts
LLM annotation system Configurable LLM-based annotator that runs alongside humans. Annotation tooling, Project metrics
Project metrics Completion rates, volumes, annotations per annotator, and agreement metrics. Annotation tooling, Quality analysts, ML training and evaluation workflows
Quality analysts Review unresolved or low-agreement annotation points. Human expert workforces, Project metrics
ML training and evaluation workflows Downstream model training/evaluation consuming high-confidence annotations. Project metrics

Data flow

ML teams sample model predictions or content items, route them through annotation tooling, combine human expert review with configurable LLM annotations, compute project and agreement metrics, escalate ambiguous cases to quality analysts, and feed high-confidence annotations back into training and evaluation workflows.

3 supporting quotes
“We developed scripts to sample predictions, served data for operator review, and integrated the results with model training and evaluation workflows.”article, stated
“we also built a configurable, LLM-based system that runs in parallel to the human experts.”article, stated
“Any data points without a clear resolution were automatically escalated to our quality analysts.”article, stated

Why this architecture

Spotify combined human and machine annotation because human expertise alone would not scale, while technical automation alone would miss domain nuance and quality resolution.

3 supporting quotes
“Putting an emphasis from the onset on both scaling our human domain expertise and machine capabilities was key.”article, stated
“Scaling humans without scaling technical capabilities to support them would have presented various challenges”article, stated
“only focusing on scaling technically would have resulted in lost opportunities.”article, stated

Models used: LLM-based annotation system · content classification models · content relation detection models · policy violation models

Scale

Alternatives considered (roads not taken)

Ad hoc annotation scripts only

Rejected because: Spotify needed a platform strategy for millions of annotations and multiple ML tasks.

“we decided to invest in this solution in earnest. Our next objective was to define the strategy to build a platform”article, stated

One annotation tool for every use case

Rejected because: No single tool fits all Spotify annotation needs, so abstractions had to support multiple tools and interfaces.

“At Spotify’s scale, no one tool or application will satisfy all our needs — optionality is key.”article, stated

Human expertise without LLM automation

Rejected because: LLM automation significantly grew the corpus at lower effort and cost.

“It has allowed us to significantly grow our corpus of high-quality annotation data with low effort and cost.”article, stated

Patterns

human-in-the-loop-gate (annotation)

Human experts and quality analysts review first-pass labels and ambiguous cases.

“Core annotator workforces: These workforces are domain experts, who provide first-pass review of all annotation cases.”article, stated

synthetic-data-generation (data)

A configurable LLM annotation system expands the label corpus alongside human annotators.

“Beyond human expertise, we also built a configurable, LLM-based system that runs in parallel to the human experts. It has allowed us to significantly grow our corpus of high-quality annotation data with low effort and cost.”article, stated

eval-driven-development (evaluation)

Project metrics and agreement measures guide annotation quality and model training readiness.

“In these cases, different experts may have different answers and opinions, so we started to compute an overall “agreement” metric. Any data points without a clear resolution were automatically escalated to our quality analysts.”article, stated

batch-offline-processing (mlops)

Production annotation integrations connect to internal batch orchestration and ML workflow infrastructure.

“For production workflows, we built integrations with internal batch orchestration and workflow infrastructure.”article, stated

Tradeoffs

Annotation strategy

Chose human expertise plus LLM-based automation over only humans or only machine annotations.

Rationale: The combined approach scales volume while preserving domain expertise and quality escalation.

“Scaling humans without scaling technical capabilities to support them would have presented various challenges, and only focusing on scaling technically would have resulted in lost opportunities.”article, stated

Tooling architecture

Chose generic abstractions with multiple interfaces over single application for every annotation task.

Rationale: Spotify's use cases and tools are too varied for one fixed annotation UI.

“Our data models, APIs, and interfaces are generic and can be used with multiple types of annotation tooling.”article, stated

Gotchas (what bit them)

Annotation tasks varied beyond simple classification.

Root cause: Spotify needed audio/video segment annotation, NLP tasks, and other complex project-specific workflows.

Resolution: Build custom interfaces and generic data models/APIs that support multiple annotation tools.

“we soon realized that we had more complex use cases — such as annotating audio/video segments, natural language processing”article, stated

Experts may disagree on nuanced content labels.

Root cause: Tasks such as detecting overlaid music in a podcast clip can legitimately produce different expert opinions.

Resolution: Compute agreement metrics and escalate unresolved cases to quality analysts.

“different experts may have different answers and opinions, so we started to compute an overall “agreement” metric.”article, stated

Scaling annotation work requires more than more annotators.

Root cause: Human workforces need tooling, distribution, metrics, access control, and backend project management.

Resolution: Build platform tooling around work distribution and project operations.

“project management, access control, and distribution of annotations across multiple experts.”article, stated

Evaluation

Spotify evaluates annotation work through project completion, data volumes, annotations per annotator, agreement metrics, escalation rates, and downstream model training/evaluation integration.

Metrics: project completion rate · data volumes · annotations per annotator · agreement metric · annotation corpus size · annotator productivity

“Another focus area was project metrics — such as project completion rate, data volumes, annotations per annotator, etc. These metrics helped project managers and ML teams track their projects.”article, stated
“This ensures that our models receive the highest confidence annotation for training and evaluation.”article, stated

Outcomes

The source is a Spotify engineering blog with concrete platform metrics and a high-level description of LLM automation.

“This enabled us to deploy and run dozens of annotation projects in parallel, all while ensuring that experts remained productive across multiple projects.”article, stated
“we’ve been able to significantly reduce the time it takes to develop new ML models and iterate on existing systems.”article, stated