Neural Network Training Set Generation for Database Query Approximation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing solutions for retrieving insights from large and unknown datasets in databases are inefficient, as they often rely on indexing or caching algorithms that may not be programmed to process such data, leading to prolonged query times.

Innovation Solution

A method is introduced to generate training sets for neural networks by determining segmentation based on a column from a columnar database table, generating group-by queries, and creating reduced queries to produce training query pairs, which can be used to approximate query results more efficiently.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional database querying methods are used on large datasets, then query accuracy is maintained, but query execution time becomes excessively long

Engineering Contradiction:
Improvequery result accuracyVSAvoidquery execution time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by generating training sets from historical query data and pre-training neural network models before actual queries are executed. This allows the system to have approximation capabilities ready in advance, enabling fast initial query results without executing full database scans each time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

A neural network model serves as an intermediary between the user's query and the actual database execution. The model first provides approximate results rapidly, and only when higher precision is needed does the system execute the full query on the database, thus mediating between speed and accuracy requirements.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Speed

If indexing and caching algorithms are used to accelerate database access, then query speed is improved for known datasets, but effectiveness decreases for large and unknown datasets

Engineering Contradiction:
Improvequery access speedVSAvoideffectiveness on unknown datasets
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The neural network model continuously learns and adapts from actual query patterns and results, improving its own performance over time without external reprogramming. The system automatically updates its understanding of data distributions and query behaviors, making it increasingly effective for both known and unknown datasets.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system changes parameters by transforming structured database queries into neural network input formats, adjusting model architecture and training parameters based on data characteristics. This allows the model to adapt to different data types, sizes, and query patterns dynamically.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If full database queries are executed to ensure accurate results, then measurement precision is maintained, but productivity decreases due to long processing times

Engineering Contradiction:
Improveresult accuracyVSAvoidquery processing throughput
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The system performs partial action by executing only necessary portions of queries through the neural network approximation first. Full database queries are executed only when the approximation confidence is below a threshold or when exact precision is required, avoiding unnecessary complete scans for queries that can be adequately approximated.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11256985B2System and method for generating training sets for neural networks
Publication Date: 2022.02.22 SISENSE LTD
  • US11256985B2 patent drawing
  • US11256985B2 patent drawing
  • US11256985B2 patent drawing

AI summary

A system and method for generating training sets for training neural networks. The method includes determining a segmentation based on a column from a columnar database table; generating a group-by query based on the segmentation; generating a plurality of reduced queries based on the group-by query; executing the group-by query on a table of a database to obtain a result table, wherein the result table includes a plurality of results, wherein each result corresponds to a respective reduced query of the plurality of reduced queries; and generating a plurality of training query pairs by pairing each reduced query with its corresponding reduced result.