Jump to content

Neural processing unit

From Wikipedia, the free encyclopedia

Image
A Hailo AI Accelerator Module attached to a Raspberry Pi 5 via an M.2 adapter hat (2024)

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][3] designed to accelerate artificial intelligence and machine learning applications, including artificial neural networks and computer vision. NPU can be standalone, a part of a CPU or a part of a GPU.

Use

[edit]

Their purpose is either to efficiently execute already trained AI models like LLMs (inference) or to train AI models. NPUs can be more efficient in terms of speed or power consumption.[4]

NPU applications include algorithms for robotics, Internet of things, and data-intensive or sensor-driven tasks.[5] They are often manycore or spatial designs and focus on low-precision arithmetic, novel dataflow architectures, or in-memory computing capability. As of 2024, a widely used datacenter-grade AI integrated circuit chip, the Nvidia H100 GPU, contains tens of billions of MOSFETs.[6]

Consumer devices

[edit]

AI accelerators are used in Apple silicon, Qualcomm, Samsung, Huawei,[7] and Google Tensor smartphone processors.[8] When used as part of a GPU for graphics rendering, they can significantly reduce resource use by allowing the traditional parts of the GPU to render a scene at a much lower resolution and frame rate (e.g., 540p at 30 fps) and then using a pre-trained AI model on the NPU to turn that base imagery into smoother and higher resolution output (e.g., 2160p at 240 fps) in real-time.

Vision processing units are accelerators specialized for machine vision algorithms such as CNN (convolutional neural networks) and SIFT (scale-invariant feature transform). They are used in devices that need to keep track of objects visually such as AR headsets and drones.[9][10][11]

It is more recently (circa 2017) added to processors from Apple[12] and (circa 2022) to processors from Intel[13] and AMD.[14] All models of Intel Meteor Lake processors have a built-in versatile processor unit (VPU) for accelerating inference for computer vision and deep learning.[15]

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.[16]

Datacenters

[edit]
Image
The Google Tensor Processing Unit (TPU) v4 package (ASIC in center plus 4 HBM stacks) and printed circuit board (PCB) with 4 liquid-cooled packages; the board's front panel has 4 top-side PCIe connectors (2023).

Accelerators are used in cloud computing servers: e.g., tensor processing units (TPU) for Google Cloud Platform,[17] and Trainium and Inferentia chips for Amazon Web Services.[18] 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.[19]

Scientific computation

[edit]

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 especially benefited as they have limited FP64 hardware capacity, showing a 6× speedup.[20] Since CUDA Toolkit 13.0 Update 2, cuBLAS automatically uses INT8-emulated FP64 matrix multiplication of the equivalent precision if it is faster than native. This is in addition to the FP16-emulated FP32 feature introduced in version 12.9.[21]

Programming

[edit]

An operating system or a higher-level library may provide application programming interfaces such as TensorFlow with LiteRT Next (Android), CoreML (iOS, macOS) or DirectML (Windows). 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),[a] 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.[22]

Notes

[edit]
  1. MLX builds atop the CPU and GPU parts, not the Apple Neural Engine (ANE) part of Apple Silicon chips. The relatively good performance is due to the use of a large, fast unified memory design.

See also

[edit]

References

[edit]
  1. Page, Carly (July 21, 2017). "Intel unveils Movidius Compute Stick USB AI Accelerator". V3. Archived from the original on August 11, 2017. Retrieved August 11, 2017.
  2. "Inspur Unveils GX4 Ai Accelerator". insideHPC. June 21, 2017. Archived from the original on June 21, 2017.
  3. Wiggers, Kyle (November 6, 2019). "Neural Magic raises $15 million to boost AI inferencing speed on off-the-shelf processors". VentureBeat. Archived from the original on March 6, 2020.
  4. "Intel Core vs Ultra: How to Choose (Comprehensive Guide)". GEEKOM. March 24, 2025. Retrieved July 5, 2026.
  5. Merritt, Rick (May 18, 2016). "Google Designing AI Processors". EE Times. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  6. Moss, Sebastian (March 23, 2022). "Nvidia reveals new Hopper H100 GPU, with 80 billion transistors". Data Center Dynamics. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  7. "HUAWEI Reveals the Future of Mobile AI at IFA 2017". HUAWEI Global. September 2, 2017. Archived from the original on November 10, 2021. Retrieved January 28, 2024.
  8. "Snapdragon 8 Gen 3 mobile platform" (PDF). Archived from the original (PDF) on October 25, 2023.
  9. Weckler, Adrian (February 14, 2016). "Dublin tech firm Movidius to power Google's new virtual reality headset". Independent.ie. Archived from the original on February 19, 2016. Retrieved March 15, 2016.
  10. "DJI Brings Two New Flagship Drones to Lineup Featuring Myriad 2 VPUs - Machine Vision Technology - Movidius". Movidius. November 15, 2016. Archived from the original on November 26, 2016.
  11. O'Connor, Fred (May 1, 2015). "Microsoft dives deeper into HoloLens details: 'Holographic processor' role revealed". PCWorld. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  12. "The future is here: iPhone X". Apple. September 12, 2017. Retrieved July 5, 2026.
  13. "Intel's Lunar Lake Processors Arriving Q3 2024". Intel. May 20, 2024. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  14. "AMD XDNA™ Architecture". AMD. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  15. Kan, Michael (August 1, 2022). "Intel to Bring a 'VPU' Processor Unit to 14th Gen Meteor Lake Chips". PCMag. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  16. Burns, Peter (April 24, 2024). "A guide to AI TOPS and NPU performance metrics". Qualcomm. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  17. Jouppi, Norman P.; et al. (June 24, 2017). "In-Datacenter Performance Analysis of a Tensor Processing Unit". ACM SIGARCH Computer Architecture News. 45 (2): 1–12. arXiv:1704.04760. doi:10.1145/3140659.3080246.
  18. "How silicon innovation became the 'secret sauce' behind AWS's success". Amazon Science. July 27, 2022. Retrieved July 5, 2026.
  19. Patel, Dylan; Nishball, Daniel; Xie, Myron (November 9, 2023). "Nvidia's New China AI Chips Circumvent US Restrictions | H20 Faster Than H100 | Huawei Ascend 910B". SemiAnalysis. Retrieved July 5, 2026.
  20. Ootomo, Hiroyuki; Ozaki, Katsuhisa; Yokota, Rio (July 2024). "DGEMM on integer matrix multiplication unit". The International Journal of High Performance Computing Applications. 38 (4): 297–313. arXiv:2306.11975. doi:10.1177/10943420241239588.
  21. Brower, Cole; Gunnels, John; Lopez, Graham (October 24, 2025). "Unlocking Tensor Core Performance with Floating Point Emulation in cuBLAS". NVIDIA Technical Blog. Retrieved July 5, 2026.{{cite web}}: CS1 maint: url-status (link)
  22. Tavenrath, Markus (2025). Current Status of AI-related Standardization in the Khronos Group (PDF). Global ICT Standards Conference 2025.
[edit]