AI Accelerator Instructions With Embedded Parameters for Faster Inference

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing AI hardware accelerators face inefficiencies due to excessive memory access for parameter values, leading to increased operation overhead and reduced performance in neural network inference tasks.

Innovation Solution

The solution involves embedding fixed parameter values directly into instructions within the accelerator, converting loop variable indices to invariable indices through loop unrolling, and optimizing instruction caching by ensuring same parameter values are used across thread blocks, thereby reducing memory access and improving performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If parameter values are loaded from external memory for each inference task, then the accelerator can perform flexible inference operations, but the memory access overhead increases significantly

Engineering Contradiction:
Improveinference operation flexibilityVSAvoidmemory access overhead
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-loading parameter values into the instruction cache before inference tasks are executed. The system identifies and loads parameter values that are likely to be used in upcoming inference operations, so that when inference tasks arrive, the parameters are already available in fast memory, eliminating the need for repeated external memory access during actual inference execution.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent merges parameter value storage with instruction storage by storing parameter values directly within the instruction cache structure. Instead of maintaining separate storage for parameters and instructions, the system combines them into a unified cache that can hold both instruction codes and their associated parameter values, reducing memory access overhead while maintaining flexibility.

Inventive Principle:
Principle #5Merging (Combining)

2Quantity of substance

If parameter values are stored in external memory, then memory capacity is sufficient for large models, but access speed decreases due to external memory limitations

Engineering Contradiction:
Improveparameter storage capacityVSAvoidparameter access speed
Core Design Contradiction:
Quantity of substanceVSSpeed

Solution Approach 1:

The patent segments parameter storage into two parts: frequently accessed parameter values are stored in the fast instruction cache, while less frequently accessed parameters remain in external memory. This segmentation allows the system to optimize access speed for critical parameters while maintaining sufficient total storage capacity in external memory for large models.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a nested memory structure where the instruction cache (fast memory) is nested within the broader external memory system. The instruction cache acts as a small, fast subset of the larger external memory, creating a hierarchical storage system that provides both high-speed access for immediate needs and large-capacity storage for the complete model parameters.

Inventive Principle:
Principle #7Nested doll (Nesting)

3Speed

If the instruction cache is optimized for high speed, then inference execution is faster, but the cache size is reduced limiting parameter storage

Engineering Contradiction:
Improveinference execution speedVSAvoidinstruction cache size
Core Design Contradiction:
SpeedVSVolume of stationary object

Solution Approach 1:

The patent changes the parameters of the instruction cache by adjusting the granularity and organization of stored data. Instead of storing only traditional instruction codes, the cache is reconfigured to store compressed or efficiently encoded parameter values alongside instructions, allowing more parameter data to fit within the same physical cache capacity while maintaining high-speed access characteristics.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12632303B2Accelerator, method of operating the same, and electronic device including the same
Publication Date: 2026.05.19 SAMSUNG ELECTRONICS CO LTD
  • US12632303B2 patent drawing
  • US12632303B2 patent drawing
  • US12632303B2 patent drawing

AI summary

A processor-implemented accelerator method includes: reading, from a memory, an instruction to be executed in an accelerator; reading, from the memory, input data based on the instruction; and performing, on the input data and a parameter value included in the instruction, an inference task corresponding to the instruction.