Dynamic ML Model Compilation for Database Hardware

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current data warehouse systems lack integrated machine learning capabilities, limiting their ability to efficiently perform data analytics and generate insights from vast datasets.

Innovation Solution

A database system with integrated machine learning capabilities, including compute nodes, storage nodes, query engines, and a machine learning model creation system that trains and deploys machine learning models, performs preprocessing operations, and dynamically compiles models based on hardware configurations to optimize performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If machine learning models are integrated into the data warehouse system, then data analytics capabilities are enhanced, but system complexity increases

Engineering Contradiction:
Improvedata analytics capabilityVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent combines machine learning model training, deployment, and execution capabilities directly within the data warehouse system by integrating compute nodes, storage nodes, and a machine learning model creation system. This merging eliminates the need for separate ML infrastructure while enhancing data analytics capabilities through unified resource management and coordinated operation of database and ML workloads.

Inventive Principle:
Principle #5Merging (Combining)

2Productivity

If machine learning models are trained and deployed within the data warehouse, then insights generation is improved, but resource requirements increase

Engineering Contradiction:
Improveinsights generation capabilityVSAvoidresource requirements
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The data warehouse system is designed with multi-functional compute nodes that can execute both traditional database queries and machine learning workloads. The system universally manages diverse workload types including data ingestion, storage, query processing, model training, and inference execution, allowing single resources to serve multiple purposes and reducing overall resource requirements compared to dedicated separate systems.

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

3Speed

If hardware-specific optimizations are applied to machine learning models, then execution performance is improved, but model portability decreases

Engineering Contradiction:
Improvemodel execution performanceVSAvoidmodel portability
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The system dynamically compiles machine learning models based on the target hardware configuration at runtime. Instead of static compilation for specific hardware, the compilation process adapts to the actual hardware environment, generating optimized execution plans that exploit hardware-specific features while maintaining the ability to deploy the same model across different hardware platforms. This dynamic approach preserves model portability while achieving hardware-optimized performance.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11657069B1Dynamic compilation of machine learning models based on hardware configurations
Publication Date: 2023.05.23 AMAZON TECH INC
  • US11657069B1 patent drawing
  • US11657069B1 patent drawing
  • US11657069B1 patent drawing

AI summary

A database system may use a machine learning model creation system to create a machine learning model from data stored in the database system responsive to a request from a client. The database system may obtain an executable version of the machine learning model, based on an uncompiled hardware agnostic version of the machine learning model, according to the hardware configuration of one or more computing resources selected by the database system to perform requests to the database system that invoke the machine learning model to generate predictions.