RealtimeTool: Parallel Decoding for Real-Time LLM Function Calling

Xiaoxin Shi, Jiaxin Wan, Linkang Dong, Wei Jiang, Yue Liu, Zengfeng Huang
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:112212-112237, 2026.

Abstract

LLM-based function calling enables intelligent agents to interact with external tools and environments, yet autoregressive decoding imposes a fundamental latency bottleneck that limits real-time applications such as embodied intelligence, game AI, and interactive avatars (e.g., 10 Hz control frequency). We observe that function calling differs fundamentally from free-form text generation: structured outputs exhibit substantial token redundancy (delimiters, parameter names) and weak causal dependencies among arguments—two properties that must be exploited jointly to achieve real-time performance. We present RealtimeTool, which introduces special tokens that serve a dual role: compressing low-entropy tokens (4–6$\times$ reduction) while acting as mode selectors that enable independent parallel generation of function name and arguments. This synergistic design achieves 3–6$\times$ end-to-end speedup (up to 9.6$\times$) with only +8.2% parallelization overhead, while maintaining competitive or improved accuracy across five benchmarks on Qwen-series models (0.5B–14B). With quantization on a consumer-grade GPU, RealtimeTool reaches 61.2 ms P50 latency at 4B scale—enabling 16 Hz real-time control and bridging the gap between LLM function calling and latency-critical real-world deployment.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-shi26w, title = {{R}ealtime{T}ool: Parallel Decoding for Real-Time {LLM} Function Calling}, author = {Shi, Xiaoxin and Wan, Jiaxin and Dong, Linkang and Jiang, Wei and Liu, Yue and Huang, Zengfeng}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {112212--112237}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/shi26w/shi26w.pdf}, url = {https://proceedings.mlr.press/v306/shi26w.html}, abstract = {LLM-based function calling enables intelligent agents to interact with external tools and environments, yet autoregressive decoding imposes a fundamental latency bottleneck that limits real-time applications such as embodied intelligence, game AI, and interactive avatars (e.g., 10 Hz control frequency). We observe that function calling differs fundamentally from free-form text generation: structured outputs exhibit substantial token redundancy (delimiters, parameter names) and weak causal dependencies among arguments—two properties that must be exploited jointly to achieve real-time performance. We present RealtimeTool, which introduces special tokens that serve a dual role: compressing low-entropy tokens (4–6$\times$ reduction) while acting as mode selectors that enable independent parallel generation of function name and arguments. This synergistic design achieves 3–6$\times$ end-to-end speedup (up to 9.6$\times$) with only +8.2% parallelization overhead, while maintaining competitive or improved accuracy across five benchmarks on Qwen-series models (0.5B–14B). With quantization on a consumer-grade GPU, RealtimeTool reaches 61.2 ms P50 latency at 4B scale—enabling 16 Hz real-time control and bridging the gap between LLM function calling and latency-critical real-world deployment.} }
Endnote
%0 Conference Paper %T RealtimeTool: Parallel Decoding for Real-Time LLM Function Calling %A Xiaoxin Shi %A Jiaxin Wan %A Linkang Dong %A Wei Jiang %A Yue Liu %A Zengfeng Huang %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-shi26w %I PMLR %P 112212--112237 %U https://proceedings.mlr.press/v306/shi26w.html %V 306 %X LLM-based function calling enables intelligent agents to interact with external tools and environments, yet autoregressive decoding imposes a fundamental latency bottleneck that limits real-time applications such as embodied intelligence, game AI, and interactive avatars (e.g., 10 Hz control frequency). We observe that function calling differs fundamentally from free-form text generation: structured outputs exhibit substantial token redundancy (delimiters, parameter names) and weak causal dependencies among arguments—two properties that must be exploited jointly to achieve real-time performance. We present RealtimeTool, which introduces special tokens that serve a dual role: compressing low-entropy tokens (4–6$\times$ reduction) while acting as mode selectors that enable independent parallel generation of function name and arguments. This synergistic design achieves 3–6$\times$ end-to-end speedup (up to 9.6$\times$) with only +8.2% parallelization overhead, while maintaining competitive or improved accuracy across five benchmarks on Qwen-series models (0.5B–14B). With quantization on a consumer-grade GPU, RealtimeTool reaches 61.2 ms P50 latency at 4B scale—enabling 16 Hz real-time control and bridging the gap between LLM function calling and latency-critical real-world deployment.
APA
Shi, X., Wan, J., Dong, L., Jiang, W., Liu, Y. & Huang, Z.. (2026). RealtimeTool: Parallel Decoding for Real-Time LLM Function Calling. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:112212-112237 Available from https://proceedings.mlr.press/v306/shi26w.html.

Related Material