Upload audact-final
Browse files- NOTICE.md +5 -1
- README.md +72 -36
- audact/decode.py +18 -3
- config.json +3 -3
- model.safetensors +1 -1
NOTICE.md
CHANGED
|
@@ -23,10 +23,14 @@ CC BY-NC 4.0 recordings (SLURP). It builds on and was trained with:
|
|
| 23 |
- **ToolACE** (`Team-ACE/ToolACE`), Apache 2.0.
|
| 24 |
- **xLAM function calling 60k** (`Salesforce/xlam-function-calling-60k`), CC BY 4.0.
|
| 25 |
- Tools and commands written with Anthropic's Claude Haiku 5.5.
|
|
|
|
|
|
|
| 26 |
- Synthetic speech: **Kokoro** (`hexgrad/Kokoro-82M`), Apache 2.0; **Piper** voices
|
| 27 |
(`rhasspy/piper-voices`, MIT) `en_US-libritts_r-medium` (LibriTTS-R, CC BY 4.0) and
|
| 28 |
`en_GB-vctk-medium` (VCTK, CC BY 4.0).
|
| 29 |
- Augmentation: **OpenSLR 28**, Room Impulse Response and Noise Database, Apache 2.0.
|
| 30 |
|
| 31 |
-
## Reference (compared against, not used in training)
|
| 32 |
- **NeuDecide** (Neuphonic), Apache 2.0.
|
|
|
|
|
|
|
|
|
| 23 |
- **ToolACE** (`Team-ACE/ToolACE`), Apache 2.0.
|
| 24 |
- **xLAM function calling 60k** (`Salesforce/xlam-function-calling-60k`), CC BY 4.0.
|
| 25 |
- Tools and commands written with Anthropic's Claude Haiku 5.5.
|
| 26 |
+
- Small talk, conversational lead-ins and tool-description rewrites written with **Qwen3-1.7B**
|
| 27 |
+
(`Qwen/Qwen3-1.7B`, Alibaba Cloud), Apache 2.0.
|
| 28 |
- Synthetic speech: **Kokoro** (`hexgrad/Kokoro-82M`), Apache 2.0; **Piper** voices
|
| 29 |
(`rhasspy/piper-voices`, MIT) `en_US-libritts_r-medium` (LibriTTS-R, CC BY 4.0) and
|
| 30 |
`en_GB-vctk-medium` (VCTK, CC BY 4.0).
|
| 31 |
- Augmentation: **OpenSLR 28**, Room Impulse Response and Noise Database, Apache 2.0.
|
| 32 |
|
| 33 |
+
## Reference and evaluation (compared against or tested on, not used in training)
|
| 34 |
- **NeuDecide** (Neuphonic), Apache 2.0.
|
| 35 |
+
- **Full-Duplex-Bench v3** (National Taiwan University, arXiv 2604.04847), CC BY-NC 4.0: test set (d),
|
| 36 |
+
evaluation only; its recordings are not redistributed here.
|
README.md
CHANGED
|
@@ -20,18 +20,22 @@ base_model:
|
|
| 20 |
About 52.6M parameters (211 MB in fp32). English, up to 10 tools per request, one call or none, arguments that are enums,
|
| 21 |
numbers or short strings. Built to work on **tools it never saw in training**.
|
| 22 |
|
| 23 |
-
> Draft release. Scored once on
|
| 24 |
> commercial use (see License).
|
| 25 |
|
| 26 |
## How it works
|
| 27 |
|
| 28 |
```
|
| 29 |
-
audio (16 kHz) -> FastConformer (NVIDIA,
|
| 30 |
frames -> linear adapter (256 -> 512) -> take the place of the text query in Needle's input
|
| 31 |
[audio vectors] [<tools>] [tool list as compact JSON] -> Needle encoder (Cactus, fine-tuned)
|
| 32 |
Needle decoder -> <tool_call> [{"name": ..., "arguments": {...}}] or [] (no call)
|
| 33 |
```
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
Decoding scores "no call" and every listed tool's name as a whole (sum of log-probabilities), so the
|
| 36 |
model can only answer with a tool from the list, then writes the arguments greedily.
|
| 37 |
|
|
@@ -56,61 +60,93 @@ print(caller("command.wav", tools)) # {"name": "set_thermostat", "arguments":
|
|
| 56 |
|
| 57 |
## Results
|
| 58 |
|
| 59 |
-
Same scorer for every model
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
### Frozen test sets (scored once, never used for any decision)
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
| | This model (52.6M) | NeuDecide (55.5M) | Whisper tiny + Qwen3-1.7B (cascade) |
|
| 65 |
|---|---|---|---|
|
| 66 |
-
| (a)
|
| 67 |
-
| (
|
| 68 |
-
| (b)
|
| 69 |
-
| (b)
|
| 70 |
-
| (
|
|
|
|
| 71 |
|
| 72 |
-
|
| 73 |
-
rest, so it was probably trained on them. No test recording appears in our training data, and 3 of
|
| 74 |
-
2,890 test (b) sentences match a training sentence (short generic ones). 136 of the 142 test (b)
|
| 75 |
-
speakers also appear in SLURP's training recordings. Speed on one CPU thread isn't compared yet.
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
| | This model | NeuDecide (reference) |
|
| 80 |
|---|---|---|
|
| 81 |
-
| Synthetic val, unseen tools, TTS voices (908 clips): right tool / exact |
|
| 82 |
-
| Synthetic val: false triggers (256 no-call clips) | **
|
| 83 |
-
|
|
| 84 |
-
| SLURP val
|
| 85 |
-
| SLURP val
|
|
|
|
| 86 |
| Pure noise or silence, no speech (350 clips): false triggers | **0%** | not measured |
|
| 87 |
|
| 88 |
-
NeuDecide scores the same on alarm and social as on other scenarios, which suggests those were in its
|
| 89 |
-
training data; they were not in ours.
|
| 90 |
-
|
| 91 |
## Limitations
|
| 92 |
|
| 93 |
- English only; up to 10 tools; one call per request; no nested or list arguments yet.
|
| 94 |
-
- Weak on real-voice
|
| 95 |
-
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
| 97 |
- Argument values are written as spoken ("next tuesday"); arithmetic and relative values belong in
|
| 98 |
the calling app.
|
| 99 |
-
- Exact match on real voices is low (28%): mishearing names, places and times, and choosing which
|
| 100 |
-
optional arguments to fill.
|
| 101 |
|
| 102 |
## Training
|
| 103 |
|
| 104 |
-
- Audio encoder: NVIDIA `stt_en_fastconformer_hybrid_medium_streaming_80ms`, frozen
|
| 105 |
-
|
| 106 |
-
trained on our transcripts
|
| 107 |
-
|
| 108 |
- Data: SLURP real recordings (scenarios alarm, social, transport, cooking, takeaway, audio and
|
| 109 |
-
recommendation held out), with LLM-written versions of its tools; synthetic spoken commands
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
## License
|
| 116 |
|
|
|
|
| 20 |
About 52.6M parameters (211 MB in fp32). English, up to 10 tools per request, one call or none, arguments that are enums,
|
| 21 |
numbers or short strings. Built to work on **tools it never saw in training**.
|
| 22 |
|
| 23 |
+
> Draft release. Scored once on three frozen test sets (below) and on our validation sets. Not for
|
| 24 |
> commercial use (see License).
|
| 25 |
|
| 26 |
## How it works
|
| 27 |
|
| 28 |
```
|
| 29 |
+
audio (16 kHz) -> FastConformer (NVIDIA, all 16 layers fine-tuned) -> frames, about 13 per second
|
| 30 |
frames -> linear adapter (256 -> 512) -> take the place of the text query in Needle's input
|
| 31 |
[audio vectors] [<tools>] [tool list as compact JSON] -> Needle encoder (Cactus, fine-tuned)
|
| 32 |
Needle decoder -> <tool_call> [{"name": ..., "arguments": {...}}] or [] (no call)
|
| 33 |
```
|
| 34 |
|
| 35 |
+
Audio frames and the tool list share 1,024 positions. The tool list is written in full if it fits,
|
| 36 |
+
else without argument descriptions, else with each tool description shortened (first sentence, at
|
| 37 |
+
most 20, then 10, then 4 words), and only then are whole tools dropped from the end.
|
| 38 |
+
|
| 39 |
Decoding scores "no call" and every listed tool's name as a whole (sum of log-probabilities), so the
|
| 40 |
model can only answer with a tool from the list, then writes the arguments greedily.
|
| 41 |
|
|
|
|
| 60 |
|
| 61 |
## Results
|
| 62 |
|
| 63 |
+
Same scorer for every model. Each example offers up to 10 tools; some clips need a call, others need
|
| 64 |
+
no call (the right tool was removed, or nothing applies). They are reported separately, because a model
|
| 65 |
+
that always calls looks good on the first kind and bad on the second.
|
| 66 |
+
|
| 67 |
+
**Short version:** when a call is needed, NeuDecide picks the right tool more often, by far on long,
|
| 68 |
+
chatty real-voice requests (d). This model fills in arguments better on (a) and (b), and acts much less
|
| 69 |
+
often when it shouldn't.
|
| 70 |
|
| 71 |
### Frozen test sets (scored once, never used for any decision)
|
| 72 |
|
| 73 |
+
- **(a)** 866 clips: unseen tools, unseen TTS voices (Kokoro, Piper). 638 need a call.
|
| 74 |
+
- **(b)** SLURP's official test split, 2,890 real recordings. 2,430 need a call.
|
| 75 |
+
- **(d)** [Full-Duplex-Bench v3](https://arxiv.org/abs/2604.04847) (NTU, 2026): 66 real recordings by 12
|
| 76 |
+
speakers in domains new to both models (travel, finance, housing, shopping), long and chatty, with the
|
| 77 |
+
benchmark's own tool definitions. Each recording appears twice: with the right tool listed (66 calls)
|
| 78 |
+
and without it (66 no-call clips).
|
| 79 |
+
|
| 80 |
+
**Clips that need a call**
|
| 81 |
+
|
| 82 |
| | This model (52.6M) | NeuDecide (55.5M) | Whisper tiny + Qwen3-1.7B (cascade) |
|
| 83 |
|---|---|---|---|
|
| 84 |
+
| (a) right tool / exact match | 89.2% / **37.0%** | **93.1%** / 29.6% | 90.1% / 69.4% |
|
| 85 |
+
| (b) right tool / exact match | 59.1% / **26.4%** | **59.9%** / 18.7% | 35.6% / 1.9% |
|
| 86 |
+
| (b) scenarios we trained on (2,085): right tool | **65.2%** | 60.0% | 36.0% |
|
| 87 |
+
| (b) scenarios held out of our training (345): right tool | 21.7% | **59.1%** | 33.0% |
|
| 88 |
+
| (d) right tool / exact match | 43.9% / 4.5% | **81.8%** / 6.1% | 92.4% / 40.9% |
|
| 89 |
+
| (d) answered "no call" anyway | 47% | 0% | 5% |
|
| 90 |
|
| 91 |
+
**Clips that need no call: false triggers (lower is better)**
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
+
| | This model | NeuDecide | Cascade |
|
| 94 |
+
|---|---|---|---|
|
| 95 |
+
| (a) 228 clips | 19.3% | 79.4% | **4.4%** |
|
| 96 |
+
| (b) 460 clips | 41.5% | 98.3% | **22.8%** |
|
| 97 |
+
| (d) 66 clips | **18.2%** | 89.4% | 45.5% |
|
| 98 |
+
|
| 99 |
+
Notes:
|
| 100 |
+
- NeuDecide's training data isn't published. It scores the same on SLURP scenarios we held out as on
|
| 101 |
+
the rest, so it was probably trained on all of SLURP.
|
| 102 |
+
- No test recording appears in our training data; 3 of 2,890 (b) sentences match a training sentence
|
| 103 |
+
(short generic ones). 136 of the 142 (b) speakers also appear in SLURP's training recordings.
|
| 104 |
+
- (d): the traits our last training round targets (small talk before the request, unusual tool
|
| 105 |
+
descriptions, tool lists that don't fit) were found by looking at (d)'s inputs, not its answers.
|
| 106 |
+
Two of its 12 tool names also appear in public datasets we trained on; those examples are now excluded.
|
| 107 |
+
- Speed on one CPU thread isn't compared yet.
|
| 108 |
+
|
| 109 |
+
### Validation sets (every clip; used for every decision)
|
| 110 |
|
| 111 |
| | This model | NeuDecide (reference) |
|
| 112 |
|---|---|---|
|
| 113 |
+
| Synthetic val, unseen tools, TTS voices (908 clips): right tool / exact | 85.0% / **52.9%** | 69.4% / 26.4% |
|
| 114 |
+
| Synthetic val: false triggers (256 no-call clips) | **18.8%** | 79% |
|
| 115 |
+
| Chatty synthetic val, unseen tools (761 clips): right tool / exact | 86.6% / 54.5% | not measured |
|
| 116 |
+
| SLURP val, real voices (1,507 clips): right tool / exact | 52.6% / **30.0%** | **55.9%** / 18.4% |
|
| 117 |
+
| SLURP val: false triggers (152 no-call clips) | **36.8%** | 97% |
|
| 118 |
+
| SLURP val, scenarios held out of our training (alarm, social): right tool | 17.5% | **55.0%** |
|
| 119 |
| Pure noise or silence, no speech (350 clips): false triggers | **0%** | not measured |
|
| 120 |
|
|
|
|
|
|
|
|
|
|
| 121 |
## Limitations
|
| 122 |
|
| 123 |
- English only; up to 10 tools; one call per request; no nested or list arguments yet.
|
| 124 |
+
- Weak on real-voice requests unlike anything in training: it often answers "no call" even when the
|
| 125 |
+
right tool is listed (47% of (d)'s calls; 21.7% right tool on (b)'s held-out scenarios).
|
| 126 |
+
- Exact match on real voices is low (26-30%), and near zero for spelled-out codes ("X Y Z eight
|
| 127 |
+
eight" -> `XYZ88`).
|
| 128 |
+
- False triggers on real speech that needs no call are 18-42%: put a confirmation step in front of
|
| 129 |
+
anything that can't be undone.
|
| 130 |
- Argument values are written as spoken ("next tuesday"); arithmetic and relative values belong in
|
| 131 |
the calling app.
|
|
|
|
|
|
|
| 132 |
|
| 133 |
## Training
|
| 134 |
|
| 135 |
+
- Audio encoder: NVIDIA `stt_en_fastconformer_hybrid_medium_streaming_80ms`, frozen at first, then
|
| 136 |
+
fine-tuned (all 16 layers in the last round) with a transcription side task: FastConformer's own
|
| 137 |
+
speech-to-text head trained on our transcripts (weight 0.3; the head is for training only and isn't
|
| 138 |
+
included). Text side: Cactus `Needle` (26M), ported from JAX to PyTorch.
|
| 139 |
- Data: SLURP real recordings (scenarios alarm, social, transport, cooking, takeaway, audio and
|
| 140 |
+
recommendation held out), with LLM-written versions of its tools; synthetic spoken commands (tools and
|
| 141 |
+
commands from Glaive, ToolACE, xLAM and LLM-written ones) voiced by Kokoro and Piper voices; 20%
|
| 142 |
+
text-only rows; room echo and background noise (OpenSLR 28); noise-only clips and spoken commands with
|
| 143 |
+
their tool removed, both labelled no call.
|
| 144 |
+
- Last round: chatty rewrites of training commands (fillers, hesitations, false starts,
|
| 145 |
+
self-corrections), long clips with small talk before the command (TTS, and real SLURP voices: a
|
| 146 |
+
speaker's own small talk before their command), and tool descriptions rewritten in other styles for
|
| 147 |
+
30% of synthetic examples. Small talk and rewrites written by Qwen3-1.7B.
|
| 148 |
+
- Every choice was made on validation sets with voices, sentences and tools never seen in training; the
|
| 149 |
+
final checkpoint was picked by a rule written down before training.
|
| 150 |
|
| 151 |
## License
|
| 152 |
|
audact/decode.py
CHANGED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
"""Tool-list rendering and decoding for one clip (same rules as training and our evaluation).
|
| 2 |
|
| 3 |
Rendering: full tool definitions if audio frames + <tools> + JSON fit in 1,024 positions, else compact
|
| 4 |
-
(argument descriptions dropped), else
|
|
|
|
| 5 |
Decoding (whole-name scoring): no call and every listed tool's name are scored as whole token sequences
|
| 6 |
(sum of log-probabilities); the best one wins and the arguments are then written greedily.
|
| 7 |
"""
|
| 8 |
from __future__ import annotations
|
| 9 |
|
| 10 |
import json
|
|
|
|
| 11 |
|
| 12 |
import torch
|
| 13 |
|
|
@@ -28,14 +30,27 @@ def compact_tools(tools: list[dict]) -> list[dict]:
|
|
| 28 |
return out
|
| 29 |
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
def render_tools(tools: list[dict], prefix_len: int, sp) -> tuple[list[int], list[str]]:
|
| 32 |
"""<tools> + JSON token ids that fit next to prefix_len audio frames, and the names kept."""
|
| 33 |
room = MAX_INPUT_TOKENS - prefix_len
|
| 34 |
-
|
|
|
|
| 35 |
ids = [TOOLS] + sp.encode(tools_json(rendered))
|
| 36 |
if len(ids) <= room:
|
| 37 |
return ids, [t["name"] for t in tools]
|
| 38 |
-
kept =
|
| 39 |
while kept:
|
| 40 |
kept = kept[:-1]
|
| 41 |
ids = [TOOLS] + sp.encode(tools_json(kept))
|
|
|
|
| 1 |
"""Tool-list rendering and decoding for one clip (same rules as training and our evaluation).
|
| 2 |
|
| 3 |
Rendering: full tool definitions if audio frames + <tools> + JSON fit in 1,024 positions, else compact
|
| 4 |
+
(argument descriptions dropped), else each tool description shortened (first sentence, at most 20, then
|
| 5 |
+
10, then 4 words), and only then whole tools are dropped from the end of the list until it fits.
|
| 6 |
Decoding (whole-name scoring): no call and every listed tool's name are scored as whole token sequences
|
| 7 |
(sum of log-probabilities); the best one wins and the arguments are then written greedily.
|
| 8 |
"""
|
| 9 |
from __future__ import annotations
|
| 10 |
|
| 11 |
import json
|
| 12 |
+
import re
|
| 13 |
|
| 14 |
import torch
|
| 15 |
|
|
|
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
+
SHORTEN_WORDS = (20, 10, 4)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def shorten_tools(tools: list[dict], max_words: int) -> list[dict]:
|
| 37 |
+
"""Each tool's description cut to its first sentence and at most max_words words."""
|
| 38 |
+
out = []
|
| 39 |
+
for t in tools:
|
| 40 |
+
first = re.split(r"(?<=[.!?])\s", t.get("description", "").strip(), maxsplit=1)[0]
|
| 41 |
+
out.append({**t, "description": " ".join(first.split()[:max_words])})
|
| 42 |
+
return out
|
| 43 |
+
|
| 44 |
+
|
| 45 |
def render_tools(tools: list[dict], prefix_len: int, sp) -> tuple[list[int], list[str]]:
|
| 46 |
"""<tools> + JSON token ids that fit next to prefix_len audio frames, and the names kept."""
|
| 47 |
room = MAX_INPUT_TOKENS - prefix_len
|
| 48 |
+
compact = compact_tools(tools)
|
| 49 |
+
for rendered in [tools, compact] + [shorten_tools(compact, n) for n in SHORTEN_WORDS]:
|
| 50 |
ids = [TOOLS] + sp.encode(tools_json(rendered))
|
| 51 |
if len(ids) <= room:
|
| 52 |
return ids, [t["name"] for t in tools]
|
| 53 |
+
kept = shorten_tools(compact, SHORTEN_WORDS[-1])
|
| 54 |
while kept:
|
| 55 |
kept = kept[:-1]
|
| 56 |
ids = [TOOLS] + sp.encode(tools_json(kept))
|
config.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"audio_encoder": {
|
| 18 |
"base": "nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms",
|
| 19 |
"revision": "4207369a33",
|
| 20 |
-
"trained_layers":
|
| 21 |
},
|
| 22 |
"tokenizer": {
|
| 23 |
"file": "tokenizer.model",
|
|
@@ -27,8 +27,8 @@
|
|
| 27 |
"max_input_positions": 1024,
|
| 28 |
"decoding": "whole-name scoring, then greedy arguments",
|
| 29 |
"trained_from": {
|
| 30 |
-
"checkpoint": "runs/stage_a/
|
| 31 |
-
"update":
|
| 32 |
},
|
| 33 |
"parameters": 52559132
|
| 34 |
}
|
|
|
|
| 17 |
"audio_encoder": {
|
| 18 |
"base": "nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms",
|
| 19 |
"revision": "4207369a33",
|
| 20 |
+
"trained_layers": 16
|
| 21 |
},
|
| 22 |
"tokenizer": {
|
| 23 |
"file": "tokenizer.model",
|
|
|
|
| 27 |
"max_input_positions": 1024,
|
| 28 |
"decoding": "whole-name scoring, then greedy arguments",
|
| 29 |
"trained_from": {
|
| 30 |
+
"checkpoint": "runs/stage_a/stage_final/model_step6000.pt",
|
| 31 |
+
"update": 6000
|
| 32 |
},
|
| 33 |
"parameters": 52559132
|
| 34 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 210423928
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01b3816b454ddf278c7e317129627a90ffa00c77c65fe687ad8a6e9728940d88
|
| 3 |
size 210423928
|