UPDF AI

Token Level Routing Inference System for Edge Devices

Jianshu She,Wenhao Zheng,4 Authors,Qirong Ho

2025 · DOI: 10.48550/arXiv.2504.07878
Annual Meeting of the Association for Computational Linguistics · 4 Citations

TLDR

This work presents a novel collaborative decoding inference system that allows small models to perform on-device inference while selectively consulting a cloud-based large model for critical token generation, and achieves a 60% performance gain on CommonsenseQA using only a 0.5B model on an M1 MacBook.

Abstract

The computational complexity of large language model (LLM) inference significantly constrains their deployment efficiency on edge devices. In contrast, small language models offer faster decoding and lower resource consumption but often suffer from degraded response quality and heightened susceptibility to hallucinations. To address this trade-off, collaborative decoding, in which a large model assists in generating critical tokens, has emerged as a promising solution. This paradigm leverages the strengths of both model types by enabling high-quality inference through selective intervention of the large model, while maintaining the speed and efficiency of the smaller model. In this work, we present a novel collaborative decoding inference system that allows small models to perform on-device inference while selectively consulting a cloud-based large model for critical token generation. Remarkably, the system achieves a 60% performance gain on CommonsenseQA using only a 0.5B model on an M1 MacBook, with under 7% of tokens generation uploaded to the large model in the cloud.