梯度变换与适配器之间的对偶性
On the Duality between Gradient Transformations and Adapters
AI总结:
研究线性梯度变换与适配器重参数化之间的对偶性,证明在变换空间优化等价于通过线性适配器修改参数,揭示GaLore与单边LoRA的等价关系,统一内存高效训练方法。
摘要:
我们研究神经网络的内存高效优化(特别是语言模型),使用线性梯度变换,其中梯度被线性映射到比完整参数空间更低维的空间,从而节省梯度累积和优化器状态持久化所需的内存。模型参数的更新首先在低维空间中执行优化步骤,然后通过线性映射的转置返回原始参数空间。我们证明,在这个变换空间中优化模型等价于通过线性适配器对原始模型进行重参数化,该适配器以加法方式修改模型参数,然后仅优化适配器的参数。当变换是Kronecker分解时,这建立了GaLore和单边LoRA之间的等价性。我们表明,梯度变换与基于适配器的重参数化之间的这种对偶性统一了现有的内存高效训练方法,并提出了改进训练效率和内存使用的新技术。
英文摘要:
We study memory-efficient optimization of neural networks (in particular language models) with linear gradient transformations, where the gradients are linearly mapped to a lower dimensional space than the full parameter space, thus saving memory required for gradient accumulation and optimizer state persistence. The model parameters are updated by first performing an optimization step in the lower dimensional space and then going back into the original parameter space via the linear map's transpose. We show that optimizing the model in this transformed space is equivalent to reparameterizing the original model through a linear adapter that additively modifies the model parameters, and then only optimizing the adapter's parameters. When the transformation is Kronecker-factored, this establishes an equivalence between GaLore and one-sided LoRA. We show that this duality between gradient transformations and adapter-based reparameterizations unifies existing approaches to memory-efficient training and suggests new techniques for improving training efficiency and memory use.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。