Penzai + Treescope: A Toolkit for Interpreting, Visualizing, and Editing Models As Data
Daniel D. Johnson

TL;DR
This paper introduces Penzai and Treescope, tools that treat models as data structures for easier interpretation, visualization, and editing, enabling flexible model analysis and modification without complex hooks.
Contribution
The paper presents Penzai, a neural network library with declarative combinators, and Treescope, an interactive visualization tool, facilitating model manipulation and understanding as data structures.
Findings
Penzai models use named axes for semantic clarity.
Users can insert or replace model components interactively.
Immediate visualization feedback supports model editing.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Mining Algorithms and Applications · 3D Modeling in Geospatial Applications · Computational Physics and Python Applications
MethodsLib
