Skip to content

Oblique splits

A regular decision tree splits on one feature at a time: x₃ ≥ 2.5. When the boundary between classes runs diagonally, an axis-aligned tree needs a staircase of many splits to follow it. An oblique split tests a linear combination instead: 0.8·x₁ − 1.3·x₄ ≥ t, which can follow such a boundary in one step.

Searching for the best linear combination is expensive. miter does not search: at each node it draws a few random sparse combinations, scores them like ordinary features, and lets them compete with the axis and categorical splits. Boosting does the rest. Many trees, each with a few good random directions, add up to a model that follows diagonal structure without the cost of optimising directions.

At every node, miter tries m = m_mult · ceil(sqrt(p)) candidates (m_mult = 2 by default):

  1. Pick k = 2 or 3 distinct numeric features at random, with Gaussian weights.
  2. Turn the weights into integers: scale so the largest is 2¹⁴ and round. Only the integer weights are ever used, in training and in prediction.
  3. Project every row of the node onto the direction: P = Σ wq · c. Here c are the 16-bit feature codes, so this is exact int32 arithmetic.
  4. Split the node’s own range [Pmin, Pmax] into 64 equal-width bins, and scan the thresholds, sending missing values left and right.

The node takes the best split among all candidates, axis, categorical and oblique.

  • Local bins. Bins on the node’s own range keep thresholds available in the tails of the projection. In our measurements, global or quantile bins for projections lost up to 18% on some datasets.
  • Random directions. Directions guided by gradients never beat random ones in our experiments, and they cost more. More random candidates help a little: preset="accurate" doubles them.
  • Integer arithmetic. It removes floating-point differences between training and prediction, between platforms and between thread counts. A row goes left in prediction exactly when it went left in training.

Oblique candidates make training slower than an axis-only GBDT, roughly 1.5–9× LightGBM per tree depending on the data. preset="fast" keeps oblique splits only at depth 0–1, where they matter most. Prediction runs through lignum and is faster than LightGBM’s own predict for the same number of trees.

With grow_policy="symmetric" (the default), every level of a tree uses one split for all its nodes, as in CatBoost. Oblique candidates compete for that level split too. On 32 held-out OpenML datasets, symmetric trees with oblique splits beat leaf-wise ones on 27, which is why they are the default. The two tree shapes also complement each other in ensembles.