Penzai + Treescope:一个将模型作为数据进行解释、可视化和编辑的工具包
Penzai + Treescope: A Toolkit for Interpreting, Visualizing, and Editing Models As Data
AI总结:
本文提出 Penzai 与 Treescope 工具包,通过将神经网络模型表示为可编辑的数据结构并支持交互式可视化,使模型解释、修改和干预无需额外钩子即可实现。
摘要:
当今许多机器学习研究涉及在模型训练完成后对其进行解释、修改或可视化。我介绍了 Penzai,一个神经网络库,旨在通过将模型表示为简单的数据结构来简化模型操作;以及 Treescope,一个交互式美化打印器和数组可视化工具,能够同时可视化模型的输入/输出以及模型本身。Penzai 模型使用声明式组合器构建,这些组合器在模型对象本身的结构中暴露模型的前向传播过程,并使用命名轴确保每个操作在语义上是有意义的。借助 Penzai 的树编辑选择器系统,用户既可以插入也可以替换模型组件,从而能够干预中间值或对模型结构进行其他编辑。用户随后可以通过使用 Treescope 可视化修改后的模型来获得即时反馈。我描述了 Penzai 和 Treescope 的动机与主要特性,并讨论了将模型视为数据如何使各种分析和干预能够以数据结构变换的方式实现,而无需模型设计者添加显式钩子。
英文摘要:
Much of today's machine learning research involves interpreting, modifying or visualizing models after they are trained. I present Penzai, a neural network library designed to simplify model manipulation by representing models as simple data structures, and Treescope, an interactive pretty-printer and array visualizer that can visualize both model inputs/outputs and the models themselves. Penzai models are built using declarative combinators that expose the model forward pass in the structure of the model object itself, and use named axes to ensure each operation is semantically meaningful. With Penzai's tree-editing selector system, users can both insert and replace model components, allowing them to intervene on intermediate values or make other edits to the model structure. Users can then get immediate feedback by visualizing the modified model with Treescope. I describe the motivation and main features of Penzai and Treescope, and discuss how treating the model as data enables a variety of analyses and interventions to be implemented as data-structure transformations, without requiring model designers to add explicit hooks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。