# Audio-LLM-benchmarking-uncertainty
# π€ Official Implementation of **Interspeech 2025** Paper
π **Benchmarking and Confidence Evaluation of LALMs For Temporal Reasoning**
π [Read the Paper on arXiv](https://arxiv.org/pdf/2505.13115)
π [Poster](https://github.com/iiscleap/Audio-LLM-benchmarking-uncertainty/blob/main/poster/poster_Interspeech2025.pdf)
---
## π Overview
This repository accompanies our **Interspeech 2025** paper, introducing the **Temporal Reasoning Evaluation of Audio (TREA)** dataset.
β¨ **Key Highlights:**
- π§© **TREA Dataset** with 3 components:
- π **TREA-O** β *Ordering* questions (200 Qs)
- β³ **TREA-D** β *Duration* reasoning (200 Qs)
- π’ **TREA-C** β *Counting* tasks (200 Qs)
- π€ Benchmarks on multiple **audio-LLMs**.
- π― **Uncertainty & Calibration** evaluations via input perturbations.
- π Comparative insights with existing temporal/audio reasoning datasets.
---
## π Dataset Glimpse & Comparisons
Hereβs a preview of TREA along with comparisons to related benchmarks:
---
## π TREA Dataset
The **TREA dataset** is organized into three task-specific folders:
- π **order** (TREA-O)
- π’ **count** (TREA-C)
- β³ **duration** (TREA-D)
Each folder contains:
- π΅ **audios/** β audio files for question answering
- π **[taskname].csv** β contains audio file details, questions, multiple-choice options, and ground-truth answers
- π **[taskname]_metadata.csv** β metadata associated with the respective task.
---
## π Directory Structure
The TREA dataset in MCQ setting:
```text
TREA_dataset/
βββ order/
β βββ audios/ β audio clips for ordering questions
β βββ order.csv β Q/A entries (MCQs) with correct answer
β βββ order_metadata.csv β metadata for the ordering task
β
βββ count/
β βββ audios/ β audio clips for counting questions
β βββ count.csv β Q/A entries (MCQs) with correct answer
β βββ count_metadata.csv β metadata for the counting task
β
βββ duration/
βββ audios/ β audio clips for duration reasoning
βββ duration.csv β Q/A entries (MCQs) with correct answer
βββ duration_metadata.csv β metadata for the duration task
```
The TREA dataset in short answer in open-ended text setting:
```text
TREA_dataset_open_text/
βββ order/
β βββ audios/ β audio clips for ordering questions
β βββorder_nl.csv β open-text correct answer
β
βββ count/
β βββ audios/ β audio clips for counting questions
β βββ count_nl.csv β open-text correct answer
β
βββ duration/
βββ audios/ β audio clips for duration reasoning
βββ duration_nl.csv β open-text correct answer
```
---
## 1. Benchmarking
### 1.1 Qwen2-Audio
Download model and dependencies: [https://huggingface.co/Qwen/Qwen2-Audio-7B-Instruct](https://huggingface.co/Qwen/Qwen2-Audio-7B-Instruct)
Run benchmarking:
```bash
python qwen_benchmarking.py \
--method vanilla \
--task count \
--csv_path TREA_dataset/count/count.csv
```
* `method`: `vanilla`, `cot`, `exp`, or `audio_desc`
* `task`: `count`, `duration`, or `order`
Each line of the output txt file contains