SAIR: Cost-Efficient Multi-Stage ML Pipeline Autoscaling via In-Context Reinforcement Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Su, Jianchang, Zhang, Yifan, Lin, Shengkai, Zhao, Shizhen, Zheng, Yusheng, Yang, Yiwei, Zhang, Wei
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917233342545920
author Su, Jianchang
Zhang, Yifan
Lin, Shengkai
Zhao, Shizhen
Zheng, Yusheng
Yang, Yiwei
Zhang, Wei
author_facet Su, Jianchang
Zhang, Yifan
Lin, Shengkai
Zhao, Shizhen
Zheng, Yusheng
Yang, Yiwei
Zhang, Wei
contents Multi-stage ML inference pipelines are difficult to autoscale due to heterogeneous resources, cross-stage coupling, and dynamic bottleneck migration. We present SAIR, an autoscaling framework that uses an LLM as an in-context reinforcement learning controller, improving its policy online from reward-labeled interaction histories without gradient updates. SAIR combines Pareto-dominance reward shaping with a provable separation margin, surprisal-guided experience retrieval for context efficiency, and fine-grained GPU rate control via user-space CUDA interception. We provide regret analysis decomposing error into retrieval coverage and LLM selection components. On four ML serving pipelines under three workload patterns, SAIR achieves the best or tied-best P99 latency and effective resource cost among deployed baselines, improving P99 by up to 50% and reducing effective cost by up to 97% (under GPU rate-control assumptions), with 86% bottleneck detection accuracy and no offline training.
format Preprint
id arxiv_https___arxiv_org_abs_2601_22397
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle SAIR: Cost-Efficient Multi-Stage ML Pipeline Autoscaling via In-Context Reinforcement Learning
Su, Jianchang
Zhang, Yifan
Lin, Shengkai
Zhao, Shizhen
Zheng, Yusheng
Yang, Yiwei
Zhang, Wei
Machine Learning
Distributed, Parallel, and Cluster Computing
Multi-stage ML inference pipelines are difficult to autoscale due to heterogeneous resources, cross-stage coupling, and dynamic bottleneck migration. We present SAIR, an autoscaling framework that uses an LLM as an in-context reinforcement learning controller, improving its policy online from reward-labeled interaction histories without gradient updates. SAIR combines Pareto-dominance reward shaping with a provable separation margin, surprisal-guided experience retrieval for context efficiency, and fine-grained GPU rate control via user-space CUDA interception. We provide regret analysis decomposing error into retrieval coverage and LLM selection components. On four ML serving pipelines under three workload patterns, SAIR achieves the best or tied-best P99 latency and effective resource cost among deployed baselines, improving P99 by up to 50% and reducing effective cost by up to 97% (under GPU rate-control assumptions), with 86% bottleneck detection accuracy and no offline training.
title SAIR: Cost-Efficient Multi-Stage ML Pipeline Autoscaling via In-Context Reinforcement Learning
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2601.22397