|
Download README.md from KishaanG/audact: direct link, hf CLI and curl.
- Browser
- Download file 10.6 kB
-
https://huggingface.co/KishaanG/audact/resolve/main/README.md
- Command line
-
hf download hf://KishaanG/audact/README.md
-
curl -L -o README.md https://huggingface.co/KishaanG/audact/resolve/main/README.md
10.6 kB
| license: cc-by-nc-4.0 | |
| language: | |
| - en | |
| library_name: pytorch | |
| tags: | |
| - speech | |
| - spoken-language-understanding | |
| - function-calling | |
| - tool-use | |
| - audio | |
| - onnx | |
| base_model: | |
| - nvidia/stt_en_fastconformer_hybrid_medium_streaming_80ms | |
| - Cactus-Compute/needle | |
| # Audact | |
| **Audact** (audio + act): speak a command, get a tool call. Speech plus a list of tools in, one tool call (or no call) out, with **no transcript in between**. | |
| About 52.6M parameters; runs on one CPU thread with ONNX Runtime in about half a second per command (int8, | |
| 72 MB). English, clips up to about 30 seconds, 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**. | |
| > 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 second | |
| frames -> 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 (about 13 per second) and the tool list share 1,024 positions, so a 30-second clip leaves | |
| about 640 for the tools; longer clips squeeze the list. The tool list is written in full if it fits, | |
| else without argument descriptions, else with each tool description shortened (first sentence, at | |
| most 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 the | |
| model can only answer with a tool from the list, then writes the arguments greedily. | |
| ## Usage | |
| Fastest and lightest, with ONNX Runtime (no PyTorch needed): | |
| ```bash | |
| hf download KishaanG/audact --local-dir audact-model && cd audact-model | |
| pip install -r requirements-onnx.txt | |
| python inference_onnx.py command.wav tools.json # 16 kHz mono audio; a JSON list of tools | |
| ``` | |
| ```python | |
| from audact.onnx_caller import AudactONNX | |
| caller = AudactONNX(".", threads=1) # int8 graphs in onnx/; onnx_dir="onnx_fp32" for 32-bit | |
| tools = [{"name": "set_thermostat", "description": "Set the heating temperature.", | |
| "parameters": {"type": "object", "properties": {"degrees": {"type": "integer"}}, "required": ["degrees"]}}] | |
| print(caller("command.wav", tools)) # {"name": "set_thermostat", "arguments": {"degrees": 21}} or None | |
| ``` | |
| With PyTorch (needs NeMo for FastConformer's architecture; base weights download once): | |
| ```bash | |
| pip install -r requirements.txt | |
| python inference.py command.wav tools.json | |
| ``` | |
| Or from Python, inside that folder: | |
| ```python | |
| from audact import Audact | |
| caller = Audact.from_pretrained(".") | |
| tools = [{"name": "set_thermostat", "description": "Set the heating temperature.", | |
| "parameters": {"type": "object", "properties": {"degrees": {"type": "integer"}}, "required": ["degrees"]}}] | |
| print(caller("command.wav", tools)) # {"name": "set_thermostat", "arguments": {"degrees": 21}} or None | |
| ``` | |
| ## Results | |
| Same scorer for every model. Each example offers up to 10 tools; some clips need a call, others need | |
| no call (the right tool was removed, or nothing applies). They are reported separately, because a model | |
| that 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 (c). This model fills in arguments better on (a) and (b), and acts much less | |
| often when it shouldn't. | |
|  | |
| On the same SLURP test, this model gets the whole call right (the tool and every argument) more often | |
| than NeuDecide, 26.4% against 18.7%. Counting the tool alone, the two are level: 59.1% and 59.9%. | |
| ### 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. | |
| - **(c)** [Full-Duplex-Bench v3](https://arxiv.org/abs/2604.04847) (NTU, 2026): 66 real recordings by 12 | |
| speakers in domains new to both models (travel, finance, housing, shopping), long and chatty, with the | |
| benchmark'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.** Right tool: the right tool was picked. Exact match: the tool and every | |
| argument were right. | |
| | | 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) like for like: the 2,085 calls from scenarios both models likely trained on, right tool | **65.2%** | 60.0% | 36.0% | | |
| | (c) right tool / exact match | 43.9% / 4.5% | **81.8%** / 6.1% | 92.4% / 40.9% | | |
| | (c) said "no call" although the right tool was listed | 47% | 0% | 5% | | |
| **Clips that need no call: false triggers (lower is better)** | |
| | | This model | NeuDecide | | |
| |---|---|---| | |
| | (a) 228 clips | **19.3%** | 79.4% | | |
| | (b) 460 clips | **41.5%** | 98.3% | | |
| | (c) 66 clips | **18.2%** | 89.4% | | |
| Notes: | |
| - NeuDecide's training data isn't published. It scores the same on SLURP scenarios we held out as on | |
| the rest, so it was probably trained on all of SLURP. Those 5 scenarios (345 calls) aren't compared | |
| separately for that reason; this model's own result on them is under Limitations. | |
| - 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. | |
| - (c) expects exact strings, so exact match is near zero for both small models: an order ID spoken as | |
| "X Y Z eight eight" must come out as `XYZ88`, and "July fifteenth" as `July 15`. | |
| - (c) is the least familiar test but not perfectly clean: our last training round targeted traits we saw | |
| in its inputs (small talk before the request, unusual tool descriptions), and 2 of its 12 tool names | |
| appear in public data used in earlier training. | |
| ### Speed and memory (one CPU thread) | |
| Same laptop CPU, same 100 SLURP validation clips, one thread, each model as released: | |
| | | This model, ONNX int8 (default) | This model, ONNX 32-bit | NeuDecide, ONNX 4-bit | | |
| |---|---|---|---| | |
| | Time per command, mean / slowest 5% | **0.55 s / 0.74 s** | 0.67 s / 0.83 s | 0.74 s / 1.01 s | | |
| | Peak memory | **380 MB** | 774 MB | 567 MB | | |
| | Model files | 72 MB | 245 MB | **43 MB** | | |
| The 32-bit ONNX graphs give the same answers as the PyTorch model (150 of 150 validation clips); the | |
| test results above are theirs. int8 costs a little accuracy, measured on validation: | |
| | Validation, clips needing a call: right tool / exact match / false triggers | 32-bit | int8 | | |
| |---|---|---| | |
| | SLURP (real voices) | 51.4% / 26.1% / 36.8% | 49.2% / 24.9% / 32.9% | | |
| | Synthetic, unseen tools | 86.5% / 41.9% / 18.8% | 85.1% / 40.0% / 14.5% | | |
| | Chatty synthetic, unseen tools | 87.1% / 41.8% / 14.7% | 86.4% / 40.9% / 13.3% | | |
| ### 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% | | |
| | Pure noise or silence, no speech (350 clips): false triggers | **0%** | 99.4% | | |
| ## Intended use | |
| Voice commands in personal and research projects (the license is non-commercial). Put a confirmation | |
| step in front of any action that can't be undone. | |
| ## 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 the | |
| right tool is listed. On SLURP scenarios held out of its training it picks the right tool 21.7% of | |
| the time (test) and 17.5% (validation); on (c) it answers "no call" to 47% of requests that need one. | |
| - Exact match on real voices is low (26-30%), and near zero for spelled-out codes ("X Y Z eight | |
| eight" -> `XYZ88`). | |
| - False triggers on real speech that needs no call are 18-42%: put a confirmation step in front of | |
| anything that can't be undone. | |
| - Argument values are written as spoken ("next tuesday"); arithmetic and relative values belong in | |
| the calling app. | |
| ## Training | |
| - Audio encoder: NVIDIA `stt_en_fastconformer_hybrid_medium_streaming_80ms`, frozen at first, then | |
| fine-tuned (all 16 layers in the last round) with a transcription side task: FastConformer's own | |
| speech-to-text head trained on our transcripts (weight 0.3; the head is for training only and isn't | |
| included). Text side: Cactus `Needle` (26M), ported from JAX to PyTorch. | |
| - Data: SLURP real recordings (scenarios alarm, social, transport, cooking, takeaway, audio and | |
| recommendation 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 Piper voices; 20% | |
| text-only rows; room echo and background noise (OpenSLR 28); noise-only clips and spoken commands with | |
| their 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: a | |
| speaker's own small talk before their command), and tool descriptions rewritten in other styles for | |
| 30% 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; the | |
| final checkpoint was picked by a rule written down before training. | |
| ## License | |
| **CC BY-NC 4.0**: free for non-commercial use. The SLURP recordings used in training are CC BY-NC 4.0, | |
| so the weights are released non-commercially. Components and data are credited in `NOTICE.md`. | |