Dual Decomposition Loss Function Evaluation via Weight Matrix Partitioning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Evaluating loss functions and their gradients for machine learning problems with large output spaces is computationally expensive, particularly in iterative methods like gradient descent, due to the need for enumerating all possible outputs, which leads to significant bottlenecks in training models.

Innovation Solution

The method involves partitioning a weight matrix into blocks, constructing sparse approximations of scoring vectors, determining correction values, and evaluating decomposed loss functions or gradients based on these approximations, using dual decomposition and maximum inner product search data structures to reduce high-dimensional search problems into lower-dimensional ones, enabling efficient evaluation of loss and gradient computations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If enumeration of all possible outputs is used to evaluate loss function, then measurement precision is improved, but computing time increases linearly with number of outputs

Engineering Contradiction:
Improveloss function evaluation accuracyVSAvoidcomputing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The weight matrix is partitioned into multiple blocks, and the loss function evaluation is segmented into block-wise operations. Each block processes a subset of outputs independently, allowing parallel computation and reducing the linear time complexity of full enumeration while maintaining accuracy through aggregation of block results.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The method extracts and processes only the most relevant blocks and scoring vectors based on sparsity patterns and dual decomposition, rather than computing all possible outputs. This extraction of essential components reduces computing time while preserving measurement precision through correction terms.

Inventive Principle:
Principle #2Taking out (Extraction)

2Loss of time

If dual decomposition with sparse approximation is used, then computing time is reduced, but device complexity increases

Engineering Contradiction:
Improvecomputing timeVSAvoidalgorithm complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The complex dual decomposition problem is segmented into independent block-wise subproblems that can be solved separately and aggregated. This segmentation reduces algorithmic complexity by breaking down the high-dimensional optimization into manageable chunks while maintaining the benefits of dual decomposition.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The method changes parameters by working with sparse approximations and block-wise representations instead of full dense matrices. This parameter transformation reduces computational complexity from O(n²) to O(kn) where k is the sparsity level, making the algorithm more tractable while preserving accuracy.

Inventive Principle:
Principle #35Parameter changes

3Quantity of substance

If block-wise sparse approximation is used, then memory requirements are reduced, but measurement precision may deteriorate

Engineering Contradiction:
Improvememory requirementsVSAvoidgradient approximation accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

Correction terms act as intermediaries that bridge the gap between sparse block-wise approximations and the true gradient. These correction terms compensate for the truncation errors introduced by sparsity, ensuring that measurement precision is maintained even with reduced memory requirements.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The method applies different levels of approximation quality to different blocks based on their local importance and sparsity characteristics. Critical blocks are computed with higher precision while less important blocks use coarser approximations, optimizing the trade-off between memory requirements and overall measurement precision.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS10510021B1Systems and methods for evaluating a loss function or a gradient of a loss function via dual decomposition
Publication Date: 2019.12.17 GOOGLE LLC
  • US10510021B1 patent drawing
  • US10510021B1 patent drawing
  • US10510021B1 patent drawing

AI summary

Systems and methods for evaluating a loss function or a gradient of the loss function. In one example embodiment, a computer-implemented method includes partitioning a weight matrix into a plurality of blocks. The method includes identifying a first set of labels for each of the plurality of blocks with a score greater than a first threshold value. The method includes constructing a sparse approximation of a scoring vector for each of the plurality of blocks based on the first set of labels. The method includes determining a correction value for each sparse approximation of the scoring vector. The method includes determining an approximation of a loss or a gradient of a loss associated with the scoring function based on each sparse approximation of the scoring vector and the correction value associated with the sparse approximation of the scoring vector.