Decision Tree Split Selection Using Prefix Sums for Real-Time Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current decision tree algorithms face challenges in optimizing split selection due to their quadratic time complexity, which constrains training efficiency, especially with large datasets, and lack effective methods to handle hybrid features without pre-encoding.

Innovation Solution

The Superfast Selection algorithm reduces time complexity from O(MN) to O(M+N×C) by using prefix-sum techniques and directly handling hybrid features, enabling efficient split selection without pre-encoding.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the generic approach of comprehensively calculating heuristic scores for all candidate splits is used, then the model achieves accurate split selection, but the training time complexity becomes quadratic relative to the number of training instances

Engineering Contradiction:
Improvesplit selection accuracyVSAvoidtraining time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The algorithm performs preliminary actions by pre-calculating and storing prefix sums of heuristic scores during a single pass through the training data. This preliminary computation enables O(1) retrieval of aggregate statistics for any candidate split, eliminating the need for repeated comprehensive calculations during the split selection process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The algorithm segments the calculation process into two distinct phases: (1) a preprocessing phase that computes prefix sums for all features and splits, and (2) a selection phase that retrieves pre-computed values. This segmentation transforms the quadratic-time comprehensive calculation into a linear-time preprocessing step followed by constant-time queries.

Inventive Principle:
Principle #1Segmentation

2Productivity

If traditional decision tree algorithms are used, then they can handle standard datasets, but they cannot efficiently process large-scale datasets due to quadratic time complexity

Engineering Contradiction:
Improvedataset processing capacityVSAvoidtraining time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The algorithm changes the computational parameters by switching from calculating heuristic scores for each candidate split independently (O(MN) complexity) to using prefix sum arrays that store cumulative statistics (O(M) preprocessing + O(1) query). This parameter transformation enables the algorithm to scale linearly with dataset size rather than quadratically.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If pre-encoding is applied to handle hybrid features, then the algorithm can process different feature types, but the complexity and preprocessing requirements increase

Engineering Contradiction:
Improvehybrid feature handling capabilityVSAvoidpreprocessing complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The algorithm achieves universality by designing a unified prefix sum computation mechanism that handles numerical, categorical, and hybrid features through the same mathematical framework. The prefix sum approach works regardless of feature type, eliminating the need for separate preprocessing pipelines for different feature categories.

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

Solution Approach 2:

The algorithm extracts the essential computational requirement from hybrid feature handling: the ability to compute aggregate statistics for candidate splits. By focusing on this extracted requirement, the algorithm uses prefix sums to directly compute these statistics without needing to transform or encode the features, thereby simplifying the preprocessing step.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS20250356262A1Superfast Selection for Decision Tree Algorithms
Publication Date: 2025.11.20 BOARD OF RGT THE UNIV OF TEXAS SYST
  • US20250356262A1 patent drawing
  • US20250356262A1 patent drawing
  • US20250356262A1 patent drawing

AI summary

A method of decision tree split selection is provided. The method comprises scanning, in a data source, all values of a feature and example labels. Intermediate statistics information of size O(N×C) are prepared, wherein N is the number of unique values of the feature and C is the number of label classes. A set of the N unique values of the feature are prepared with time cost O(N×C). The process then loops N times to compute heuristic scores for all splits of each unique value. Each loop has a time cost O(C). The time complexity of decision tree split selection for a single feature is O(M+N×C), wherein M is the number of examples of the feature. A model is trained in real-time with decision tree splits selected according to the heuristic scores.