arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01515cs.LGcs.AIcs.PLmath.CT
收藏

图解学习:一种用于组合式训练机制的图形语言

DiagrammaticLearning: A Graphical Language for Compositional Training Regimes

University at Buffalo(布法罗大学);University of Florida(佛罗里达大学);Harvard University(哈佛大学)

Mason Lary, Richard Samuelson, Alexander Wilentz, Alina Zare, Matthew Klawonn, James P. Fairbanks

AI总结:

本文提出学习图这一图形语言,将参数化训练表示为可编译为唯一损失函数的数据,统一描述多任务学习、知识蒸馏和多模态学习等机制,并通过范畴论赋予其严格语义。

摘要:

受具有多个相互作用但又彼此不同的模型组件的深度学习机制所驱动,我们引入了学习图(learning diagrams),这是一种训练设置的图形化描述,它将参数化学习表示为数据而非代码。一个学习图会编译成一个唯一的损失函数,组件模型在该损失函数上进行训练。在该损失上训练的结果是一组其预测彼此“一致”的模型。我们表明,许多流行的学习设置,例如少样本多任务学习、知识蒸馏和多模态学习,都可以被描述为学习图。我们进一步在一个库中实现了学习图,该库允许用户构建 PyTorch 和 Flux.jl 模型的图。通过实现一些经典的机器学习用例,我们展示了学习图如何使实践者能够将复杂模型构建为较小组件的组合,识别工作流之间的关系,并在训练期间或训练之后操纵模型。利用范畴论框架,我们为学习图引入了一种严格的语义,将这些操作建立在坚实的数学基础之上。

英文摘要:

Motivated by deep learning regimes with multiple interacting yet distinct model components, we introduce learning diagrams, graphical depictions of training setups that capture parameterized learning as data rather than code. A learning diagram compiles to a unique loss function on which component models are trained. The result of training on this loss is a collection of models whose predictions ``agree" with one another. We show that a number of popular learning setups such as few-shot multi-task learning, knowledge distillation, and multi-modal learning can be depicted as learning diagrams. We further implement learning diagrams in a library that allows users to build diagrams of PyTorch and Flux.jl models. By implementing some classic machine learning use cases, we demonstrate how learning diagrams allow practitioners to build complicated models as compositions of smaller components, identify relationships between workflows, and manipulate models during or after training. Leveraging a category theoretic framework, we introduce a rigorous semantics for learning diagrams that puts such operations on a firm mathematical foundation.

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

↑