Self-supervised Decision Tree

Machine Learning
Introduced by
Multiple authors (active research area, 2010s–2020s)
Year
2015–present
Type
Self-supervised ensemble/single tree model
Family
Machine learning

What does it do?

Self-supervised decision tree learning is a family of procedures that builds a classification or regression tree which is first shaped by an auxiliary, label-free pretext task on unlabelled rows, so that the splits reflect more than the scarce labelled data.

It targets settings where labelled rows are scarce and unlabelled rows from the same distribution are plentiful, while keeping the final model a tree that can be read and audited. The steps described below are a general pipeline of pretext task, pseudo-labelling, tree growing and leaf fine-tuning. They are not a single standardised algorithm with a formal derivation, and results depend heavily on the chosen pretext task and confidence threshold.

The intuition behind the method

Standard decision trees need labelled examples to score every candidate split. In many real-world settings, collecting labels is expensive but raw data is abundant. Self-supervised decision trees address this by first asking the tree to solve an auxiliary task, for example predicting whether two samples belong to the same cluster or reconstructing masked features, using only unlabelled data. This pretext phase shapes which features and thresholds the tree treats as informative. When labels arrive, the tree starts from this structure and may need fewer of them to reach a given accuracy, although this depends on how well the pretext task matches the target.

History

The name is used for a family of procedures rather than for one attributed algorithm, and no single originator is established for the method. The approach combines pseudo-labelling, which comes from semi-supervised learning, with the self-supervised learning paradigm described in the Wikipedia entry on self-supervised learning, and with standard greedy tree induction as described in the entry on decision tree learning.

When to use it

Choose this approach when labelled examples are scarce, a large unlabelled pool from the same distribution is available, and the final model must remain a tree whose splits can be inspected. It also suits settings where domain experts can name a pretext task that is plausibly related to the prediction target. The approach rests on three assumptions: the unlabelled and labelled rows come from the same distribution, the pretext signal is correlated with the target, and pseudo-labels that pass the confidence threshold are accurate enough to help. Check each assumption on labelled data before relying on the result. Do not use it when the labelled set is already large enough for a standard supervised tree, when the unlabelled data comes from a different distribution from the labelled data, or when the sole goal is predictive accuracy on labelled tabular data, where ensemble methods are usually the stronger first choice.

Limitations and considerations

  • Pseudo-labels inherit the biases of the pretext representation, and their errors can propagate through successive splits.
  • The pretext phase adds training cost compared with a plain supervised tree on the same labelled rows.
  • The procedure does not guarantee pseudo-label quality, so it has to be judged on a labelled subset held back for validation.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Uses unlabelled rows to influence split selection before labels are consumed, which addresses the case where labelling is the bottleneck.
  • The final model is still a tree, so each split remains a readable rule that can be checked by a domain expert.
  • The pretext task is a design choice, so domain knowledge about the data can be encoded directly into the training signal.
  • Can be used as the base learner in an ensemble, as the FAQ notes for random forests and boosting.

Applications

  • Tabular records where a large unlabelled table shares its feature space with a small labelled subset.
  • Problems where a masked-feature or cluster-based pretext task is meaningful for the domain, so that the pretext signal relates to the target.
  • Settings where an individual decision rule must be audited, which rules out deep models but still allows label scarcity to be addressed.

How it works

How it works

1

A pretext task generates a supervisory signal from the unlabelled rows themselves, so the tree can be trained before any human label is used. Options named on this page are predicting cluster membership from a prior k-means pass and predicting masked or corrupted feature values. The choice matters because the splits the tree learns in this phase are shaped by what the pretext task rewards.

2

After the pretext phase, the representations or cluster assignments learned so far are used to assign pseudo-labels to unlabelled instances, keeping only those the procedure treats as confident. These pseudo-labels enlarge the training set beyond the small labelled seed set. They are approximate targets, so their errors carry into the tree-growing step unless they are corrected later.

3

The tree is grown on the combined set of pseudo-labelled and genuinely labelled rows using a standard greedy algorithm such as CART, ID3, or C4.5. Pretext-derived features or cluster scores can be added as input columns, which allows splits on variables that the raw features alone would not provide with so few labels.

4

Each candidate split is scored with the impurity criterion of the chosen algorithm, computed on the augmented training set. For classification, information gain is based on entropy, H = −Σ p_k log p_k, and Gini impurity is 1 − Σ p_k². For regression, variance reduction is the usual criterion. These scores treat pseudo-labelled and genuinely labelled rows alike, so the quality of the chosen splits depends on how accurate the pseudo-labels are and on whether the unlabelled rows share the labelled distribution. Check the resulting splits on a held-out labelled set.

5

After the tree is grown, a fine-tuning stage adjusts the leaf class predictions using only verified labelled rows. The aim is to reduce the effect of pseudo-label errors on the final class assignments. As described here, this stage works on leaf predictions, and the splits are fixed by the tree-growing stage.

Common pitfalls

  • Designing a pretext task that is unrelated to the downstream target, so that the learned splits do not transfer to the labelled prediction problem.
  • Using pseudo-labels without a confidence filter, which lets many uncertain assignments into the training set.
  • Skipping the fine-tuning stage and deploying the pseudo-label-trained tree directly, which keeps the systematic labelling errors.
  • Ignoring distributional shift between the labelled and unlabelled pools, since pseudo-labels then describe the structure of the wrong data.
  • Assuming the splits are semantically meaningful without checking that they match the labelled classes and the domain meaning of the features.
  • Setting the pseudo-label confidence threshold by intuition rather than checking it against held-out labelled rows. A threshold that is too low admits many wrong pseudo-labels, while one that is too high leaves too few to enlarge the training set.

Frequently asked questions

How is this different from semi-supervised learning with decision trees?

Semi-supervised methods use unlabelled rows alongside labelled ones. The self-supervised variant described here adds an explicit pretext stage that creates a supervisory signal from unlabelled rows before any downstream labels are used. The pseudo-labels produced afterwards feed the tree-growing step.

What pretext task should I choose?

The best pretext task mirrors the downstream target. For tabular classification, k-means cluster prediction or masked feature reconstruction are common starting points. If domain knowledge is available, for example temporal order in time-series rows, a task that exploits that structure will transfer better.

Does this work for regression targets?

Extending the procedure to regression means the pseudo-labels must be continuous values, such as cluster centroids or reconstructed feature values, and the tree is grown with a regression criterion such as mean squared error. The leaf adjustment in fine-tuning is described for class predictions, so check the regression behaviour of each stage on a held-out labelled set before relying on it.

Can I combine this with random forests or boosting?

Yes. Each tree in the ensemble can be grown independently with the self-supervised procedure, and the final ensemble aggregates their votes or predictions in the usual way. This may narrow the accuracy gap to ensemble methods while keeping each individual tree readable.

How do I evaluate pseudo-label quality?

Compare the pseudo-labels against ground-truth labels on a labelled subset that is held out from pseudo-label generation and from fine-tuning, for example with cross-validation over the labelled rows. Low agreement suggests that the pretext task is poorly aligned with the target or that the unlabelled data differs in distribution. No universal acceptance threshold exists, so judge agreement and final accuracy against a simple baseline, such as a supervised tree trained on the labelled rows alone.

Related methods

Sources

  1. Self-supervised learning. Wikipedia.

    Open publication reference
  2. Decision tree learning. Wikipedia.

    Open publication reference