Large pretrained language models are widely used in downstream NLP tasks via task-specific fine-tuning, but such procedures can be costly. Recently, Parameter-Efficient Fine-Tuning (PEFT) methods have achieved strong task performance while updating a much smaller number of parameters compared to full model fine-tuning (FFT). However, it is non-trivial to make informed design choices on the PEFT configurations, such as their architecture, the number of tunable parameters, and even the layers in which the PEFT modules are inserted. Consequently, it is highly likely that the current, manually designed configurations are suboptimal in terms of their performance-efficiency trade-off. Inspired by advances in neural architecture search, we propose AutoPEFT for automatic PEFT configuration selection: we first design an expressive configuration search space with multiple representative PEFT modules as building blocks. Using multi-objective Bayesian optimisation in a low-cost setup, we then discover a Pareto-optimal set of configurations with strong performance-cost trade-offs across different numbers of parameters that are also highly transferable across different tasks. Empirically, on GLUE and SuperGLUE tasks, we show that AutoPEFT-discovered configurations significantly outperform existing PEFT methods and are on par or better than FFT, without incurring substantial training efficiency costs.
翻译:大预训练语言模型通过特定任务微调被广泛应用于下游NLP任务,但此类过程可能成本高昂。近年来,参数高效微调(PEFT)方法在仅更新远少于全模型微调(FFT)参数数量的情况下取得了强劲的任务性能。然而,对PEFT配置(如架构、可调参数数量,甚至插入PEFT模块的层数)做出明智的设计选择并非易事。因此,当前手动设计的配置很可能在性能-效率权衡方面表现次优。受神经架构搜索进展的启发,我们提出AutoPEFT用于自动PEFT配置选择:首先设计一个包含多种代表性PEFT模块作为构建模块的表达性配置搜索空间。随后,在低成本设置下利用多目标贝叶斯优化,我们发现了在不同参数数量下具有强性能-成本权衡的帕累托最优配置集,这些配置在不同任务间也具有高度可迁移性。实验表明,在GLUE和SuperGLUE任务上,AutoPEFT发现的配置显著优于现有PEFT方法,且性能与FFT持平或更优,同时未带来显著训练效率成本。