TL;DR
When you fine-tune a pre-trained AI model on a new task without access to its original training data, it tends to suffer from "catastrophic forgetting"—learning the new skill by overwriting its general intelligence. DRIVE solves this by dynamically adjusting the weight of each training sample on the fly, balancing new-task learning, old-knowledge retention, and data diversity inside a single, smooth mathematical equation. The result is a plug-and-play method that converges faster, yields more stable models, and retains general capabilities without sacrificing downstream accuracy.
What Problem Does This Paper Address?
Imagine spending years getting a broad liberal arts education, then taking an intensive weekend crash course in tax law—and walking out having completely forgotten how to read a novel or do basic algebra. That is catastrophic forgetting, and it happens to vision models and Large Language Models (LLMs) even during a single round of standard fine-tuning.
In the real world, you rarely have the massive, proprietary pre-training dataset lying around to remind the model what it used to know (a constraint called the data-oblivious setting). One natural way to guide fine-tuning is data weighting: giving more influence to helpful training examples and less to harmful or redundant ones.
However, existing weighting methods are fragmented:
- They usually optimize either for learning the new task (plasticity) or preserving old knowledge (stability), lacking a principled knob to balance both.
- Incorporating sample diversity usually requires clunky, discrete steps like clustering, which breaks smooth gradient-based optimization.
- Task-agnostic sample qualities (like text length or entropy) are often conflated with how much a sample actually helps the task.
Methods
Instead of duct-taping separate heuristics together, the authors reformulate everything into one unified, differentiable objective function that computes optimal sample weights at each training step.
DRIVE’s objective balances three coupled signals:
- Contribution (Stability vs. Plasticity): Borrowing from cooperative game theory (specifically, Shapley additivity), a sample’s utility is split into two parts: anti-forgetting (negative loss on the frozen pre-trained model—samples the old model already understands well help anchor its memory) and task adaptation (positive loss on the current model—high-loss samples offer active learning signals). A parameter $\lambda$ linearly decays from $1 \to 0$ during training, creating a "recall-then-learn" curriculum that stabilizes memory early and focuses on the new task late.
- Differentiable Diversity: Rather than discrete clustering, DRIVE measures set-level diversity continuously using the log-determinant of the weighted feature covariance matrix ($\log|\mathbf{\Sigma}_w|$), a concept lifted from D-optimal experimental design. Taking the gradient of this term naturally upweights samples with high statistical leverage—data points whose features aren't already well-explained by the rest of the batch.
- Prior Regularization: Intrinsic sample traits (or a simple uniform distribution by default) are encoded as a reference prior via Kullback-Leibler (KL) divergence. This prevents diversity maximization from putting all the weight on bizarre outliers.
To keep matrix inversion fast in high-dimensional deep networks, DRIVE sketches model features down to 128 dimensions using a fixed Gaussian random projection (backed by the Johnson–Lindenstrauss lemma) and maintains a 128-sample FIFO buffer so mini-batches have enough local context. A fast, provably convergent fixed-point solver finds the exact sample weights in at most 10 tiny iterations per batch.
Datasets
No new benchmarks were introduced; the authors evaluated DRIVE across standard vision and language benchmarks:
- Vision: ResNet-18 and ResNet-50 pre-trained on ImageNet-1K (used to test anti-forgetting), fine-tuned across nine datasets: CIFAR-10, CIFAR-100, Flowers102, Caltech101, Stanford Cars, Oxford Pets/Dogs, Food101, Beans, and EuroSAT.
- Language: Gemma-2-2B, Llama-3.2-3B, and Llama-3.1-8B fine-tuned on MetaMathQA (targeting GSM8K) and Magicoder (targeting HumanEval), while testing general capability retention on MMLU, Commonsense (CS), and MBPP.
Key Insights and Ideas
- Loss is a fast, accurate proxy for game-theoretic value: Computing exact gradient-based Shapley values requires validation sets and heavy compute. The authors show their simple dual-loss formula correlates strongly with validation-gradient Shapley scores (Spearman’s $\rho = 0.83$) while running ~2x faster.
- Diversity isn't just about generalization; it's an optimizer: Theoretically and empirically, expanding the feature covariance volume improves the condition number of the optimization landscape. This makes training converge noticeably faster and reduces parameter variance across different random seeds by 43.46% compared to retention-focused baselines.
- Stability-only methods underfit hard data: Purely retention-focused weighting starves samples that conflict with pre-training. On the hardest 10% of vision samples, a leading anti-forgetting baseline (FLOW) averaged just 28.5% accuracy, whereas DRIVE hit 66.0% while still preventing forgetting.
- Plug-and-play modularity: Because DRIVE operates purely in sample space, it stacks cleanly onto parameter-space methods like LoRA and $\ell_2$-regularization.
Key Results
Across both vision and language tasks, DRIVE consistently hits the sweet spot between learning new tasks and remembering old ones:
- Vision (ResNet-50): DRIVE beats the strongest anti-forgetting baseline (FLOW) in overall average accuracy (balancing ImageNet-1K retention and target accuracy) by +2.00% on CIFAR-10 (84.17%), +1.54% on CIFAR-100 (72.34%), and +3.16% on Flowers102 (83.85%).
- LLMs (MetaMathQA): Standard fine-tuning on Llama-3.1-8B achieves 76.91% on GSM8K math, but crashes general capabilities by 8.59 points (down to 49.51%). DRIVE actually beats Standard FT on GSM8K (77.03%) while recovering +8.00% in general capabilities (57.51%), outperforming all baselines in overall score across Gemma-2-2B, Llama-3.2-3B, and Llama-3.1-8B.
- Boosting LoRA & $\ell_2$-Reg: Adding DRIVE to $\ell_2$-regularization on Llama-3.1-8B unlocks suppressed plasticity, jumping target accuracy by +2.98%. Paired with LoRA, DRIVE boosts target accuracy by +1.91% and overall performance by +1.28%.
Limitations and Future Work
- Sequence-level granularity: Currently, DRIVE assigns a single scalar weight to an entire sample (e.g., a whole image or full text sequence). In LLMs, different tokens within the same sentence can vary wildly in usefulness or forgetting risk. The authors point to token-level weighting as a key next step.
- Conflicting vs. synergistic samples: The current formulation linearly trades off anti-forgetting against task adaptation, and the authors note future work will specifically explore identifying and exploiting samples that are simultaneously beneficial to both objectives.
Summary updated