Dynamic Decision Tree Inference Through Two-Phase Memory Reconfiguration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for accelerating tree-based inferences in machine learning, such as random forest and gradient boosting, are computationally intensive and resource-consuming, particularly when input data properties fluctuate over time, impacting performance.

Innovation Solution

A method and system that dynamically optimize decision tree inference operations by intermittently monitoring access characteristics during active phases and reconfiguring the underlying tree representation during idle phases, using a two-phase cycle approach to update a reference data structure based on statistical characteristics.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If decision tree inference operations are executed repeatedly during active periods with online monitoring of access characteristics, then the optimization can adapt to fluctuating data properties, but the monitoring process impacts the performance of the inferences

Engineering Contradiction:
Improveadaptability to fluctuating data propertiesVSAvoidinference performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The system implements periodic action by alternating between active periods for inference execution and idle periods for data structure reconfiguration. During active periods, decision trees are executed repeatedly with monitoring of accessed nodes. During subsequent idle periods, the reference data structure is reconfigured based on statistical characteristics collected during the active period. This periodic alternation allows adaptation to data fluctuations while ensuring inference performance is maintained during active periods.

Inventive Principle:
Principle #19Periodic action

2Reliability

If the reference data structure is reconfigured during idle periods based on statistical characteristics, then the memory representation is optimized for future inferences, but the reconfiguration process consumes computational resources and time

Engineering Contradiction:
Improveoptimization effectivenessVSAvoidreconfiguration time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system applies preliminary action by collecting statistical characteristics of accessed nodes during active periods and using these characteristics to preconfigure the reference data structure during idle periods before the next inference workload arrives. This allows the system to be prepared in advance for upcoming inference operations, optimizing memory representation proactively rather than reactively, thereby reducing latency when the next active period begins.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If multiple decision trees are walked in parallel for random forest and gradient boosting methods, then ensemble predictions are achieved, but the computations are time and resource consuming

Engineering Contradiction:
Improveprediction accuracyVSAvoidcomputation efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The system merges multiple decision tree evaluations by reconfiguring the reference data structure to optimize memory representation for ensemble methods. Statistical characteristics from monitoring accessed nodes across multiple trees during active periods inform the reconfiguration during idle periods, creating an optimized data structure that reduces memory access overhead when walking multiple trees in parallel, thereby improving computation efficiency while maintaining prediction accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS12462201B2Dynamically optimizing decision tree inferences
Publication Date: 2025.11.04 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12462201B2 patent drawing
  • US12462201B2 patent drawing
  • US12462201B2 patent drawing

AI summary

A method of dynamically optimizing decision tree inference is provided. The method, which is performed at the computerized system, repeatedly executes one or more decision trees for inference purposes and repeatedly performs an optimization procedure according to two-phase cycles. Each cycle includes two alternating phases, i.e., a first phase followed by a second phase. The decision trees are executed based on a reference data structure, whereby attributes of nodes of the decision trees are repeatedly accessed from the reference data structure during the first phase of each of the cycles. First, the accessed attributes are monitored during the first phase of each cycle, which leads to update statistical characteristics of the nodes. Second, a substitute data structure is configured during the second phase of each cycle based on the updated statistical characteristics. Third, the reference data structure is updated in accordance with the substitute data structure.