holvan commited on
Commit
983f484
·
verified ·
1 Parent(s): c6d6379

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +134 -0
README.md CHANGED
@@ -1,3 +1,4 @@
 
1
  license: cc-by-nc-sa-4.0
2
  language:
3
  - en
@@ -40,3 +41,136 @@ configs:
40
  path: metadata/chain/M.jsonl
41
  - split: L
42
  path: metadata/chain/L.jsonl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
  license: cc-by-nc-sa-4.0
3
  language:
4
  - en
 
41
  path: metadata/chain/M.jsonl
42
  - split: L
43
  path: metadata/chain/L.jsonl
44
+
45
+ ---
46
+
47
+ # AudioSpan: Spanning the Duration and Depth of Audio Comprehension
48
+
49
+ <p align="center">
50
+ <a href="https://arxiv.org/abs/ARXIV_ID"><img src="https://img.shields.io/badge/Paper-arXiv-b31b1b?style=flat-square&logo=arxiv&logoColor=white" alt="arXiv"></a>
51
+ <a href="https://huggingface.co/datasets/holvan/AudioSpan"><img src="https://img.shields.io/badge/Dataset-AudioSpan-ffd21e?style=flat-square&logo=huggingface&logoColor=000" alt="Hugging Face Dataset"></a>
52
+ <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"><img src="https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-3da639?style=flat-square" alt="License: CC BY-NC-SA 4.0"></a>
53
+ </p>
54
+
55
+
56
+ ## Introduction
57
+
58
+ **AudioSpan** is a benchmark for **long-form audio comprehension**, spanning
59
+ diverse durations and cognitive depths.
60
+
61
+ <p align="center">
62
+ <img src="figs/audio_span.png" alt="AudioSpan overview" width="100%">
63
+ </p>
64
+
65
+
66
+ Questions come from two complementary paths:
67
+
68
+ - **Native QA**: questions drawn from the audio's natural content.
69
+ - **Anchor QA**: questions built around acoustic anchors planted into the
70
+ audio.
71
+
72
+ Each path is scored in its own mode:
73
+
74
+ - **Accuracy**: multiple choice questions on native audio, scored by exact
75
+ match.
76
+ - **Rubric**: open-ended questions on native audio, graded by rubric-based
77
+ LLM judges against criteria.
78
+ - **Chain**: multiple-choice question chains on anchor audio; an answer is
79
+ credited only up to the first error in the chain.
80
+
81
+ ## Quick Start
82
+
83
+ Download the release (~18 GB) and work from its root:
84
+
85
+ ```bash
86
+ pip install -U huggingface_hub
87
+ hf download holvan/AudioSpan --repo-type dataset --local-dir AudioSpan
88
+ cd AudioSpan
89
+ ```
90
+
91
+ ### 1. Prepare Audio Data
92
+
93
+ Native recordings and sound events ship as tar archives
94
+ (`audio/audio_native.part*.tar`, `audio/audio_events.tar`; the native parts
95
+ are concatenated automatically). From the release root (the directory with
96
+ `prepare/` and `audio/`), verify them against `audio/CHECKSUMS.sha256` and
97
+ unpack into `audio/`:
98
+
99
+ ```bash
100
+ # accuracy / rubric: native recordings only
101
+ python prepare/unpack_audio.py --buckets native
102
+ # -> audio/native/*.flac
103
+
104
+ # chain: also rebuild the anchor audio from the native recordings and the
105
+ # exact edit recipes in metadata/media/anchor/anchor_manifest.jsonl
106
+ # (needs only ffmpeg)
107
+ python prepare/unpack_audio.py --buckets native,events
108
+ python prepare/prepare_anchor.py
109
+ # -> audio/anchor/*.flac
110
+ ```
111
+
112
+ (`unpack_audio.py` resolves the release root from its own location; pass
113
+ `--root` if you run it from elsewhere.)
114
+
115
+ ### 2. Prepare Inference Results
116
+
117
+ The questions live in `metadata/{accuracy,rubric,chain}/{S,M,L}.jsonl`; each
118
+ record carries the question, its `audio_path`, and (for multiple choice) the
119
+ four options. Run your model over each record and write one answer per
120
+ question — only `qa_id` and the model's output; ground truth stays in the
121
+ metadata and is joined in by the scorer:
122
+
123
+ **accuracy / chain** (multiple choice):
124
+
125
+ ```json
126
+ {"qa_id": "S_EN_001_P", "answer": "D"}
127
+ ```
128
+
129
+ **rubric** (open-ended):
130
+
131
+ ```json
132
+ {"qa_id": "S_EN_001_P", "answer": "The narrator first says HDR at about 06:04 ..."}
133
+ ```
134
+
135
+ - `answer` — the model's raw output; for multiple choice the scorer
136
+ extracts the option letter (A/B/C/D) from it.
137
+ - Questions missing from your file count as wrong (or score zero).
138
+
139
+ ### 3. Run Evaluation
140
+
141
+ ```bash
142
+ # accuracy + chain: stdlib-only, no dependencies
143
+ python evaluate/score.py --mode accuracy --input your_accuracy.jsonl
144
+ python evaluate/score.py --mode chain --input your_chain.jsonl
145
+
146
+ # rubric: needs an LLM judge (default: gpt-5.4-2026-03-05; API key from the
147
+ # matching provider env var, e.g. OPENAI_API_KEY; or pass --api-base/--api-key)
148
+ pip install openai tenacity
149
+ export OPENAI_API_KEY="your-api-key-here"
150
+ python evaluate/score_rubric.py --input your_rubric.jsonl
151
+ ```
152
+
153
+ Both scorers join your answers against the ground truth in `metadata/` by
154
+ `qa_id` — no reference answers needed in your submission.
155
+
156
+ ## License and Data Use
157
+
158
+ AudioSpan is released for **non-commercial research and evaluation**. Our
159
+ artifacts (QA items, rubric criteria, anchor manifests, sound events, and
160
+ evaluation scripts) are under CC BY-NC-SA 4.0; copyright of the source
161
+ recordings remains with their original creators. The recordings are
162
+ included only for evaluation, and downloading the dataset constitutes
163
+ agreement not to redistribute the audio or use it in commercial products.
164
+
165
+ ## Citation
166
+
167
+ If you find AudioSpan useful for your research, please consider citing:
168
+
169
+ ```bibtex
170
+ @article{huang2026audiospan,
171
+ title = {AudioSpan: Spanning the Duration and Depth of Audio Comprehension},
172
+ author = {Huang, Wen and Chu, Yunfei and Gao, Meng and He, Haolin and Xu, Jin},
173
+ journal = {arXiv preprint arXiv:ARXIV_ID},
174
+ year = {2026}
175
+ }
176
+ ```