Upload audact-final
Browse filesFiles changed (5)
- NOTICE.md+5-1
- README.md+72-36
- audact/decode.py+18-3
- config.json+3-3
- model.safetensors+1-1
22 unmodified lines2324252627282930313222 unmodified lines- **ToolACE** (`Team-ACE/ToolACE`), Apache 2.0.- **xLAM function calling 60k** (`Salesforce/xlam-function-calling-60k`), CC BY 4.0.- Tools and commands written with Anthropic's Claude Haiku 5.5.- Synthetic speech: **Kokoro** (`hexgrad/Kokoro-82M`), Apache 2.0; **Piper** voices(`rhasspy/piper-voices`, MIT) `en_US-libritts_r-medium` (LibriTTS-R, CC BY 4.0) and`en_GB-vctk-medium` (VCTK, CC BY 4.0).- Augmentation: **OpenSLR 28**, Room Impulse Response and Noise Database, Apache 2.0.## Reference (compared against, not used in training)- **NeuDecide** (Neuphonic), Apache 2.0.22 unmodified lines232425262728293031323334353622 unmodified lines- **ToolACE** (`Team-ACE/ToolACE`), Apache 2.0.- **xLAM function calling 60k** (`Salesforce/xlam-function-calling-60k`), CC BY 4.0.- Tools and commands written with Anthropic's Claude Haiku 5.5.- Small talk, conversational lead-ins and tool-description rewrites written with **Qwen3-1.7B**(`Qwen/Qwen3-1.7B`, Alibaba Cloud), Apache 2.0.- Synthetic speech: **Kokoro** (`hexgrad/Kokoro-82M`), Apache 2.0; **Piper** voices(`rhasspy/piper-voices`, MIT) `en_US-libritts_r-medium` (LibriTTS-R, CC BY 4.0) and`en_GB-vctk-medium` (VCTK, CC BY 4.0).- Augmentation: **OpenSLR 28**, Room Impulse Response and Noise Database, Apache 2.0.## Reference and evaluation (compared against or tested on, not used in training)- **NeuDecide** (Neuphonic), Apache 2.0.- **Full-Duplex-Bench v3** (National Taiwan University, arXiv 2604.04847), CC BY-NC 4.0: test set (d),evaluation only; its recordings are not redistributed here.
19 unmodified lines20212223242526272829303132333435363718 unmodified lines565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511619 unmodified linesAbout 52.6M parameters (211 MB in fp32). English, up to 10 tools per request, one call or none, arguments that are enums,numbers or short strings. Built to work on **tools it never saw in training**.> Draft release. Scored once on two frozen test sets (below) and on our validation sets. Not for> commercial use (see License).## How it works```audio (16 kHz) -> FastConformer (NVIDIA, top 8 of 16 layers fine-tuned) -> frames, about 13 per secondframes -> linear adapter (256 -> 512) -> take the place of the text query in Needle's input[audio vectors] [<tools>] [tool list as compact JSON] -> Needle encoder (Cactus, fine-tuned)Needle decoder -> <tool_call> [{"name": ..., "arguments": {...}}] or [] (no call)```Decoding scores "no call" and every listed tool's name as a whole (sum of log-probabilities), so themodel can only answer with a tool from the list, then writes the arguments greedily.18 unmodified lines## ResultsSame scorer for every model: right tool, exact match (tool and every argument, case and spacesignored), false triggers (a call on a clip that needs none). Each example offers 10 tools.### Frozen test sets (scored once, never used for any decision)| | This model (52.6M) | NeuDecide (55.5M) | Whisper tiny + Qwen3-1.7B (cascade) ||---|---|---|---|| (a) Unseen tools, unseen TTS voices (866 clips): right tool / exact | 87.3% / 50.0% | 74.0% / 27.3% | **91.6% / 76.3%** || (a) false triggers (228 no-call clips) | 14.0% | 79.4% | **4.4%** || (b) SLURP test split, real voices (2,890 clips): right tool / exact | **58.7% / 31.7%** | 50.6% / 16.0% | 42.2% / 13.8% || (b) false triggers (460 no-call clips) | 34.3% | 98.3% | **22.8%** || (b) SLURP scenarios held out of our training (393 clips): right tool | 27.0% | **51.9%** | 37.7% |NeuDecide's training data isn't published; it scores the same on our held-out scenarios as on therest, so it was probably trained on them. No test recording appears in our training data, and 3 of2,890 test (b) sentences match a training sentence (short generic ones). 136 of the 142 test (b)speakers also appear in SLURP's training recordings. Speed on one CPU thread isn't compared yet.### Validation sets (every clip)| | This model | NeuDecide (reference) ||---|---|---|| Synthetic val, unseen tools, TTS voices (908 clips): right tool / exact | **85.7% / 53.3%** | 69.4% / 26.4% || Synthetic val: false triggers (256 no-call clips) | **17%** | 79% || SLURP val, real voices (1,507 clips): right tool / exact | 50.0% / **28.3%** | **55.9%** / 18.4% || SLURP val: false triggers (152 no-call clips) | **31%** | 97% || SLURP val, scenarios held out of our training (alarm, social): right tool | 16.2% | **55.0%** || Pure noise or silence, no speech (350 clips): false triggers | **0%** | not measured |NeuDecide scores the same on alarm and social as on other scenarios, which suggests those were in itstraining data; they were not in ours.## Limitations- English only; up to 10 tools; one call per request; no nested or list arguments yet.- Weak on real-voice commands for jobs unlike anything in training (the held-out SLURP scenariosabove): it often answers no call even when the right tool is listed ("lower the speaker volume"with `audio_volume_down` offered: 47% no call on test (b)'s held-out scenarios, 14% elsewhere).- Argument values are written as spoken ("next tuesday"); arithmetic and relative values belong inthe calling app.- Exact match on real voices is low (28%): mishearing names, places and times, and choosing whichoptional arguments to fill.## Training- Audio encoder: NVIDIA `stt_en_fastconformer_hybrid_medium_streaming_80ms`, frozen in stage A, top 8layers fine-tuned in stage B, with a transcription side task (FastConformer's own speech-to-text headtrained on our transcripts at weight 0.1; the head is for training only and isn't included). Its worderror rate on SLURP val fell from 44% to 31%. Text side: Cactus `Needle` (26M), ported from JAX to PyTorch.- Data: SLURP real recordings (scenarios alarm, social, transport, cooking, takeaway, audio andrecommendation held out), with LLM-written versions of its tools; synthetic spoken commands(tools and commands from Glaive, ToolACE, xLAM and LLM-written ones) voiced by Kokoro and Pipervoices; 20% text-only rows; room echo and background noise (OpenSLR 28), noise-only clips andspoken commands with their tool removed, both labelled no call.- Validation uses voices, sentences and tools never seen in training.## License19 unmodified lines2021222324252627282930313233343536373839404118 unmodified lines6061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115219 unmodified linesAbout 52.6M parameters (211 MB in fp32). English, up to 10 tools per request, one call or none, arguments that are enums,numbers or short strings. Built to work on **tools it never saw in training**.> Draft release. Scored once on three frozen test sets (below) and on our validation sets. Not for> commercial use (see License).## How it works```audio (16 kHz) -> FastConformer (NVIDIA, all 16 layers fine-tuned) -> frames, about 13 per secondframes -> linear adapter (256 -> 512) -> take the place of the text query in Needle's input[audio vectors] [<tools>] [tool list as compact JSON] -> Needle encoder (Cactus, fine-tuned)Needle decoder -> <tool_call> [{"name": ..., "arguments": {...}}] or [] (no call)```Audio frames and the tool list share 1,024 positions. The tool list is written in full if it fits,else without argument descriptions, else with each tool description shortened (first sentence, atmost 20, then 10, then 4 words), and only then are whole tools dropped from the end.Decoding scores "no call" and every listed tool's name as a whole (sum of log-probabilities), so themodel can only answer with a tool from the list, then writes the arguments greedily.18 unmodified lines## ResultsSame scorer for every model. Each example offers up to 10 tools; some clips need a call, others needno call (the right tool was removed, or nothing applies). They are reported separately, because a modelthat always calls looks good on the first kind and bad on the second.**Short version:** when a call is needed, NeuDecide picks the right tool more often, by far on long,chatty real-voice requests (d). This model fills in arguments better on (a) and (b), and acts much lessoften when it shouldn't.### Frozen test sets (scored once, never used for any decision)- **(a)** 866 clips: unseen tools, unseen TTS voices (Kokoro, Piper). 638 need a call.- **(b)** SLURP's official test split, 2,890 real recordings. 2,430 need a call.- **(d)** [Full-Duplex-Bench v3](https://arxiv.org/abs/2604.04847) (NTU, 2026): 66 real recordings by 12speakers in domains new to both models (travel, finance, housing, shopping), long and chatty, with thebenchmark's own tool definitions. Each recording appears twice: with the right tool listed (66 calls)and without it (66 no-call clips).**Clips that need a call**| | This model (52.6M) | NeuDecide (55.5M) | Whisper tiny + Qwen3-1.7B (cascade) ||---|---|---|---|| (a) right tool / exact match | 89.2% / **37.0%** | **93.1%** / 29.6% | 90.1% / 69.4% || (b) right tool / exact match | 59.1% / **26.4%** | **59.9%** / 18.7% | 35.6% / 1.9% || (b) scenarios we trained on (2,085): right tool | **65.2%** | 60.0% | 36.0% || (b) scenarios held out of our training (345): right tool | 21.7% | **59.1%** | 33.0% || (d) right tool / exact match | 43.9% / 4.5% | **81.8%** / 6.1% | 92.4% / 40.9% || (d) answered "no call" anyway | 47% | 0% | 5% |**Clips that need no call: false triggers (lower is better)**| | This model | NeuDecide | Cascade ||---|---|---|---|| (a) 228 clips | 19.3% | 79.4% | **4.4%** || (b) 460 clips | 41.5% | 98.3% | **22.8%** || (d) 66 clips | **18.2%** | 89.4% | 45.5% |Notes:- NeuDecide's training data isn't published. It scores the same on SLURP scenarios we held out as onthe rest, so it was probably trained on all of SLURP.- No test recording appears in our training data; 3 of 2,890 (b) sentences match a training sentence(short generic ones). 136 of the 142 (b) speakers also appear in SLURP's training recordings.- (d): the traits our last training round targets (small talk before the request, unusual tooldescriptions, tool lists that don't fit) were found by looking at (d)'s inputs, not its answers.Two of its 12 tool names also appear in public datasets we trained on; those examples are now excluded.- Speed on one CPU thread isn't compared yet.### Validation sets (every clip; used for every decision)| | This model | NeuDecide (reference) ||---|---|---|| Synthetic val, unseen tools, TTS voices (908 clips): right tool / exact | 85.0% / **52.9%** | 69.4% / 26.4% || Synthetic val: false triggers (256 no-call clips) | **18.8%** | 79% || Chatty synthetic val, unseen tools (761 clips): right tool / exact | 86.6% / 54.5% | not measured || SLURP val, real voices (1,507 clips): right tool / exact | 52.6% / **30.0%** | **55.9%** / 18.4% || SLURP val: false triggers (152 no-call clips) | **36.8%** | 97% || SLURP val, scenarios held out of our training (alarm, social): right tool | 17.5% | **55.0%** || Pure noise or silence, no speech (350 clips): false triggers | **0%** | not measured |## Limitations- English only; up to 10 tools; one call per request; no nested or list arguments yet.- Weak on real-voice requests unlike anything in training: it often answers "no call" even when theright tool is listed (47% of (d)'s calls; 21.7% right tool on (b)'s held-out scenarios).- Exact match on real voices is low (26-30%), and near zero for spelled-out codes ("X Y Z eighteight" -> `XYZ88`).- False triggers on real speech that needs no call are 18-42%: put a confirmation step in front ofanything that can't be undone.- Argument values are written as spoken ("next tuesday"); arithmetic and relative values belong inthe calling app.## Training- Audio encoder: NVIDIA `stt_en_fastconformer_hybrid_medium_streaming_80ms`, frozen at first, thenfine-tuned (all 16 layers in the last round) with a transcription side task: FastConformer's ownspeech-to-text head trained on our transcripts (weight 0.3; the head is for training only and isn'tincluded). Text side: Cactus `Needle` (26M), ported from JAX to PyTorch.- Data: SLURP real recordings (scenarios alarm, social, transport, cooking, takeaway, audio andrecommendation held out), with LLM-written versions of its tools; synthetic spoken commands (tools andcommands from Glaive, ToolACE, xLAM and LLM-written ones) voiced by Kokoro and Piper voices; 20%text-only rows; room echo and background noise (OpenSLR 28); noise-only clips and spoken commands withtheir tool removed, both labelled no call.- Last round: chatty rewrites of training commands (fillers, hesitations, false starts,self-corrections), long clips with small talk before the command (TTS, and real SLURP voices: aspeaker's own small talk before their command), and tool descriptions rewritten in other styles for30% of synthetic examples. Small talk and rewrites written by Qwen3-1.7B.- Every choice was made on validation sets with voices, sentences and tools never seen in training; thefinal checkpoint was picked by a rule written down before training.## License
1234567891011121314 unmodified lines2829303132333435363738394041"""Tool-list rendering and decoding for one clip (same rules as training and our evaluation).Rendering: full tool definitions if audio frames + <tools> + JSON fit in 1,024 positions, else compact(argument descriptions dropped), else whole tools are dropped from the end of the list until it fits.Decoding (whole-name scoring): no call and every listed tool's name are scored as whole token sequences(sum of log-probabilities); the best one wins and the arguments are then written greedily."""from __future__ import annotationsimport jsonimport torch14 unmodified linesreturn outdef render_tools(tools: list[dict], prefix_len: int, sp) -> tuple[list[int], list[str]]:"""<tools> + JSON token ids that fit next to prefix_len audio frames, and the names kept."""room = MAX_INPUT_TOKENS - prefix_lenfor rendered in (tools, compact_tools(tools)):ids = [TOOLS] + sp.encode(tools_json(rendered))if len(ids) <= room:return ids, [t["name"] for t in tools]kept = compact_tools(tools)while kept:kept = kept[:-1]ids = [TOOLS] + sp.encode(tools_json(kept))12345678910111213141514 unmodified lines303132333435363738394041424344454647484950515253545556"""Tool-list rendering and decoding for one clip (same rules as training and our evaluation).Rendering: full tool definitions if audio frames + <tools> + JSON fit in 1,024 positions, else compact(argument descriptions dropped), else each tool description shortened (first sentence, at most 20, then10, then 4 words), and only then whole tools are dropped from the end of the list until it fits.Decoding (whole-name scoring): no call and every listed tool's name are scored as whole token sequences(sum of log-probabilities); the best one wins and the arguments are then written greedily."""from __future__ import annotationsimport jsonimport reimport torch14 unmodified linesreturn outSHORTEN_WORDS = (20, 10, 4)def shorten_tools(tools: list[dict], max_words: int) -> list[dict]:"""Each tool's description cut to its first sentence and at most max_words words."""out = []for t in tools:first = re.split(r"(?<=[.!?])\s", t.get("description", "").strip(), maxsplit=1)[0]out.append({**t, "description": " ".join(first.split()[:max_words])})return outdef render_tools(tools: list[dict], prefix_len: int, sp) -> tuple[list[int], list[str]]:"""<tools> + JSON token ids that fit next to prefix_len audio frames, and the names kept."""room = MAX_INPUT_TOKENS - prefix_lencompact = compact_tools(tools)for rendered in [tools, compact] + [shorten_tools(compact, n) for n in SHORTEN_WORDS]:ids = [TOOLS] + sp.encode(tools_json(rendered))if len(ids) <= room:return ids, [t["name"] for t in tools]kept = shorten_tools(compact, SHORTEN_WORDS[-1])while kept:kept = kept[:-1]ids = [TOOLS] + sp.encode(tools_json(kept))
16 unmodified lines171819202122233 unmodified lines272829303132333416 unmodified lines"audio_encoder": {"base": "nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms","revision": "4207369a33","trained_layers": 8},"tokenizer": {"file": "tokenizer.model",3 unmodified lines"max_input_positions": 1024,"decoding": "whole-name scoring, then greedy arguments","trained_from": {"checkpoint": "runs/stage_a/stage_b_ctc8/model_step4898.pt","update": 4898},"parameters": 52559132}16 unmodified lines171819202122233 unmodified lines272829303132333416 unmodified lines"audio_encoder": {"base": "nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms","revision": "4207369a33","trained_layers": 16},"tokenizer": {"file": "tokenizer.model",3 unmodified lines"max_input_positions": 1024,"decoding": "whole-name scoring, then greedy arguments","trained_from": {"checkpoint": "runs/stage_a/stage_final/model_step6000.pt","update": 6000},"parameters": 52559132}
123version https://git-lfs.github.com/spec/v1oid sha256:c92099ea32dae23a27d468503b71040420033c28b29566d0e4f72dd6ad0a0845size 210423928123version https://git-lfs.github.com/spec/v1oid sha256:01b3816b454ddf278c7e317129627a90ffa00c77c65fe687ad8a6e9728940d88size 210423928
NOTICE.md+5-1
README.md+72-36
audact/decode.py+18-3
config.json+3-3
model.safetensors+1-1