Why do axis-aligned splits struggle to approximate diagonal decision boundaries?

Quick Overview

A decision tree question on why splits that test one feature at a time struggle with diagonal class boundaries. It tests whether you can relate tree size to approximation error and sample cost, explain the limits of greedy splitting, and weigh the usual remedies against each other.

Why do axis-aligned splits struggle to approximate diagonal decision boundaries?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why do axis-aligned splits struggle to approximate diagonal decision boundaries? A standard decision tree splits on one feature at a time with tests of the form $x_j \le t$. Explain what that means for a class boundary such as $x_1 > x_2$, and what you can do about it. ```hint Draw it Sketch the regions a tree can carve out of a plane with only single-feature thresholds, then draw the line $x_1 = x_2$ over them. ``` ```hint Count the cost Ask how the error shrinks as you add leaves, and how many training points each of those leaves ends up with. ``` ### What a Strong Answer Covers - Why every boundary segment of a standard tree is parallel to an axis, and the shape that forces on a diagonal boundary. - How the approximation error relates to the number of leaves, and the sample cost of deep, narrow leaves. - Why greedy split selection can struggle when the label depends on a combination of features. - Remedies, with the trade-off each one carries. ### Follow-up Questions - Would rotating the data with PCA reliably fix this? When could it make things worse? - How does gradient boosting with depth-1 trees handle a boundary like $x_1 > x_2$? - What do oblique trees cost compared with axis-aligned trees, in training time and in interpretability? - If the boundary were a circle centered at the origin, which engineered feature would let one split capture it?

Overview: A decision tree question on why splits that test one feature at a time struggle with diagonal class boundaries. It tests whether you can relate tree size to approximation error and sample cost, explain the limits of greedy splitting, and weigh the usual remedies against each other.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why do axis-aligned splits struggle to approximate diagonal decision boundaries?

A standard decision tree splits on one feature at a time with tests of the form xj≤tx_j \le t. Explain what that means for a class boundary such as x1>x2x_1 > x_2, and what you can do about it.

What a Strong Answer Covers Guidance

  • Why every boundary segment of a standard tree is parallel to an axis, and the shape that forces on a diagonal boundary.
  • How the approximation error relates to the number of leaves, and the sample cost of deep, narrow leaves.
  • Why greedy split selection can struggle when the label depends on a combination of features.
  • Remedies, with the trade-off each one carries.

Follow-up Questions Guidance

  • Would rotating the data with PCA reliably fix this? When could it make things worse?
  • How does gradient boosting with depth-1 trees handle a boundary like x1>x2x_1 > x_2 ?
  • What do oblique trees cost compared with axis-aligned trees, in training time and in interpretability?
  • If the boundary were a circle centered at the origin, which engineered feature would let one split capture it?