Abstract
The high cost of full-parameter fine-tuning (FFT) of Large Language Models (LLMs) has led to a series of parameter-efficient fine-tuning (PEFT) methods. However, it remains unclear which methods provide the best cost-performance trade-off at different model scales. We introduce Astraios, a suite of 28 instruction-tuned OctoCoder models using 7 tuning methods and 4 model sizes up to 16 billion parameters. Through investigations across 5 tasks and 8 different datasets encompassing both code comprehension and code generation tasks, we find that FFT generally leads to the best downstream performance across all scales, and PEFT methods differ significantly in their efficacy based on the model scale. LoRA usually offers the most favorable trade-off between cost and performance. Further investigation into the effects of these methods on both model robustness and code security reveals that larger models tend to demonstrate reduced robustness and less security. At last, we explore the relationships among updated parameters, cross-entropy loss, and task performance. We find that the tuning effectiveness observed in small models generalizes well to larger models, and the validation loss in instruction tuning can be a reliable indicator of overall downstream performance.
Introduction
As Large Language Models (LLMs) continue to scale, the computational burden of full-parameter fine-tuning (FFT) has become a significant barrier. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA have gained popularity, their comparative efficacy across different model scales—particularly for instruction-tuning in specialized domains like software engineering—remains under-explored. This paper introduces Astraios, a systematic evaluation of 28 instruction-tuned models designed to identify the optimal balance between computational efficiency and downstream performance for code-centric LLMs.
Methodology
Experimental Setup
The researchers utilized the StarCoder base model series, spanning four scales: 1B, 3B, 7B, and 16B parameters. Seven tuning methodologies were evaluated:
- Full-Parameter Fine-Tuning (FFT): Updating 100% of parameters.
- LoRA (Low-Rank Adaptation): Injecting trainable low-rank matrices.
- P-Tuning: Learning continuous virtual prompt tokens.
- Adapter-based methods: Including AdapterH, AdapterP, Parallel Adapter, and the highly efficient (IA)³.
Training and Evaluation
Models were instruction-tuned on a composite dataset of CommitPackFT and OASST. Evaluation spanned several critical dimensions:
- Code Generation: Using
HumanEvalPackfor synthesis, repair, and explanation. - Code Comprehension:
BigCloneBench(clone detection) andDevign(defect detection). - Robustness and Security: Testing against input perturbations via
ReCodeand security vulnerabilities via theAsleep at the Keyboard (AATK)benchmark.
Results
Performance Scaling and Efficiency
Experimental results indicate that while FFT remains the performance ceiling across all model sizes, PEFT methods significantly narrow the gap as model scale increases. Among the efficient alternatives, LoRA and Parallel Adapters emerged as the strongest contenders, achieving performance near FFT levels while updating less than 1% of the model's parameters.
Predictive Power of Validation Loss
A key finding of this study is the high correlation (Pearson ~0.93) between cross-entropy validation loss during tuning and final downstream task performance. This suggests that validation loss serves as a reliable proxy for model quality, potentially saving significant compute by allowing researchers to predict success without exhaustive benchmarking.
Robustness and Security Paradox
Interestingly, the study observed an inverse relationship between model scale and certain safety metrics. As models grew larger and more capable in generation, they exhibited decreased robustness to input noise and a higher propensity for generating insecure code. Furthermore, in comprehension tasks like defect detection, larger models occasionally underperformed compared to smaller counterparts, suggesting a potential over-reliance on surface-level patterns.
Discussion and Conclusion
Astraios demonstrates that the relative effectiveness of tuning methods is largely consistent across scales, meaning insights from smaller models (1B/3B) generally generalize to larger ones (16B). LoRA remains the "best buy" for practitioners, offering an exceptional cost-performance ratio. Future research should investigate whether these scaling laws hold for encoder-decoder architectures and explore hyperparameter optimization specifically tailored for each PEFT method to further push the efficiency frontier.
Summary updated