Skip to content
Open access

Inference-Time Compute Allocation in LLMs: Dynamic Depth and Token Selection for Efficient Problem Solving

Oct 2026 · WSEAS Transactions on Computers · 0 citations · 11 references

TL;DR

D²TS-LLM is proposed, a unified plug-and-play framework for Dynamic Depth and Token Selection that achieves on-demand computational resource allocation for LLM inference and achieves superior efficiency-performance trade-offs and strong cross-model and cross-dataset generalization.

Abstract

Large language models (LLMs) deliver impressive performance across diverse natural language processing tasks, but their intensive computation and memory requirements severely restrict real-world deployment, especially on edge devices and in latency-sensitive cloud services. Static inference pipelines execute full layers and full tokens for all inputs, resulting in significant resource waste for simple and routine queries. Although dynamic inference methods have emerged to alleviate this issue, most focus only on either layer-level or token-level optimization, and few provide reliable mechanisms to guarantee bounded performance degradation. In this paper, we propose D²TS-LLM, a unified plug-and-play framework for Dynamic Depth and Token Selection that achieves on-demand computational resource allocation for LLM inference. The framework consists of a multi-dimensional lightweight perceptron for estimating input difficulty and token importance, a joint decision module for adaptive layer activation and token-aware computation reduction, and a lightweight performance monitor with dynamic fallback to ensure performance loss remains within a predefined safe threshold. Extensive experiments on representative LLMs (LLaMA-7B, LLaMA-13B, OPT-6.7B) and five common benchmarks (MMLU, GSM8K, SQuAD v2.0, CNN/Daily Mail, Alpaca) demonstrate that D²TS-LLM reduces computational cost by 42.3%–61.3% and accelerates inference by 38.2%–55.7% with performance loss controlled below 1%. Compared with representative state-of-the-art dynamic inference, quantization, and cache optimization methods, our approach achieves superior efficiency-performance trade-offs and strong cross-model and cross-dataset generalization.

Read PDF

Similar papers

#large language models Open access Dec 2026

ALPS: An Application-Aware, Length-Predictive Scheduler for Efficient LLM Inference at Edge

The deployment of Large Language Models (LLMs) on resource-constrained edge server clusters introduces a critical systems challenge: achieving high throughput and low latency under strict GPU memory and bandwidth limits. Current schedulers are ill-suited for this environment, as they treat requests independently, incur...

Chen Chen, Lei Jiao, R. Mortier · 1 citation
#artificial intelligence Preprint Oct 2026

Stable Token-level Scheduling for Serverless LLM Inference

Token Window Pacing (TWP), a closed-loop scheduling framework that leverages runtime feedback from ITL, queue depth, and workload characteristics to regulate request admission at the token level instead of the batch level, enables stable, high-throughput serverless LLM inference without modifying the underlying model.

Hardi Ashishbhai Desai, K. BalajiN, Sourav Kanti Addya · 0 citations
#natural language process... Preprint Oct 2026

TokenRouter: Efficient Serving System for Token-Level LLM Routing

Large language model (LLM) routing distributes inference work across different models, advancing the cost-quality Pareto frontier of LLM serving. While coarse-grained routing at the session or query level has been widely adopted in production systems, recent algorithmic work shows that fine-grained token-level routing...

Tianyu Fu, Teng-Xuan Liu, Ruo-Xin Wang et al. · 0 citations
Open access Oct 2026

Stage-Aware Optimization of Llama 3 Model Inference for Language Services on Many-Core CPUs

LLM-based language services (e.g., summarization, translation, and question answering) require low-latency and cost-effective inference, yet GPU resources may be costly, unavailable, or difficult to integrate in many deployments. Many-core CPUs provide a flexible alternative, but achieving efficient inference requires...

Lan-Xin Zhao, Dong Huang, Wan-Rong Gao et al. · 0 citations
#machine learning Preprint Nov 2026

ACSeL: Adaptive Configuration Search for Hardware-Constrained LLM Inference

Serving large language models (LLMs) under tight memory and latency service-level objectives (SLOs), including on edge devices, requires jointly selecting the model size, batch size, quantization algorithm, and mixed-precision quantization recipes. Exhaustive search over this combinatorially large space is infeasible....

Bo-Kun Wang, Hung-Yueh Chiang, Diana Marculescu · 0 citations
Preprint Oct 2026

Request-Adaptive Execution for Efficient Hybrid LLM Inference

Morph is a serving system that co-designs the model architecture and runtime for request-adaptive hybrid LLM inference and uses prefill-oriented gating to select a request-specific layout that remains fixed throughout decoding.

Fa-Hao Chen, Xu-Zhe Yan, Qi Zhang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.