Unified CNN Optimization for Integrated GPU Inference

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing edge devices face challenges in executing deep learning model inference efficiently due to varying hardware resources and architectures, leading to suboptimal performance and limited usage of integrated GPUs, which are underutilized due to lack of generic solutions and vendor-specific optimizations.

Innovation Solution

A unified end-to-end system optimizes convolutional neural network (CNN) models for inference on integrated GPUs using a unified intermediate representation and machine learning-based scheduling search schemes, enabling efficient execution on multiple hardware platforms and fallback mechanisms to CPUs for unsupported operators.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If vendor-specific optimizations are used for integrated GPUs, then performance on specific hardware platforms is improved, but device complexity and lack of generic solutions increase

Engineering Contradiction:
ImproveperformanceVSAvoiddevice complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies universality by creating a unified optimization framework that works across multiple integrated GPU vendors (Intel, ARM, Nvidia) through a common intermediate representation and optimization pipeline. This single framework replaces the need for separate vendor-specific optimization tools, achieving both performance improvement and reduced complexity by making the optimization process portable and hardware-agnostic.

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

Solution Approach 2:

The patent introduces an intermediate representation (IR) as a mediator between the high-level model representation and the hardware-specific execution layers. This IR serves as a universal interface that allows the same optimization framework to generate hardware-specific code for different GPU architectures without requiring vendor-specific knowledge at the optimization stage, thus resolving the contradiction between performance optimization and device complexity.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If integrated GPUs are used for model inference, then computing power and efficiency are improved, but programming difficulty increases

Engineering Contradiction:
Improvecomputing powerVSAvoidprogramming difficulty
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The intermediate representation acts as a mediator that translates high-level model operations into hardware-optimized code. Developers write models using standard frameworks without needing to understand GPU architecture details, and the IR-based system automatically generates optimized code for the target hardware, thus maintaining high computing power while reducing programming difficulty.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces manual hardware-specific programming with an automated optimization pipeline. Instead of requiring developers to manually write and tune GPU code, the system automatically generates optimized execution code from the unified IR, substituting the mechanical process of manual programming with an automated compilation-like process that handles hardware specifics.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Loss of time

If edge devices execute model inference locally, then latency and privacy are improved, but hardware resource constraints make execution difficult

Engineering Contradiction:
ImprovelatencyVSAvoidhardware resource constraints
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent applies parameter changes by automatically adjusting optimization parameters such as data types, memory layouts, and computation precision to match the specific hardware capabilities of edge devices. The system adapts the model execution parameters to the available GPU resources, enabling efficient local inference on constrained hardware without requiring complex manual configuration.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The optimization framework is dynamic and automatically adapts to different hardware platforms. It detects the target device's capabilities and adjusts the optimization strategy accordingly, allowing the same framework to efficiently execute models on diverse edge devices with varying hardware resources, thus overcoming hardware constraints without increasing programming complexity.

Inventive Principle:
Principle #15Dynamics

4Adaptability or versatility

If existing deep learning frameworks are used, then model coverage is improved, but support for integrated GPUs is limited

Engineering Contradiction:
Improvemodel coverageVSAvoidintegrated GPU support
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The unified optimization framework provides universality by supporting multiple model types and architectures through a single common IR layer. It maintains broad model coverage from various deep learning frameworks while simultaneously providing integrated GPU optimization, thus achieving both wide model compatibility and dedicated hardware support without requiring separate solutions for each.

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

Data Source

PatentUS11797876B1Unified optimization for convolutional neural network model inference on integrated graphics processing units
Publication Date: 2023.10.24 AMAZON TECH INC
  • US11797876B1 patent drawing
  • US11797876B1 patent drawing
  • US11797876B1 patent drawing

AI summary

Techniques for optimizing and deploying convolutional neural network (CNN) machine learning models for inference using integrated graphics processing units are described. A model compilation system optimizes CNN models using optimized vision-specific operators as well as both graph-level tuning and tensor-level tuning to explore the optimization space for achieving heightened performance. The model compilation system may also implement a heuristic-based two-stage technique for falling back certain operators of CNN models to use CPUs when needed or otherwise beneficial.