Express Computer
Home  »  News  »  Performance Scaling, with Balance, in Edge AI

Performance Scaling, with Balance, in Edge AI

0 118

By  Edwin Hilkens, STM32 Product Marketing Manager, and François de Rochebouët, Head of Marketing, AI Solutions, STMicroelectronics

Edge AI has reached the plateau of productivity in Gartner’s hype cycle, with influential new products reaching the market to transform life and work. The edge has been described as the place where physical signals become data. AI now brings unprecedented ability to interpret observations instantly and determine accurate and timely responses.

Bringing neural processing to edge platforms has let product developers implement capabilities like efficient computer vision, keyword detection, pattern matching, anomaly detection, and activity tracking in resource-constrained microcontroller-based systems. This has driven powerful changes in equipment such as smart protective clothing, industrial safety systems, predictive maintenance sensors, quality-inspection systems, and many others.

Today’s quest to embed AI skills in tiny edge platforms began by adapting neural workloads to fit the constraints of ordinary embedded CPUs like Cortex-M cores. Processors like these can handle repeated multiply-accumulate patterns and memory accesses, although clearly they are not well adapted for such tasks.

With quantization to reduce data footprint and movement overheads, and with carefully optimized handling of operators and memory layout, embedded platforms can host basic AI like 2D convolutions, keyword spotting, anomaly detection. Toolchains began to adapt accordingly: for example, ST introduced the AI Studio as part of the STM32Cube ecosystem to help developers select and tune suitable models to run on their selected hardware.

However, any scope for handling more powerful and complex workloads this way is severely limited, especially within the tight size, power, and cost constraints that face embedded platforms. Practically, measurements show the maximum possible compute efficiency to be only about 0.1 tera operations per second (TOPS) per Watt (TOPS/W).

Embedded Neural Processing

To accelerate inference and deliver more TOPS/W for AI workloads, the leading MCUs now integrate a purpose-designed neural processing unit (NPU) in dedicated hardware.

ST’s Neural-ART Accelerator (figure 1) is one example of the embedded NPUs emerging to drive higher-performing edge AI, built around a stream-processing non-blocking switch fabric with hardware including dataflow control and routing. There are also dedicated AI accelerators, DMA engines, and interrupt generators, with host-decoupled execution.

Figure 1. Neural-ART Accelerator NPU architected for dataflow processing

ST’s NPU architecture is designed to allow scaling from a few GOPS to multiple TOPS, Multi-island configurations allow extensive optimization, including voltage and frequency scaling to optimize power consumption, and permitting multi-model computing that assigns models such as movement recognition or low-demand networking tasks flexibly according to workload and criticality.

Although more powerful, and well adapted to tiny edge AI, NPUs integrated in microcontrollers must work with extremely limited resources. Maximizing local data reuse is a priority and maintaining a balance between compute performance, routing, and interface bandwidth is vital. A deficiency in any one of these, relative to the others, creates a bottleneck limiting system performance.

Based on currently available 40nm, 28nm, 18nm FDSOI, and 16nm FinFET fabrication technologies, neural processing benchmarks are projected to reach 1-5 TOPS/W and 0.1 – 2 TOPS/mm2 with NPI acceleration alone. These metrics depend also on NPU architecture and application operating modes. However, anticipated market demands call for performance and efficiency rising to 50-200 TOPS/W over the next 5 years. However, scaling NPU performance requires adding hardware such as extra processing blocks and broader interconnects that increase silicon area and power. A different approach is needed.

Embedded In-Memory Compute

Despite the different computational principles at the heart of neural processing, the underlying hardware behavior is the same as that of traditional systems. Although the NPU establishes parallelism through many small sequential units, memory remains passive and executing instructions in the processing unit requires bringing data across an interface of strictly limited bandwidth.

In-memory compute (IMC) is a promising technique in high-performance computing and is extremely well suited to linear operations like vector multiplications in neural processing. Developing IMC for edge platforms can potentially deliver the large gains in power efficiency and computing density in terms of TOPS/Watt and TPS/mm2 of silicon needed to meet future expectations for edge AI performance (figure 2).

Figure 2. Further acceleration of the embedded neural processor, leveraging in-memory compute, will elevate edge AI performance and efficiency.

There is more than one way to realize IMC and the technique is at the beginning of its development cycle. Digital IMC (DIMC) implements multipliers inside memory. In analog IMC, the network weights are encoded in memory cell states and multiplications are performed in situ based on analog phenomena such as Kirchoff’s law or Ohm’s law.

Digital IMC

Digital IMC is typically implemented with SRAM arrays, holding weights or small tensors that are tightly coupled with fixed-function logic such as MAC units fabricated locally. DIMC tiles are the internal combined temporary storage and computing workhorses of this new type of NPU. The compiler handles assigning operations to the NPU and its internal IMC block and orchestrates data movement between them.

The internal DIMC tiles are small and weights are reloaded for each computation. By making it possible to handle arbitrary complex neural networks like transformers and RNNs (including GRUs, LSTMs), as well as enhancing the performance of CNNs typically used for computer vision, DIMC can extend edge AI use cases to encompass new opportunities such as time-series analysis.

However, digital IMC still calls for moving data and is subject to memory bandwidth limits and clock-related throughput limitations. The area cost of digital multipliers must also be considered.

Analog IMC

Analog IMC is appropriate to SRAM or eNVM non-volatile memory, including charge-based Flash or resistance-based types including phase-change (PCM) and ferroelectric (F-RAM) memories. Weights are stored in the charge state or conductance state of the cells, outputs are summed as currents, and a matrix–vector multiply can be performed in one shot when the cells are activated. As this is analog electronics, signals need time to settle and the results can be affected by factors such as noise and temperature drift, which requires compensation.

Figure 3. Analog IMC generates a dot product from the memory’s capacitive or resistive elements. Digital IMC implements multipliers in the memory.

IMC eliminates the memory-interface bottleneck and delivers parallelism without area cost. In analog IMC, the memory array is effectively the compute unit and no digital engine is needed. Reducing compute energy by orders of magnitude compared to conventional processor-memory interaction makes power efficiency a strong point, and high-density multi-level storage is possible. Meanwhile, tile size determines application-mapping efficiency as larger tile sizes can boost TOPS-per-Watt at the expense of lower area utilization. While digital IMC is less dense, very large networks can be handled as weights can be quickly reloaded in SRAM. Each technique has its strengths, and committing to develop both gives edge-AI developers the flexibility they need to create properly optimized solutions. Figure 4 compares the acceleration, efficiency, and precision of digital and analog IMC.

Figure 4. Digital and analog IMC in embedded NPU

Performance Enhancement Potential

Application developers and chip vendors understand that software alone, running on conventional MCU architectures or even MCUs enhanced with neural accelerators, cannot deliver the performance progression needed to meet future edge AI processing requirements. Digital IMC and, ultimately, analog IMC that relieves both data movement and the propagation delay associated with digital processing, show the way forward for neural processing on resource-constrained embedded MCUs. Ultimately, edge AI energy efficiency could improve by up to 100 times (figure 5).

Figure 5. IMC can deliver the acceleration needed to meet future edge AI performance demands.

IMC and Process Technology

IMC design is implicitly connected with array size and shape, memory technology, routing, and hardware placement. By effectively migrating compute into device physics, IMC is connected with the silicon layout in a way unlike previous hardware accelerators. The silicon defines the computation. The compiler can handle mapping the model onto the available fabric and orchestrating the available resources.

Viewed from this standpoint, ST’s proprietary Neural-ART Accelerator provides the process-level control and flexibility needed to embed effective IMC acceleration in future generations of edge AI microcontrollers.

Conclusion

The embedded NPU is already becoming an essential tool driving the performance of edge AI forward to meet the needs of future applications. However, further acceleration is needed, beyond the potential of today’s NPUs alone. In addition to raw compute speed, both energy efficiency, in TOPS/W, and area efficiency in TOPS/mm2 are the dominant performance metrics. IMC overcomes memory bandwidth limits by performing the computation inside the array at the location of the data, and as the data is accessed. Only the computation result leaves the array.

Both digital and analog IMC are viable and effective strategies to continue accelerating neural processing in the edge. For MCU vendors, control over the NPU architecture as well as the fabrication technology is critical to realize these accelerators and deliver the tools developers will need to fulfill their potential.

Leave A Reply

Your email address will not be published.