Heartbeat Thinking: Speculative Reasoning and Tool Execution While Listening in Realtime Voice Agents
Organizations: Ant International
Abstract
Tool-using voice agents often leave users waiting after speech ends, even when actionable information arrives earlier in the request. Speculative approaches begin work during speech, but chunk-bounded or interrupt-on-update generation can truncate a tool call before its arguments are complete. This couples computation time to speech updates, limiting useful work completed in advance. We introduce Heartbeat Thinking, which handles updated input through new Thinker invocations while allowing ongoing invocations and dispatched tools to finish. Periodic invocations read the latest partial transcript and a shared record of completed reasoning and tool results. These results help resolve missing arguments and initiate dependent calls, allowing preparation to progress across speech updates. Across SpeechFCEval, FDBench v3, and AudioCRAG, Heartbeat improves aggregate speculative tool coverage or retrieval reuse over a SHANKS-style windowed baseline, with benchmark-dependent effects on final task quality. On FDBench v3, it increases tool coverage by 16 percentage points and reduces mean final-response latency by 36.4%. The results show that heartbeat thinking paradigm preserving ongoing computation during speech can turn listening time into reusable preparation for faster and more capable voice-agent responses.
Figures & tables
| Framework | SpeechFCEval | FDBench v3 | AudioCRAG | ||||
|---|---|---|---|---|---|---|---|
| Acc. | STC | Quality | Pass@1 | STC | Correct | STC | |
| Speech-to-Speech | 58.66 | 0.00 | 84.0 | 75.0 | 0.00 | 56.48 | 0.00 |
| Pipecat | 56.83 | 0.00 | 78.0 | 63.0 | 0.00 | 56.94 | 0.00 |
| LiveKit | 52.85 | 0.00 | 77.6 | 67.0 | 0.00 | 59.45 | 0.00 |
| Window Thinking (SHANKS) | 67.95 | 33.13 | 72.0 | 57.0 | 34.67 | 57.24 | 20.05 |
| Heartbeat | 66.85 | 43.69 | 77.0 | 65.0 | 50.67 | 55.49 | 62.42 |
| Framework | Avg. Acc. | STC |
|---|---|---|
| Responder: DeepSeek-V4-Flash | ||
| Speech-to-Speech | 58.66 | 0.00 |
| Pipecat | 56.83 | 0.00 |
| LiveKit | 52.85 | 0.00 |
| Window Thinking (SHANKS) | 67.95 | 33.13 |
| Heartbeat | 66.85 | 43.69 |
| Framework | Quality | Pass@1 | STC |
|---|---|---|---|
| Responder: DeepSeek-V4-Flash | |||
| Speech-to-Speech | 84.0 | 75.0 | 0.0 |
| Pipecat | 78.0 | 63.0 | 0.0 |
| LiveKit | 77.6 | 67.0 | 0.0 |
| Window Thinking (SHANKS) | 72.0 | 57.0 | 34.67 |
| Heartbeat | 77.0 | 65.0 | 50.67 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| ASR | Qwen3-ASR-1.7B |
| TTS | Qwen3-TTS-12Hz-1.7B-Base |
| ASR update block | 500 ms |
| VAD minimum speech | 200 ms |
| VAD minimum silence | 800 ms |
| VAD padding | 500 ms |
| System | Correct Tool Call | Final Response |
|---|---|---|
| Heartbeat | 4.39 | |
| Window Thinking (SHANKS) | 6.90 | |
| Speech-to-Speech | 8.39 | |
| Pipecat | 8.08 | |
| LiveKit | 8.52 |
| Framework | Thinker | Quality | Pass@1 | STC |
|---|---|---|---|---|
| Cascaded | ||||
| Speech-to-Speech | – | 84.0 | 75.0 | 0.0 |
| Pipecat | – | 78.0 | 63.0 | 0.0 |
| LiveKit | – | 77.6 | 67.0 | 0.0 |
| Window Thinking (SHANKS) | Qwen3.6-35B-A3B | 72.0 | 57.0 | 34.67 |
| Qwen3.6-35B-A3B | 77.0 | 65.0 | 50.67 | |
| Framework | Thinker | Correct | Missing | Hallucination | STC |
|---|---|---|---|---|---|
| Cascaded | |||||
| Speech-to-Speech | – | 56.48 | 11.97 | 31.55 | 0.00 |
| Pipecat | – | 56.94 | 11.97 | 31.10 | 0.00 |
| LiveKit | – | 59.45 | 12.88 | 27.67 | 0.00 |
| Window Thinking (SHANKS) | Qwen3.6-35B-A3B | 57.24 | 14.33 | 28.43 | 20.05 |
| Qwen3.6-35B-A3B | 55.49 | 16.84 | 27.67 | 62.42 | |
| Framework | Correct | Miss. | Hallu. | STC |
|---|---|---|---|---|
| Responder: DeepSeek-V4-Flash | ||||
| Speech-to-Speech | 56.48 | 11.97 | 31.55 | 0.00 |
| Pipecat | 56.94 | 11.97 | 31.10 | 0.00 |
| LiveKit | 59.45 | 12.88 | 27.67 | 0.00 |
| Window Thinking (SHANKS) | 57.24 | 14.33 | 28.43 | 20.05 |
| Heartbeat | 55.49 | 16.84 | 27.67 | 62.42 |
| Input group | Success rate |
|---|---|
| Early information | 73.3% |
| Late information | 49.2% |
| Explicit revision | 70.6% |
Tool-Using Agents
Tool-using agents plan and act through external tools, APIs, software interfaces, and environments to complete tasks beyond language generation.
See all 277 papers