Neural Network Accelerator Candidate Selection Preprocessor

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing neural network accelerators face inefficiencies in performing large-scale operations, particularly when using the attention mechanism, as they require a significant number of calculations that increase with the amount of stored information, leading to increased computational load.

Innovation Solution

An accelerator is designed with a preprocessor that selects candidate rows from a key matrix by allocating maximum and minimum pointers, calculating partial similarity values, and estimating scores, allowing for reduced calculations by omitting rows with expected small scores and treating weights below a certain threshold as zero.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the attention mechanism is used to select information having high similarity with input data, then the accuracy of information retrieval is improved, but the computational load increases significantly

Engineering Contradiction:
Improvesimilarity measurement accuracyVSAvoidcomputational load
Core Design Contradiction:
Measurement precisionVSPower

Solution Approach 1:

The patent applies preliminary action by pre-calculating and storing maximum pointers that indicate the maximum elements of each column in the key matrix before the actual attention computation. This allows the system to quickly identify candidate rows without performing full similarity calculations on all stored information, thereby reducing computational load while maintaining retrieval accuracy

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements partial action by calculating similarity scores only for candidate rows identified through maximum pointers, rather than computing similarities for all rows in the key matrix. This selective computation approach significantly reduces the number of operations while still capturing the most relevant information for the attention mechanism

Inventive Principle:
Principle #16Partial or excessive action

2Quantity of substance

If the amount of stored information increases to improve comprehensive analysis, then the coverage of information retrieval is improved, but the number of calculations increases

Engineering Contradiction:
Improveamount of stored informationVSAvoidcalculation efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The system performs preliminary organization of stored information by maintaining maximum pointers that track the maximum elements in each column of the key matrix. This pre-processed structure enables efficient retrieval even as the amount of stored information grows, allowing the system to scale without linearly increasing computational complexity

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent extracts only the necessary candidate rows from the large stored information by using maximum pointers to identify rows with potential high similarity. This extraction approach allows the system to work with a small subset of relevant data rather than processing the entire stored information set, maintaining calculation efficiency despite increased information volume

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11636173B2Method for candidate selection and accelerator for performing candidate selection
Publication Date: 2023.04.25 SK HYNIX INC
  • US11636173B2 patent drawing
  • US11636173B2 patent drawing
  • US11636173B2 patent drawing

AI summary

An accelerator includes a key matrix register configured to store a key matrix, a query vector register configured to store a query vector; and a preprocessor configured to calculate similarities between the query vector and the key matrix.