arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.21656cs.LG
收藏

Comgra:一种用于分析和调试神经网络的工具

Comgra: A Tool for Analyzing and Debugging Neural Networks

Saarland University(萨尔大学);RPTU(莱茵兰-普法尔茨工业大学)

Florian Dietz, Sophie Fellenz, Dietrich Klakow, Marius Kloft

AI总结:

Comgra 是一个开源 PyTorch 库,通过 GUI 提取并可视化模型内部激活与梯度信息,支持训练阶段比较和单样本分析,用于神经网络调试、架构设计与机制可解释性研究。

摘要:

神经网络 notoriously 难以检查。我们引入了 comgra,一个用于 PyTorch 的开源 Python 库。Comgra 提取模型内部激活的数据,并将其组织在 GUI(图形用户界面)中。它可以显示汇总统计量和单个数据点,比较训练的早期和后期阶段,关注感兴趣的单个样本,并可视化梯度在网络中的流动。这使得可以从许多不同角度检查模型的行为,并通过快速测试不同的假设而无需重新运行模型来节省时间。Comgra 可应用于调试、神经架构设计和机制可解释性。我们通过 Python Package Index (PyPI) 发布我们的库,并在 https://github.com/FlorianDietz/comgra 提供代码、文档和教程。

英文摘要:

Neural Networks are notoriously difficult to inspect. We introduce comgra, an open source python library for use with PyTorch. Comgra extracts data about the internal activations of a model and organizes it in a GUI (graphical user interface). It can show both summary statistics and individual data points, compare early and late stages of training, focus on individual samples of interest, and visualize the flow of the gradient through the network. This makes it possible to inspect the model's behavior from many different angles and save time by rapidly testing different hypotheses without having to rerun it. Comgra has applications for debugging, neural architecture design, and mechanistic interpretability. We publish our library through Python Package Index (PyPI) and provide code, documentation, and tutorials at https://github.com/FlorianDietz/comgra.

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

↑