Leveraging NLP and LLMs for Music Industry Royalty Recovery

love_without_sound · Media & Entertainment · 2025 · 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: music royalty recovery and legal NLP

Love Without Sound needed to recover lost music royalties and streamline legal negotiations despite messy metadata, fragmented usage channels, high-volume correspondence, and strict privacy requirements.

Constraints:

Architecture

Love Without Sound built a modular NLP platform using spaCy pipelines, Prodigy annotation loops, transformer and CNN components, legal-document classifiers, case-citation extraction, request tracking, music-reference linking, and local private deployment. The production system standardizes music metadata, links song references to unique IDs, classifies legal correspondence and attachments, detects settlement details, predicts negotiation direction, and is expanding toward a private RAG/SQL query layer and audio embeddings.

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

flowchart LR
  Metadata_standardization_pipeline["Metadata standardization pipeline"] --> Music_metadata_database["Music metadata database"]
  Prodigy_annotation_loop["Prodigy annotation loop"] --> Metadata_standardization_pipeline
  Prodigy_annotation_loop --> Model_training_runtime["Model training runtime"]
  Email_body_extractor["Email body extractor"] --> Legal_correspondence_classifier["Legal correspondence classifier"]
  Legal_correspondence_classifier --> Request_tracking_dashboard["Request tracking dashboard"]
  Case_citation_detector["Case citation detector"] --> Negotiation_intelligence["Negotiation intelligence"]
  Music_reference_linker["Music reference linker"] --> Music_metadata_database
  Music_reference_linker --> Negotiation_intelligence
  Attachment_processor["Attachment processor"] --> Negotiation_intelligence
  RAG_and_SQL_query_layer["RAG and SQL query layer"] --> Music_metadata_database
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Metadata standardization pipeline spaCy NER and text classification pipeline that extracts songs, artists, and modifiers and creates hierarchical IDs. Music metadata database, Prodigy annotation loop
Music metadata database Large database of track metadata and unique identifiers used for matching and royalty recovery. Metadata standardization pipeline, Music reference linker
Legal correspondence classifier Classifies email bodies and separates substantive communications from noise. Email body extractor, Request tracking dashboard
Email body extractor Finds the start and end of message bodies amid disclaimer blocks. Legal correspondence classifier
Case citation detector Identifies cited cases and maps them to arguments for counter-argument recommendation. Negotiation intelligence
Music reference linker Links song references in correspondence to unique identifiers in the metadata database. Music metadata database, Negotiation intelligence
Attachment processor Classifies attachments and extracts settlement deadlines, amounts, rights, dates, licenses, and signature status. Negotiation intelligence
Request tracking dashboard Extracts action items, urgency, and pending requests from legal communication. Legal correspondence classifier
Prodigy annotation loop Human-in-the-loop annotation and correction workflow used to update models with new examples and edge cases. Metadata standardization pipeline, Model training runtime
Model training runtime Modal-backed training and batch processing environment for CPU/GPU workloads. Prodigy annotation loop
RAG and SQL query layer Work-in-progress private RAG pipeline that translates natural-language questions into SQL over case history and artist information. Music metadata database

Data flow

Raw music metadata is normalized by spaCy NER and text classification into song, artist, and modifier structures with hierarchical IDs. Legal emails and attachments pass through body extraction, correspondence classification, citation extraction, agreement section classification, and request tracking. Extracted song references are linked to unique music identifiers so licensing claims can be verified. Prodigy keeps humans in the annotation loop for new examples and edge cases, while Modal supports training and batch processing at scale.

3 supporting quotes
“Jordan developed a spaCy pipeline with named entity recognition and text classification components”article, stated
“the correspondence classifier distinguishes substantive business communications from non-essential emails like newsletters and meeting invitations.”article, stated
“When songs are mentioned in the correspondence, the system links these references to unique identifiers in its music metadata database.”article, stated

Why this architecture

The architecture decomposes a complex royalty-recovery business problem into modular, separately evaluated NLP components. Local deployment preserves privacy, Prodigy lets the domain expert iteratively correct schemas and edge cases, and the future RAG/SQL layer is deliberately scoped to translate questions into queries rather than use a broad generative system.

3 supporting quotes
“Jordan was able to break down the complex business problem (“make law firms more productive”) into individual steps”article, stated
“all models and applications need to run locally in a data-private environment”article, stated
“The main job of the Large Language Model (LLM) is to translate the natural language question into the right SQL queries, a clearly defined task”article, stated

Models used: spaCy · Prodigy · transformer-based NER · CNN-based text classification · span categorization · Modal · RAG pipeline · small on-premise LLM · audio embedding model

Scale

textcat

5

0.99

447,493"

— article, stated

Alternatives considered (roads not taken)

Treat metadata errors as manual cleanup

Rejected because: The problem spans billions of rows, thousands of daily emails, and millions of lost royalties, making manual monitoring impractical.

“Artists are often powerless to monitor this and claim compensation they’re owed”article, stated
“This process can also involve extensive legal correspondence and negotiations, with thousands of emails being sent per day.”article, stated

Build one monolithic model

Rejected because: The case chose separate modular components that can be combined, improved, and evaluated independently.

“Jordan opted to train separate models for each feature, which can be combined freely by the application.”article, stated
“each component can be developed, improved and evaluated separately”article, stated

Use a broad LLM for private legal and catalog data

Rejected because: The source emphasizes local data-private deployment and scopes future LLM use to SQL translation.

“Legal documents and financial information of artists and businesses are highly confidential”article, stated
“a clearly defined task that allows utilizing a smaller model that ideally runs privately on-premise”article, stated

Patterns

human-in-the-loop-gate (data development)

Prodigy keeps the model in the loop while Jordan reviews predictions, corrects edge cases, and retrains as new data arrives.

“he uses ner.correct with the model in the loop to review the predictions in the UI and make corrections if necessary”article, stated
“This keeps the results current and gives me a consistent and continuous process.”article, stated

data-quality-loop (data)

Annotation, correction, schema iteration, and retraining are used to keep extraction definitions and model outputs current as catalogs and client requests change.

“as soon as I engage with the data, I find that I haven’t defined what I’m looking for clearly enough.”article, stated
“Prodigy lets me iterate on my schemas and definitions, and build much better models this way.”article, stated

batch-offline-processing (operations)

Modal provides serverless CPU/GPU resources for model training and large batch jobs without local infrastructure management.

“Jordan uses Modal, a serverless cloud platform that provides high-performance computing for AI models and large batch jobs.”article, stated
“cost-effective access to both CPU and GPU resources on demand, without having to worry about infrastructure setup”article, stated

privacy-preserving-processing (governance)

Models and applications run locally in a data-private environment because legal and financial information is confidential.

“Legal documents and financial information of artists and businesses are highly confidential”article, stated
“all models and applications need to run locally in a data-private environment”article, stated

rag-retrieval (retrieval)

A work-in-progress private RAG pipeline will answer natural-language questions about case history and artist information by generating SQL queries.

“Jordan is currently building a custom Retrieval-Augmented Generation (RAG) pipeline for querying case history and artist information with both SQL and natural language.”article, stated
“The main job of the Large Language Model (LLM) is to translate the natural language question into the right SQL queries”article, stated

Tradeoffs

Model architecture

Chose Separate modular NLP models over One combined system for all legal and music tasks.

Rationale: Separate models allow each feature to be combined freely and evaluated independently while preserving speed and privacy.

“Jordan opted to train separate models for each feature, which can be combined freely by the application.”article, stated
“This keeps the solution extremely modular.”article, stated

LLM role in future RAG

Chose Natural-language-to-SQL translation with a smaller private model over Broad generative reasoning over confidential data.

Rationale: The LLM job is tightly scoped so it can run privately and support controlled querying of case history and artist information.

“The main job of the Large Language Model (LLM) is to translate the natural language question into the right SQL queries”article, stated
“a clearly defined task that allows utilizing a smaller model that ideally runs privately on-premise”article, stated

Annotation workflow

Chose Model-in-the-loop correction over Static one-time annotation.

Rationale: New client requests and catalog additions require a repeatable path for adding edge cases and refreshing models.

“If there are new client requests or additions to the music catalog, I can simply spin up Prodigy, create a new dataset with more examples and edge cases, and update the model.”article, stated

Gotchas (what bit them)

Music metadata errors directly misroute royalties.

Root cause: There is no standard format for featured artists, live versions, remixes, or even title formatting across tools.

Resolution: Normalize song, artist, and modifier fields with a dedicated NLP metadata pipeline and hierarchical IDs.

“There’s no standard for how featured artists, live versions or remixes are noted in the track information.”article, stated
“Incorrect metadata can lead to songs and even whole albums being attributed incorrectly on streaming platforms like Spotify”article, stated

Legal emails contain important content buried in boilerplate.

Root cause: Negotiation emails are sandwiched between multiple disclaimer blocks and mixed with newsletters or meeting invitations.

Resolution: First detect message body boundaries, then classify substantive correspondence and extract structured fields.

“the crucial parts are often found in emails, sandwiched between multiple disclaimer blocks.”article, stated
“the correspondence classifier distinguishes substantive business communications from non-essential emails like newsletters and meeting invitations”article, stated

Initial label schemes are often under-specified.

Root cause: The domain expert discovers ambiguous definitions only after interacting with real examples.

Resolution: Use Prodigy to iterate on schemas, definitions, and corrected examples before retraining.

“You often don’t know whether something works until you try it.”article, stated
“as soon as I engage with the data, I find that I haven’t defined what I’m looking for clearly enough”article, stated

Evaluation

Each NLP component is evaluated separately with published accuracy and speed metrics; Prodigy supports iterative correction, and Modal supports training and batch processing.

Metrics: NER F-score · text classification AUC · words per second · component-level accuracy · legal research time reduction

“each component can be developed, improved and evaluated separately”article, stated

ner

1

0.98"

“This allows law firms to expedite their legal operation at scale and has reduced research time by nearly 50%.”article, stated

Outcomes

The system operates across a two-billion-row metadata database, millions of tracks, thousands of daily emails, and highly confidential legal/financial data.

3 supporting quotes
“helped publishers recover hundreds of millions of dollars in lost revenue for artists”article, stated
“This allows law firms to expedite their legal operation at scale and has reduced research time by nearly 50%.”article, stated
“The pipelines also need to operate fast to be able to process emails and attachments in real time, and handle music catalogs with millions of tracks and their metadata.”article, stated