Keep what you need : extracting efficient subnetworks from large audio representation models

David Genova, Philippe Esling, Tom Hurlin
2/18/2025
2 citations
cs.SDcs.AI

Official code: gnvIRCAM/Audio-representation-trimming (5 stars, Python, last commit 2025-02-25).

Abstract

Recently, research on audio foundation models has witnessed notable advances, as illustrated by the ever improving results on complex downstream tasks. Subsequently, those pretrained networks have quickly been used for various audio applications.

Show full abstract

These improvements have however resulted in a considerable increase both in size and complexity of these models. Along the environmental concerns this issue raises, this prevents the deployment of such networks on consumer-level devices, and precludes their use for real-time applications. Moreover, this appears contradictory with the specificity of the tasks for which these models are used, which are often simpler compared to extracting a rich, multi-purpose representation from any type of audio data. In this paper, we address this issue with a simple, yet effective method to extract lightweight specialist subnetworks from large foundation models. Specifically, we introduce learnable binary masks in-between the layers of a pretrained representation model. When training the end-to-end model on a downstream task, we add a sparsity-inducing loss to the overall objective, hence learning a compact subnetwork specialized on a single task. Importantly, the weights of the foundation model are kept frozen, resulting into low additional training costs. Once trained, the masked computational units can then be removed from the network, implying significant performance gains. We assess our method on three widespread audio foundation models, each based on a different backbone architecture, and illustrate its effectiveness on common audio representation evaluation tasks, as well as its versatility on both speech, music, and general audio. Code for reproducing the results and supporting webpage are available at https://github.com/gnvIRCAM/Audio-representation-trimming

View on arXivView PDF

Code Implementations(1)

Source code and complementary material for "Keep what you need : extracting efficient subnetworks from large audio representation models".

51Python, Jupyter NotebookAug 28, 20241 years ago

Similar Papers

Cite this paper

@article{genova2025keep,
  title  = {Keep what you need : extracting efficient subnetworks from large audio representation models},
  author = {David Genova and Philippe Esling and Tom Hurlin},
  year   = {2025},
  eprint = {2502.12925},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12925v1}
}

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/2502.12925.svg)](https://codeofpaper.com/paper/2502.12925)

Discussion