Direct Convolution via Tiled GEMM Accelerators

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing deep learning hardware accelerators face inefficiencies in memory footprint and data movement traffic due to the im2col transformation required for convolution operations, which limits performance and energy efficiency.

Innovation Solution

The proposed solution involves direct convolution operations using tiled GEMM accelerators, which include peer-to-peer data transfer, parametrized data transfer, and data transformation to reduce memory traffic and footprint, enabling native convolution performance without extra transformations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If im2col transformation is used to enable convolution operations on GEMM accelerators, then convolution can be performed using existing hardware, but memory footprint and data movement traffic increase significantly

Engineering Contradiction:
Improveconvolution supportVSAvoidmemory footprint
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The patent segments the convolution operation into distinct phases: input activation loading, weight loading, convolution computation, and output writing. By segmenting the operation, the system can optimize data movement for each phase separately, loading only necessary data into on-chip buffers during computation rather than transforming entire input volumes through im2col.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the computational dimensionality by performing convolutions directly in the spatial domain rather than transforming to column-major format. The GEMM accelerator computes convolutions by treating filter applications as matrix multiplications, where the input activation matrix is multiplied by weight matrices to produce output feature maps, eliminating the need for im2col transformation.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Adaptability or versatility

If im2col transformation is used to enable convolution operations on GEMM accelerators, then convolution can be performed using existing hardware, but data movement traffic increases significantly

Engineering Contradiction:
Improveconvolution supportVSAvoiddata movement traffic
Core Design Contradiction:
Adaptability or versatilityVSLoss of energy

Solution Approach 1:

The patent performs preliminary loading of input activation data and weight data into on-chip buffers before computation begins. Input activations are loaded into input buffers and weights are loaded into weight buffers in advance, so that during the convolution computation phase, no additional data movement is required. This preliminary action eliminates the repeated data movement that would occur with im2col transformation.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent maintains continuous computation by keeping all necessary data in on-chip buffers throughout the convolution operation. Once input activations and weights are loaded, the GEMM accelerator continuously performs matrix multiplications to compute output feature maps without requiring additional data movement from off-chip memory, ensuring continuous useful action without interruption for data loading.

Inventive Principle:
Principle #20Continuity of useful action

3Productivity

If dedicated convolution hardware units are used, then convolution operations are accelerated, but the system cannot support other DNN types without algorithm modification

Engineering Contradiction:
Improveconvolution accelerationVSAvoidDNN type support
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent makes the GEMM accelerator universal by demonstrating that convolutions, fully connected layers, and other DNN operations can all be expressed as matrix multiplications. The same hardware unit that performs GEMM operations can accelerate convolutions by treating them as matrix multiplications between input activations and weight matrices, eliminating the need for dedicated convolution hardware while maintaining acceleration capabilities.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

Instead of transforming convolutions into GEMM operations through im2col (conventional approach), the patent inverts the approach by directly using GEMM operations to compute convolutions in their native form. The input activation matrix is multiplied by weight matrices to produce output feature maps, computing convolutions directly without intermediate transformation, thereby supporting multiple DNN types with a single hardware architecture.

Inventive Principle:
Principle #13The other way round (Inversion)

Data Source

PatentUS20250077615A1Method and apparatus for weight-stationary direct convolution calculation
Publication Date: 2025.03.06 NVIDIA CORP
  • US20250077615A1 patent drawing
  • US20250077615A1 patent drawing
  • US20250077615A1 patent drawing

AI summary

Systems and methods for efficient convolution based on matrix multiply and add (MMA) are described. An example processor having a plurality of processing lanes is configured to perform convolution of a matrix of activation elements and a filter matrix in accordance with a configurable series of instructions including a plurality of MMA instructions and shift instructions while reusing activation elements already loaded to the processor or associated memory over a plurality of MMA operations. The filter elements are held stationary at inputs to the processor for multiple cycles for multiple MMA operations while activations are streamed in. Associated methods are also described.