Efficient INT8 Inference of Small NLP Models on Server CPUs with PyTorch Native Stack

📅 2026-08-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究通过在PyTorch原生栈中集成SmoothQuant并优化推理路径,解决了小规模NLP模型在服务器CPU上的高效INT8推理问题,显著提升了吞吐量。
📝 Abstract
Small NLP models, especially BERT-family encoders, remain important in industrial workloads such as classification, ranking, and retrieval even in the era of large language models. On server CPUs, INT8 quantization offers an attractive latency-throughput-cost trade-off, but users increasingly expect such acceleration to be available directly in the native PyTorch stack. We integrate SmoothQuant into TorchAO and optimize the resulting inference path for Intel Xeon CPUs through graph-level fusion in TorchInductor and efficient INT8 GEMM kernel selection across oneDNN-, AVX512_VNNI-, and AMX-based implementations. Across BERT, DistilBERT, and XLM-RoBERTa benchmarks, the approach delivers up to 5.8x end-to-end throughput speedup with negligible---and in some cases no measurable---accuracy loss relative to the FP32 baseline. We also validated our work by detailed performance analysis with roofline models. The implementation has been upstreamed to PyTorch and TorchAO, enabling out-of-the-box deployment with native PyTorch tooling
Problem

Research questions and friction points this paper is trying to address.

INT8 inference
server CPUs
PyTorch native stack
small NLP models
Innovation

Methods, ideas, or system contributions that make the work stand out.

SmoothQuant
INT8 Quantization
TorchInductor
Graph-level Fusion
Efficient INT8 GEMM
💼 Related Jobs
No related jobs found.
W
Weiwen Xia
Intel Corporation
Yuxin Cui
Yuxin Cui
Tsinghua university
E
E Cao
Intel Corporation