TL;DR
Multi-source transfer learning usually relies on blindly using all available source data, which can hurt both training efficiency and model accuracy due to "negative transfer." This paper introduces a theoretical framework and a practical algorithm (OTQMS) to calculate the mathematically optimal number of samples to transfer from each source task. By taking only the data it actually needs, OTQMS achieves higher accuracy while slashing training time and data usage by over a third.
What Problem Does This Paper Address?
In real-world machine learning, labeled data is often scarce. Transfer learning solves this by borrowing knowledge from related "source" tasks that have abundant data to help train a "target" task. In Multi-Source Transfer Learning (MSTL), we have several source tasks available.
The standard approach in MSTL is a brute-force one: dump all available samples from all source tasks into the training pool. However, this creates two major problems:
- Inefficiency: Training on massive amounts of source data is computationally expensive and slow.
- Negative Transfer: If a source task is fundamentally different from the target task, forcing the model to learn from it introduces bias. At a certain point, adding more source data actually degrades the target model's performance.
The authors tackle a fundamental question: exactly how many samples should we pull from each individual source task to maximize target performance without introducing harmful bias?
Methods
The authors frame the problem of finding the optimal transfer quantity as a parameter estimation problem.
- Theoretical Framework: They define the model's generalization error using Kullback-Leibler (K-L) divergence—a statistical measure of how the distribution learned from the training data differs from the true target distribution. Because this is hard to compute directly, they use high-dimensional statistical analysis (leveraging the Fisher Information Matrix) to approximate this error in the asymptotic regime. By minimizing this mathematical equation, they can derive the optimal transfer quantity for each source task.
- The OTQMS Algorithm: To put the math into practice, they propose the Optimal Transfer Quantities for Multi-Source Transfer learning (OTQMS) algorithm.
- Dynamic Strategy: In few-shot learning, the target model is initially very weak, making it hard to accurately calculate how much source data is needed. OTQMS solves this dynamically. It trains the target model for an epoch, uses the updated model parameters to recalculate the optimal source quantities, resamples the training dataset accordingly, and repeats.
Datasets
The authors evaluated their method on standard image classification benchmarks:
- DomainNet: A large-scale dataset with 6 domains (Clipart, Infograph, Painting, Quickdraw, Real, Sketch) and 345 classes.
- Office-Home: A dataset with 4 domains (Art, Clipart, Product, Real World) and 65 classes.
- Digits: A collection of four digit-recognition datasets (MNIST, Synthetic, SVHN, USPS) used to test model adaptation.
Key Insights and Ideas
- More data isn't always better: The authors mathematically prove that when a source task is highly similar to the target, you should use all its data. But when the discrepancy is large, the optimal transfer quantity drops. The bias introduced by mismatched data eventually outweighs the variance-reduction benefits of having a larger dataset.
- Dynamic data diets work best: Estimating the target distribution from just a few labeled examples is highly inaccurate. By iteratively updating the target model and re-evaluating the optimal source quantities during training, the model successfully self-corrects its "data diet."
- Sample-based > Model-weighting: The experiments show that methods that actually mix and select source data (like OTQMS) generally outperform methods that try to combine pre-trained source models (parameter-weighting). Data speaks louder than model weights.
Key Results
- Accuracy: OTQMS consistently outperformed state-of-the-art baselines (including the "use all source data" approach), achieving an average accuracy improvement of 1.5% on DomainNet and 1.0% on Office-Home.
- Data Efficiency: By only selecting the optimal amount of data, OTQMS reduced average training time by 35.19% and average sample usage by 47.85% on DomainNet compared to using all available data.
- Robustness: The algorithm maintained its edge across various few-shot settings (scaling from 5 to 100 shots per class) without suffering from negative transfer.
- Compatibility: OTQMS proved architecture-agnostic. It works well with standard full-parameter training (like ViT and ResNet) as well as Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA.
Limitations and Future Work
- Basic Sampling Strategy: Once OTQMS calculates how many samples to take from a source, it just selects them randomly. The authors note that using active learning to select the most informative specific samples could further boost performance.
- Quantity vs. Weights: The current framework optimizes the quantity of data but treats all selected samples equally. Jointly optimizing the transfer quantity and assigning importance weights to individual samples is a promising future direction.
- Loss Function Constraints: The theoretical proofs currently rely on a negative log-likelihood objective (standard cross-entropy for classification). Extending the mathematical guarantees to other loss functions, like Mean Squared Error for regression tasks, remains future work.
Summary updated