[Paper Review] Optimally Efficient Sequential Calibration of Binary Classifiers to Minimize Classification Error
This paper proposes a sequential recursive merger algorithm for optimally calibrating binary classifier scores to minimize classification error. It proves that the optimal monotonic mapping is a thresholding function (0 or 1 probabilities), and achieves $O(\log N)$ time complexity per new sample, making it the first optimally efficient sequential calibration method for general linear losses including class- and sample-weighted errors.
In this work, we aim to calibrate the score outputs of an estimator for the binary classification problem by finding an 'optimal' mapping to class probabilities, where the 'optimal' mapping is in the sense that minimizes the classification error (or equivalently, maximizes the accuracy). We show that for the given target variables and the score outputs of an estimator, an 'optimal' soft mapping, which monotonically maps the score values to probabilities, is a hard mapping that maps the score values to $0$ and $1$. We show that for class weighted (where the accuracy for one class is more important) and sample weighted (where the samples' accurate classifications are not equally important) errors, or even general linear losses; this hard mapping characteristic is preserved. We propose a sequential recursive merger approach, which produces an 'optimal' hard mapping (for the observed samples so far) sequentially with each incoming new sample. Our approach has a logarithmic in sample size time complexity, which is optimally efficient.
Motivation & Objective
- To find an optimal monotonic mapping from classifier score outputs to class probabilities that minimizes classification error.
- To extend optimal calibration beyond standard accuracy to class-weighted, sample-weighted, and general linear losses.
- To develop a sequential, online algorithm that efficiently updates the optimal threshold with each new sample.
- To achieve optimal time complexity of $O(\log N)$ per new sample for dynamic calibration.
- To provide a post-processing solution that maintains discrimination while improving calibration without retraining.
Proposed method
- Proposes a sequential recursive merger algorithm that maintains optimal thresholds through dynamic updates as new samples arrive.
- Uses a data structure with auxiliary sets $\mathcal{B} = \{X_0, X_1, L_0, L_1\}$ to represent subsets of samples and their loss contributions.
- Applies a merging rule based on the sign of $L_1^0 + L_0^1$ to determine the optimal threshold during recursive combination.
- Employs a bottom-up recursion with bounded depth $O(\log N)$, ensuring logarithmic update time.
- Maintains monotonicity of the mapping by ensuring ordered, adjacent partitions of score values.
- Achieves $O(1)$ time per update via local propagation of loss and boundary information through the recursion.
Experimental results
Research questions
- RQ1What is the optimal monotonic mapping from classifier scores to probabilities that minimizes classification error?
- RQ2Does the optimal mapping remain a threshold function under class-weighted or sample-weighted error metrics?
- RQ3Can an online, sequential algorithm maintain the optimal threshold with $O(\log N)$ time per new sample?
- RQ4Is there a recursive data structure that enables efficient, optimal updates to the calibration function?
- RQ5Can the method generalize to arbitrary linear loss functions beyond standard accuracy?
Key findings
- The optimal calibration mapping for minimizing classification error is a hard thresholding function that maps all scores to 0 or 1.
- This thresholding property holds for class-weighted, sample-weighted, and general linear loss functions.
- The proposed sequential recursive merger algorithm achieves $O(\log N)$ time complexity per new sample, which is optimally efficient.
- The algorithm maintains the optimal threshold through recursive merging of ordered score partitions using auxiliary loss sets.
- The depth of recursion is bounded by $O(\log N)$, ensuring logarithmic update time even with unordered sample arrivals.
- Each update operation is $O(1)$ time due to localized propagation of loss and boundary information.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.