arXiv:2501.00241cs.CLcs.AI2025-01被引 2

研究DistilBERT微调中超参数对文本分类性能的影响。

Exploring Variability in Fine-Tuned Models for Text Classification with DistilBERT

  • 通过多项式回归分析学习率、批量大小和轮数对性能的影响。
  • 高学习率降低损失但抑制准确率,批量大小显著影响准确率和F1分数。
  • 揭示超参数交互作用的重要性,适合模型优化与LLM微调研究者参考。

本研究评估了使用DistilBERT模型进行文本分类的微调策略,重点关注distilbert-base-uncased-finetuned-sst-2-english变体。通过结构化实验,考察学习率、批量大小和训练轮数对准确率、F1分数和损失的影响。多项式回归分析揭示了这些超参数的基础与增量效应,聚焦于相对于基线模型的微调调整。结果显示,超参数配置导致性能指标的显著波动,存在指标间的权衡:例如,较高学习率在相对分析中降低损失(p=0.027),但阻碍准确率提升;批量大小在绝对回归中显著影响准确率(p=0.028)和F1分数(p=0.005),但对损失优化影响有限(p=0.170)。轮数与批量大小的交互作用最大化F1分数(p=0.001),凸显超参数间相互作用的重要性。这些发现强调需设计能应对非线性超参数交互的微调策略,以平衡多指标表现。此类变异性与权衡现象对文本分类以外的任务(如NLP与计算机视觉)亦具参考价值,为大语言模型微调提供指导,并推动更具适应性的模型设计。

原文摘要 · Abstract (English)

This study evaluates fine-tuning strategies for text classification using the DistilBERT model, specifically the distilbert-base-uncased-finetuned-sst-2-english variant. Through structured experiments, we examine the influence of hyperparameters such as learning rate, batch size, and epochs on accuracy, F1-score, and loss. Polynomial regression analyses capture foundational and incremental impacts of these hyperparameters, focusing on fine-tuning adjustments relative to a baseline model. Results reveal variability in metrics due to hyperparameter configurations, showing trade-offs among performance metrics. For example, a higher learning rate reduces loss in relative analysis (p=0.027) but challenges accuracy improvements. Meanwhile, batch size significantly impacts accuracy and F1-score in absolute regression (p=0.028 and p=0.005) but has limited influence on loss optimization (p=0.170). The interaction between epochs and batch size maximizes F1-score (p=0.001), underscoring the importance of hyperparameter interplay. These findings highlight the need for fine-tuning strategies addressing non-linear hyperparameter interactions to balance performance across metrics. Such variability and metric trade-offs are relevant for tasks beyond text classification, including NLP and computer vision. This analysis informs fine-tuning strategies for large language models and promotes adaptive designs for broader model applicability.

微调优化超参数DistilBERT文本分类

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。