← Latest papers
🤖 machine learning

Optimal or Greedy Decision Trees? Revisiting their Objectives, Tuning, and Performance

This large-scale experimental study resolves conflicting evidence on optimal decision trees by demonstrating their superiority in directly optimizing target objectives and producing smaller, more accurate models, while refuting hypotheses that their advantages diminish with more data or that they are more prone to overfitting.

Original authors: Jacobus G. M. van der Linden, Daniël Vos, Mathijs M. de Weerdt, Sicco Verwer, Emir Demirović

Published 2026-08-07
📖 4 min read☕ Coffee break read

Original authors: Jacobus G. M. van der Linden, Daniël Vos, Mathijs M. de Weerdt, Sicco Verwer, Emir Demirović

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a computer to make decisions, like a doctor diagnosing a patient or a bank deciding on a loan. The tool you choose is often a "decision tree." Think of this as a giant flowchart: "If the patient has a fever, go left; if not, go right." Eventually, you reach a leaf at the bottom that gives the answer. These trees are famous because they are easy for humans to read and understand, which is crucial when we need to know why a machine made a choice.

For decades, the standard way to build these trees has been "greedy." Imagine you are climbing a mountain in thick fog. A greedy climber only looks at the step immediately in front of them and takes the steepest path upward, hoping it leads to the peak. They don't look ahead to see if that steep path leads to a dead end later. This is fast and usually gets you pretty high up. However, there is a newer, more ambitious approach called "optimal" decision trees. Instead of just looking one step ahead, this method tries to map out the entire mountain at once to find the absolute best path to the very top. It's like having a satellite map while everyone else is stumbling in the fog. The big question has been: Is this slow, map-making approach actually better than the fast, foggy climb, or is it just a waste of time?

This paper, written by researchers from Delft University of Technology, dives deep into this debate. They ran the largest experiment of its kind, testing these two methods on 109 real-world datasets and thousands of synthetic ones. Their findings are a bit of a plot twist for the machine learning world. They discovered that the "optimal" method is indeed superior, but only if you play by the right rules.

First, they found that the "optimal" trees are incredibly flexible. While the greedy method is stuck using a specific, rigid rule (like checking for "Gini impurity," a fancy math term for messiness) to decide which step to take, the optimal method can aim directly for the goal: pure accuracy. It's like the greedy climber is forced to only look for the steepest rock, while the optimal climber can just look for the highest point, no matter what the terrain looks like. The paper shows that when you let the optimal method aim directly for accuracy, it builds trees that are both smaller and more accurate than the greedy ones.

However, the researchers also debunked two popular myths. One myth was that as you give the computer more data, the greedy method catches up and the difference disappears. The paper shows the opposite: with more data, the greedy method actually falls further behind, building massive, messy trees that are hard to read, while the optimal method stays compact and sharp. The second myth was that optimal trees are "overfitting"—meaning they memorize the training data too well and fail on new data. The study found that when you tune them correctly, optimal trees are actually less likely to overfit than greedy ones.

But there is a catch. The optimal method is computationally heavy. It's like trying to solve a massive puzzle where you check every single piece combination; it takes a lot of time and power. The paper confirms that while these trees can handle huge datasets (up to 100,000 instances), they struggle if the number of features (the puzzle pieces) gets too high. So, the researchers conclude that optimal decision trees are the best choice when you need a small, highly accurate, and easy-to-understand model, especially if your data is noisy or complex. But if you just need a quick answer and don't care about the tree's size, the old-fashioned greedy method is still a reliable, fast friend. The key takeaway? If you want the best of both worlds, you must tune your optimal tree carefully, or it won't live up to its name.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →