A few weeks ago, Arm announced its first batch of dedicatedmachine learning(ML) hardware. Under the nameProject Trillium, the company unveiled a dedicated ML processor for products like smartphones, along with a second chip designed specifically to accelerate object detection (OD) use cases. Let’s delve deeper into Project Trillium and the company’s broader plans for the growing market for machine learning hardware.
It’s important to note that Arm’s announcement relates entirely to inference hardware. Its ML and OD processors are designed to efficiently run trained machine learning tasks on consumer-level hardware, rather than training algorithms on huge datasets. To start, Arm is focusing on what it sees as the two biggest markets for ML inference hardware — smartphones and internet protocol/surveillance cameras.
New machine learning processor
Despite the new dedicated machine learning hardware announcements with Project Trillium, Arm remains dedicated to supporting these type of tasks on its CPUs and GPUs too, with optimized dot product functions inside its Cortex-A75 and A55 cores. Trillium augments these capabilities with more heavily optimized hardware, enabling machine learning tasks to be performed with higher performance and much lower power draw. But Arm’s ML processor is not just an accelerator — it’s a processor in its own right.
Why are smartphone chips suddenly including an AI processor?
If virtual assistants have been the breakthrough technology in this year's smartphone software, then the AI processor is surely the equivalent on the hardware side. Apple has taken to calling its latest SoC the A11 Bionic …
The processor boasts a peak throughput of 4.6 TOP/s in a power envelope of 1.5 W, making it suitable for smartphones and even lower power products. This gives the chip a power efficiency of 3 TOPs/W, based on a 7 nm implementation, a big draw for the energy conscious product developer.
Interestingly, Arm’s ML processor is taking a different approach to implementation than Qualcomm, Huawei, and MediaTek, all of which have repurposed digital signal processors (DSPs) to help run machine learning tasks on their high-end processors. During a chat atMWC, Arm vp, fellow and gm of the Machine Learning Group Jem Davies, mentioned buying a DSP company was an option to get into this hardware market, but that ultimately the company decided on a ground-up solution specifically optimized for the most common operations.
Arm’s ML processor is designed exclusively for 8-bit integer operations and convolution neural networks (CNNs). It specializes at mass multiplication of small byte sized data, which should make it faster and more efficient than a general purpose DSP at these type of tasks. CNNs are widely used for image recognition, probably the most common ML task at the moment. All this reading and writing to external memory would ordinarily be a bottleneck in the system, so Arm also included a chunk of internal memory to speed up execution. The size of this memory pool is variable, and Arm expects to offer a selection of optimized designs for its partners, depending on the use case.
Arm’s ML processor is designed for 8-bit integer operations and convolution neural networks.
The ML processor core can be configured from a single core up to 16 cores for increased performance. Each comprises the optimized fixed-function engine as well as a programmable layer. This enables a level of flexibility for developers and ensures the processor is capable of handling new machine learning tasks as they evolve. Control of the unit is overseen by the Network Control Unit.
Finally, the processor contains a Direct Memory Access (DMA) unit, to ensure fast direct access to memory in other parts of the system. The ML processor can function as its own standalone IP block with an ACE-Lite interface for incorporation into a SoC, or operate as a fixed block outside of a SoC, or even integrate into aDynamIQ cluster alongside Armv8.2-A CPUs like the Cortex-A75 and A55. Integration into a DynamIQ cluster could be a very powerful solution, offering low-latency data access to other CPU or ML processors in the cluster and efficient task scheduling.
Fitting everything together
Last year Arm unveiled its Cortex-A75 and A55 CPUs , and high-endMali-G72 GPU, but it didn’t unveil dedicated machine learning hardware until almost a year later. However, Arm did place a fair bit of focus on accelerating common machine learning operations inside its latest hardware and this continues to be part of the company’s strategy going forward.
Its latest Mali-G52 graphics processor for mainstream devices improves the performance of machine learning tasks by 3.6 times, thanks to the introduction of dot product (Int8) support and four multiply-accumulate operations per cycle per lane. Dot product support also appears in the A75, A55, and G72.
Even with the new OD and ML processors, Arm is continuing to support accelerated machine learning tasks across its latest CPUs and GPUs. Its upcoming dedicated machine learning hardware exists to make these tasks more efficient where appropriate, but it’s all part of a broad portfolio of solutions designed to cater to its wide range of product partners.
From single to multi-core CPUs and GPUs, through to optional ML processors which can scale all the way up to 16 cores (available inside and outside a SoC core cluster), Arm can support products ranging from simple smart speakers to autonomous vehicles and data centers, which require much more powerful hardware. Naturally, the company is also supplying software to handle this scalability.
As well as its new ML and OD hardware, Arm supports accelerated machine learning on its latest CPUs and GPU.
The company’s Compute Library is still the tool for handling machine learning tasks across the company’s CPU, GPU, and now ML hardware components. The library offers low-level software functions for image processing, computer vision, speech recognition, and the like, all of which run on the most applicable piece of hardware. Arm is even supporting embedded applications with its CMSIS-NN kernels for Cortex-M microprocessors. CMSIS-NN offers up to 5.4 times more throughput and potentially 5.2 times the energy efficiency over baseline functions.
Such broad possibilities of hardware and software implementation require a flexible software library too, which is where Arm’s Neural Network software comes in. The company isn’t looking to replace popular frameworks like TensorFlow or Caffe, but translates these frameworks into libraries relevant to run on the hardware of any particular product. So if your phone doesn’t have an Arm ML processor, the library will still work by running the task on your CPU or GPU. Hiding the configuration behind the scenes to simplify development is the aim here.
Machine Learning today and tomorrow
At the moment, Arm is squarely focused on powering the inference end of the machine learning spectrum, allowing consumers to run the complex algorithms efficiently on their devices (although the company hasn’t ruled out the possibility of getting involved in hardware for machine learning training at some point in the future). With high-speed5G internet still years away and increasing concerns about privacy and security, Arm’s decision to power ML computing at the edge rather than focusing primarily on the cloud like Google seems like the correct move for now.
Phones don’t need a NPU to benefit from machine learning
Neural Networks and Machine Learning are some of this year's biggest buzzwords in the world of smartphone processors. Huawei's HiSilicon Kirin 970, Apple's A11 Bionic, and the image processing unit (IPU) inside the Google Pixel …
Most importantly, Arm’s machine learning capabilities aren’t being reserved just for flagship products. With support across a range of hardware types and scalability options, smartphones up and down the price ladder can benefit, as can a wide range of products from low-cost smart speakers to expensive servers. Even before Arm’s dedicated ML hardware hits the market, modern SoCs utilizing its dot product-enhanced CPUs and GPUs will receive performance- and energy-efficiency improvements over older hardware.
We probably won’t see Arm’s dedicated ML and object detection processors in any smartphones this year, as a number of major SoC announcements have already been made. Instead, we will have to wait until 2019 to get our hands on some of the first handsets benefiting from Project Trillium and its associated hardware.