Authors: Mohamed Karim Belaid, Maximilian Rabus, Eyke Hüllermeier
Organizations: IDIADA Fahrzeugtechnik GmbH, Munich, Germany · Dr. Ing. h.c. F. Porsche AG Stuttgart, Germany · Ludwig-Maximilians-Universität Munich, Germany
Pairwise difference learning (PDL) has recently been introduced as a new meta-learning technique for regression. Instead of learning a mapping from instances to outcomes in the standard way, the key idea is to learn a function that takes two instances as input and predicts the difference between the respective outcomes. Given a function of this kind, predictions for a query instance are derived from every training example and then averaged. This paper extends PDL toward the task of classification and proposes a meta-learning technique for inducing a PDL classifier by solving a suitably defined (binary) classification problem on a paired version of the original training data. We analyze the performance of the PDL classifier in a large-scale empirical study and find that it outperforms state-of-the-art methods in terms of prediction performance. Last but not least, we provide an easy-to-use and publicly available implementation of PDL in a Python package.
Figures & tables
Figure 1: Illustration of the PDL classifier.
Figure 2: Comparing learned patterns using PDL classifiers and baseline models.
Figure 3: Distribution of key characteristics of the 99 OpenML classification datasets (minimum, mean, maximum).
Figure 4: Comparing average Macro F1 score of optimized baseline classifiers and PDL classifiers.
Significant wins
Wins
Average Test Macro F1
Classifier
base
PDC
base
PDC
base
± sem
PDC
± sem
Bagging
3
26
27
70
0.7906
0.0035
0.8062
0.0034
DecisionTree
2
50
22
76
0.7694
0.0037
0.7982
0.0034
ExtraTree
1
61
9
90
0.7434
0.0037
0.7987
0.0035
ExtraTrees
6
24
21
77
0.7951
0.0036
0.8113
0.0035
GradientBoosting
9
23
25
72
0.7839
0.0037
0.7903
0.0039
Table 1: Comparing baseline classifiers to PDC using 99 datasets.
Estimator
Unique contribution
Wins
ExtraTree
0
0
HistGradientBoosting
0
0
RandomForest
0.00002
1
Bagging
0.00004
2
GradientBoosting
0.00006
2
DecisionTree
0.00020
10
Table 2: Unique contribution of each estimator to the average Macro F1 score using the best optimized model on each dataset.
# CV
Baseline Macro F1
PDC Macro F1
Test
Test
Estimator
runs
Train
Test
Train
Test
ΔF1
p-value
Bagging
20
0.998
0.835
0.999
0.859
0.024
10−15
DecisionTree
14
0.950
0.884
0.955
0.895
0.011
10−05
ExtraTree
11
0.915
0.844
0.924
0.861
0.017
10−04
ExtraTrees
26
0.985
0.828
0.991
0.853
0.025
10−16
GradientBoosting
58
0.930
0.822
0.926
0.840
0.018
10−17
Table 3: Comparing test Macro F1 on the subset of runs where train scores are not significantly different.
Figure 5: Effect of the anchor set size on PDC’s loss relative to the baseline.
Instead of learning a mapping from instances to outcomes in the standard way, the key idea of pairwise difference learning (PDL) is to learn a function that takes two instances as input and predicts the difference between the respective outcomes. Given a function of this kind, predictions for a query instance are derived from every training example and then averaged. We propose a version of PDL for the task of classification and propose a suitable meta-learning technique for this purpose. Moreover, we address the problem of uncertainty quantification, i.e., of representing and quantifying the uncertainty of a PDL classifier's predictions in a faithful manner. Building on recent work on the decomposition of total uncertainty into aleatoric and epistemic components, we propose different ways of extending corresponding measures to the setting of PDL, depending on how and to what extent uncertainty is represented by the underlying base learner. In large-scale empirical studies, we analyze both the predictive accuracy and the uncertainty awareness of our PDL classifier.
Mohamed Karim Belaid, Maximilian Rabus, Eyke Hüllermeier
IDIADA Fahrzeugtechnik GmbH, Munich, Germany. · Dr. Ing. h.c. F. Porsche AG, Stuttgart, Germany. · Institute of Informatics, University of Munich (LMU), Germany. +2
Pairwise Difference Learning for Classification (PDC) enhances supervised learning in low-data regimes by training a binary similarity classifier on pairs of instances rather than individual samples, effectively inflating the training set from n to O(n2) examples. However, the PDC framework leaves critical implementation choices underspecified, particularly regarding input representation and pair selection strategies. This work systematically investigates these design decisions through extensive empirical evaluation. We compare four feature encoders (paired features, triplet with relative difference, absolute difference, and a novel triplet with absolute difference) alongside four pair selection strategies ranging from exhaustive to kernel-thinning-based schemes. Experiments across nearly 200 benchmark classification datasets using Decision Tree, Multilayer Perceptron, Gaussian Naive Bayes, and Support Vector Classifier as base models reveal that the proposed triplet with absolute difference encoder (φ3dabs) achieves the highest average F1 scores. More notably, restricting training to upper-triangle pairs reduces computational time by approximately 40% with negligible accuracy loss. Kernel thinning-based selection provided no accuracy benefits while substantially increasing computational overhead. Overall, PDC configurations outperformed base models in 94% of tested cases, though no single configuration dominated universally, suggesting dataset-specific optimization remains an open challenge.
Bernard Georges, Mohamed Karim Belaid, Manuel Rodrigues
University of Minho, ALGORITMI CENTER LASI, Braga, Portugal · IDIADA Fahrzeugtechnik GmbH, Munich, Germany
Even when it is difficult to assign absolute class labels to individual instances, relational information may still be available, such as whether two instances belong to the same class or which instance is more likely to belong to the positive class. In this study, we refer to these two types of information as Similarity/Dissimilarity (SD) labels and Pairwise Comparison (Pcomp) labels, respectively, and consider binary classification that uses both types of relational information from the same instance pairs. SD learning uses the distinction between similar and dissimilar pairs but does not use the ordering within each pair, whereas Pcomp learning uses the ordering within each pair but does not distinguish between similar and dissimilar pairs. We therefore propose SD-Pcomp learning, whose objective function simultaneously preserves the structures of both SD learning and Pcomp learning. The proposed objective function admits two decompositions: one consists of an SD estimator plus a term that represents ordering information from Pcomp labels, and the other consists of a Pcomp estimator plus a term that represents pair-type information from SD labels. These decompositions clarify how the complementary information provided by SD and Pcomp labels is integrated into the proposed objective function. Experiments on eight datasets compare the proposed method with SD learning, Pcomp learning, and a method that takes a convex combination of their objective functions. We evaluate the effect of using both types of relational information on classification performance in terms of classification accuracy and AUC.