Adaptive Sample Sharing for Linear Regression

Hamza Cherkaoui, Hélène Halconruy, Yohan PetetinarXiv 2025 · DOI

Introduction

In many practical machine learning scenarios, such as predicting patient outcomes for rare medical procedures or modeling niche market segments, labeled data for the specific "target" task is often critically scarce. Transfer learning offers a potential solution by borrowing data from a related, data-rich "source" task. However, this approach carries the inherent risk of negative transfer, where dissimilarities between the source and target tasks lead to a model that performs worse than one trained solely on the limited target data.

This paper introduces a principled, data-driven framework for linear ridge regression that adaptively selects the optimal number of source samples to share. By estimating the "transfer gain" and applying a conservative statistical safeguard, the proposed method provides a mathematical guarantee against negative transfer, ensuring that auxiliary data is only used when it is truly beneficial.

The Triple-S Algorithm

The core of the proposed approach is the Source-Sample Selection (Triple-S) algorithm. Unlike traditional transfer learning methods that use regularization hyperparameters to couple source and target models in a joint objective, Triple-S takes a direct "sample sharing" approach. It simply appends raw source samples to the target training set.

The critical innovation lies in the decision rule for how many samples to include. The authors define a metric called transfer gain, which measures the marginal reduction in predictive error when moving from a single-task model to a collaborative model. Since the true transfer gain depends on unknown ground-truth parameters, the algorithm uses a plug-in estimator. To ensure robustness, a statistical lower bound is applied using the Bienaymé-Chebyshev inequality. This creates a conservative decision rule: the algorithm only flags a positive gain when it is highly confident, effectively treating the target-only performance as a strict baseline.

Computationally, Triple-S is designed for efficiency. By utilizing the Sherman-Morrison formula for rank-one updates to the inverse Gram matrix, the algorithm evaluates the marginal benefit of each additional source sample in $O(d^2)$ time, where $d$ is the feature dimension. This allows the algorithm to scale effectively without the prohibitive cost of repeated matrix inversions during the selection process.

Experimental Evaluation

The method was rigorously evaluated using both synthetic datasets and real-world benchmarks. Synthetic tests allowed for systematic control over target sample size ($n_T$), source noise levels, and task discrepancy (the distance between source and target parameters). Real-world validation was performed on standard UCI benchmarks, specifically the Email/Spambase and Boston Housing datasets, which were partitioned to simulate realistic transfer learning scenarios.

Theoretical analysis under an isotropic Gaussian design reveals that sample sharing is most beneficial when target data is noisy, source data has low noise, and the tasks are highly aligned. The experiments confirmed these findings. Crucially, Triple-S was the only method among tested baselines—including approaches by Chen et al. (2014) and Obst et al. (2021)—that never underperformed the target-only ridge regression baseline.

When source data becomes too noisy or tasks become too dissimilar, the algorithm naturally reduces the number of borrowed samples to zero. This "graceful degradation" validates the safety of the conservative decision rule in practical, non-Gaussian settings.

Conclusion and Future Work

The Triple-S algorithm provides a safe and efficient path for transfer learning in linear regression. By framing the problem as one of conservative sample selection rather than joint optimization, it offers a reliable way to leverage auxiliary data without the risk of degrading model performance.

While the current framework is tailored for linear ridge regression and requires a small validation set for calibration, it sets a strong foundation for future research. The authors suggest extending this "safety-first" philosophy to non-linear predictors, classification tasks, and models trained via gradient descent, such as deep neural networks.

Summary updated

BibTeX
@misc{cherkaoui2025adaptive,
  author = {Hamza Cherkaoui and Hélène Halconruy and Yohan Petetin},
  title = {{Adaptive Sample Sharing for Linear Regression}},
  year = {2025},
  eprint = {2510.16986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16986},
}
Figure