Efficient Learning with Partially Observed Attributes

Nicolò Cesa-Bianchi, Shai Shalev-Shwartz, Ohad Shamir

Introduction

In standard machine learning, we typically assume that for every training example, we have access to all its features. However, in the real world, gathering complete data is often expensive, intrusive, or practically impossible. For instance, a medical researcher might want to predict a disease based on 100 different tests, but no single patient is willing or able to undergo all 100.

This paper introduces efficient algorithms for training linear predictors when you can only observe a tiny fraction of features (attributes) for each training example. The authors tackle a "hard constraint" scenario: for every training instance, the learner is allowed to see at most $k$ attributes, where $k$ is much smaller than the total number of attributes $d$. The core challenge is designing an algorithm that is computationally efficient and theoretically guaranteed to converge to a good predictor, despite never seeing a "complete" example during training.

Methodology: Learning from Incomplete Data

The paper explores two main approaches to solve this problem:

  1. The Baseline Algorithm: This is a direct adaptation of Lasso (a popular linear regression method). It attempts to estimate the entire correlation matrix of the data by randomly picking pairs of attributes to observe. While functional, it is statistically "noisy" because it tries to reconstruct a large $d \times d$ matrix from very few samples, leading to relatively weak error bounds.
  2. Attribute Efficient Regression (AER): This is the paper's primary contribution. Instead of trying to reconstruct the data matrix, AER uses a modified version of Stochastic Gradient Descent (specifically the Pegasos algorithm).
  3. Smart Sampling: For each training example, AER uses a randomized strategy to estimate the gradient of the loss function. It picks one attribute based on the current model's weights to estimate the "prediction" and another attribute uniformly at random to estimate the "direction" of the update.
  4. Unbiased Estimates: The authors prove that this randomized sampling provides an unbiased estimate of the true gradient. While any single update is noisy, the average of many updates points exactly where the model needs to go.

Experiments: The MNIST 4-Pixel Challenge

To test their algorithms, the authors evaluated them on the MNIST digit recognition dataset, specifically focusing on a binary classification task ("3 vs. 5") treated as a regression problem.

To simulate the partial observation setting, the learner was restricted to seeing only 4 pixels out of the 784 total pixels in each $28 \times 28$ image.

Examples of MNIST digits and their 4-pixel partial observations

Despite this severe restriction, AER performed remarkably well. On the "3 vs. 5" task, AER achieved a median test error of 0.320. For context, the full-information Lasso (which sees all 784 pixels) achieved 0.222. AER also significantly outperformed the Baseline algorithm, which struggled with an error of 0.815.

Table comparing test errors of full vs. partial information models

Even with only 4 pixels per training image, AER's classification error was only slightly worse (3.5%) than models trained with full information (1.1% - 1.3%).

Key Insights and Theoretical Takeaways

  • Quantity over Quality: The core insight is that you do not need perfect information about a few examples to learn effectively; you can learn just as well from highly incomplete observations of many examples. The lack of information per example is compensated for by the total volume of examples.
  • Gradient vs. Matrix Estimation: Estimating the gradient (AER) is far more efficient than estimating the covariance matrix (Baseline). The error bound for AER improves from a factor of $d^2/k$ to $d/\sqrt{k}$, representing a massive gain in high-dimensional spaces.
  • The "Dense" Advantage: AER is particularly effective when the optimal predictor is "dense" (meaning many features contribute a little bit to the result). In these cases, AER can achieve the same accuracy as a full-information learner using roughly the same total number of attribute observations.
  • Training vs. Testing: A surprising theoretical result (Theorem 4) shows that while we can train a great model on partial data, we still need full information at test time to make accurate predictions. Knowing the perfect model isn't enough if you cannot see the features of the new instance you are trying to evaluate.

Limitations and Future Directions

  • The Sparse Gap: There remains a theoretical gap between the "upper bound" (what AER is guaranteed to achieve) and the "lower bound" (the best any algorithm could possibly do) for sparse predictors. Closing this factor-of-$d$ gap is an open problem.
  • Beyond Squared Loss: The current work focuses primarily on squared loss for regression. Extending this to other loss functions (like Hinge loss for SVMs) is possible but might lead to sample complexity bounds that grow exponentially with the number of dimensions.
  • Privacy Implications: The authors suggest a fascinating link to privacy-preserving learning. Because the learner only sees a few attributes per example, it is much harder to reconstruct the original sensitive data, suggesting these algorithms could be adapted to inherently protect individual privacy during training.

Summary updated

BibTeX
@inproceedings{cesabianchi2010efficient,
  author = {Nicolò Cesa-Bianchi and Shai Shalev-Shwartz and Ohad Shamir},
  title = {{Efficient Learning with Partially Observed Attributes}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure