arXiv:2609.01430cs.LGSep 2026

Manuscript Offprint

arXiv:2609.01430

Learning Sparse Decision Trees via Transformer Variational Auto-Encoders

Giacomo Fidone, Alessio Cascione, Riccardo Guidotti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Giacomo Fidone

University of Pisa

giacomo.fidone@phd.unipi.it

Alessio Cascione

University of Pisa

alessio.cascione@phd.unipi.it

Riccardo Guidotti

University of Pisa

ISTI-CNR

riccardo.guidotti@unipi.it

Abstract—Decision trees are among the most widely used models in machine learning, largely due to their transparent decision logic, making them well-suited for high-stakes decision-making contexts. However, most existing learning algorithms focus on predictive performance, overlooking the joint optimization of other desirable properties, such as structural sparsity. In this work we propose TREVIS, an approach for learning decision trees with respect to complex objectives, based on the exploration of the latent space of a Tree Transformer Variational Auto-Encoder (TTVAE). By mapping decision trees onto latent representations, TREVIS replaces the discrete search space with a continuous one, enabling gradient-based optimization via a differentiable surrogate model. We experiment with TREVIS for learning decision trees that jointly optimize predictive performance and sparsity. Results show that TREVIS discovers decision trees matching the predictive performance of existing near-optimal algorithms while improving their structural sparsity.

Index Terms—Interpretable Machine Learning, Decision Tree, Transformer, Variational Auto-Encoders

I. INTRODUCTION

Machine Learning (ML) models are increasingly deployed in high-stakes decision-making contexts such as credit risk assessment, hiring, and healthcare [1]–[3]. Despite their strong predictive capabilities, many ML models rely on uninterpretable architectures compromising safety and accountability [4]. Given their hierarchical, rule-based structure, Decision Trees (DTs) [5] stand out as one of the few interpretable-by-design models and remain a standard for tabular data [6].

However, learning optimal DTs is intractable for the combinatorial size of the discrete search space, which grows exponentially with the number of features and training instances [7]. Consequently, algorithms for learning DTs only explore a small region of this space. The most common ones, namely CART, ID3, and C4.5 [8], rely on a top-down greedy strategy that, while computationally efficient, typically yields suboptimal solutions. In contrast, algorithms seeking globally optimal DTs incur prohibitive computational costs [9], [10].

Accepted for publication at the 2026 IEEE International Conference on Data Mining (ICDM 2026). © 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

This work has been partially supported by the Italian Project Fondo Italiano per la Scienza FIS00001966 “MIMOSA”, by the European Community programme under the funding schemes G.A. 101120763 “TANGO”, and G.A. 101286379 “ILLUME-4-Science”.

Figure

Fig. 1. TREVIS learns a latent space of Decision Trees via a Tree Transformer Variational Auto-Encoder. Then, it leverages gradient-ascent to find latent representations maximizing desired properties predicted by a surrogate model.

Beyond the performance-efficiency trade-off, most learning algorithms typically focus on optimizing predictive performance, with little or no account for other desirable properties [11]. Notably, the interpretability of a DT depends on its structural sparsity, namely on how simple the tree topology is in terms of depth and the number of nodes and leaves [12]. Additionally, a DT may be required to ensure fairness w.r.t. one or more protected attributes [13], preserve privacy by masking sensitive information from possible adversarial attacks [14] or display robustness to noisy input examples [15]. A promising alternative to existing DT learning algorithms is to embed the discrete space of DTs into a smoother, continuous latent space. This makes exploration more efficient and enables the optimization of complex objectives via black-box or gradient-based methods, as previously demonstrated for other graph-structured domains [16], [17]. Following this line of research, we propose a framework for learning Tree REpresentations from Variational Inference in latent Space (TREVIS). As shown in Figure 1, TREVIS learns a continuous latent space of DTs via a Tree Transformer Variational Auto-Encoder (TTVAE). Then, it leverages a differentiable surrogate model for jointly estimating desired properties and discovering optimal latent tree representations with gradient ascent.

In this work, we evaluate the ability of TREVIS to generate DTs that balance two competing properties: predictive performance and structural sparsity. This trade-off is central to DT learning, as more complex DTs can improve performance, but often at the expense of interpretability. We leave to future work the extension of TREVIS to more complex objectives including fairness, privacy and robustness. Our results show that TREVIS learns a locally smooth latent space with identifiable directions capturing DT properties. This enables TREVIS to effectively navigate the latent space and find DTs with predictive performance comparable to that of near-optimal DT learning algorithms, while improving structural sparsity.

The rest of the paper is organized as follows. In Section II, we review related works. In Section III, we formalize our proposal. In Section IV, we report experimental setting and results. Finally, in Section V we summarize our contributions and detail future research directions.

References (64)