atlas

Research map / Architectures and efficiency / RNNs and normalization

Auto-reconfiguration for Latency Minimization in CPU-based DNN Serving

ICML 2025 · Architectures and efficiency › RNNs and normalization · approach: Efficient network compression and training · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Packrat is a TorchServe extension that, for CPU DNN serving, runs multiple thin model instances with fewer threads and smaller batches, choosing the configuration via profiling plus a 2D knapsack-style dynamic program and reconfiguring online without downtime.

Problem

CPU-based DNN serving latency: intra-operator parallelism over many threads gives diminishing returns, and the best mix of instances, threads, and batch size is workload- and hardware-dependent and hard to choose manually.

Approach

Instead of one fat instance using all threads, run several thin instances each with fewer threads and a partitioned batch; an optimizer built on a small set of single-instance profiles picks the <instances, threads, batch> configuration via dynamic programming, and active-passive scaling reconfigures online.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the fat-instance configuration with Packrat-selected multi-instance executionPyTorch inference · ResNet-50, averaged across batch sizesspeedup over fat-instance baseline: 1.53×Helped
Replace the fat-instance configuration with Packrat-selected multi-instance executionPyTorch inference · Inception-v3, averaged across batch sizesspeedup over fat-instance baseline: 1.52×Helped
Replace the fat-instance configuration with Packrat-selected multi-instance executionPyTorch inference · GPT-2, averaged across batch sizesspeedup over fat-instance baseline: 1.18×Helped
Replace the fat-instance configuration with Packrat-selected multi-instance executionPyTorch inference · BERT, averaged across batch sizesspeedup over fat-instance baseline: 1.13×Helped
Automatically reconfigure instances and threads using PackratTorchServe DNN serving · Across models and batch sizesinference latency speedup: 1.43 to 1.83×Helped
Run multiple thin instances concurrently rather than profiling each instance in isolationPackrat multi-instance execution · ResNet-50, T=16, B=256latency: 1224 ms to 1600 msHurt

Surprising findings

Limitations

Experimental setup

Benchmarks: ResNet-50 microbenchmark Inception-v3 microbenchmark GPT-2 microbenchmark BERT microbenchmark end-to-end TorchServe latency and throughput

Metrics: latency speedup throughput speedup

Baselines: fat-instance execution (TorchServe default) single-threaded instances (one per core) PyTorch eager mode

Builds on: TorchServe Intel Extension for PyTorch multi-dimensional knapsack

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy