Neural processing unit explained

A neural processing unit (NPU), also known as an AI accelerator or deep learning processor, is a class of specialized hardware accelerator[1] or computer system[2] designed to accelerate artificial intelligence and machine learning applications, including artificial neural networks and computer vision.

Use

Their purpose is either to efficiently execute already trained AI models (inference) or to train AI models. Their applications include algorithms for robotics, Internet of things, and data-intensive or sensor-driven tasks.[3] They are often manycore or spatial designs and focus on low-precision arithmetic, novel dataflow architectures, or in-memory computing capability., a widely used datacenter-grade AI integrated circuit chip, the Nvidia H100 GPU, contains tens of billions of MOSFETs.[4]

Consumer devices

AI accelerators are used in mobile devices such as Apple iPhones, AMD AI engines[5] in Versal and NPUs, Huawei, and Google Pixel smartphones,[6] and seen in many Apple silicon, Qualcomm, Samsung, and Google Tensor smartphone processors.[7]

It is more recently (circa 2022) added to computer processors from Intel,[8] AMD,[9] and Apple silicon.[10] All models of Intel Meteor Lake processors have a built-in versatile processor unit (VPU) for accelerating inference for computer vision and deep learning.[11]

On consumer devices, the NPU is intended to be small, power-efficient, but reasonably fast when used to run small models. To do this they are designed to support low-bitwidth operations using data types such as INT4, INT8, FP8, and FP16. A common metric is trillions of operations per second (TOPS). Although TOPS does not explicitly specify the kind of operations, it is typically INT8 additions and multiplications.[12]

Datacenters

Accelerators are used in cloud computing servers: e.g., tensor processing units (TPU) for Google Cloud Platform,[13] and Trainium and Inferentia chips for Amazon Web Services.[14] Many vendor-specific terms exist for devices in this category, and it is an emerging technology without a dominant design.

Since the late 2010s, graphics processing units designed by companies such as Nvidia and AMD often include AI-specific hardware in the form of dedicated functional units for low-precision matrix-multiplication operations. These GPUs are commonly used as AI accelerators, both for training and inference.[15]

Scientific computation

Although NPUs are tailored for low-precision (e.g. FP16, INT8) matrix multiplication operations, they can be used to emulate higher-precision matrix multiplications in scientific computing. As modern GPUs place much focus on making the NPU part fast, using emulated FP64 (Ozaki scheme) on NPUs can potentially outperform native FP64: this has been demonstrated using FP16-emulated FP64 on NVIDIA TITAN RTX and using INT8-emulated FP64 on NVIDIA consumer GPUs and the A100 GPU. (Consumer GPUs are especially benefitted by this scheme as they have small amounts of FP64 hardware capacity, showing a 6× speedup.)[16] Since CUDA Toolkit 13.0 Update 2, cuBLAS automatically uses INT8-emulated FP64 matrix multiplication of the equivalent precision if it's faster than native. This is in addition to the FP16-emulated FP32 feature introduced in version 12.9.[17]

Programming

An operating system or a higher-level library may provide application programming interfaces such as TensorFlow Lite with LiteRT Next (Android) or CoreML (iOS, macOS). Formats such as ONNX are used to represent trained neural networks.

Consumer CPU-integrated NPUs are accessible through vendor-specific APIs. AMD (Ryzen AI), Intel (OpenVINO), Apple silicon (CoreML), and Qualcomm (SNPE) each have their own APIs, which can be built upon by a higher-level library.

GPUs generally use existing GPGPU pipelines such as CUDA and OpenCL adapted for lower precisions and specialized matrix-multiplication operations. Vulkan is also being used. Custom-built systems such as the Google TPU use private interfaces.

There are a large number of separate underlying acceleration APIs and compilers/runtimes in use in the AI field, causing a great increase in software development effort due to the many combinations involved. As of 2025, the open standard organization Khronos Group is pursuing standardization of AI-related interfaces to reduce the amount of work needed. Khronos is working on three separate fronts: expansion of data types and intrinsic operations in OpenCL and Vulkan, inclusion of compute graphs in SPIR-V, and a NNEF/SkriptND file format for describing a neural network.[18]

See also

External links

Notes and References

  1. Web site: Intel unveils Movidius Compute Stick USB AI Accelerator . July 21, 2017 . August 11, 2017 . https://web.archive.org/web/20170811193632/https://www.v3.co.uk/v3-uk/news/3014293/intel-unveils-movidius-compute-stick-usb-ai-accelerator . August 11, 2017 .
  2. Web site: Inspurs unveils GX4 AI Accelerator . June 21, 2017.
  3. Web site: Google Designing AI Processors. May 18, 2016 . Google using its own AI accelerators.
  4. Web site: Nvidia reveals new Hopper H100 GPU, with 80 billion transistors. Moss. Sebastian. 2022-03-23. Data Center Dynamics. 2024-01-30.
  5. Book: Brown, Nick . Exploring the Versal AI Engines for Accelerating Stencil-based Atmospheric Advection Simulation . 2023-02-12 . Proceedings of the 2023 ACM/SIGDA International Symposium on Field Programmable Gate Arrays . https://dl.acm.org/doi/10.1145/3543622.3573047 . FPGA '23 . New York, NY, USA . Association for Computing Machinery . 91–97 . 10.1145/3543622.3573047 . 978-1-4503-9417-8. 2301.13016 .
  6. Web site: HUAWEI Reveals the Future of Mobile AI at IFA. January 28, 2024. November 10, 2021. https://web.archive.org/web/20211110131401/https://consumer.huawei.com/en/press/news/2017/ifa2017-kirin970/. dead.
  7. Web site: Snapdragon 8 Gen 3 mobile platform . https://web.archive.org/web/20231025162610/https://docs.qualcomm.com/bundle/publicresource/87-71408-1_REV_B_Snapdragon_8_gen_3_Mobile_Platform_Product_Brief.pdf . 2023-10-25.
  8. Web site: Intel's Lunar Lake Processors Arriving Q3 2024. Intel. May 20, 2024 .
  9. Web site: AMD XDNA Architecture.
  10. Web site: Deploying Transformers on the Apple Neural Engine . 2023-08-24 . Apple Machine Learning Research . en-US.
  11. Web site: Intel to Bring a 'VPU' Processor Unit to 14th Gen Meteor Lake Chips. PCMAG. August 2022 .
  12. Web site: A guide to AI TOPS and NPU performance metrics .
  13. 2017-06-24. In-Datacenter Performance Analysis of a Tensor Processing Unit. ACM SIGARCH Computer Architecture News. 45. 2. 1–12. EN. 10.1145/3140659.3080246. free . Jouppi . Norman P. . Young . Cliff . Patil . Nishant . Patterson . David . Agrawal . Gaurav . Bajwa . Raminder . Bates . Sarah . Bhatia . Suresh . Boden . Nan . Borchers . Al . Boyle . Rick . Cantin . Pierre-luc . Chao . Clifford . Clark . Chris . Coriell . Jeremy . Daley . Mike . Dau . Matt . Dean . Jeffrey . Gelb . Ben . Ghaemmaghami . Tara Vazir . Gottipati . Rajendra . Gulland . William . Hagmann . Robert . Ho . C. Richard . Hogberg . Doug . Hu . John . Hundt . Robert . Hurt . Dan . Ibarz . Julian . Jaffey . Aaron . 1 . 1704.04760 .
  14. Web site: How silicon innovation became the 'secret sauce' behind AWS's success. Amazon Science. July 27, 2022. July 19, 2024.
  15. Web site: Patel. Dylan. Nishball. Daniel. Xie. Myron. Nvidia's New China AI Chips Circumvent US Restrictions. SemiAnalysis. 2023-11-09. 2024-02-07.
  16. Ootomo . Hiroyuki . Ozaki . Katsuhisa . Yokota . Rio . DGEMM on integer matrix multiplication unit . The International Journal of High Performance Computing Applications . July 2024 . 38 . 4 . 297–313 . 10.1177/10943420241239588 . 2306.11975.
  17. Web site: Unlocking Tensor Core Performance with Floating Point Emulation in cuBLAS . NVIDIA Technical Blog . 24 October 2025.
  18. Tavenrath . Markus . Current Status of AI-related Standardization in the Khronos Group . Global ICT Standards Conference 2025. 2025.