arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.00334cs.LGcs.AImath.DG
收藏

通过遍历功能不变路径来构建灵活的机器学习系统

Engineering flexible machine learning systems by traversing functionally-invariant paths

Caltech(加州理工学院);Alexandria University(亚历山大大学)

Guruprasad Raghavan, Bahey Tharwat, Surya Narayanan Hari, Dhruvil Satani, Matt Thomson

AI总结:

本文提出功能不变路径(FIP)框架,利用微分几何将神经网络权重空间视为黎曼流形,通过沿测地线移动实现灵活适配,在持续学习和稀疏化任务上达到与最先进方法相当的性能。

摘要:

Transformer已成为自然语言处理和计算机视觉领域最先进的神经网络架构。在基础模型范式中,大型Transformer模型(如BERT、GPT3/4、Bloom、ViT)在自监督任务(如单词或图像掩码)上进行预训练,然后通过微调适配到下游用户应用,包括指令遵循和问答。尽管已经开发了许多模型微调方法,包括低秩权重更新策略(如LoRA),但支撑网络在无知识损失情况下进行适配的底层数学原理仍鲜为人知。在此,我们引入了一个微分几何框架——功能不变路径(FIP),它为一系列机器学习目标和网络稀疏化目标提供了神经网络的灵活且连续的适配。我们将神经网络的权重空间概念化为一个带有度量张量的弯曲黎曼流形,该度量张量的谱定义了权重空间中的低秩子空间,这些子空间在不损失先前知识的情况下适应网络适配。我们将适配形式化为沿权重空间中的测地线路径移动,同时搜索满足次要目标的网络。凭借适度的计算资源,FIP算法在持续学习和稀疏化任务上,对语言模型(BERT)、视觉Transformer(ViT、DeIT)以及CNN实现了与最先进性能相当的结果。广义上,我们将神经网络概念化为一个数学对象,可通过路径采样算法迭代地变换为不同的配置,以定义权重空间的一个子流形,该子流形可被利用来实现用户目标。

英文摘要:

Transformers have emerged as the state of the art neural network architecture for natural language processing and computer vision. In the foundation model paradigm, large transformer models (BERT, GPT3/4, Bloom, ViT) are pre-trained on self-supervised tasks such as word or image masking, and then, adapted through fine-tuning for downstream user applications including instruction following and Question Answering. While many approaches have been developed for model fine-tuning including low-rank weight update strategies (eg. LoRA), underlying mathematical principles that enable network adaptation without knowledge loss remain poorly understood. Here, we introduce a differential geometry framework, functionally invariant paths (FIP), that provides flexible and continuous adaptation of neural networks for a range of machine learning goals and network sparsification objectives. We conceptualize the weight space of a neural network as a curved Riemannian manifold equipped with a metric tensor whose spectrum defines low rank subspaces in weight space that accommodate network adaptation without loss of prior knowledge. We formalize adaptation as movement along a geodesic path in weight space while searching for networks that accommodate secondary objectives. With modest computational resources, the FIP algorithm achieves comparable to state of the art performance on continual learning and sparsification tasks for language models (BERT), vision transformers (ViT, DeIT), and the CNNs. Broadly, we conceptualize a neural network as a mathematical object that can be iteratively transformed into distinct configurations by the path-sampling algorithm to define a sub-manifold of weight space that can be harnessed to achieve user goals.

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

↑