CoolFace
Modelpublic

awsaf49/sonics-spectttra-beta-5s

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes2kdownloads
Model Card

<div style="text-align: center; color: white; padding: 20px;"> <div align="center"><img src="https://i.postimg.cc/3Jx3yZ5b/real-vs-fake-sonics-w-logo.jpg" width="250" alt="SONICS Logo"></div> <h1>SONICS: Synthetic Or Not - Identifying Counterfeit Songs</h1> <h3 style="color:red;"><b>ICLR 2025 [Poster]</b></h3> <div style="display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0;"> <a href="https://arxiv.org/abs/2408.14080" style="text-decoration: none;"> <img src="https://img.shields.io/badge/ArXiv-Paper-red" alt="Paper"> </a> <a href="https://huggingface.co/collections/awsaf49/sonics-spectttra-67bb6517b3920fd18e409013" style="text-decoration: none;"> <img src="https://img.shields.io/badge/HuggingFace-Model-yellow" alt="Hugging Face"> </a> <a href="https://huggingface.co/datasets/awsaf49/sonics" style="text-decoration: none;"> <img src="https://img.shields.io/badge/HuggingFace-Dataset-orange" alt="Hugging Face Dataset"> </a> <a href="https://www.kaggle.com/datasets/awsaf49/sonics-dataset" style="text-decoration: none;"> <img src="https://img.shields.io/badge/Kaggle-Dataset-blue?logo=kaggle" alt="Kaggle Dataset"> </a> <a href="https://huggingface.co/spaces/awsaf49/sonics-fake-song-detection" style="text-decoration: none;"> <img src="https://img.shields.io/badge/HuggingFace-Demo-blue" alt="Hugging Face Demo"> </a> </div> </div>


๐Ÿ“Œ Abstract

The recent surge in AI-generated songs presents exciting possibilities and challenges. These innovations necessitate the ability to distinguish between human-composed and synthetic songs to safeguard artistic integrity and protect human musical artistry. Existing research and datasets in fake song detection only focus on singing voice deepfake detection (SVDD), where the vocals are AI-generated but the instrumental music is sourced from real songs. However, these approaches are inadequate for detecting contemporary end-to-end artificial songs where all components (vocals, music, lyrics, and style) could be AI-generated. Additionally, existing datasets lack music-lyrics diversity, long-duration songs, and open-access fake songs. To address these gaps, we introduce SONICS, a novel dataset for end-to-end Synthetic Song Detection (SSD), comprising over 97k songs (4,751 hours) with over 49k synthetic songs from popular platforms like Suno and Udio. Furthermore, we highlight the importance of modeling long-range temporal dependencies in songs for effective authenticity detection, an aspect entirely overlooked in existing methods. To utilize long-range patterns, we introduce SpecTTTra, a novel architecture that significantly improves time and memory efficiency over conventional CNN and Transformer-based models. For long songs, our top-performing variant outperforms ViT by 8% in F1 score, is 38% faster, and uses 26% less memory, while also surpassing ConvNeXt with a 1% F1 score gain, 20% speed boost, and 67% memory reduction.

๐Ÿ”— Links

๐Ÿ† Model Performance

<style> .hf-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 14px; font-weight: bold; color: white; border-radius: 6px; text-decoration: none; } .hf-button img { height: 18px; } </style>

Model NameHF LinkVariantDurationf_clipt_clipF1SensitivitySpecificitySpeed (A/S)FLOPs (G)Mem. (GB)# Act. (M)# Param. (M)
sonics-spectttra-alpha-5s<a class="hf-button" href="https://huggingface.co/awsaf49/sonics-spectttra-alpha-5s"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg">HF</a>SpecTTTra-ฮฑ5s130.780.690.941482.90.5617
sonics-spectttra-beta-5s<a class="hf-button" href="https://huggingface.co/awsaf49/sonics-spectttra-beta-5s"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg">HF</a>SpecTTTra-ฮฒ5s350.780.690.941521.10.2517
sonics-spectttra-gamma-5s<a class="hf-button" href="https://huggingface.co/awsaf49/sonics-spectttra-gamma-5s"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg">HF</a>SpecTTTra-ฮณ5s570.760.660.921540.70.1217
sonics-spectttra-alpha-120s<a class="hf-button" href="https://huggingface.co/awsaf49/sonics-spectttra-alpha-120s"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg">HF</a>SpecTTTra-ฮฑ120s130.970.960.994723.73.95019
sonics-spectttra-beta-120s<a class="hf-button" href="https://huggingface.co/awsaf49/sonics-spectttra-beta-120s"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg">HF</a>SpecTTTra-ฮฒ120s350.920.860.998014.02.32921
sonics-spectttra-gamma-120s<a class="hf-button" href="https://huggingface.co/awsaf49/sonics-spectttra-gamma-120s"><img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg">HF</a>SpecTTTra-ฮณ120s570.880.790.999710.11.62024

๐Ÿ“ Model Architecture

  • โ€”Base Model: SpectTTTra (Spectro-Temporal Tokens Transformer)
  • โ€”Embedding Dimension: 384
  • โ€”Number of Heads: 6
  • โ€”Number of Layers: 12
  • โ€”MLP Ratio: 2.67

๐ŸŽถ Audio Processing

  • โ€”Sample Rate: 16kHz
  • โ€”FFT Size: 2048
  • โ€”Hop Length: 512
  • โ€”Mel Bands: 128
  • โ€”Frequency Range: 20Hz - 8kHz
  • โ€”Normalization: Mean-std normalization

โ™ป๏ธ Usage

python
# Install from GitHub
!pip install git+https://github.com/awsaf49/sonics.git

# Load model
from sonics import HFAudioClassifier
model = HFAudioClassifier.from_pretrained("awsaf49/sonics-spectttra-beta-5s")

๐Ÿ“ Citation

bibtex
@inproceedings{rahman2024sonics,
        title={SONICS: Synthetic Or Not - Identifying Counterfeit Songs},
        author={Rahman, Md Awsafur and Hakim, Zaber Ibn Abdul and Sarker, Najibul Haque and Paul, Bishmoy and Fattah, Shaikh Anowarul},
        booktitle={International Conference on Learning Representations (ICLR)},
        year={2025},
      }