[Paper Review] Not All Unlabeled Data are Equal: Learning to Weight Data in Semi-supervised Learning
The paper proposes per-example weighting of unlabeled data in SSL using influence functions to automatically adjust weights, improving performance on image and text classification tasks.
Existing semi-supervised learning (SSL) algorithms use a single weight to balance the loss of labeled and unlabeled examples, i.e., all unlabeled examples are equally weighted. But not all unlabeled data are equal. In this paper we study how to use a different weight for every unlabeled example. Manual tuning of all those weights -- as done in prior work -- is no longer possible. Instead, we adjust those weights via an algorithm based on the influence function, a measure of a model's dependency on one training example. To make the approach efficient, we propose a fast and effective approximation of the influence function. We demonstrate that this technique outperforms state-of-the-art methods on semi-supervised image and language classification tasks.
Motivation & Objective
- Motivate that unlabeled data are not equally informative for SSL and that a single global weight is suboptimal.
- Introduce per-example weights for unlabeled data and automate their tuning without manual grid-search.
- Develop an efficient influence-function based framework to compute per-example weights for large SSL models.
- Demonstrate improved performance over state-of-the-art SSL methods on image and text benchmarks.
Proposed method
- Formulate a bi-level optimization where per-example weights for unlabeled data are learned to minimize validation loss.
- Use influence functions to approximate how upweighting a training example affects the validation loss (Eq. 6).
- Efficiently compute per-example gradients by leveraging layer activations and parallelization; approximate the inverse Hessian by restricting to the last layer to reduce memory and compute.
- Employ a masked-Adam (M(asked)-Adam) optimizer to update only the subset of per-example weights in each minibatch.
- Integrate the per-example weights with existing SSL losses (e.g., pseudo-labeling, UDA, FixMatch) and perform alternating updates of model parameters and weights.
- Provide practical guidance on hyperparameters and validate robustness through ablations and running-time analyses.
Experimental results
Research questions
- RQ1Can per-example unlabeled data weights improve SSL performance beyond a single global weight?
- RQ2How can influence functions be efficiently approximated and integrated into SSL to learn these weights at scale?
- RQ3Do per-example weights consistently improve performance across image and text SSL benchmarks?
- RQ4What are the computational trade-offs and practical considerations (e.g., memory, hyperparameters) when using per-example weights in deep nets?
Key findings
- Per-example weighting of unlabeled data improves SSL performance over strong baselines like UDA and FixMatch across CIFAR-10, SVHN, and IMDb.
- An influence-function-based approach effectively guides the assignment of weights to unlabeled examples based on validation performance.
- Efficient per-example gradient computation and a last-layer Hessian approximation enable scaling to modern SSL setups with limited GPU memory.
- Masked-Adam (M(asked)-Adam) and selective updates of the weight subset balance accuracy and efficiency.
- Ablation studies show benefits over using a single global weight and highlight the importance of the chosen influence-function approximation and optimization scheme.
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.