Task Format as a Factor in Adaptation: A Controlled Comparison of LoRA and Full Fine-Tuning for Prompt-Safety Classification
John Alderete, Srirakshith Betageri, Jennifer Flynn, Alex Greenhalgh, Josh Rubin, Yoshita Varma Annam
Abstract
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.
Create a lesson
Metadata
- Comments
- 33 pages (14 pages main text, plus references and appendices), 1 figure, 18 tables
Related papers
AK_QMUL at ArGuard Shared Tasks: A Single Fine-Tuned JAIS for Arabic Harmful-Prompt Detection
Shared title terminologycs.CLAli Khairallah, Arkaitz Zubiaga
Group-Balanced Supervised Fine-Tuning for Knowledge-Intensive Domains
Shared title terminologycs.CLMark Heimann, Bruno Jacob
INVAR-Agri: Detecting Discrepancies in Multilingual Operator Manuals of Agricultural Implements with a Fine-Tuned LLM
Shared title terminologycs.CLTimo Oksanen
LazyFlash: Forward-Dense, Backward-Sparse Attention for Accelerated Long-Context Fine-Tuning
Shared title terminologycs.CLKeqi Deng, Ruchao Fan, Jinyu Li
TrawMem: Reframing Agent Memory as Task-Oriented Role-Adaptive Workspaces
Shared title terminologycs.CLMingyu Zhang, Zixu Li, Zhiheng Fu et al.
Making Reasoning Visible: Configuration-Aware Diagnostic Modeling for Adaptive Scaffolding in Structured Reasoning Tasks
Shared title terminologycs.CLTrystan Geoffre, Zheng Yuan, Thierry Geoffre