# Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting

미세 조정에서 쉬운 샘플의 가중치를 높이면 망각이 완화된다

Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · arXiv · 2025년 2월 5일

- **연구 문제** pre-training 데이터에 접근할 수 없는 상황에서 fine-tuning이 일으키는 파국적 망각을 줄이는 방법이 필요합니다.
- **연구 방법** pre-training 모델이 각 fine-tuning 샘플에서 보이는 손실이 작을수록 큰 가중치를 주고, 그 고정 가중치로 샘플 가중 손실을 최소화합니다.
- **주요 결과** ResNet-50 비전 실험에서 FLOW는 IN-1K 정확도와 목표 평균 정확도의 평균이 81.17%로 표준 fine-tuning의 64.34%보다 높았고, Gemma 2 2B 언어 실험에서는 일반 능력 평균을 높이면서 GSM8K 정확도는 0.83% 낮은 수준을 보였습니다.

## pre-training 데이터 없이 망각을 줄이는 문제

사전학습된 모델을 새로운 과제에 미세조정하면 원래 가지고 있던 능력이 떨어지는 파국적 망각(catastrophic forgetting)이 발생합니다. 논문은 특히 pre-training에 쓴 데이터와 학습 절차에 접근할 수 없는 data-oblivious setting을 다룹니다. 이 설정에서는 pre-training 모델 자체만 fine-tuning 중에 사용할 수 있으므로, pre-training 데이터를 요구하는 기존 망각 완화 방법을 적용하기 어렵습니다.

논문은 이 제약에서 출발해 fine-tuning 데이터의 샘플 가중치를 pre-training 모델의 샘플별 손실만으로 정하는 방법을 제안합니다. 핵심 질문은 이러한 샘플 공간의 가중이 pre-training 능력을 보존하면서 새로운 과제의 학습도 유지할 수 있는지입니다.

## pre-training 손실에 따른 샘플 가중과 가중 손실

제안 방법 FLOW는 fine-tuning 데이터의 각 샘플 i에 대해 pre-training 모델 θ\*에서의 손실 f\_i(θ\*)를 계산하고, 가중치를 w\_i = exp(−f\_i(θ\*)/τ)로 정합니다. pre-training 손실이 작은 쉬운 샘플에 큰 가중치가 주어지며, 가중치는 학습 전에 한 번 계산되어 전체 fine-tuning 동안 고정됩니다. 이후 샘플 가중 손실 L(θ) = Σ w\_i f\_i(θ)를 최소화하여 fine-tuning 모델을 얻습니다.

온도 매개변수 τ는 실험에서 pre-training 손실의 중앙값으로 설정됩니다. 이 설정 때문에 방법은 실질적으로 추가 매개변수가 거의 없습니다. 논문은 가중치를 엔트로피 정규화가 붙은 목적함수 g(π)의 최소화로 유도합니다. 이때 가중치가 한 샘플에 몰리지 않고 퍼지도록 하는 역할이 엔트로피 항에 있습니다. 이 유도에서 최소화하는 대상은 pre-training 손실 가중합과 τ 배 엔트로피 항의 합입니다.

![Table 11: FLOW ablation with different values ofτ: Pre-training and fine-tuning accuracies as a function ofτ set to different percentiles of the pre-training l…](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523/figures/figure-9871dbf6f784e48a4e6883b556d5f1e0.png?thumb=512)

**Table 11** . FLOW ablation with different values ofτ: Pre-training and fine-tuning accuracies as a function ofτ set to different percentiles of the pre-training losses. The model is ResNet-50, pre-training dataset is ImageNet-1K (IN-1K), and the fine-tuning dataset is Caltech101 (Target). So if we could tune τ, then FLOW’s results would further improve.

[원문](https://arxiv.org/abs/2502.02797v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting · 원문 그림 인용 · 원본 PDF 32쪽에서 그림 영역을 추출했습니다.

논문은 이 방법이 분포적으로 강건한 최적화(DRO)와 반대 방향이라고 설명합니다. DRO는 어려운 샘플에 더 큰 가중치를 두는 반면, FLOW는 pre-training 모델이 잘 맞히는 샘플을 강조해 파라미터가 pre-training 상태에서 멀어지는 것을 억제합니다.

## ResNet-50 비전 실험의 망각과 목표 성능

비전 실험에서는 ImageNet-1K로 사전학습한 ResNet-50을 여섯 개의 이미지 분류 데이터셋에 미세조정했습니다. 망각은 fine-tuning 후 IN-1K 정확도가 얼마나 줄었는지로 측정하고, 목표 성능은 여섯 데이터셋의 평균 fine-tuning 정확도로 측정합니다. 두 값의 평균도 함께 보고됩니다.

![Table 9: ResNets: Target accuracies on each of the six datasets for the results in Table 1](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523/figures/figure-7b48edf80ab86a14c2b5733523c9c983.png?thumb=512)

**Table 9** . ResNets: Target accuracies on each of the six datasets for the results in Table 1.

[원문](https://arxiv.org/abs/2502.02797v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting · 원문 그림 인용 · 원본 PDF 32쪽에서 그림 영역을 추출했습니다.

보고된 ResNet-50 결과에서 표준 fine-tuning은 IN-1K 정확도가 36.91%이고 목표 평균 정확도는 91.78%입니다. FLOW는 IN-1K 정확도 76.09%, 목표 평균 정확도 86.25%이며, 두 값의 평균은 81.17%로 표준 fine-tuning의 64.34%보다 높습니다. 같은 표에서 linear probing의 평균은 77.73%로 FLOW 다음이며, 논문은 linear probing이 pre-training 능력을 거의 유지하지만 fine-tuning 중 학습량이 적다고 해석합니다.

![Figure 1: FLOW versus standard fine-tuning (FT) and relevant baselines for a ResNet-50 model pre-trained on ImageNet-1K (from Table 1). FLOW achieves the best…](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523/figures/figure-79b61af5d22756c1364bfcba98dc74fa.png?thumb=512)

**Figure 1** . FLOW versus standard fine-tuning (FT) and relevant baselines for a ResNet-50 model pre-trained on ImageNet-1K (from Table 1). FLOW achieves the best average accuracy (between pre-training and target fine-tuning accuracies).

[원문](https://arxiv.org/abs/2502.02797v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

이 결과는 ResNet-50과 여섯 개의 이미지 분류 데이터셋, IN-1K 정확도와 목표 평균 정확도라는 측정 조건에서 얻은 것입니다. 다른 백본이나 과제로 일반화하려면 별도 실험이 필요합니다.

## Gemma 2 2B의 언어 모델 실험

언어 실험에서는 Gemma 2 2B를 MetaMathQA의 395K 샘플로 미세조정했습니다. 일반 능력은 commonsense 지표, 5-shot MMLU, 3-shot MBPP로 평가하고, 목표 성능은 5-shot GSM8K로 평가합니다. 가중치 계산에 쓰는 pre-training 손실은 이 과제별 평가와 별도로 샘플 단위로 계산됩니다.

![Table 13: Extended commonsense reasoning metrics for FLOW and other baselines within language modeling. The performance on commonsense reasoning evaluations wh…](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523/figures/figure-561f15bf08ac2d543faf4117ea991098.png?thumb=512)

**Table 13** . Extended commonsense reasoning metrics for FLOW and other baselines within language modeling. The performance on commonsense reasoning evaluations when fine-tuning Gemma 2 2B (Team et al., 2024) and Llama 3.2 3B (Grattafiori et al., 2024) on MetaMathQA (Yu et al., 2023). We include the target domain evaluation GSM8K (Cobbe et al., 2021) for convenience. The results show that FLOW can effectively mitigate catastrophic forgetting while still getting strong performance on our target fine-tuning task.

[원문](https://arxiv.org/abs/2502.02797v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting · 원문 그림 인용 · 원본 PDF 34쪽에서 그림 영역을 추출했습니다.

보고된 Gemma 2 2B 결과에서 FLOW의 GSM8K 정확도는 62.55%로 표준 fine-tuning의 63.38%보다 0.83% 낮습니다. 반면 FLOW의 일반 능력 평균은 49.98%로 표준 fine-tuning의 46.31%보다 높습니다. 이 차이는 망각을 줄이면서 목표 과제 성능을 거의 유지한다는 관찰로 읽을 수 있으며, 같은 설정에서 학습률과 시드는 고정되어 있습니다.

![Table 2: Performance of FLOW with LLMs. After fine-tuning Gemma 2 2B and Llama 3.2 3B on MetaMathQA, we compare the target fine-tuning performance (GSM8K) with…](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523/figures/figure-6f467603e24f1aab36dffd83b341c645.png?thumb=512)

**Table 2** . Performance of FLOW with LLMs. After fine-tuning Gemma 2 2B and Llama 3.2 3B on MetaMathQA, we compare the target fine-tuning performance (GSM8K) with general capability performance. Bolded and underlined values indicate the best and second-best results within each column (and for each model). Deltas (in color) for general capability metrics and fine-tuning metrics are computed w.r.t. the pre-trained and standard fine-tuned model’s accuracy, respectively. We see thatFLOW, on average, has the best performance on general capabilities and target domain, achieving within ∼ 0.8% (Gemma 2 2B) and ∼ 1.4% (Llama 3.2 3B) of standard fine-tuning’s target performance, while significantly mitigating the degradation of general pre-training capabilities in comparison to other baselines.

[원문](https://arxiv.org/abs/2502.02797v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

같은 실험에서 ℓ2-regularization과 LoRA는 각각 다른 방식으로 일반 능력과 목표 성능을 조정하지만, 표에서 FLOW는 두 축의 평균 기준으로 가장 높은 값을 보입니다. 이 결과는 Gemma 2 2B와 MetaMathQA 조건에 해당하며 Llama 3.2 3B 결과는 같은 표에 별도로 보고됩니다.

## 선형 모델에서 가중 공분산의 작은 고유값과 학습 정체

이론 분석은 선형 pre-training 과제와 선형 fine-tuning 과제를 가정합니다. pre-training 모델 θ\*에서 시작해 표준 fine-tuning과 FLOW의 경사하강 궤적을 비교합니다. 논문은 FLOW가 pre-training 데이터에 접근하지 않고 fine-tuning 데이터의 가중 공분산을 바꾸며, 그 결과 특정 방향의 학습이 정체된다고 설명합니다.

가중된 fine-tuning 데이터의 공분산에 작은 고유값이 있고 그 고유벡터 방향에서 학습이 멈추므로, 과적합이 억제됩니다. 논문은 이 현상을 선형 모델에 대한 결과로 제시하며, 신경망에 대해서는 선형 모델의 경사하강 동역학을 따른다는 점을 근거로 적용을 논의합니다.

또한 논문은 이상적인 모델 평균이 아닌 FLOW가 모델 평균을 넘어서는 경우를 보이기 위해 특정 공분산 구조를 가정합니다. 일반 공분산 행렬에서는 분석이 어려워 이 가정을 둔다고 밝혀 두었습니다.

## 어려운 샘플의 정확도 저하와 적용 범위

FLOW는 pre-training 손실이 큰 어려운 샘플을 낮게 가중하므로, 이 샘플에서 표준 fine-tuning보다 낮은 정확도를 보입니다. 논문은 상위 10% 어려운 샘플에서 CIFAR-10의 경우 표준 fine-tuning 86.60%에 비해 FLOW가 30.70%이고, CIFAR-100은 56.40%에 비해 21.30%라고 보고합니다. 이 결과는 망각을 줄이는 대가로 어려운 fine-tuning 샘플의 성능을 희생한다는 뜻입니다.

![Table 5: Comparison of FLOW and Standard-FT on hard sam- ples across three vision datasets. We evaluate performance on the top 10% hardest samples (those with…](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523/figures/figure-3520203460e9a9ad8be0bc89eb3f6ffe.png?thumb=512)

**Table 5** . Comparison of FLOW and Standard-FT on hard sam- ples across three vision datasets. We evaluate performance on the top 10% hardest samples (those with the highest pre-trained losses). Indeed, the samples with high pre-training losses have lower accuracy when using FLOW compared to standard fine- tuning (FT). This is an unsurprising outcome of our approach; we sacrifice performance on hard examples of the fine-tuning data to maintain performance on the pre-training data.

[원문](https://arxiv.org/abs/2502.02797v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay · Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

논문은 이를 개선하는 것이 향후 과제라고 밝힙니다. 또한 이론 분석은 선형 모델에 한정되어 있으며 일반화 선형 모델이나 비선형 모델로의 확장은 아직 다루지 않았습니다.

## 논문 정보

- **저자**: Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 2월 5일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 6월 12일
- **버전**: v2
- **arXiv**: 2502.02797
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2502.02797v2) · [원문 PDF ↗](https://arxiv.org/pdf/2502.02797v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Fine-tuning a pre-trained model on a downstream task often degrades its original capabilities, a phenomenon known as "catastrophic forgetting". This is especially an issue when one does not have access to the data and recipe used to develop the pre-trained model. Under this constraint, most existing methods for mitigating forgetting are inapplicable. To address this challenge, we propose a sample weighting scheme for the fine-tuning data solely based on the pre-trained model's losses. Specifically, we upweight the easy samples on which the pre-trained model's loss is low and vice versa to limit the drift from the pre-trained model. Our approach is orthogonal and yet complementary to existing methods; while such methods mostly operate on parameter or gradient space, we concentrate on the sample space. We theoretically analyze the impact of fine-tuning with our method in a linear setting, showing that it stalls learning in a certain subspace which inhibits overfitting to the target task. We empirically demonstrate the efficacy of our method on both language and vision tasks. As an example, when fine-tuning Gemma 2 2B on MetaMathQA, our method results in only a $0.8\\%$ drop in accuracy on GSM8K (another math dataset) compared to standard fine-tuning, while preserving $5.4\\%$ more accuracy on the pre-training datasets. Our code is publicly available at https://github.com/sanyalsunny111/FLOW\_finetuning .

## 원문 인용

Sanyal, Sunny, Prairie, Hayden, Das, Rudrajit, Kavis, Ali, Sanghavi, Sujay (2025). Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting. arXiv:2502.02797v2. https://arxiv.org/abs/2502.02797v2

**BibTeX**

```
@misc{sunny2025upweighting,
  title = {{Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting}},
  author = {Sanyal, Sunny and Prairie, Hayden and Das, Rudrajit and Kavis, Ali and Sanghavi, Sujay},
  year = {2025},
  eprint = {2502.02797},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02797v2}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [MMLU](https://refivu.com/terms/3036c0ba5adb-mmlu)
- [ResNet-50](https://refivu.com/terms/eb2323a60a89-resnet-50)
- [catastrophic forgetting](https://refivu.com/terms/0039a430b4e3-catastrophic-forgetting)
- [linear probing](https://refivu.com/terms/3f7295b25499-linear-probing)
- [distributionally robust optimization](https://refivu.com/terms/2bddc64cc04e-distributionally-robust-optimization)
- [FLOW](https://refivu.com/terms/cfaf90615efb-flow)
- [Gemma 2 2B](https://refivu.com/terms/19b7e85c1cf3-gemma-2-2b)
- [hard samples](https://refivu.com/terms/b40413aa8ce6-hard-samples)

## 다른 논문 해설

- [Dynamic Sparse Training of Diagonally Sparse Networks](https://refivu.com/papers/2b87988d-a129-482c-9c7b-0942ddbcacc0-dynamic-sparse-training-of-diagonally-sparse-networks.md)
- [TGDPO: Harnessing Token-Level Reward Guidance for Enhancing Direct Preference Optimization](https://refivu.com/papers/5a2c4ee5-6c2f-4e4d-b8ec-2d708650adb3-tgdpo-harnessing-token-level-reward-guidance-for-enhancing.md)
- [Pixel-level Certified Explanations via Randomized Smoothing](https://refivu.com/papers/69d71e3a-bf93-472d-82de-cbff9dba6c17-pixel-level-certified-explanations-via-randomized-smoothing.md)
- [Info-Coevolution: An Efficient Framework for Data Model Coevolution](https://refivu.com/papers/ca2da8f5-50c2-4679-8a70-bf933cc739b1-info-coevolution-an-efficient-framework-for-data-model.md)
- [Off-Policy Actor-Critic for Adversarial Observation Robustness: Virtual Alternative Training via Symmetric Policy Evaluation](https://refivu.com/papers/08ee7cd3-bfd1-420c-8a8c-ddaea3c4e6f9-off-policy-actor-critic-for-adversarial-observation.md)
- [Multi-Turn Code Generation Through Single-Step Rewards](https://refivu.com/papers/3a44621c-ecca-42d4-9e3c-2a7f14a7cf58-multi-turn-code-generation-through-single-step-rewards.md)
- [Residual Matrix Transformers: Scaling the Size of the Residual Stream](https://refivu.com/papers/649ad69b-40d7-44c6-8c92-55c66fc6bd14-residual-matrix-transformers-scaling-the-size-of-the.md)
- [Scalable Non-Equivariant 3D Molecule Generation via Rotational Alignment](https://refivu.com/papers/2cfa5006-f3bf-4410-9fa9-3ebad35af6d0-scalable-non-equivariant-3d-molecule-generation-via.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523-upweighting-easy-samples-in-fine-tuning-mitigates-forgetting)
