Database-Integrated ML Inference Engine for Real-Time Predictive Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Business intelligence applications struggle to accurately predict future events and infer user or product characteristics due to limitations in accessing large datasets for real-time analysis, requiring advanced machine learning techniques that are typically handled by data scientists, thus disconnecting business users from the capabilities they need.

Innovation Solution

A massively parallel real-time database-integrated machine learning inference engine that allows users to query machine learning models using standard query interfaces, enabling predictive analysis within existing business intelligence tools without modification, and allowing software developers to easily add ML capabilities through familiar pathways like SQL.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If machine learning techniques are used for predictive analysis, then prediction accuracy is improved, but system complexity increases and requires specialized data scientists

Engineering Contradiction:
Improveprediction accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary layer that translates standard SQL queries into machine learning inference operations. This mediator component allows business users to interact with complex ML models through familiar SQL syntax, hiding the underlying complexity while maintaining high prediction accuracy through ML techniques.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If machine learning models are integrated into database systems, then predictive capabilities are improved, but ease of operation deteriorates due to requiring specialized knowledge

Engineering Contradiction:
Improvepredictive capabilitiesVSAvoidease of operation
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The patent makes the database system universal by enabling it to perform both traditional data storage/querying functions and machine learning inference functions through a unified SQL interface. This allows the same database infrastructure to serve multiple purposes without requiring users to learn specialized ML operations.

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

Solution Approach 2:

The system enables business users to perform predictive analysis themselves using standard SQL queries without needing to consult data scientists. The database automatically handles the translation of SQL queries into ML inference operations, allowing users to serve their own predictive analysis needs directly.

Inventive Principle:
Principle #25Self-service

3Measurement precision

If real-time predictive analysis is performed on large datasets, then analysis accuracy is improved, but processing time increases

Engineering Contradiction:
Improveanalysis accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent pre-loads and caches machine learning models and their associated data structures into the database system in advance. This preliminary action allows the models to be readily available in memory when queries are executed, eliminating the need to load large datasets and models from external storage during real-time analysis, thus reducing processing time while maintaining accuracy.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11429893B1Massively parallel real-time database-integrated machine learning inference engine
Publication Date: 2022.08.30 AMAZON TECH INC
  • US11429893B1 patent drawing
  • US11429893B1 patent drawing
  • US11429893B1 patent drawing

AI summary

Techniques for massively-parallel real-time database-integrated machine learning (ML) inference are described. An ML model is deployed as one or more model serving units behind an endpoint. The ML model can be associated with a virtual table or function, and a query that is received that references the virtual table or function can be processed by issuing inference requests to the endpoint by the query execution engine(s).