arXiv:2610.21554cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21554

Uncertainty Quantification in Pairwise Difference Learning for Classification

Mohamed Karim Belaid, Maximilian Rabus, Eyke Hüllermeier

Abstract

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.

Keywords: Pairwise difference learning, Classification, Uncertainty Quantification

1

Preprint (version submitted before peer review). Published in Machine Learning 115, 12 (2026), https://doi.org/10.1007/s10994-025-06949-0

1 Introduction

Pairwise Difference Learning (PDL) is a versatile meta-learning technique that solves supervised learning tasks by learning to predict the difference Δ(x,x′)=f(x)−f(x′)\Delta(x, x') = f(x) - f(x') between the outcomes of pairs of inputs — rather than outcomes of individual inputs directly, as “conventional” learners do. Point predictions can then be obtained from observed data (x′,f(x′))(x', f(x')) thanks to the relationship f(x)=f(x′)+Δ(x,x′)f(x) = f(x') + \Delta(x, x'). Averaging over many predictions of that kind turns out to significantly enhance predictive accuracy, especially in small data regimes [1–5]. This is also because, by pairing training examples, the number of training examples is inflated to the square of the original size (albeit at the cost of losing statistical independence).

PDL has originally been introduced for regression tasks, i.e., for predicting (differences between) continuous outcomes. This paper is an extension of our recent work [5], in which we generalized PDL to the case of multiclass classification, essentially specifying the “difference” between outcomes in terms of class (in)equality. Like in the case of regression, significantly improved accuracy (compared to conventional classification) could be shown in many cases. However, while predictive accuracy is critical, capturing a model’s reliability in its predictions is not less important, particularly for high-stakes decisions in domains such as healthcare, autonomous systems, and risk management. In this article, we therefore shift our focus towards uncertainty quantification (UQ) within the PDL framework and extend the latter by methods for representing and quantifying aleatoric uncertainty (which arises from inherent randomness and noise in the data) as well as epistemic uncertainty (which reflects the learner’s lack of knowledge due to limited or incomplete training data). Our key contributions are as follows:

  • To realize the idea of PDL for the task of classification, we propose a meta-learning technique that transforms any multiclass classification problem into a single binary problem (Section 3).

  • We establish a comprehensive taxonomy of uncertainty representations that aligns with the PDL framework, incorporating measures for total, aleatoric, and epistemic uncertainty (Section 4).

  • We conduct extensive empirical evaluations on both real-world benchmark datasets and controlled synthetic datasets, analyzing both the predictive accuracy and the uncertainty awareness of our PDL classifier. Our results also offer insights into the interactions between the choice of the base learner, the uncertainty representation, and the UQ measures (Section 5).

  • We provide a theoretical and empirical analysis of UQ within the context of the pairwise transformation induced by PDL, critically assessing the suitability and effectiveness of various UQ methods. Based on this analysis, we propose a principled selection of UQ techniques best suited for PDL classifiers (Section 6).

  • We make a Python implementation of the PDL classifier available 1^{1}. Our “pairwise difference learning library” (pdll) adheres to the Scikit-learn standards and ensures compatibility with any Sklearn ML model.

1^{1}Link: https://github.com/Karim-53/pdll

References (38)