Giter Site home page Giter Site logo

gouki510 / pizza Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fjzzq2002/pizza

0.0 0.0 0.0 67.65 MB

Code repository for "The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks"

License: MIT License

Python 2.34% Jupyter Notebook 97.66%

pizza's Introduction

The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks

This is the code repository for our paper The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks, accepted by NeurIPS 2023 (oral).

Phase Transition Fixed Width Phase Transition Vary Width

How to Replicate

Some trained models are available in code/save/, including ModelA and ModelB in the paper. Use code/eval-main.ipynb (for transformers) and code/eval-linear.ipynb (for linear models) to calculate the metrics of the trained models. To train models from scratch, use code/train-main.py for transformers and code/train-linear.py for linear models.

The collection of all the trained models are not released for size concerns, but two tables of stats collected across all 1-layer runs are available as result/1l_fixedwidth.csv and result/1l_varywidth.csv. The former is for the fixed-width experiments and the latter is for the varying-width experiments. Note that the two tables also contain runs with slightly different settings: runs with 1 in diff_vocab and eqn_sign columns correspond to the runs in the appendix. You may also want to filter out non-circular runs (circularity column).

Citation

@article{zhong2023clock,
  title={The clock and the pizza: Two stories in mechanistic explanation of neural networks},
  author={Zhong, Ziqian and Liu, Ziming and Tegmark, Max and Andreas, Jacob},
  journal={arXiv preprint arXiv:2306.17844},
  year={2023}
}

pizza's People

Contributors

fjzzq2002 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.