Skip to main navigation Skip to search Skip to main content

基于自适应张量交换和重算的大模型推理优化

Translated title of the contribution: Inference Optimization for Large Models Based on Adaptive Tensor Swapping and Recomputation
  • Beihang University

Research output: Contribution to journalArticlepeer-review

Abstract

Large Language Models (LLM) have demonstrated outstanding performance in natural language processing tasks. However, their extremely large parameter scales pose a significant challenge because the limited capacity of GPU memory becomes a performance bottleneck for inference tasks. To address this issue in the context of LLM inference services, this study proposes AdaptiveLLM, which enables the adaptive selection of offloading strategies between tensor swapping and tensor recomputation based on the characteristics of inference task workloads. To evaluate the characteristics of inference task workloads, AdaptiveLLM establishes a black-box Machine Learning (ML) model through an operator-level computational complexity analysis to predict the overhead of tensor recomputation. It also predicts the overhead of tensor swapping by conducting a fine-grained analysis of KV Cache memory usage. For the adaptive selection of offloading strategies, AdaptiveLLM designs a cost-aware memory optimization strategy specifically for the pre-emption scheduling phase. When GPU memory is insufficient, it opts for the offloading approach with a lower overhead. For the initiation scheduling phase, it devises a fairness-based user-request scheduling strategy. When GPU memory is available, it schedules more user requests in accordance with the principle of fairness. Experimental results indicate that, compared with currently widely used LLM inference benchmark frameworks, AdaptiveLLM achieves an overall increase in throughput while reducing the average weighted turnaround time, thereby realizing fair scheduling.

Translated title of the contributionInference Optimization for Large Models Based on Adaptive Tensor Swapping and Recomputation
Original languageChinese (Traditional)
Pages (from-to)27-36
Number of pages10
JournalJisuanji Gongcheng/Computer Engineering
Volume51
Issue number10
DOIs
StatePublished - 15 Oct 2025

Fingerprint

Dive into the research topics of 'Inference Optimization for Large Models Based on Adaptive Tensor Swapping and Recomputation'. Together they form a unique fingerprint.

Cite this