Runtime Compression Format Conversion for Sparse DNN Memory Bandwidth

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks (DNNs) face performance bottlenecks due to limited memory bandwidth, and using a single fixed compression format prior to runtime can result in suboptimal compression formats for unpredictable future workloads.

Innovation Solution

A runtime data-format optimizer for processing elements, incorporating a sparsity-detection circuit and a compression-conversion circuit, dynamically selects optimal compression formats based on detected sparsity patterns and performance models that consider latency, energy consumption, and conversion costs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If a fixed compression format is selected before deployment, then device complexity is reduced, but adaptability to different sparsity patterns deteriorates

Engineering Contradiction:
Improvecompression format selection complexityVSAvoidadaptability to sparsity patterns
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The patent implements a runtime reconfigurable compression converter that dynamically selects and switches between different compression formats (CSR, CSC, COO, etc.) based on the actual sparsity patterns of incoming data. This dynamic adaptation allows the system to optimize compression performance for each specific workload without requiring complex pre-deployment analysis, resolving the contradiction between device complexity and adaptability.

Inventive Principle:
Principle #15Dynamics

2Ease of operation

If compression format is fixed at design time, then ease of operation is improved, but productivity deteriorates due to suboptimal compression ratios

Engineering Contradiction:
Improveoperational simplicityVSAvoidcompression efficiency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The system employs an automated sparsity-detection circuit and performance-model-based selection mechanism that autonomously determines the optimal compression format without requiring manual intervention or complex user configuration. This self-service approach maintains ease of operation while significantly improving productivity by ensuring optimal compression ratios are achieved for each workload through automatic adaptation to sparsity patterns.

Inventive Principle:
Principle #25Self-service

3Adaptability or versatility

If runtime compression format conversion is implemented, then adaptability to sparsity patterns is improved, but device complexity increases

Engineering Contradiction:
Improvecompression format adaptabilityVSAvoidcompression converter complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary performance model that acts as a bridge between the sparsity-detection circuit and the compression-conversion circuit. This performance model pre-evaluates multiple compression formats and provides selection guidance, thereby reducing the complexity burden on the runtime converter while maintaining high adaptability to different sparsity patterns.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Productivity

If multiple compression formats are supported at runtime, then productivity is improved through optimal compression, but loss of time increases due to format conversion overhead

Engineering Contradiction:
Improvecompression optimization benefitVSAvoidformat conversion time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system performs preliminary evaluation of multiple compression formats using a performance model during offline analysis, storing the results for rapid runtime selection. This preliminary action avoids time-consuming format conversions at runtime by pre-determining the optimal format based on sparsity patterns, thereby improving productivity while minimizing time loss through efficient format selection.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12224774B2Runtime reconfigurable compression format conversion
Publication Date: 2025.02.11 SAMSUNG ELECTRONICS CO LTD
  • US12224774B2 patent drawing
  • US12224774B2 patent drawing

AI summary

A runtime data-format optimizer for a processing element includes a sparsity-detector and a compression-converter. The sparsity-detector selects a first compression-conversion format during a runtime of the processing element based on a performance model that is based on a first sparsity pattern of first data stored in a first memory that is exterior to the processing element and a second sparsity pattern of second data that is to be stored in a second memory within the processing element. The second sparsity pattern is based on a runtime configuration of the processing element. The first data is stored in the first memory using a first compression format and the second data is to be stored in the second memory using a second compression format. The compression-conversion circuit converts the first compression format of the first data to be the second compression format of the second data based on the first compression-conversion format.