Generalizing from Several Related Classification Tasks to a New Unlabeled Sample

Gilles Blanchard, Gyemin Lee, Clayton ScottNeurIPS 2011

In traditional machine learning, models are typically built on the assumption that training and test data are drawn from the exact same distribution. However, in many real-world fields—such as biology or medicine—data distributions frequently fluctuate due to technical or biological variations (e.g., different patients, varying lab equipment, or batch effects).

Existing paradigms like Multi-task Learning (MTL) focus on improving performance across a set of known tasks. Meanwhile, Covariate Shift models assume that while the distribution of features ($P(X)$) might change, the fundamental relationship between features and labels ($P(Y|X)$) remains constant.

This paper tackles a more challenging and realistic scenario: what happens when both the features and the labeling process change slightly between tasks, and you have zero labels for your new test task? To solve this, the authors introduce a framework for "learning marginal predictors." They propose that if there is a consistent pattern in how the marginal distribution $P(X)$ relates to the labels, a model can learn to predict labels for a new sample simply by contextualizing the data within its broader distribution.

A Kernel-Based Approach to Marginal Predictors

The authors develop a distribution-free, kernel-based algorithm. The core innovation is the use of an "extended input space." Instead of evaluating a single data point $x$ in isolation, the model evaluates the point alongside the empirical distribution $\hat{P}_X$ of the entire sample it belongs to.

  1. The Product Kernel: The model utilizes a kernel $k$ that operates on pairs of (distribution, point). It is defined as: $$k((P_1, x_1), (P_2, x_2)) = k_P(P_1, P_2)k_X(x_1, x_2)$$
  2. Kernels on Distributions: To compare distributions ($k_P$), the authors employ "characteristic kernels." They map a distribution into a Reproducing Kernel Hilbert Space (RKHS) using a mean embedding $\Psi(P_X)$. A second kernel (such as a Gaussian) is then applied on top of these embeddings, allowing the model to capture non-linear relationships between different distributions.
  3. Regularized Risk Minimization: The model is trained by minimizing a regularized empirical risk over the RKHS. When using the hinge loss, this formulation closely resembles a standard Support Vector Machine (SVM), but equipped with a specialized kernel that explicitly accounts for task-level distributional differences.

Datasets and the Challenge of Biological Variation

The primary evaluation of this method is performed on Flow Cytometry Data.

  • Source: Peripheral blood samples from 35 normal patients.
  • Task: "Gating," which involves identifying specific cell types (like lymphocytes) within a multi-dimensional cloud of cell measurements.
  • Setup: 10 patients were used for training (subsampled to 1,000 cells each), and the remaining 25 patients were used for testing.
Flow cytometry scatter plots for two different patients (Case 7 and Case 12), illustrating the variation in cell distributions.

The fundamental challenge here is that each patient's cell distribution is slightly different. Because the shape and location of the cell populations shift from patient to patient, a static, "one-size-fits-all" classifier struggles to maintain accuracy across the board.

Key Results

The proposed method was compared against "Pooling" (combining all training data into one large SVM) and Multi-Task Learning (MTL) kernels.

Method Training Error (%) Test Error (%)
Pooling ($\tau = 1$) 1.41 2.32
MTL ($\tau = 0.01$) 1.59 2.64
MTL ($\tau = 0.5$) 1.34 2.36
Proposed Method 1.32 2.29
Test error percentages across individual datasets for Pooling, Multi-Task Learning (MTL), and the proposed method.

While the numerical gains on this specific dataset are modest on average, the proposed method achieved the lowest overall test error. More importantly, it demonstrated a unique ability to adapt its decision boundaries to the specific "shape" of the test data's distribution, whereas MTL and Pooling remained static.

Insights, Limitations, and Future Work

  • The Marginal as a Signal: The key insight of this work is treating the marginal distribution $P_X$ as a prior or context. Just as a human pathologist might label a cell based on its relative position within a population scatter plot, this model learns to do the same mathematically.
  • Universal Consistency: The authors provide rigorous theoretical proofs showing that their kernel-based approach is "universally consistent." As the number of tasks and the amount of data per task increase, the model's error converges to the best possible theoretical limit.
  • Limitations: Kernel methods can be computationally expensive on very large datasets, which required the authors to subsample the flow cytometry data. Furthermore, the method strictly relies on the assumption that a relationship exists between the marginal distribution and the labels; if the labeling process is entirely independent of the distribution's shape, the method offers no advantage.

Future directions suggested by the authors include extending the framework to multi-class settings (akin to "learning to cluster") and exploring semi-supervised adaptations where a small number of labels might be available for the test task to further refine the model's boundaries.

Summary updated

BibTeX
@inproceedings{blanchard2011generalizing,
  author = {Gilles Blanchard and Gyemin Lee and Clayton Scott},
  title = {{Generalizing from Several Related Classification Tasks to a New Unlabeled Sample}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2011},
  url = {https://openreview.net/forum?id=r1NGD_Wd-H},
}
Figure