# Task Format as a Factor in Adaptation: A Controlled Comparison of LoRA and Full Fine-Tuning for Prompt-Safety Classification

적응에서의 과제 형식 요인: 프롬프트 안전성 분류를 위한 LoRA와 전체 fine-tuning의 통제된 비교

John Alderete, Srirakshith Betageri, Jennifer Flynn, Alex Greenhalgh, Josh Rubin, Yoshita Varma Annam · arXiv · 2026년 10월 24일

- **연구 문제** LoRA와 전체 fine-tuning의 비교는 설정이 함께 바뀌어 교란되기 쉽고, 학습 목표 형식이 그 차이에 미치는 영향은 거의 연구되지 않았습니다.
- **연구 방법** 같은 400M 인코더-디코더 쌍과 동일한 데이터·예산에서 두 레짐을 세 가지 학습 목표(분류 헤드, 생성 판정, 판정 후 이유 문장)와 교차 비교합니다.
- **주요 결과** 사전 지정 학습률에서 전체 fine-tuning은 LoRA보다 2–3 pp 높았고, 학습률을 같은 방법으로 고른 인코더에서는 ±2 pp 마진에서 동등했습니다. 이유 문장을 학습하면 LoRA가 4.00 pp 상승하여 격차가 줄었고, 분포 외에서는 학습 분류기가 8B에 뒤졌습니다.

## 공정하지 않은 LoRA 대 전체 fine-tuning 비교

LoRA와 전체 fine-tuning을 비교한 기존 연구들은 학습률, 시드, 모델 규모, 아키텍처가 함께 바뀌어 결과가 교란되는 경우가 많습니다. 이 논문은 같은 400M 인코더-디코더 쌍(Ettin)을 사용하고, 학습 데이터와 예산을 고정한 채 두 레짐을 비교합니다. 또한 분류 헤드, 생성된 판정, 판정 뒤에 이유 문장을 덧붙인 학습 목표라는 세 가지 과제 형식을 함께 교차하여, 학습 목표가 두 레짐의 차이를 바꾸는지 확인합니다. 사전 지정된 학습률에서 전체 fine-tuning은 모든 아키텍처와 형식에서 LoRA보다 2–3 pp 높았습니다. 이 차이가 학습률 선택에서 비롯된 것인지, 학습 목표에서 비롯된 것인지가 이 연구의 핵심 질문입니다.

## LoRA 설정과 세 가지 학습 목표

LoRA는 pre-training 가중치 W를 동결하고, 저랭크 행렬 B와 A의 곱으로 얻은 업데이트를 W 옆에 더합니다. 이 실험에서는 랭크 16, α 64를 사용하며, 스케일을 α/√r로 두어 랭크가 커져도 그래디언트가 줄지 않도록 합니다. 모든 선형 투영에 어댑터를 붙이고, 분류 헤드 셀에서는 새 헤드를 두 방식 모두에서 완전히 학습합니다. 전체 fine-tuning은 임베딩을 포함한 모든 파라미터를 갱신하므로 학습 파라미터 수가 LoRA보다 약 50배 많습니다. 생성 셀에서는 LM 헤드가 LoRA에서는 동결되고, 목표 토큰에 대해 teacher forcing 손실을 계산합니다. 이유 문장 셀은 판정 뒤에 한 문장을 덧붙인 시퀀스에 같은 손실을 적용하며, 이유는 Ministral 3 8B Instruct가 정답 레이블을 보여 주고 생성한 문장입니다.

이때 이유는 판정 뒤에 오므로 추론 시 판정을 바꾸지 않고, 학습 신호로만 작동합니다.

## 학습률 탐색과 동등성 검정

주 검정은 인코더에서 두 레짐을 15개 시드로 학습하고, 사전 지정된 학습률(LoRA 2e-4, 전체 fine-tuning 2e-5)에서 도메인 내 균형 정확도를 비교합니다. 결과는 전체 fine-tuning이 84.63%, LoRA가 82.57%로, 차이 +2.06 pp의 90% 신뢰구간은 \[1.17, 2.95\]입니다. 이 구간이 ±2 pp 마진을 가로지르므로 검정은 결정되지 않습니다. 이후 검증 분할에서 두 레짐의 학습률을 같은 방법으로 탐색하자 LoRA는 사전 지정 학습률의 1/4 근처에서 최고 성능을 보였고, 같은 15시드 후속 검정에서 차이는 −0.37 pp, 90% 구간 \[−0.75, +0.00\]로 ±2 pp 마진 안에서 동등하다고 판정되었습니다.

저자들은 이 변화가 학습률 선택에서 비롯되었다고 해석하며, 이 판정은 사전 지정 검정이 아니라 후속 검정입니다.

![Figure 1: In-domain balanced accuracy of the encoder against learning rate, as a multiple of each regime’s pre-spe‐ cified rate (LoRA 2 × 10⁻⁴, full fine-tunin…](https://refivu.com/papers/05d89cc6-8e67-4962-bebd-69fd6f00a925/figures/figure-9102d0027db069990605d8398dc09bcd.png?thumb=512)

**Figure 1** : In-domain balanced accuracy of the encoder against learning rate, as a multiple of each regime’s pre-spe‐ cified rate (LoRA 2 × 10⁻⁴, full fine-tuning 2 × 10⁻⁵), on a log scale. Solid: the rate search on the validation split, five seeds per point, including ×1. Dashed: an earlier LoRA-only search on the test split, five seeds per point except ×1, which is cell 7 with its 15 seeds. The two splits differ in level, so only the shapes of their curves are comparable. Shading is ±1 seed SD.

[원문](https://arxiv.org/abs/2610.33813v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · John Alderete, Srirakshith Betageri, Jennifer Flynn, Alex Greenhalgh, Josh Rubin, Yoshita Varma Annam · Task Format as a Factor in Adaptation: A Controlled Comparison of LoRA and Full Fine-Tuning for Prompt-Safety Classification · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 이유 문장이 LoRA의 격차를 줄이는 결과

디코더에서 헤드를 생성 판정으로 바꾸는 것은 LoRA 격차를 바꾸지 않았습니다. 반면 판정 뒤에 이유 문장을 덧붙이면 LoRA는 판정 전용보다 4.00 pp 높아졌고(95% CI \[2.56, 5.44\]), 전체 fine-tuning은 1.27 pp로 경계값에 머물렀습니다. 그 결과 두 이유 문장 셀은 각각 82.69%와 82.60%로 수렴하여 LoRA가 0.08 pp 앞서며, ±2 pp 마진에서 동등하다고 보고됩니다(판정은 사후 분석입니다). 이 결과는 학습 목표가 두 레짐의 차이를 바꿀 수 있음을 보여 주지만, 학습률은 디코더에서 탐색하지 않았으므로 이득의 크기에는 기준 셀의 과소 튜닝 가능성이 남아 있습니다.

## 이유 문장 대체 실험의 해석

이유 이득의 원천을 가리기 위해 LoRA 이유 문장 셀의 이유를 세 종류로 대체했습니다. 고정 문장은 평균 길이와 같은 길이이지만 판정 전용 셀보다 낮아서(78.2%) 길이 자체가 이득을 설명하지 못했습니다. 같은 레이블의 다른 프롬프트 이유로 대체하면 이득의 60%가, 임의 레이블의 다른 프롬프트 이유로 대체하면 42%가 유지되었습니다. 이는 프롬프트에 특화된 내용이 이득의 일부를 설명함을 보여 주지만, 세 가지 예측 중 어느 하나와도 정확히 맞지 않습니다. 또한 OR-Bench의 과잉 거부는 두 재할당 조건에서 모두 판정 전용 셀보다 낮았습니다. 이 절제 결과는 고정 문장이 이득을 보존하지 않았다는 사실에 근거하며, 생성된 이유의 내용이 결과를 완전히 결정한다는 결론으로 확장하지 않습니다.

## 분포 외 평가와 8B 참조 모델

도메인 안에서는 학습된 400M 분류기가 프롬프트 기반 8B 모델을 앞섰지만, 분포 외 평가에서는 순서가 달라졌습니다. WildJailbreak에서는 모든 학습 셀이 8B보다 8.1–23.2 pp 낮았고, OR-Bench 무해 집합에서는 학습된 헤드 셀들이 benign 프롬프트의 27–66%를 안전하지 않다고 표시했습니다. 8B는 2.0–2.6%만 표시했습니다. ToxicChat에서는 두 집단이 겹칩니다. 임계값에 독립적인 ROC-AUC로 보면, 콘텐츠 안전 코퍼스에서 헤드 셀들은 8B보다 순위가 낮았으므로 임계값 조정만으로 격차가 해소되지 않습니다. 다만 8B는 약 20배 크고 다른 계열이며 평가 코퍼스를 pre-training에서 보았을 수 있으므로, 이 비교는 두 종류의 모델 차이를 보여 줄 뿐 원인을 확정하지 않습니다.

## 범위와 한계

결과는 400M 파라미터 모델과 단일 학습 코퍼스 Aegis 2.0의 이진 프롬프트 안전성 분류에 한정됩니다. 학습률은 인코더에서만 탐색되었고, 랭크와 α는 고정되었으며 LoRA의 두 행렬도 같은 학습률을 공유했습니다. 분포 외 평가는 공개된 코퍼스만 사용했고, 두 코퍼스는 합성 데이터이며 모든 평가는 최종 학습 예산에서만 수행되었습니다. 생성 셀은 프롬프트의 첫 128토큰만 읽고 헤드 셀은 256토큰을 읽어, 분포 외 헤드-생성 비교에는 교란이 남습니다. 8B 참조 모델은 크기와 계열이 다른 시각-언어 체크포인트를 텍스트에만 사용하므로 1:1 비교 대상이 아닙니다.

## 논문 정보

- **저자**: John Alderete, Srirakshith Betageri, Jennifer Flynn, Alex Greenhalgh, Josh Rubin, Yoshita Varma Annam
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 10월 24일
- **등록일**: 2026년 11월 4일
- **수정일**: 2026년 10월 24일
- **버전**: v1
- **arXiv**: 2610.33813
- **분류**: cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Fine-tuning a language model for classification involves many design decisions. Comparisons of low-rank adaptation (LoRA) with full fine-tuning are common but often confounded, and task format is rarely studied. We compare both regimes on prompt-safety classification with a matched 400M encoder-decoder pair (Ettin) across three task formats, with up to 15 seeds per cell and pre-specified analyses. At the pre-specified learning rates, full fine-tuning leads LoRA by 2-3 pp in every architecture and format trained on the label alone. On the encoder, the gap closes once both rates are chosen by the same search. Training LoRA to write a reason after its verdict adds 4.0 pp and closes the gap, but a content-free sentence of equal length does not. Trained models score above a prompted 8B in domain but fall behind it on two of three out-of-distribution corpora, trailing by 8-23 pp on adversarial jailbreaks and flagging 27-66% of benign but harmful-looking prompts as unsafe, against the 8B's 2-3%. Together, the results suggest that the adaptation regime matters less than how each model is trained, its learning rate, and training target, and that in-domain accuracy alone is an incomplete guide to robustness.

## 원문 인용

John Alderete, Srirakshith Betageri, Jennifer Flynn, Alex Greenhalgh, Josh Rubin, Yoshita Varma Annam (2026). Task Format as a Factor in Adaptation: A Controlled Comparison of LoRA and Full Fine-Tuning for Prompt-Safety Classification. arXiv:2610.33813v1. https://arxiv.org/abs/2610.33813v1

**BibTeX**

```
@misc{alderete2026task,
  title = {{Task Format as a Factor in Adaptation: A Controlled Comparison of LoRA and Full Fine-Tuning for Prompt-Safety Classification}},
  author = {John Alderete and Srirakshith Betageri and Jennifer Flynn and Alex Greenhalgh and Josh Rubin and Yoshita Varma Annam},
  year = {2026},
  eprint = {2610.33813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.33813v1}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [balanced accuracy](https://refivu.com/terms/bc9870524813-balanced-accuracy)
- [ROC-AUC](https://refivu.com/terms/4a16e24a9f10-roc-auc)
- [teacher forcing](https://refivu.com/terms/5af8c5103329-teacher-forcing)
- [Full fine-tuning](https://refivu.com/terms/04fec034209c-full-fine-tuning)
- [over-refusal](https://refivu.com/terms/9aed0eb63b4c-over-refusal)
- [Distilling step-by-step](https://refivu.com/terms/89a43159b446-distilling-step-by-step)
- [ToxicChat](https://refivu.com/terms/3e99defd727f-toxicchat)

## 다른 논문 해설

- [Sonar-MoE: In-Backward Expert Updates for Memory-Efficient Mixture-of-Experts Training](https://refivu.com/papers/850b3ff0-2f32-419d-b057-09630c278dd6-sonar-moe-in-backward-expert-updates-for-memory.md)
- [Audit at the Precision You Deploy: Quantization Reshapes a Subliminally Learned Preference](https://refivu.com/papers/6f240a8e-b6ab-4701-8476-19bd531d562e-audit-at-the-precision-you-deploy-quantization-reshapes.md)
- [Only Accepted Tokens Count: An Energy Accounting of Speculative Decoding Under Latency Targets](https://refivu.com/papers/85d77e47-8039-4550-ab10-cf964e096268-only-accepted-tokens-count-an-energy-accounting-of.md)
- [Efficient Quantization Training with Stochastic Rounding via Structured Subspace Randomness](https://refivu.com/papers/dd1ff416-5a97-4796-abca-ffb646fab63f-efficient-quantization-training-with-stochastic-rounding-via.md)
- [Optimal Regret for Communication-Efficient Decentralized Online Learning](https://refivu.com/papers/0a7cc72f-1a1d-4a04-921a-f0715cb84e1c-optimal-regret-for-communication-efficient-decentralized.md)
- [Addressing Imbalanced Domain-Incremental Learning through Dual-Balance Collaborative Experts](https://refivu.com/papers/67007668-b220-4a2a-94e9-d2cb4c1d6646-addressing-imbalanced-domain-incremental-learning-through.md)
- [EventGPT: Next-Event Pretraining on Banking Customer Histories](https://refivu.com/papers/098311cf-1a7e-445a-ad5c-3e4a5e0d7c78-eventgpt-next-event-pretraining-on-banking-customer.md)
- [D&A: Decoupling Description and Assessment Enables VLMs as Zero-Shot Robotic Reward Models](https://refivu.com/papers/37e765b4-67a1-4599-9d94-84f2e4d6d3ac-d-a-decoupling-description-and-assessment-enables-vlms.md)
- [VIAS: Value-Isolating Activation Steering for Multi-Value Alignment and Compliance for Organisations](https://refivu.com/papers/16f00538-d0d9-4bca-a860-026aba9db8f8-vias-value-isolating-activation-steering-for-multi-value.md)
- [Online Class Posteriors for Interpretable and Controllable Discrete Diffusion](https://refivu.com/papers/773d1bb8-b53a-440f-8b38-7653a3ba5bee-online-class-posteriors-for-interpretable-and-controllable.md)
- [Seeing Through the Illusion: Test-Time Scaling for World Action Models](https://refivu.com/papers/acce6a4d-042b-4465-88b1-f168246c6849-seeing-through-the-illusion-test-time-scaling-for.md)
- [ufakzeka-kulak: Building and Evaluating a 31.6M-Parameter Turkish Speech Recognizer from Scratch](https://refivu.com/papers/265a8e8c-6d67-4926-9f01-98fe52bb9945-ufakzeka-kulak-building-and-evaluating-a-31-6m.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/05d89cc6-8e67-4962-bebd-69fd6f00a925-task-format-as-a-factor-in-adaptation-a)
