Introduction
SoundLoCD is a novel framework for text-to-sound (T2S) generation designed to make high-quality audio synthesis accessible on consumer-grade hardware. While existing state-of-the-art models deliver impressive results, they typically demand industrial-scale computational resources, limiting their use to well-funded research labs. SoundLoCD addresses this by integrating Low-Rank Adaptation (LoRA) and a contrastive learning strategy within a discrete latent diffusion model. This approach reduces trainable parameters from 434 million to just 2.38 million, enabling state-of-the-art performance on hardware as accessible as two RTX 3090 GPUs.
The Challenges of Text-to-Sound Generation
Generating realistic sound effects from textual prompts—such as "a dog barking while a baby cries"—presents two primary hurdles for current models:
- Computational Prohibitivity: Leading models like DiffSound or AudioLDM often require massive clusters (e.g., 16x Nvidia V100 GPUs) for training. This high barrier to entry stifles innovation among independent researchers and creators.
- Weak Text-Audio Alignment: Standard diffusion models frequently struggle with "conditional priors" that fail to maintain a strong semantic link between the text prompt and the generated audio. This often results in high-quality sounds that do not accurately reflect the user's request.
SoundLoCD is engineered to overcome these obstacles by optimizing training efficiency and strengthening the "bond" between the text and the generated audio.
Methodology
SoundLoCD builds upon the DiffSound architecture, introducing key modifications to enhance both efficiency and alignment.
Low-Rank Adaptation (LoRA)
Rather than retraining the entire 434M parameter Transformer model, SoundLoCD employs LoRA. The original model weights are frozen, and small, trainable "rank-decomposition" matrices are injected. This reduces the parameter update requirement by over 99%, allowing for effective fine-tuning on consumer hardware without sacrificing model capacity.
Conditional Discrete Contrastive Diffusion (CDCD)
To improve how well the sound matches the text, the authors implement a contrastive learning strategy. During training, the model evaluates both positive (correct text-audio) and negative (mismatched) pairs. By minimizing a contrastive loss, the model learns to cluster related representations more closely in the latent space, explicitly penalizing "drifts" that occur during the denoising process.
Discrete Latent Space
SoundLoCD operates within a discrete space defined by a Vector Quantized Variational Autoencoder (VQ-VAE). The authors posit that mapping discrete linguistic tokens to a discrete representation of sound is more natural and effective than working directly with continuous waveforms.
Experimental Setup and Results
The model was evaluated on two major benchmarks: AudioCaps, the largest public T2S dataset, and ESC50, a collection of environmental recordings. During testing, various text encoders were compared, including T5-S, CLAP, and CLIP. Interestingly, CLIP—originally a vision-language model—outperformed audio-specific encoders, likely due to its training on discrete image levels aligning well with the model's discrete latent space.
As shown in the results table, SoundLoCD + CLIP achieves a state-of-the-art FID of 12.27 on AudioCaps, outperforming the original DiffSound (13.47). Furthermore, the Inception Score (ISc) improved to 17.36, indicating higher clarity and variety in the generated sounds. Most notably, these results were achieved with a 99.4% reduction in trainable parameters and on significantly less powerful hardware.
Conclusion
SoundLoCD proves that massive computational power is not a prerequisite for high-fidelity text-to-sound generation. By leveraging LoRA and contrastive constraints, the model achieves superior text-audio alignment and audio quality while remaining accessible to a broader range of researchers. Future work may explore scaling these efficiency gains to even larger models and investigating the impact of different foundational VQ-VAE architectures.
Summary updated