[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-273568-105":59,"doc-detail-273568-en":131,"doc-similar-273568":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","efficient-int8-inference-of-small-nlp-models-on-server-cpus-with-pytorch-native-stack-preprint","EFFICIENT INT8 INFERENCE OF SMALL NLP MODELS ON SERVER CPUS WITH PYTORCH NATIVE STACK - Preprint","","Small NLP models, especially BERT-family encoders, remain essential for industrial classification, ranking, and retrieval even as large language models grow. On server CPUs, INT8 quantization can significantly improve latency, throughput, and cost, but users increasingly want this acceleration directly inside the native PyTorch stack. This preprint integrates SmoothQuant into TorchAO and optimizes CPU inference on Intel Xeon using graph fusion in TorchInductor and efficient INT8 GEMM kernels spanning oneDNN, AVX512_VNNI, and AMX.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/efficient-int8-inference-of-small-nlp-models-on-server-cpus-with-pytorch-native-stack-preprint/273568/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/efficient-int8-inference-of-small-nlp-models-on-server-cpus-with-pytorch-native-stack-preprint/273568.png","ImageObject",300,407,{"name":92,"@type":93},"Noah","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-09-15",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does the work address for small NLP model inference on CPUs?","Question",{"text":113,"@type":114},"The work targets efficient inference for BERT-family models on server CPUs, where FP32 transformer execution is often suboptimal and INT8 acceleration should be available directly in the native PyTorch ecosystem.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How is SmoothQuant used in this approach?",{"text":118,"@type":114},"SmoothQuant is integrated into TorchAO within the native PyTorch stack to mitigate activation outliers in transformers, enabling more efficient standard INT8 arithmetic on common CPU hardware.",{"name":120,"@type":111,"acceptedAnswer":121},"What performance gains and accuracy impact are reported?",{"text":122,"@type":114},"On benchmarks for BERT, DistilBERT, and XLM-RoBERTa, the approach reports up to 5.8× end-to-end throughput speedup with negligible—and sometimes no measurable—accuracy loss versus the FP32 baseline.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},273568,1789472091,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":130,"read_time":145,"preview_page_count":19,"preview_urls":146},8796095462418,"https://ap-avatar.wpscdn.com/avatar/80000253c1241d02b47?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778826106357471780","arXiv : 2608 . 18 182v 1 [cs .CL] 18 Aug 2026  \nEFFICIENT INT8 INFERENCE OF SMALL NLP MODELS ON SERVER CPUS WITH PYTORCH NATIVE STACK  \nA PREPRINT  \nWeiwen Xia, Yuxin Cui, E Cao  \nIntel Corporation  \n{weiwen.xia,lily.cui,[e.cao}@intel.com](e.cao}@intel.com)  \nABSTRACT  \nSmall 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.8 × 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.  \nKeywords NLP · INT8 quantization · CPU inference · PyTorch · TorchInductor · Roofline Model · Intel Xeon  \n1 Introduction  \nAlthough large language models (LLMs) have attracted much of the recent attention, small NLP models based on the BERT family remain widely deployed for production tasks such as classification, ranking, and retrieval [Devlin et al., 2019, Sanh et al., 2019, Conneau et al., 2020] . CPU inference continues to play a central role in such deployments because of its favorable cost profile and the ubiquity of server CPU infrastructure.  \nWithin the PyTorch ecosystem, there is strong demand for efficient inference using the native software stack. Straightforward FP32 execution on CPU is often suboptimal because transformer inference is dominated by matrix multiplications (GEMM) with substantial compute and memory cost. INT8 quantization is a widely adopted technique for reducing both footprint and execution time while maintaining acceptable accuracy [Jacob et al., 2018, Nagel et al., 2021] . At the same time, modern Intel Xeon CPUs expose instruction-set support such as VNNI and AMX that can substantially accelerate INT8 GEMM workloads [Intel Corporation, 2023] .  \nIn this work, we integrate SmoothQuant [Xiao et al., 2023], a post-training quantization method designed to mitigate activation outliers in transformers, into the native PyTorch stack and optimize its performance on modern Xeon CPUs. Our contributions are:  \n• End-to-end SmoothQuant workflow is integrated into TorchAO’s frontend [Or et al., 2025] and improved for subsequent graph optimizations.  \n• Graph fusion passes in TorchInductor [Ansel et al., 2024] is added for INT8 GEMM operators eliminating runtime overheads of weight layout conversion and handling of post-operations.  \n• Kernel selection is enabled for INT8 GEMM for peak performance to choose between oneDNN-backed kernels [oneDNN Contributors, 2024] and template-based GEMM kernels in TorchInductor’s CPP backend.  \n• AVX512_VNNI microkernel is added in TorchInductor’s CPP backend to cover 3rd Gen Xeon CPUs in addition to AMX-based kernels for newer platforms.  \n• Comprehensive performance analysis with roofline models and benchmarks are conducted to show the effectiveness of the proposed workflow and optimizations.  \n• Benchmarks are conducted on BERT, DistilBERT, and XLM-RoBERTa over SQuAD [Rajpurkar et al., 2016] and MultiNLI [Williams et al., 2018] showing negligible accuracy loss and substantial throughput gains compared to FP32 baselines.  \nThis work strengthens the PyTorch-native inference path for small NLP models on server CPUs, enabling users to deploy SmoothQuant-optimized INT8 inference with mini","cbCaidTgwnacThjS","https://ap.wps.com/l/cbCaidTgwnacThjS","pdf",343642,13,"English","# 1 Introduction\n# 2 Related Work","[{\"question\":\"What problem does the work address for small NLP model inference on CPUs?\",\"answer\":\"The work targets efficient inference for BERT-family models on server CPUs, where FP32 transformer execution is often suboptimal and INT8 acceleration should be available directly in the native PyTorch ecosystem.\"},{\"question\":\"How is SmoothQuant used in this approach?\",\"answer\":\"SmoothQuant is integrated into TorchAO within the native PyTorch stack to mitigate activation outliers in transformers, enabling more efficient standard INT8 arithmetic on common CPU hardware.\"},{\"question\":\"What performance gains and accuracy impact are reported?\",\"answer\":\"On benchmarks for BERT, DistilBERT, and XLM-RoBERTa, the approach reports up to 5.8× end-to-end throughput speedup with negligible—and sometimes no measurable—accuracy loss versus the FP32 baseline.\"}]","EFFICIENT INT8 INFERENCE OF SMALL NLP MODELS ON SERVER CPUS WITH PYTORCH NATIVE STACK - Preprint | PDF",33,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a21dba54a9577481be12132245a0a144.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/10c2a1656d4188de4e67f20dd90362c8.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/59741df736cd3c82c789c4a16c831f70.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/1be6a617769d5657d58445aee2288eca.webp",980,1268,{"list":164,"token":66},[165,172,178,184,191,198,205,211,218,224],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":40,"create_tm":171},83663,"Tile-Level Activation Overlap for Efficient LLM Inference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808994650/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=JuyIQ9PcLMYxQmgb2QbGUoaORnA%3D","tile-level-activation-overlap-for-efficient-llm-inference",22,1784189611,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":140,"category_name":40,"create_tm":177},273578,"Compress and Forget - bitsandbytes Quantization Amplifies Proactive Interference in LLMs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899951856/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=rbdZJmnIfMqtBo%2FVpP6lb%2FRbA3o%3D","compress-and-forget-bitsandbytes-quantization-amplifies-proactive-interference-in-llms",1789472170,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":105,"category_name":40,"create_tm":183},273847,"Target-Aware Calibration Data Selection for Preserving Uncertainty in Quantized Language Models - arXiv 2608.21019v1 - research paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899968946/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=jMc8uMWalf0uQQNpthKOnKGWaTA%3D","target-aware-calibration-data-selection-for-preserving-uncertainty-in-quantized-language-models-arxiv-260821019v1-research-paper",1789472975,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":40,"create_tm":190},81897,"HiFA4 Training-Free 4-bit FlashAttention on Ascend HIF4 NPUs for LLM Inference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808653441/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=ZRZAvnhBC5pf4OMbboGAkVivJZY%3D","hifa4-training-free-4-bit-flashattention-on-ascend-hif4-npus-for-llm-inference",56,1784176927,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":40,"create_tm":197},14438,"HGQ High Granularity Quantization for Real-time Neural Networks on FPGAs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229698995516/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=UQMwBstOs8pzxl63uSd2HH20a00%3D","hgq-high-granularity-quantization-for-real-time-neural-networks-on-fpgas",53,1776559114,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},118016,"OpenMM 8 - Molecular Dynamics Simulation with Machine Learning Potentials - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834728241/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=bR7jWPdsuGJ5OKO7QiT2WMhtE1M%3D","openmm-8-molecular-dynamics-simulation-with-machine-learning-potentials-overview",25,1785680766,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":31,"category_name":40,"create_tm":210},86548,"GPU Tile Sim A Tile-Centric GPU Simulation Framework for LLM Hardware-Software Co-Design","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809426534/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=73EVx3Q24Wps%2FjrXjkFYSi43M0s%3D","gpu-tile-sim-a-tile-centric-gpu-simulation-framework-for-llm-hardware-software-co-design",1784212562,{"doc_id":212,"doc_title":213,"file_type":138,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},86562,"Decomposing Runtime, Kernel, and Quantization Speedups via a Matched FP16 Intermediate: A Hardware-Conditioned Case Study on Four NVIDIA RTX A5000 GPUs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809530226/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=PU6kOklIhVwb3F9DcZvlLiTyU9w%3D","decomposing-runtime-kernel-and-quantization-speedups-via-a-matched-fp16-intermediate-a-hardware-conditioned-case-study-on-four-nvidia-rtx-a5000-gpus",26,1784212645,{"doc_id":219,"doc_title":220,"file_type":138,"home_preview_img_url":221,"slug":222,"view_count":56,"category_name":40,"create_tm":223},422941,"Broadening BERT vocabulary for Knowledge Graph Construction using Wikipedia2Vec","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922609914/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=ZCCC%2B%2FFA%2FkKgz9W573wUHxw0xw4%3D","broadening-bert-vocabulary-for-knowledge-graph-construction-using-wikipedia2vec",1790629386,{"doc_id":225,"doc_title":226,"file_type":138,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":40,"create_tm":230},121450,"Performance Benchmarking of Traditional Machine Learning and Transformer Models for Multi-Class Text - Classification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835488441/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109119&Signature=0utl2fYcT5qQr6vc9yjshoR5nb8%3D","performance-benchmarking-of-traditional-machine-learning-and-transformer-models-for-multi-class-text-classification",29,1785735716]