Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Brain-Inspired Modular Training (BIMT), a method for making neural networks more modular and interpretable.

NotificationsYou must be signed in to change notification settings

KindXiaoming/BIMT

Repository files navigation

This is the code repo for the paper:"Seeing is Believing: Brain-Inspired Modular Training for Mechanistic Interpretability". We introduce Brain-Inspired Modular Training (BIMT), a method for making neural networks more modular and interpretable. Inspired by brains, BIMT embeds neurons in a geometric space and augments the loss function with a cost proportional to the length of each neuron connection. We demonstrate that BIMT discovers useful modular neural networks for many simple tasks, revealing compositional structures in symbolic formulas, interpretable decision boundaries and features for classification, and mathematical structure in algorithmic datasets.

The examples used in this paper are relatively small-scale. We make our codes as minimal as possible: each example is self-consistent, kept in a single jupyter notebook. Each example is runnable on a single CPU (e.g., Mac M1) usually in minutes, in hours at most.

ExamplesFigure inpaperNotebook
Symbolic FormulasFigure 3symbolic_formulas_3.1
Two MoonFigure 4two_moon_3.2
Modular AdditionFigure 5modular_addition_3.3
Permutation S4Figure 6permutation_S4_3.3
In-context linear regFigure 7incontext_3.4
MNISTFigure 8mnist_3.5

With BIMT, neural networks are trained to be become more modular and interpretable, e.g.,

Two Moon:

two_moon.mp4

Modular addition:

modadd_network.mp4

Permutation group S4:

S4.mp4

Symbolic formulas:

sf_id.mp4
sf_fs.mp4
sf_comp.mp4

About

Brain-Inspired Modular Training (BIMT), a method for making neural networks more modular and interpretable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp