arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05966cs.LGcs.AI
收藏

FLOPS:基于最优采样的前向学习

FLOPS: Forward Learning with OPtimal Sampling

Guanghua School of Management, Peking University(北京大学光华管理学院);Xiangjiang Laboratory, Wuhan Institute for Artificial Intelligence(武汉人工智能研究院湘江实验室);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Huazhong University of Science and Technology(华中科技大学);Johns Hopkins University(约翰斯·霍普金斯大学)

Tao Ren, Zishi Zhang, Jinyang Jiang, Guanghao Li, Zeliang Zhang, Mingqian Feng, Yijie Peng

AI总结:

本文提出FLOPS方法,通过为每个数据点自适应分配最优查询数量来降低前向学习中梯度估计的方差,在保持估计精度的同时显著提升计算效率,并在视觉Transformer微调、提示微调和多模态对齐等任务中验证了其有效性。

摘要:

鉴于反向传播的局限性,基于扰动的梯度计算方法近期受到关注,这类方法仅通过前向传播(也称为查询)进行学习。传统的前向学习为了通过蒙特卡洛采样准确估计梯度,在每个数据点上消耗大量查询,这阻碍了这些算法的可扩展性。然而,并非所有数据点都值得为梯度估计分配相同的查询数量。本文从一个新颖的视角研究提高前向学习效率的问题:如何以最小代价降低梯度估计方差?为此,我们提出在训练过程中为一个批次内的每个数据分配最优的查询数量,以在估计精度和计算效率之间取得良好平衡。具体而言,通过一个简化的代理目标和一个重参数化技术,我们推导出一种新颖的即插即用查询分配器,其参数量极小。理论结果验证了其最优性。我们在多个数据集上对Vision Transformers进行微调,开展了大量实验,并进一步将该分配器部署到两个黑盒应用中:基础模型的提示微调和多模态对齐。所有实验结果表明,我们提出的分配器显著增强了前向学习算法的可扩展性,为其在现实世界中的应用铺平了道路。

英文摘要:

Given the limitations of backpropagation, perturbation-based gradient computation methods have recently gained focus for learning with only forward passes, also referred to as queries. Conventional forward learning consumes enormous queries on each data point for accurate gradient estimation through Monte Carlo sampling, which hinders the scalability of those algorithms. However, not all data points deserve equal queries for gradient estimation. In this paper, we study the problem of improving the forward learning efficiency from a novel perspective: how to reduce the gradient estimation variance with minimum cost? For this, we propose to allocate the optimal number of queries over each data in one batch during training to achieve a good balance between estimation accuracy and computational efficiency. Specifically, with a simplified proxy objective and a reparameterization technique, we derive a novel plug-and-play query allocator with minimal parameters. Theoretical results are carried out to verify its optimality. We conduct extensive experiments for fine-tuning Vision Transformers on various datasets and further deploy the allocator to two black-box applications: prompt tuning and multimodal alignment for foundation models. All findings demonstrate that our proposed allocator significantly enhances the scalability of forward-learning algorithms, paving the way for real-world applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑