Neural Network Output Normalization via Approximated Softmax Loss

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Training artificial neural networks for classification tasks faces challenges due to the computational expense of softmax functions, especially on inference hardware, which can lead to unnormalized output ranges, making it difficult to compare scores across pixels or bounding boxes effectively.

Innovation Solution

Introducing a second loss function that normalizes the output of the artificial neural network by approximating the softmax function, allowing for the omission of exponential terms and ensuring the output values sum to 1, thereby enabling effective comparison of class scores across pixels or bounding boxes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the softmax function is used to normalize the output of the neural network, then the output values are normalized and can be compared effectively, but the computational cost increases due to exponential terms

Engineering Contradiction:
Improvenormalization accuracyVSAvoidcomputational cost
Core Design Contradiction:
Measurement precisionVSLoss of energy

Solution Approach 1:

The patent extracts and removes the exponential computation from the softmax function by using an alternative normalization approach. Instead of computing exp(x_i)/sum(exp(x_j)), the system uses a simplified normalization that achieves the same effect without the expensive exponential operations, thereby eliminating the harmful computational burden while preserving the normalization benefit

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent replaces the computationally expensive softmax function with a cheaper alternative normalization method that can be computed efficiently. This substitute approach provides the necessary normalization effect at a fraction of the computational cost, making it suitable for resource-constrained inference hardware

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

2Loss of energy

If the softmax function is omitted to reduce computational cost, then the exponential terms are avoided, but the output values become unnormalized and difficult to compare

Engineering Contradiction:
Improvecomputational costVSAvoidnormalization accuracy
Core Design Contradiction:
Loss of energyVSMeasurement precision

Solution Approach 1:

The patent introduces an intermediary normalization step that bridges the gap between raw neural network outputs and properly normalized probabilities. This intermediary process applies a simplified normalization algorithm that produces comparable output values without requiring the full softmax computation, thus maintaining measurement precision while reducing computational cost

Inventive Principle:
Principle #24Intermediary (Mediator)

3Ease of operation

If the neural network output is normalized during training, then the scores can be compared across pixels or bounding boxes, but additional loss function computation is required

Engineering Contradiction:
Improvescore comparabilityVSAvoidloss function complexity
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent merges the normalization requirement into the existing training pipeline by using the same simplified normalization approach during both training and inference. This unified approach ensures score comparability across different inputs while avoiding the need for separate or complex normalization procedures, thereby easing operation without significantly increasing device complexity

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS20240028891A1Method for Training a ML System, ML System, Computer Program, Machine-Readable Storage Medium and Device
Publication Date: 2024.01.25 ROBERT BOSCH GMBH
  • US20240028891A1 patent drawing
  • US20240028891A1 patent drawing
  • US20240028891A1 patent drawing

AI summary

A method is for training an artificial neural network, for classifying sensor data, as a function of a first loss function and a second loss function. The first loss function is calculated as a function of an output of the artificial neural network. The second loss function is configured such that the output of the artificial neural network is essentially normalized.