xid32/SoundMind
关于
我们推出音频逻辑推理(Audio Logical Reasoning,ALR)数据集。该数据集由 6,446 个带有文本和音频标注的样本组成,专为复杂推理任务设计。在此资源基础上,我们提出 SoundMind:一种基于规则的强化学习(RL)算法,旨在赋予音频语言模型(ALM)深层的双模态推理能力。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文SoundMind: RL-Incentivized Logic Reasoning for Audio-Language Models [EMNLP 2025 Main Conference (Oral)]
This repository is the official implementation of SoundMind: RL-Incentivized Logic Reasoning for Audio-Language Models (EMNLP 2025). We introduce SoundMind-RL, a novel rule-based reinforcement learning framework that empowers large-scale audio-language models with advanced logical reasoning capabilities across both audio and textual modalities. To enable such training, we build the SoundMind dataset, an Audio Logical Reasoning (ALR) benchmark comprising 6,446 high-quality samples annotated with chain-of-thought reasoning in both audio and text forms.
Dataset Download
To download our dataset, please visit this link: Hugging Face.
Alternatively, you can also download it from Dropbox.
Run the following command:
wget -c "https://www.dropbox.com/scl/fi/irtbrnmk5e0ecvv8fyrum/audio_dataset.zip?rlkey=p1ebkt9h1bkyjsq3fo2bp667v&st=gxr542e2&dl=1" -O audio_dataset.zip
The dataset contains train, test, and validation splits with corresponding text descriptions and metadata stored as JSON files. All annotation files are located in the dataset-annotation-json folder in this GitHub.
Requirements
Recommended Hardware
8× NVIDIA H800 80GB or 8× NVIDIA H100 80GB GPUs.
Codebase and Compatibility
Our codebase is based on verl. If you are already familiar with verl, you should be able to quickly get started with this repository.
Environment Setup (Recommended: Anaconda)
- Python: Version >= 3.9
- CUDA: Version >= 12.1
For training and inference engines to utilize better and faster hardware support, CUDA/cuDNN and other dependencies are required, and some of the dependencies are easy to be overridden when installing other packages.
We need to install the following prerequisites:
- CUDA: Version >= 12.4
- cuDNN: Version >= 9.8.0
# change directory to anywhere you like, in verl source code directory is not recommended
wget https://developer.download.nvidia.com/compute/cudnn/9.8.0/local_installers/cudnn-local-repo-ubuntu2204-9.8.0_1.0-1_amd64.deb
dpkg -i cudnn-local-repo-ubuntu2204-9.8.0_1.0-1_amd64.deb
cp /var/cudnn-local-repo-ubuntu2204-9.8.0/cudnn-*-keyring.gpg /usr/share/keyrings/
apt-get update
apt-get -y install cudnn-cuda-12
Create and activate a new conda environment:
conda create -n alr python==3.10
conda activate alr
Install verl:
bash scripts/install_vllm_sglang_mcore.sh
pip install --no-deps -e .
Please make sure that the installed packages are not overridden during the installation of other packages.
The packages worth checking are:
- torch and torch series
- vLLM
- SGLang
- pyarrow
- tensordict
For Qwen2.5-Omni, we need to update some additional library versions.
pip install transformers==4.52.3
pip install accelerate
pip install qwen-omni-utils[decord] -U
Preprocessing Data
Our project and code rely on Audio Logical Reasoning (ALR) dataset.
Generate Parquet Format Dataset
- Option 1: Two modal inputs are used
cd ./examples/data_preprocess
python alr.py
- Option 2: Only texts are used
cd ./examples/data_preprocess
python alr_text.py
- Option 3: Only audio is used
cd ./examples/data_preprocess
python alr_audio.py
Checkpoint Download
To download our model checkpoint, please visit this link: Checkpoint Link
Run the following command:
wget -c "https://www.dropbox.com/scl/fi/f24wyecnycfu6g6ip10ac/qwen2_5_omni_logic.zip?rlkey=xlixctyr8cbfpv85arhka0b8c&st=wd5rlh9b&dl=1" -O qwen2_5_omni_logic.zip
RL-Training & Evaluation
If you don't want to use the pre-trained model we provided, you can use the official version. You can change the model path implementation in download_qwen25omni.py and main_grpo.sh.
Run the following command:
python download_qwen25omni.py
bash main_grpo.sh
✏️ Citation
If you think this project is helpful, please feel free to leave a star⭐️ and cite our paper:
@article{diao2025soundmind,
title={SoundMind: RL-Incentivized Logic Reasoning for Audio-Language Models},
author={Diao, Xingjian and Zhang, Chunhui and Kong, Keyi and Wu, Weiyi and Ma, Chiyu and Ouyang, Zhongyu and Qing, Peijun and Vosoughi, Soroush and Gui, Jiang},
journal={arXiv preprint arXiv:2506.12935},
year={2025}
}
探索相关项目
加载中…