What happened
AMD has released the Zen 6 processor family, bringing notable improvements to its Vector Neural Network Instructions (VNNI) unit. The core changes centre around VNNI, where the number of processing units has doubled from two to four, dramatically increasing the number of 512-bit FADDs, FMULs, or FMAs that can be handled per cycle.
The VNNI test suite, originally reporting 1.99 instructions per cycle, has now jumped to 3.88 instructions per cycle, mirroring the performance of the Zen 6c variant. This enhancement directly addresses workloads that heavily rely on vector operations, such as quantized inference and high-performance video processing.
Why it matters
This shift in VNNI architecture represents a crucial step forward for AMD, particularly in the competitive landscape of AI acceleration. Quantized inference, a common technique used to reduce the computational demands of deep learning models, benefits directly from faster vector processing.
Similarly, video codecs – used in real-time video encoding and decoding – leverage vector instructions for efficient video filter operations. The improved VNNI performance translates to reduced latency and increased throughput in these applications, potentially unlocking new possibilities for real-time video analysis and content creation.
But, but, but…
While the headline figures are impressive, it’s important to recognize the nuanced changes. The original Zen 5 architecture could already handle four operations per cycle, but a test revealed that only two of those operations could handle 512-bit loads, regardless of whether they were 256 or 512-bit loads.
Zen 6 rectifies this by raising 256-bit loads to four per cycle, resulting in both widths now achieving the same 128 bytes per cycle – a critical detail given that most shipped vector code still targets AVX1/2. Furthermore, the out-of-order engine changes, particularly those affecting the load queue, add another layer of complexity. The increased sizes of the reorder buffer (576 to 640 entries), integer register file (288 to 352), and vector scheduler (138 to 180) contribute to enhanced performance by allowing the processor to keep more work in flight and absorb latency more effectively. These adjustments, while significant, represent incremental improvements within the existing Zen architecture rather than a revolutionary shift.
“vnni instructions are useful for calculating the inner loop of quantized inference as well as for video codecs using them for video filters as well.”
— Dr Non
The counter-take
The focus on VNNI improvements reflects a strategic response by AMD to the increasing demand for accelerated computing in AI and media processing. This shift, while incremental, underscores AMD’s commitment to providing competitive hardware solutions for these demanding workloads – despite Intel’s continued investment in competing architectures.
The AI angle
The upgrade in Zen 6's VNNI capabilities facilitates faster inference and more efficient AI model execution, accelerating the development and deployment of AI-powered applications. This asymmetry of performance creates a competitive advantage in the rapidly evolving AI landscape.
