Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Cutting on a slant
Suppose a part fails when temperature plus vibration is high: neither alone matters, only their sum. An ordinary decision tree can ask only about one sensor at a time, so it approximates the slanted boundary “temperature + vibration = limit” with a staircase of many cuts. An oblique tree asks “Is 0.7·temperature + 0.7·vibration ≤ limit?” in one question: one cut, the right shape.
Physical limits are often combinations: load envelopes, power = voltage × current regions, coupled thermal limits. Oblique splits capture them compactly, and the same idea powers rotation forests and soft or neural decision trees. The trade-off is interpretability and extra parameters per split.
- 1. An oblique split tests…
- 2. For a 45° boundary, axis-aligned trees need…
- 3. In the demo at 0°, oblique splits…
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.An oblique split by hand
Data. Class 0: (0, 0), (1, 0), (0, 1). Class 1: (2, 2), (3, 2), (2, 3).
Fisher direction. w ∝ S_w⁻¹(μ₁ − μ₀).
- Class means: μ₀ = (1/3, 1/3) and μ₁ = (7/3, 7/3), so μ₁ − μ₀ = (2, 2).
- The two classes have the same, symmetric scatter, so S_w⁻¹(2, 2) is again along (1, 1).
- Normalised: w = (0.707, 0.707).
Threshold. Project onto w:
- class 0 gives 0, 0.707, 0.707;
- class 1 gives 2.83, 3.54, 3.54.
The best Gini cut lies between 0.707 and 2.83, at the midpoint 1.77. One split, 0.707·x₀ + 0.707·x₁ ≤ 1.77, separates the classes perfectly.
Staircase cost. To approximate a 45° line with k steps, an axis-aligned tree needs k vertical and k − 1 horizontal edges: 2k − 1 cuts. Its error shrinks only like 1/k.
The steps in plain English:
- At a node, find a promising direction w: the LDA direction, a perturbed version of it, or a learned one.
- Project the node’s points onto w and choose the best threshold, as CART does on a single feature.
- Optionally refine w coefficient by coefficient (OC1) to lower impurity further.
- Recurse. Prune as usual, and keep in mind that each split now has p + 1 parameters.
- 1. Fisher's direction is…
- 2. Axis-aligned cuts for a 5-step staircase?
- 3. After projecting onto w, the threshold is found…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.Finding good hyperplanes
Hardness. Finding the hyperplane that minimises impurity at a node is NP-hard (Heath, Kasif and Salzberg, 1993). For n points in p dimensions there are O(n^p) combinatorially distinct hyperplanes.
Heuristics.
| Method | Idea |
|---|---|
| CART-LC (Breiman et al., 1984) | coordinate-wise search over linear combinations |
| OC1 (Murthy, Kasif and Salzberg, 1994) | perturb one coefficient at a time to the breakpoint that best lowers impurity, plus random restarts and random jumps to escape local minima |
| LDA / Fisher splits (Loh and Vanichsetakul, 1988; QUEST) | use the discriminant direction |
| HHCART | Householder reflections that align the data with a split direction |
| Soft / differentiable trees | sigmoid gates σ(wᵀx − t), trained by gradient descent |
| Sparse oblique trees | L1 penalty on w, solved with alternating optimisation (Carreira-Perpiñán and Tavallali, 2018) |
OC1’s coefficient step. For coefficient a_m, each point j crosses the hyperplane when a_m = U_j = −(Σ over i ≠ m of a_i x_ji + a_0)/x_jm. Impurity changes only at those breakpoints, so it suffices to evaluate them (exercise 1).
Costs.
- Each split estimates p + 1 numbers, so it needs more data per node than an axis-aligned split.
- Readability suffers.
- Search is slower: O(n·p) per perturbation sweep, more with restarts.
- 1. Optimal oblique splitting is…
- 2. OC1 evaluates coefficient values…
- 3. Soft decision trees replace hard splits with…
Level 3: Advanced
★★★★☆ Advanced⏱ 30 minGraduate level, with full derivations and proofs.Theory
Approximation. A linear boundary at angle θ to the axes needs Θ(1/ε) axis-aligned cuts for an error of ε in area, against one oblique cut. Conversely, an axis-aligned boundary is matched exactly by both. Oblique trees are strictly more expressive per split.
Estimation. An oblique split estimates a p-dimensional direction. With n_t points at the node, the direction’s estimation error grows roughly like √(p/n_t). With many irrelevant features this noise can outweigh the expressiveness gain. Exercise 2 shows it: with 30 noise features, the LDA-split tree lost 2.3 points on an axis-aligned boundary and merely tied at 45°. Sparse oblique splits (L1) or feature selection restore the advantage.
Ensembles. Rotation forests (next section) apply PCA rotations to feature subsets, so axis-aligned trees effectively see oblique directions. Random-projection forests do the same randomly. Both keep training simple while gaining oblique expressiveness.
Interview questions.
- When would you use an oblique tree? Low-to-moderate dimensions, boundaries that depend on combinations of features, and enough data per node to estimate the directions.
- What’s the alternative if you need interpretability? Engineer the combination as a feature (for example the sum or ratio of two sensors) and use an axis-aligned tree, or use sparse oblique splits with 2–3 features each.
- 1. With many irrelevant features, oblique splits can lose because…
- 2. Rotation forests gain oblique power by…
- 3. An interpretable alternative to oblique splits is…
Level 4: Expert
★★★★★ Expert⏱ 25 minResearchers: original papers and open problems.When do oblique splits pay off?
History.
- Breiman et al.’s CART (1984) included linear-combination splits (CART-LC).
- Loh and Vanichsetakul (1988) used LDA splits (FACT, later QUEST).
- Heath, Kasif and Salzberg (1993) proved NP-hardness and proposed simulated annealing.
- Murthy, Kasif and Salzberg’s OC1 (1994) became the standard heuristic.
- Soft decision trees and neural-backed trees (2010s) revived oblique splits.
- Sparse oblique trees via tree alternating optimisation (Carreira-Perpiñán, 2018) made them competitive again.
Exercise 1.
- On a 45° boundary, the LDA-split oblique tree had 4 leaves and accuracy 0.987. The axis-aligned tree needed 11 leaves for 0.930.
- The LDA normal came out as (0.69, 0.72), close to the true (0.707, 0.707).
- On a corner-shaped class, OC1 perturbation lowered the split’s Gini from 0.2136 to 0.2008.
Exercise 2. Setup: two Gaussian classes separated along a direction at angle θ (Bayes accuracy 0.933), plus k irrelevant features. Depth is chosen on validation data, n = 200, 12 repetitions. Each cell shows test accuracy (leaves).
| k noise features | θ | axis-aligned | oblique (LDA splits) |
|---|---|---|---|
| 0 | 0° | 0.925 (2.2) | 0.926 (2.2) |
| 0 | 22.5° | 0.912 (2.8) | 0.924 (2.4) |
| 0 | 45° | 0.906 (5.3) | 0.927 (2.2) |
| 30 | 0° | 0.926 (2.3) | 0.903 (2.1) |
| 30 | 22.5° | 0.912 (2.8) | 0.903 (2.1) |
| 30 | 45° | 0.898 (4.6) | 0.896 (2.2) |
- Without noise features, the oblique advantage grew with the angle. None at 0°, +1.2 points at 22.5°, and +2.1 points at 45° with less than half the leaves, close to the Bayes rate.
- With 30 irrelevant features, the LDA direction (32 coefficients from 200 points) was noisy enough to cost 2.3 points on the aligned boundary and to erase the advantage at 45°.
- Lesson: oblique splits help when the boundary is rotated and the direction can be estimated reliably. Regularise or select features otherwise.
Oblique trees in AI, robotics and aerospace
- Coupled operating limits: combined thermal-vibration or voltage-current envelopes.
- Compact controllers: oblique trees as interpretable policies distilled from neural networks.
- Soft trees inside neural networks (neural decision forests) for differentiable routing.
- Rotation-based ensembles for spectral and sensor data with correlated features.
References
- S. K. Murthy, S. Kasif, S. Salzberg (1994). “A system for induction of oblique decision trees.” Journal of Artificial Intelligence Research 2.
- D. Heath, S. Kasif, S. Salzberg (1993). “Induction of oblique decision trees.” IJCAI.
- W.-Y. Loh, N. Vanichsetakul (1988). “Tree-structured classification via generalized discriminant analysis.” JASA 83.
- M. Á. Carreira-Perpiñán, P. Tavallali (2018). “Alternating optimization of decision trees, with application to learning sparse oblique trees.” NeurIPS.
- L. Breiman, J. H. Friedman, R. A. Olshen, C. J. Stone (1984). Classification and Regression Trees, section 5.2. Wadsworth.