Melody or Machine: Detecting Synthetic Music with Dual-Stream Contrastive Learning

Arnesh Batra, Dev Sharma, Krish Thukral, Ruhani Bhatia, Naman Batra +1 more
11/29/2025
cs.SDcs.AIcs.CL

No official code found. Best implementation: StarkVision-AI/MoM-CLAM (3 stars, last commit 2026-05-01).

Abstract

The rapid evolution of end-to-end AI music generation poses an escalating threat to artistic authenticity and copyright, demanding detection methods that can keep pace. While foundational, existing models like SpecTTTra falter when faced with the diverse and rapidly advancing ecosystem of new generators, exhibiting significant performance drops on out-of-distribution (OOD) content. This generalization failure highlights a critical gap: the need for more challenging benchmarks and more robust detection architectures. To address this, we first introduce Melody or Machine (MoM), a new large-scale benchmark of over 130,000 songs (6,665 hours). MoM is the most diverse dataset to date, built with a mix of open and closed-source models and a curated OOD test set designed specifically to foster the development of truly generalizable detectors. Alongside this benchmark, we introduce CLAM, a novel dual-stream detection architecture. We hypothesize that subtle, machine-induced inconsistencies between vocal and instrumental elements, often imperceptible in a mixed signal, offer a powerful tell-tale sign of synthesis. CLAM is designed to test this hypothesis by employing two distinct pre-trained audio encoders (MERT and Wave2Vec2) to create parallel representations of the audio. These representations are fused by a learnable cross-aggregation module that models their inter-dependencies. The model is trained with a dual-loss objective: a standard binary cross-entropy loss for classification, complemented by a contrastive triplet loss which trains the model to distinguish between coherent and artificially mismatched stream pairings, enhancing its sensitivity to synthetic artifacts without presuming a simple feature alignment. CLAM establishes a new state-of-the-art in synthetic music forensics. It achieves an F1 score of 0.925 on our challenging MoM benchmark.

View on arXivView PDF

Code Implementations(1)

Melody or Machine: Detecting Synthetic Music with Dual- Stream Contrastive Learning

30Python, Jupyter NotebookNov 16, 20255 months ago
deep-learningdetection-frameworkmusic-deepfakenips-workshop-2025pytorch-implementation+1 more

Similar Papers

Cite this paper

@article{batra2025melody,
  title  = {Melody or Machine: Detecting Synthetic Music with Dual-Stream Contrastive Learning},
  author = {Arnesh Batra and Dev Sharma and Krish Thukral and Ruhani Bhatia and Naman Batra and Aditya Gautam},
  year   = {2025},
  eprint = {2512.00621},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.00621v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.00621.svg)](https://codeofpaper.com/paper/2512.00621)

Discussion