arXiv:2610.33813cs.CLOct 2026

Manuscript Offprint

arXiv:2610.33813

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Fine-tuning a pretrained language model for text classification involves several design decisions. The adaptation regime, including low-rank adaptation (LoRA) and full fine-tuning, has received considerable attention (Ding et al., 2023; Biderman et al., 2024). By contrast, the form the model's answer takes, its task format, has rarely been studied as a factor in its own right. We compare LoRA with full fine-tuning within each of three task formats, to test whether the difference between the regimes depends on the format. Each format is defined by the output on which the loss is computed. A label predicted by a classification head is the standard format for encoders, and the same head performs well over the final states of a LoRA-adapted decoder (Li et al., 2023). In this format the loss is cross-entropy over two classes, through a projection trained from fresh weights. In the second format, a label generated as a single verdict token reuses the pretrained language-model head. Here the loss is a next-token loss on one token, so the adapted weights must move probability mass across a vocabulary of roughly 50,000 tokens onto the verdict words, which a pretrained model shares with equivalent answers (Holtzman et al., 2021). The two formats therefore differ in what must be learned. With a head, the pretrained backbone need only make its features separable. A generated verdict adds no new layer, so the backbone must be moved until the pretrained output head itself produces the label. Studies of task format have each held the adaptation regime fixed (§2.1), so the effect of the output interface on the regime difference remains untested.

The third format appends a one-sentence reason to the generated verdict. A rationale placed after the label can act only during training, since the label is generated before any reason token (Wadhwa et al., 2024). Rationales are also an established training signal: training a small model on a larger model's rationales improves its accuracy (Hsieh et al., 2023). The training target becomes the verdict followed by a sentence, where the other formats supply only the label, and the added tokens provide a training signal that the label alone does not. The accuracy gain from that supervision has three candidate sources that have been only partly isolated: what the reason says, whether it agrees with the label, and the extra tokens a longer target supplies regardless of their content. Together, the three formats ask different things of the adapted weights: learn a new projection, reshape the output distribution, or fit a long continuation. A low-rank update and a full update need not meet those demands equally.

The regimes must therefore be compared within each task format, and even there the regime's effect on accuracy is difficult to isolate. Comparisons of LoRA with full fine-tuning have a documented tendency to be decided by uncontrolled experimental settings, which limits what such a comparison can tell apart. LoRA is sensitive to which layers it adapts (Dettmers et al., 2023), how its update is scaled (Kalajdzievski, 2023), and its learning rate (Biderman et al., 2024), and any fine-tuned model is sensitive to its seed and other sources of run-to-run variance (Dodge et al., 2020; Bouthillier et al., 2021). In published comparisons these settings change together with the regime, and controlling them may change the result. A baseline tuned by the same procedure as its competitor can reverse a reported gain (Melis et al., 2018), and which of two models ranks higher can depend on how many hyperparameter configurations each is allowed to try (Dodge et al., 2019). The regime comparison is no exception: reported parity between parameter-efficient methods and full fine-tuning did not survive a stricter evaluation protocol (Chen et al., 2022). In this study a task-format-by-regime interaction is a second-order effect, and it can be examined only once these first-order confounds are controlled. We therefore built the design around controlling them.

Prompt-safety classification is well suited to these questions. The formats already coexist in safety classifiers, which are built as encoders with a classification head (Lees et al., 2022) and as decoders that generate a verdict (Inan et al., 2023), with or without a rationale (Liu et al., 2025), so architecture and format already vary in practice. The published evidence on adaptation regimes for guards has the weaknesses just described: one comparison moves regime and format together with architecture (Jeon et al., 2026), and another study reports parameter-efficient training as competitive without comparing the regimes (Ghosh et al., 2025). The task also comes with established out-of-distribution tests, adversarial jailbreaks and over-refusal of benign prompts, that measure generalisation beyond the training distribution.

We run a crossed comparison of adaptation regime, architecture, and task format on a matched encoder–decoder pair, with all other training conditions held constant and the analysis pre-specified. The pair is the Ettin 400M encoder and decoder (Weller et al., 2026), which share one pretraining mixture, recipe, and tokenizer, so architecture is the only pretraining difference. Including the encoder serves two purposes: it is the incumbent a LoRA-adapted decoder would replace, and the matched pair isolates the regime effect from the scale and architecture differences that confound published comparisons. The confounds named above are controlled in §3.4 and §3.5: each regime’s learning rate is tuned by the same search (encoder only), run-to-run variance is estimated from 15 seeds per trained cell (9 for the two reason cells), and the regime test uses an equivalence margin fixed in advance. The scope is prompt-safety classification at 400M parameters on a single training corpus of 29K rows. We first establish how large the regime gap is under a fair comparison, then investigate how task format affects adaptation.

This study makes three contributions.

• A fair comparison of LoRA and full fine-tuning. At conventional learning rates, full fine-tuning leads LoRA by 2–3 pp of in-domain balanced accuracy on both architectures. When both regimes’ learning rates are chosen by the same search, the two are equivalent on the encoder, within a margin fixed before the runs.

• The training target as a factor in adaptation. Training LoRA to write a one-sentence reason after its verdict adds 4.0 pp and, at those rates, closes its gap with full fine-tuning, while a content-free sentence of the same length adds nothing. Whether the label comes from a classification head or a generated verdict makes little difference under either regime.

• Opposite failure modes of trained classifiers and a prompted judge. Every trained 400M model scores above a prompted 8B in domain but below it on synthetic adversarial prompts, and flags 27–66% of benign but harmful-looking prompts as unsafe against the 8B’s 2–3%. On the content-safety corpora, the classifiers with a head also rank prompts worse than the 8B, so a new threshold would not close the gap.

We release the harness, frozen analysis plans and per-run records, so that the comparison can be reproduced and extended to other models and tasks [submitted as a zipped archive with the paper for review; public release pending].

References (50)