Can Pretext-Based Self-Supervised Learning Be Boosted by Downstream Data? A Theoretical Analysis

Jiaye Teng, Weiran Huang, Haowei He

Abstract

Pretext-based self-supervised learning learns the semantic representation via a handcrafted pretext task over unlabeled data and then uses the learned representation for downstream tasks, which effectively reduces the sample complexity of downstream tasks under Conditional Independence (CI) condition. However, the downstream sample complexity gets much worse if the CI condition does not hold. One interesting question is whether we can make the CI condition hold by using downstream data to refine the unlabeled data to boost self-supervised learning. At first glance, one might think that seeing downstream data in advance would always boost the downstream performance. However, we show that it is not intuitively true and point out that in some cases, it hurts the final performance instead. In particular, we prove both model-free and model-dependent lower bounds of the number of downstream samples used for data refinement. Moreover, we conduct various experiments on both synthetic and real-world datasets to verify our theoretical results.

Introduction

In pretext-based Self-Supervised Learning (SSL), models learn representations by solving handcrafted tasks, such as predicting image rotation or patch relative positions. Ideally, these tasks encourage the model to capture semantic features useful for downstream applications. However, pretext tasks often contain redundant information—low-level artifacts like camera noise or border effects—that can satisfy the pretext objective without capturing semantic meaning.

Theoretically, SSL is most effective under the Conditional Independence (CI) condition: the pretext task $z$ and the input $x$ should be independent given the downstream label $y$. Since this condition rarely holds naturally, this research investigates whether a small amount of downstream labeled data can be used to "refine" the input to force the CI condition, thereby boosting SSL performance.

Methodology: The Data Refinement Framework

The authors propose a framework utilizing a data processor $f$ to transform input $x$ into a refined version $f(x)$. This processor must satisfy two core criteria:

  1. Criterion (C1): $f(x)$ should be uncorrelated with the pretext label $z$ given the downstream label $y$ (removing redundant information).
  2. Criterion (C2): $f(x)$ must retain sufficient information to predict the downstream label $y$.

To achieve this, they design a minimax-style loss function: $$\mathcal{L} = \text{Loss}(f \text{ predicts } y) - \lambda \cdot \text{Loss}(f \text{ predicts } z)$$ This objective rewards the processor for downstream accuracy while penalizing it for retaining information that makes the pretext task solvable.

Figure 2: MSE of the learned representation under varying parameters $n_0$ (sample size), $\lambda$ (penalty strength), and $d_f$ (model dimension).

Theoretical Analysis and the "Intuition Trap"

The core contribution is the derivation of lower bounds for the number of downstream samples ($n_0$) required for successful refinement. The authors prove that if $n_0$ is too small relative to the dimension or capacity of the function class of $f$ ($d_f$), the processor fails to satisfy both C1 and C2 simultaneously.

Contrary to the intuition that "more information is always better," the study reveals that in low-data regimes, the model overfits to the CI condition. It effectively "throws the baby out with the bathwater," discarding essential semantic features to satisfy the pretext penalty. This failure is model-dependent: a more complex refinement model (higher $d_f$) requires significantly more downstream data to avoid this performance collapse.

Empirical Results

Experiments on synthetic datasets and CIFAR-10 confirm the theoretical predictions. In the synthetic regime, Figure 2 demonstrates how the Mean Squared Error (MSE) of the learned representation is highly sensitive to the sample size $n_0$ and the penalty coefficient $\lambda$.

On CIFAR-10, using Rotation Prediction as the pretext task, the "boosted" refinement approach significantly underperformed compared to standard SSL. As shown in the table below, even with 15,000 downstream samples, the refined model achieved only ~44% accuracy, whereas standard SSL (which ignores downstream data during representation learning) reached 74.28%.

Figure 5: Accuracy comparison on CIFAR-10 between the proposed refinement method (at different $n_0$ values) and standard SSL.

Conclusion

This work provides a theoretical justification for the standard SSL paradigm. It demonstrates that attempting to refine pretext tasks with insufficient downstream data is counterproductive. The findings suggest that the robustness of standard SSL stems from its avoidance of "poisoning" representations with poorly trained data processors in data-scarce scenarios. Future research may explore alternative refinement strategies, such as meta-learning, to bridge the gap between pretext tasks and downstream requirements without falling into the overfitting trap.

Summary updated

BibTeX
@inproceedings{teng2022can,
  author = {Jiaye Teng and Weiran Huang and Haowei He},
  title = {{Can Pretext-Based Self-Supervised Learning Be Boosted by Downstream Data? A Theoretical Analysis}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=Ex6hKeKOer1},
}
Figure