Research on efficient inference of large language model based on routing policy

To solve the problem of balancing high cost and high performance in large language model (LLMs) inference scenarios, an adaptive routing strategy (MA-Router) with multi-modal attention mechanism is proposed in this paper. By constructing a hierarchical data enhancement framework and a two-channel attention routing network, fine-grained perception of problem complexity and optimization of dynamic model selection are realized. Firstly, a data enhancement method based on syntax tree reconstruction and knowledge graph extension is designed to effectively alleviate the sparsity and domain bias of training data. Secondly, a semantic-grammatical dual-modal feature extraction module is proposed, which uses DeBERTa-v3 to encode semantic information and capture dependency syntactic structure with graph neural network (GNN). Furthermore, the cross-attention mechanism is introduced to integrate multi-modal features, and the model capability-problem complexity bipartite graph is constructed for relational reasoning. Finally, hierarchical reinforcement learning Agent dynamically adjusts the routing threshold to realize the environment adaptive decision optimization. In the three benchmark tests of MMLU, MT-Bench and GSM8K, compared with the optimal baseline model RouteLLM, MA-Router reduced the call rate of strong model (GPT-4) by 32.7% (CPT(80%) to 26.15%), and the inference cost was reduced by 2.8 times. At the same time, the response quality of 95.2% was maintained (APGR=0.682). Ablation experiments show that syntactic feature channels and reinforcement learning modules contribute 14.2% and 29.3% performance gains, respectively. This research provides an efficient and scalable solution for multi-model collaborative reasoning system, which shows significant application value in real-time scenarios such as customer service dialogue and code generation.

Authors

Institutions

Publication Details

Published
2025-05-09
DOI
https://doi.org/10.1109/cisce65916.2025.11065479
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on efficient inference of large language model based on routing policy

Yizhong Zhang, Pengfei Shan, Xi Wei, Dong Liu
Natural Language Processing Techniques
article

Research on efficient inference of large language model based on routing policy

Yizhong Zhang, Pengfei Shan, Xi Wei, Dong Liu
article en

Abstract

To solve the problem of balancing high cost and high performance in large language model (LLMs) inference scenarios, an adaptive routing strategy (MA-Router) with multi-modal attention mechanism is proposed in this paper. By constructing a hierarchical data enhancement framework and a two-channel attention routing network, fine-grained perception of problem complexity and optimization of dynamic model selection are realized. Firstly, a data enhancement method based on syntax tree reconstruction and knowledge graph extension is designed to effectively alleviate the sparsity and domain bias of training data. Secondly, a semantic-grammatical dual-modal feature extraction module is proposed, which uses DeBERTa-v3 to encode semantic information and capture dependency syntactic structure with graph neural network (GNN). Furthermore, the cross-attention mechanism is introduced to integrate multi-modal features, and the model capability-problem complexity bipartite graph is constructed for relational reasoning. Finally, hierarchical reinforcement learning Agent dynamically adjusts the routing threshold to realize the environment adaptive decision optimization. In the three benchmark tests of MMLU, MT-Bench and GSM8K, compared with the optimal baseline model RouteLLM, MA-Router reduced the call rate of strong model (GPT-4) by 32.7% (CPT(80%) to 26.15%), and the inference cost was reduced by 2.8 times. At the same time, the response quality of 95.2% was maintained (APGR=0.682). Ablation experiments show that syntactic feature channels and reinforcement learning modules contribute 14.2% and 29.3% performance gains, respectively. This research provides an efficient and scalable solution for multi-model collaborative reasoning system, which shows significant application value in real-time scenarios such as customer service dialogue and code generation.

Midea Group (China) (CN)
Openalex Percentile: Top 92%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.