Datasets:
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -58
- README.md +115 -0
- audio/age_prediction__150.wav +3 -0
- audio/age_prediction__151.wav +3 -0
- audio/age_prediction__171.wav +3 -0
- audio/age_prediction__172.wav +3 -0
- audio/age_prediction__199.wav +3 -0
- audio/emotion_recognition__102.wav +3 -0
- audio/emotion_recognition__132.wav +3 -0
- audio/emotion_recognition__170.wav +3 -0
- audio/emotion_recognition__40.wav +3 -0
- audio/emotion_recognition__85.wav +3 -0
- audio/emotion_recognition__92.wav +3 -0
- audio/gender_prediction__103.wav +3 -0
- audio/gender_prediction__104.wav +3 -0
- audio/gender_prediction__151.wav +3 -0
- audio/gender_prediction__184.wav +3 -0
- audio/gender_prediction__31.wav +3 -0
- audio/intonation_perception__117.wav +3 -0
- audio/intonation_perception__157.wav +3 -0
- audio/intonation_perception__34.wav +3 -0
- audio/intonation_perception__36.wav +3 -0
- audio/intonation_perception__45.wav +3 -0
- audio/intonation_perception__77.wav +3 -0
- audio/intonation_perception__97.wav +3 -0
- audio/pitch_comparison__11.wav +3 -0
- audio/pitch_comparison__165.wav +3 -0
- audio/pitch_comparison__172.wav +3 -0
- audio/pitch_comparison__24.wav +3 -0
- audio/pitch_comparison__52.wav +3 -0
- audio/speaker_identity_recognition__145.wav +3 -0
- audio/speaker_identity_recognition__32.wav +3 -0
- audio/speaker_identity_recognition__7.wav +3 -0
- audio/speaker_identity_recognition__85.wav +3 -0
- audio/speed_comparison__129.wav +3 -0
- audio/speed_comparison__189.wav +3 -0
- audio/total_speaker_counting__101.wav +3 -0
- audio/total_speaker_counting__134.wav +3 -0
- audio/total_speaker_counting__157.wav +3 -0
- audio/total_speaker_counting__196.wav +3 -0
- audio/vocal_range_comparison__38.wav +3 -0
- audio/vocal_range_comparison__59.wav +3 -0
- audio/volume_comparison__119.wav +3 -0
- audio/volume_comparison__156.wav +3 -0
- audio/volume_comparison__29.wav +3 -0
- audio/volume_comparison__66.wav +3 -0
- audio/volume_comparison__79.wav +3 -0
- eval.py +244 -0
- metadata.jsonl +0 -0
- voxparadox.json +0 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,3 @@
|
|
| 1 |
-
*.
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
# Audio files - uncompressed
|
| 40 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
-
# Audio files - compressed
|
| 44 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
# Video files - compressed
|
| 59 |
-
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: VoxParadox
|
| 6 |
+
task_categories:
|
| 7 |
+
- audio-classification
|
| 8 |
+
- question-answering
|
| 9 |
+
tags:
|
| 10 |
+
- audio
|
| 11 |
+
- speech
|
| 12 |
+
- paralinguistic
|
| 13 |
+
- benchmark
|
| 14 |
+
- adversarial
|
| 15 |
+
- audio-llm
|
| 16 |
+
size_categories:
|
| 17 |
+
- 1K<n<10K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: test
|
| 22 |
+
path: metadata.jsonl
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# VoxParadox
|
| 26 |
+
|
| 27 |
+
An adversarial speech QA benchmark for **paralinguistic understanding** in
|
| 28 |
+
Audio LLMs. Each example is built around a controlled linguistic–acoustic
|
| 29 |
+
contradiction: the transcript explicitly asserts an incorrect paralinguistic
|
| 30 |
+
attribute, while the audio reliably conveys the correct one. Models that
|
| 31 |
+
defer to transcript content are misled; models that listen are not.
|
| 32 |
+
|
| 33 |
+
**2,000 MCQs** across **10 paralinguistic tasks** (200 each).
|
| 34 |
+
|
| 35 |
+
## Quick start
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from datasets import load_dataset
|
| 39 |
+
ds = load_dataset("IHP-Lab/VoxParadox", split="test")
|
| 40 |
+
print(ds[0]) # includes `audio` (decoded), `question`, `choice_a..d`,
|
| 41 |
+
# `answer_gt`, `adversarial_labels`, `task_name`, `id`
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Tasks
|
| 45 |
+
|
| 46 |
+
`y_true` (audio) and `y_adv` (transcript) are disjoint by construction.
|
| 47 |
+
|
| 48 |
+
| Task (`task_name`) | Acoustic attribute the model must recover |
|
| 49 |
+
|---|---|
|
| 50 |
+
| `age_prediction` | Speaker's age group |
|
| 51 |
+
| `gender_prediction` | Speaker's gender |
|
| 52 |
+
| `emotion_recognition` | Emotion conveyed by delivery (high-contrast pairs) |
|
| 53 |
+
| `intonation_perception` | Rising vs. falling intonation |
|
| 54 |
+
| `speaker_identity_recognition` | Which segment shares a speaker with a queried segment |
|
| 55 |
+
| `total_speaker_counting` | Number of distinct speakers |
|
| 56 |
+
| `pitch_comparison` | Ordering of three segments by pitch |
|
| 57 |
+
| `volume_comparison` | Ordering of three segments by loudness |
|
| 58 |
+
| `speed_comparison` | Ordering of three segments by speaking rate |
|
| 59 |
+
| `vocal_range_comparison` | Ordering of three segments by pitch range |
|
| 60 |
+
|
| 61 |
+
## File layout
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
VoxParadox_public_release/
|
| 65 |
+
├── metadata.jsonl # one record per example (loaded by `datasets`)
|
| 66 |
+
├── voxparadox.json # same content as JSON array (for direct inspection)
|
| 67 |
+
├── audio/ # 2,000 wav files
|
| 68 |
+
└── eval.py # evaluation script (GT accuracy + ALA)
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## Record schema
|
| 72 |
+
|
| 73 |
+
| Field | Type | Description |
|
| 74 |
+
|---|---|---|
|
| 75 |
+
| `id` | string | `{task_name}__{N}`, with `N` running 0–199 within each task. |
|
| 76 |
+
| `task_name` | string | One of the 10 tasks above. |
|
| 77 |
+
| `file_name` / `audio_path` | string | Path to the audio clip, relative to this directory. |
|
| 78 |
+
| `question` | string | The MCQ question prompt. |
|
| 79 |
+
| `choice_a` / `choice_b` / `choice_c` / `choice_d` | string | The four answer options. |
|
| 80 |
+
| `answer_gt` | string | The acoustic ground-truth `y_true` (one of the four choices). |
|
| 81 |
+
| `adversarial_labels` | list[string] | The transcript-implied label(s) `y_adv`. Single-element for most tasks; 2 elements for the four `*_comparison` tasks. |
|
| 82 |
+
|
| 83 |
+
## Evaluation
|
| 84 |
+
|
| 85 |
+
Two complementary metrics:
|
| 86 |
+
|
| 87 |
+
* **GT Accuracy** — fraction matching `answer_gt`. Higher is better; reflects use of acoustic evidence.
|
| 88 |
+
* **Adversarial-Label Agreement (ALA)** — fraction matching any string in `adversarial_labels`. Higher ALA means more transcript-following.
|
| 89 |
+
|
| 90 |
+
Run `eval.py` on a JSONL of model predictions (one record per line, fields `id` and `response`):
|
| 91 |
+
|
| 92 |
+
```bash
|
| 93 |
+
python eval.py --predictions preds.jsonl
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
Example prediction record:
|
| 97 |
+
```json
|
| 98 |
+
{"id": "age_prediction__0", "response": "(C) Elderly adult."}
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
The script parses A/B/C/D from the response (letter-first, then choice-text
|
| 102 |
+
fallback), prints per-task and overall GT/ALA, and optionally writes a JSON
|
| 103 |
+
report with `--report report.json`.
|
| 104 |
+
|
| 105 |
+
## License
|
| 106 |
+
|
| 107 |
+
Released under **CC BY-NC 4.0**. Audio was synthesized via commercial TTS
|
| 108 |
+
engines (ElevenLabs, GPT-4o, Microsoft Azure); commercial reuse of the audio
|
| 109 |
+
is subject to those vendors' terms of service.
|
| 110 |
+
|
| 111 |
+
## Citation
|
| 112 |
+
|
| 113 |
+
> *Do Audio LLMs Listen or Read? Analyzing and Mitigating Paralinguistic Failures with VoxParadox.*
|
| 114 |
+
|
| 115 |
+
(BibTeX to be added upon publication.)
|
audio/age_prediction__150.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4dfd5a72a9c4bbcdd6dde6da5147592632a179aa2631e8858f66355195334d73
|
| 3 |
+
size 102584
|
audio/age_prediction__151.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70ff8b988872e1b1c77c2615a6b3f9be607144d16f552a150767a4181f0778b0
|
| 3 |
+
size 160540
|
audio/age_prediction__171.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3dcc30ba4eb5358b38ad387f0c1778f1b9e1a5502de126b459a262f624fe515
|
| 3 |
+
size 83264
|
audio/age_prediction__172.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0f33bf45677a19975782ed1182853f710f019591e5a0f2f9bb409e2458499b0
|
| 3 |
+
size 104070
|
audio/age_prediction__199.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34c97941c569a4907496668435e84dfe144d9b12b355c9bcc5c20996c06ee985
|
| 3 |
+
size 144194
|
audio/emotion_recognition__102.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f16de844008ddb481e7b28d59dab2199ed184c35addae86e89ba46be5e6f9e07
|
| 3 |
+
size 171342
|
audio/emotion_recognition__132.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00602d3468447c58af022c16d3fd4360610d0141e9e9b70ec17a60cc087b38b7
|
| 3 |
+
size 126798
|
audio/emotion_recognition__170.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5fb586d71fed9972fb96ab73c84f1f231b99cd5ba71c39e945dbc853bbb6d4a
|
| 3 |
+
size 149070
|
audio/emotion_recognition__40.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5249d22aef0b8011314c5379ac4003f77f187b4c444fac2027e4104406a421ba
|
| 3 |
+
size 215118
|
audio/emotion_recognition__85.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebd1dc5f8eea7ac04f4031e5f4a35250af8860521889862d429c06f9c795b333
|
| 3 |
+
size 134478
|
audio/emotion_recognition__92.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:861fc732378a15710f846886b824e7092eb6abb37d6e1af43fe4f84e563d47c1
|
| 3 |
+
size 178254
|
audio/gender_prediction__103.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4c69249c0590dc14134a510364102eb408aa45af2ab0f528c4c43d01a6a754b
|
| 3 |
+
size 108528
|
audio/gender_prediction__104.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b32603091839c8334dcb58ff1d8f1d414ab1bc86dfe7580e7f14eee1d71d9b0
|
| 3 |
+
size 92182
|
audio/gender_prediction__151.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65f2b0820dc7d51d91a36614354b64a9ff68c9cdc6057fe920fb93bcb9f9cc00
|
| 3 |
+
size 110014
|
audio/gender_prediction__184.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97b31e961171741f157bf76cc6ceea5c526da402a8520a461812d3d16f606608
|
| 3 |
+
size 86236
|
audio/gender_prediction__31.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b92cf7b79dc94e2a91c2e0eb6161a1148e3483437253ee20933ce68a1b347bbb
|
| 3 |
+
size 111500
|
audio/intonation_perception__117.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:985a73dcbae5b6f8462ad467aec1024f819b651465f387736bcdc9fc6255442c
|
| 3 |
+
size 115646
|
audio/intonation_perception__157.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3df54b67deb34bef394dd340e23663b59df606048614a977951447025bb4408
|
| 3 |
+
size 103646
|
audio/intonation_perception__34.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81d94a1f6b64b731848cbe1ee239a471f6b2233c41bdca6b578915ae8f47d21e
|
| 3 |
+
size 138046
|
audio/intonation_perception__36.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:854dfefc9c1881b5918e6c8cee31d5edc017e7f95eab52e9a1c0a8b97de97373
|
| 3 |
+
size 102846
|
audio/intonation_perception__45.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6636bdee7313265e714584c7f916c013a43b2f05b84d1ef959f1f8a33baf3ce0
|
| 3 |
+
size 103246
|
audio/intonation_perception__77.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0489e1a5bd91780f53f5a583a62116afa6f46c7131bfb1b57f8634e7cf3e9c04
|
| 3 |
+
size 88446
|
audio/intonation_perception__97.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4ab9d2795cccc4beebea2f150cbe2ee496b88e6329359ba1af1ad3c164ae213
|
| 3 |
+
size 120046
|
audio/pitch_comparison__11.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78308fe48c9e7b3e7cdd182c86c745c901c7c5d641f0d919a20d50f3aca6bd86
|
| 3 |
+
size 598220
|
audio/pitch_comparison__165.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0d0a2becea8435fb25eb0797fd3288fed7b105c4c355f84ec55118c5ddb9c76
|
| 3 |
+
size 370028
|
audio/pitch_comparison__172.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3ed0b2740ec4dc1ecf63e0fe583c52202729578823abf0e7a28796fa736782b
|
| 3 |
+
size 449804
|
audio/pitch_comparison__24.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cde27cf78c59ae446723ec70a6ae3be7edb6eea3a5f930f1643b271d1d7c00af
|
| 3 |
+
size 490988
|
audio/pitch_comparison__52.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db488e97d2b9271d4e6037a3d7b4842f05f2c6d3d5b665ec0f48c577d284a58f
|
| 3 |
+
size 511820
|
audio/speaker_identity_recognition__145.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57e0218b3ba6d23d807afa0a7968b20f62334289a88b18176d68bfbd7374a761
|
| 3 |
+
size 899060
|
audio/speaker_identity_recognition__32.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad8df9724373d2680ec46154ed3304d8e1e6390f8e490af0029d46753a5cfacb
|
| 3 |
+
size 787316
|
audio/speaker_identity_recognition__7.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa22c4c172883efcbcdbcf82a0511c638b91047d021b3cd974f9d966bd7ee9f9
|
| 3 |
+
size 920948
|
audio/speaker_identity_recognition__85.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bedc399f897d52abd6ce4767231170589f7806e870a1b4accf4f13d2969b086f
|
| 3 |
+
size 941684
|
audio/speed_comparison__129.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa44a703f330bb96517ae52e32cc63b8c31bafc6f706d184182988de38e387c2
|
| 3 |
+
size 279830
|
audio/speed_comparison__189.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39b4fa31e030dd0a19e65c9c3268f1ad634c080b2e027c2bebfd774a9c480c71
|
| 3 |
+
size 352054
|
audio/total_speaker_counting__101.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e35f49f15b938f1fb3e04202b59cf2af96e13b905c57676757fbdd99b536036
|
| 3 |
+
size 421180
|
audio/total_speaker_counting__134.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:089dd7ae7b7ce1bc404fea08995b4aba7ee1b6b91cf2cd60cb01ffe55750312c
|
| 3 |
+
size 414268
|
audio/total_speaker_counting__157.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57069dbf3dbd3333509fb5e90f7de74b791dec19eb19233f9c5ebb75dcddfea7
|
| 3 |
+
size 584764
|
audio/total_speaker_counting__196.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2df538d2f0f9b25d60f362fd3e2fc1b09c341bc59c2b4a236ff8da11fbee12cd
|
| 3 |
+
size 379708
|
audio/vocal_range_comparison__38.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e713ecfd020d2a301c89450e93d75b5d5bf3b3a36af3ba3d7dd853630455f89
|
| 3 |
+
size 663788
|
audio/vocal_range_comparison__59.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00714896a5310edab88188595f96db7d0cae12cf2e8b0f80f3ba8ea94ba57e81
|
| 3 |
+
size 518924
|
audio/volume_comparison__119.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25f35ebad88a8af6ad9d32879ed43cc7b03c4323b9cecc0ac0468eadbc8450d3
|
| 3 |
+
size 397484
|
audio/volume_comparison__156.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01a1b3afe1dd18e88110c4767b7ce506819061ebfcbdf92e5ee2dfcb11c38dd2
|
| 3 |
+
size 338732
|
audio/volume_comparison__29.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98ff1c95ec674c5c5a414c6ebbb3c736731ce5165e9221e0aaa66b3216f7d33f
|
| 3 |
+
size 432044
|
audio/volume_comparison__66.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c7c3f20aff560697c89771ab1cb41b8a512cf4792f7bc197b4f9fba3a0377d0
|
| 3 |
+
size 763820
|
audio/volume_comparison__79.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23a89fbf7cc01535e167f5d094bcc86a0808cd41036fdc048b29de366274f3bb
|
| 3 |
+
size 259244
|
eval.py
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Evaluate model predictions on VoxParadox.
|
| 2 |
+
|
| 3 |
+
Usage:
|
| 4 |
+
python eval.py --predictions <preds.jsonl>
|
| 5 |
+
python eval.py --predictions <preds.jsonl> --dataset voxparadox.json --report report.json
|
| 6 |
+
|
| 7 |
+
Predictions file format (JSONL, one JSON object per line):
|
| 8 |
+
{"id": "age_prediction__0", "response": "Elderly adult"}
|
| 9 |
+
|
| 10 |
+
The `response` field is the raw model output string. The script parses it into
|
| 11 |
+
one of the four MCQ choices (A/B/C/D) using letter-extraction heuristics with a
|
| 12 |
+
choice-text fallback, then scores it against:
|
| 13 |
+
|
| 14 |
+
* GT Accuracy -- match rate against `answer_gt`.
|
| 15 |
+
* Adversarial-Label Agreement (ALA) -- match rate against any string in
|
| 16 |
+
`adversarial_labels` (the transcript-implied labels).
|
| 17 |
+
|
| 18 |
+
Both metrics are reported per task and overall (macro = micro since each task
|
| 19 |
+
has exactly 200 examples).
|
| 20 |
+
"""
|
| 21 |
+
|
| 22 |
+
import argparse
|
| 23 |
+
import json
|
| 24 |
+
import os
|
| 25 |
+
import re
|
| 26 |
+
import unicodedata
|
| 27 |
+
from collections import defaultdict
|
| 28 |
+
|
| 29 |
+
# ---------- Response parsing ----------
|
| 30 |
+
|
| 31 |
+
MAX_TAIL_LINES = 2
|
| 32 |
+
MAX_TAIL_CHARS = 1000
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def _nfkc(s):
|
| 36 |
+
return unicodedata.normalize("NFKC", s or "")
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def _norm(s):
|
| 40 |
+
s = _nfkc(str(s)).casefold().replace("–", "-").replace("—", "-")
|
| 41 |
+
return re.sub(r"\s+", " ", s).strip()
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _tail(text):
|
| 45 |
+
text = _nfkc(text).replace("\r\n", "\n").replace("\r", "\n")
|
| 46 |
+
lines = [ln.strip() for ln in text.split("\n") if ln.strip()]
|
| 47 |
+
out = "\n".join(lines[-MAX_TAIL_LINES:]) if lines else text.strip()
|
| 48 |
+
return out[-MAX_TAIL_CHARS:] if len(out) > MAX_TAIL_CHARS else out
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def get_choices(item):
|
| 52 |
+
return {L: str(item.get(f"choice_{L.lower()}", "")) for L in "ABCD"}
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def _parse_choice_letter(response):
|
| 56 |
+
"""Extract an A/B/C/D letter from the response tail.
|
| 57 |
+
|
| 58 |
+
First tries to match the entire last line as a single letter (possibly
|
| 59 |
+
with brackets/punctuation), e.g. "A", "(B)", "C." -- this is the most
|
| 60 |
+
confident signal. If that fails, scans the tail for any isolated A/B/C/D
|
| 61 |
+
mention not embedded inside a longer word, and returns the LAST such
|
| 62 |
+
occurrence (handles outputs like "I think the answer is B.").
|
| 63 |
+
"""
|
| 64 |
+
if not response:
|
| 65 |
+
return None
|
| 66 |
+
tail = _tail(response)
|
| 67 |
+
lines = [ln.strip() for ln in tail.split("\n") if ln.strip()]
|
| 68 |
+
last = lines[-1] if lines else tail.strip()
|
| 69 |
+
m = re.match(r"(?i)^[\(\[\{]?\s*([ABCD])\s*[\)\]\}]?\s*[,.;:!?\-–—]*\s*$", last)
|
| 70 |
+
if m:
|
| 71 |
+
return m.group(1).upper()
|
| 72 |
+
rx = re.compile(r"(?i)(?<![A-Za-z0-9])[\(\[\{]?\s*([ABCD])\s*[\)\]\}]?\s*[,.;:!?\-–—]*\s*(?=$|\s)")
|
| 73 |
+
ms = list(rx.finditer(tail))
|
| 74 |
+
if ms:
|
| 75 |
+
return ms[-1].group(1).upper()
|
| 76 |
+
return None
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def _parse_choice_by_content(response, choices):
|
| 80 |
+
"""Fallback parser: match by choice text appearing in the response tail.
|
| 81 |
+
|
| 82 |
+
Picks the choice whose normalized text appears LATEST in the tail,
|
| 83 |
+
ranked by `rfind` position. This mirrors the matching used to produce
|
| 84 |
+
the paper's reported numbers, including the known caveat that overlapping
|
| 85 |
+
choice text (e.g., "male" inside "female") is decided by position alone.
|
| 86 |
+
"""
|
| 87 |
+
if not response:
|
| 88 |
+
return None
|
| 89 |
+
tail_n = _norm(_tail(response))
|
| 90 |
+
tail_n_sp = tail_n.replace("-", " ")
|
| 91 |
+
best_L, best_pos = None, -1
|
| 92 |
+
for L, txt in choices.items():
|
| 93 |
+
txt_n = _norm(txt)
|
| 94 |
+
if not txt_n:
|
| 95 |
+
continue
|
| 96 |
+
txt_n_sp = txt_n.replace("-", " ")
|
| 97 |
+
for t, hay in [(txt_n, tail_n), (txt_n_sp, tail_n_sp)]:
|
| 98 |
+
pos = hay.rfind(t)
|
| 99 |
+
if pos > best_pos:
|
| 100 |
+
best_pos = pos
|
| 101 |
+
best_L = L
|
| 102 |
+
return best_L if best_pos >= 0 else None
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def parse_response(response, item):
|
| 106 |
+
"""Map a model response to one of A/B/C/D.
|
| 107 |
+
|
| 108 |
+
Letter-first: if the response contains an isolated A/B/C/D mention, use
|
| 109 |
+
it. Otherwise fall back to matching the choice text in the response tail.
|
| 110 |
+
This matches the parsing semantics used to produce the paper's reported
|
| 111 |
+
numbers, so results from this script are directly comparable.
|
| 112 |
+
"""
|
| 113 |
+
L = _parse_choice_letter(response)
|
| 114 |
+
if L is not None:
|
| 115 |
+
return L
|
| 116 |
+
return _parse_choice_by_content(response, get_choices(item))
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
# ---------- Label resolution ----------
|
| 120 |
+
|
| 121 |
+
def text_to_letter(text, choices):
|
| 122 |
+
if not text:
|
| 123 |
+
return None
|
| 124 |
+
if text.upper() in {"A", "B", "C", "D"}:
|
| 125 |
+
return text.upper()
|
| 126 |
+
n = _norm(text)
|
| 127 |
+
for L, t in choices.items():
|
| 128 |
+
if _norm(t) == n:
|
| 129 |
+
return L
|
| 130 |
+
return None
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def gt_letter(item):
|
| 134 |
+
return text_to_letter(item.get("answer_gt", ""), get_choices(item))
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def adv_letters(item):
|
| 138 |
+
choices = get_choices(item)
|
| 139 |
+
out = set()
|
| 140 |
+
for s in item.get("adversarial_labels", []) or []:
|
| 141 |
+
L = text_to_letter(s, choices)
|
| 142 |
+
if L:
|
| 143 |
+
out.add(L)
|
| 144 |
+
return out
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
# ---------- Evaluation ----------
|
| 148 |
+
|
| 149 |
+
def evaluate(dataset, predictions):
|
| 150 |
+
pred_map = {p["id"]: p.get("response", "") for p in predictions}
|
| 151 |
+
gt_correct = defaultdict(int)
|
| 152 |
+
adv_correct = defaultdict(int)
|
| 153 |
+
total = defaultdict(int)
|
| 154 |
+
missing = 0
|
| 155 |
+
parse_fail = 0
|
| 156 |
+
for item in dataset:
|
| 157 |
+
task = item["task_name"]
|
| 158 |
+
total[task] += 1
|
| 159 |
+
resp = pred_map.get(item["id"])
|
| 160 |
+
if resp is None:
|
| 161 |
+
missing += 1
|
| 162 |
+
continue
|
| 163 |
+
pred = parse_response(resp, item)
|
| 164 |
+
if pred is None:
|
| 165 |
+
parse_fail += 1
|
| 166 |
+
continue
|
| 167 |
+
gt = gt_letter(item)
|
| 168 |
+
adv = adv_letters(item)
|
| 169 |
+
if gt and pred == gt:
|
| 170 |
+
gt_correct[task] += 1
|
| 171 |
+
if pred in adv:
|
| 172 |
+
adv_correct[task] += 1
|
| 173 |
+
return dict(gt_correct), dict(adv_correct), dict(total), missing, parse_fail
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
def main():
|
| 177 |
+
ap = argparse.ArgumentParser(description="Evaluate model predictions on VoxParadox.")
|
| 178 |
+
ap.add_argument("--predictions", required=True, help="Path to predictions JSONL file.")
|
| 179 |
+
ap.add_argument("--dataset", default=os.path.join(os.path.dirname(__file__), "voxparadox.json"),
|
| 180 |
+
help="Path to voxparadox.json (default: alongside this script).")
|
| 181 |
+
ap.add_argument("--report", default=None, help="Optional path to write a JSON report.")
|
| 182 |
+
args = ap.parse_args()
|
| 183 |
+
|
| 184 |
+
with open(args.dataset) as f:
|
| 185 |
+
dataset = json.load(f)
|
| 186 |
+
predictions = []
|
| 187 |
+
with open(args.predictions) as f:
|
| 188 |
+
for ln in f:
|
| 189 |
+
ln = ln.strip()
|
| 190 |
+
if not ln:
|
| 191 |
+
continue
|
| 192 |
+
predictions.append(json.loads(ln))
|
| 193 |
+
|
| 194 |
+
gt_c, adv_c, total, missing, parse_fail = evaluate(dataset, predictions)
|
| 195 |
+
|
| 196 |
+
tasks = sorted(total.keys())
|
| 197 |
+
n_total = sum(total.values())
|
| 198 |
+
sum_gt = sum(gt_c.get(t, 0) for t in tasks)
|
| 199 |
+
sum_adv = sum(adv_c.get(t, 0) for t in tasks)
|
| 200 |
+
|
| 201 |
+
print(f"VoxParadox Evaluation")
|
| 202 |
+
print(f" Dataset: {n_total} examples across {len(tasks)} tasks")
|
| 203 |
+
print(f" Predictions: {len(predictions)} loaded "
|
| 204 |
+
f"(missing: {missing}, parse-failed: {parse_fail})")
|
| 205 |
+
print()
|
| 206 |
+
print(f"{'Task':<32} {'N':>5} {'GT Acc':>9} {'ALA':>9}")
|
| 207 |
+
print("-" * 58)
|
| 208 |
+
for t in tasks:
|
| 209 |
+
n = total[t]
|
| 210 |
+
gt = 100.0 * gt_c.get(t, 0) / n if n else 0
|
| 211 |
+
ala = 100.0 * adv_c.get(t, 0) / n if n else 0
|
| 212 |
+
print(f"{t:<32} {n:>5} {gt:>8.2f}% {ala:>8.2f}%")
|
| 213 |
+
print("-" * 58)
|
| 214 |
+
overall_gt = 100.0 * sum_gt / n_total if n_total else 0
|
| 215 |
+
overall_ala = 100.0 * sum_adv / n_total if n_total else 0
|
| 216 |
+
print(f"{'Overall':<32} {n_total:>5} {overall_gt:>8.2f}% {overall_ala:>8.2f}%")
|
| 217 |
+
|
| 218 |
+
if args.report:
|
| 219 |
+
report = {
|
| 220 |
+
"dataset": os.path.abspath(args.dataset),
|
| 221 |
+
"predictions": os.path.abspath(args.predictions),
|
| 222 |
+
"n_examples": n_total,
|
| 223 |
+
"n_predictions": len(predictions),
|
| 224 |
+
"n_missing": missing,
|
| 225 |
+
"n_parse_failed": parse_fail,
|
| 226 |
+
"overall": {"gt_acc": overall_gt, "ala": overall_ala},
|
| 227 |
+
"per_task": {
|
| 228 |
+
t: {
|
| 229 |
+
"n": total[t],
|
| 230 |
+
"gt_correct": gt_c.get(t, 0),
|
| 231 |
+
"adv_correct": adv_c.get(t, 0),
|
| 232 |
+
"gt_acc": 100.0 * gt_c.get(t, 0) / total[t] if total[t] else 0,
|
| 233 |
+
"ala": 100.0 * adv_c.get(t, 0) / total[t] if total[t] else 0,
|
| 234 |
+
}
|
| 235 |
+
for t in tasks
|
| 236 |
+
},
|
| 237 |
+
}
|
| 238 |
+
with open(args.report, "w") as f:
|
| 239 |
+
json.dump(report, f, indent=2)
|
| 240 |
+
print(f"\n[report] {args.report}")
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
if __name__ == "__main__":
|
| 244 |
+
main()
|
metadata.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
voxparadox.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|