Tracing Engine Loop Escape Analysis for Mixed Differentiation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current sensitivity calculation methods, such as 'bump-and-run' and forward-calculating 'finite difference,' are inefficient and computationally intensive, especially when dealing with large numbers of inputs, leading to high memory usage and impractical computation times for complex simulations like chemical processes and financial calculations.

Innovation Solution

The implementation of loop escape analysis and data structure compression techniques using tracing engines to dynamically select between forward and backward automatic differentiation methods based on input and output ratios, optimizing memory usage and computation speed.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If bump-and-run schemes are used to calculate sensitivities, then sensitivity values can be obtained, but computation time increases significantly when dealing with thousands or millions of inputs

Engineering Contradiction:
Improvesensitivity calculation accuracyVSAvoidcomputation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent segments the sensitivity calculation process into forward mode and reverse mode automatic differentiation, allowing the system to divide the computational task based on the ratio of inputs to outputs. This segmentation enables efficient handling of different problem types by selecting the appropriate mode, thereby reducing overall computation time while maintaining accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic mode selection that adapts the calculation approach based on the specific problem characteristics (input-output ratio). The system dynamically switches between forward and reverse modes, making the computation process flexible and efficient rather than statically bound to a single method, thus reducing computation time without sacrificing precision.

Inventive Principle:
Principle #15Dynamics

2Measurement precision

If forward-calculating finite difference is used, then numerical derivatives can be calculated at each stage, but memory usage becomes excessively high

Engineering Contradiction:
Improvederivative calculation accuracyVSAvoidmemory usage
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent applies reverse mode automatic differentiation which inverts the traditional forward calculation approach. Instead of computing derivatives by perturbing inputs and observing output changes (forward mode), the system computes sensitivities by propagating adjoint variables backward through the computational graph, dramatically reducing memory requirements while maintaining derivative accuracy.

Inventive Principle:
Principle #13The other way round (Inversion)

Solution Approach 2:

The patent changes the computational parameters by switching between forward and reverse modes based on the input-output ratio. When inputs exceed outputs, reverse mode is selected to minimize memory usage; when outputs exceed inputs, forward mode is used. This parameter-based selection optimizes memory consumption without compromising calculation precision.

Inventive Principle:
Principle #35Parameter changes

3Ease of manufacture

If a fixed sensitivity calculation method is used, then implementation is simple, but the system cannot adapt to different problem sizes and complexities

Engineering Contradiction:
Improveimplementation simplicityVSAvoidmethod selection flexibility
Core Design Contradiction:
Ease of manufactureVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal sensitivity calculation system that incorporates both forward and reverse mode automatic differentiation within a single framework. The system can handle diverse problems (chemical processes, financial calculations, machine learning) by automatically selecting the appropriate mode based on input-output ratios, providing both simplicity and adaptability through multi-functionality.

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

Solution Approach 2:

The patent implements feedback-based mode selection where the system evaluates the input-output ratio and automatically adjusts the calculation method accordingly. This feedback mechanism ensures the most efficient method is chosen for each specific problem, maintaining implementation simplicity while achieving high adaptability to different problem sizes and complexities.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20240048154A1Tracing engine-based software loop escape analysis and mixed differentiation evaluation
Publication Date: 2024.02.08 FIDELITY INFORMATION SERVICES LLC
  • US20240048154A1 patent drawing
  • US20240048154A1 patent drawing
  • US20240048154A1 patent drawing

AI summary

A method for loop escape analysis includes receiving a set of executable computer instructions stored on a storage medium, and determining a number of inputs to a loop associated with a data structure, storage space that would be saved by compressing the data structure, and a size of new elements required to compress the data structure. Upon reaching an end of the loop, the method determines whether to compress the data structure based on a comparison between the size of the new elements and the saved storage space. In response to determining to compress the data structure, the method compresses the data structure.