Assessing the Macro and Micro Effects of Random Seeds on Fine-Tuning Large Language Models
Nghia Bui, Guergana Savova, Lijing Wang
TL;DR
This work addresses the overlooked issue of random seed sensitivity in fine-tuning large language models by introducing macro (variance) and micro (consistency) metrics applied to GLUE and SuperGLUE benchmarks. It formalizes a novel consistency metric to capture instability of individual predictions across seeds and evaluates RoBERTa-large and Llama3.2-3B with LoRA fine-tuning, revealing significant seed-induced variability at both macro and micro levels. The findings highlight the need to report seed sensitivity in benchmarking, and suggest mitigation directions such as data-size considerations and stability-aware training, with practical implications for reproducibility and reliability of NLP evaluations.
Abstract
The impact of random seeds in fine-tuning large language models (LLMs) has been largely overlooked despite its potential influence on model performance.In this study, we systematically evaluate the effects of random seeds on LLMs using the GLUE and SuperGLUE benchmarks. We analyze the macro-level impact through traditional metrics like accuracy and F1, calculating their mean and variance to quantify performance fluctuations. To capture the micro-level effects, we introduce a novel metric, consistency, measuring the stability of individual predictions across runs. Our experiments reveal significant variance at both macro and micro levels, underscoring the need for careful consideration of random seeds in fine-tuning and evaluation.
