MCPcopy Index your code
hub / github.com/IDSIA/modern-srwm

github.com/IDSIA/modern-srwm @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
1,131 symbols 2,893 edges 93 files 141 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Modern Self-Referential Weight Matrix

This is the official repository containing code for the paper:

A Modern Self-Referential Weight Matrix That Learns to Modify Itself (ICML 2022 & NeurIPS 2021 Deep RL Workshop)

An earlier/shorter version of the paper (only containing the RL part) was presented at NeurIPS 2021 Deep RL Workshop. The corresponding version is available on Openreview.

This reposity also contains code for the paper: Accelerating Neural Self-Improvement via Bootstrapping (ICLR 2023 Workshop). Example scripts for this paper can be found under supervised_learning/scripts/bootstrapping.

Note(November 2023): We have a followup work on self-referential weight matrices (+ continual learning), IDSIA/automated-cl

General instructions

Please refer to the readme file under each directory for further instructions.

License files can be found under the corresponding directories.

In all tasks, our custom CUDA kernels will be automatically compiled. To avoid recompiling the code multiple times, we recommend to specify the path to a directory to store the compiled code via:

export TORCH_EXTENSIONS_DIR="/home/me/torch_extensions/rl"

BibTex

ICML 2022:

@inproceedings{irie2022modern,
  title={A Modern Self-Referential Weight Matrix That Learns to Modify Itself},
  author={Kazuki Irie and Imanol Schlag and R\'obert Csord\'as and J\"urgen Schmidhuber},
  booktitle={Proc. Int. Conf. on Machine Learning (ICML)},
  address={Baltimore, {MD}, {USA}},
  month=jul,
  year={2022}
}

NeurIPS 2021 Workshop:

@inproceedings{irie2021modern,
  title={A Modern Self-Referential Weight Matrix That Learns to Modify Itself}, 
  author={Kazuki Irie and Imanol Schlag and R\'obert Csord\'as and J\"urgen Schmidhuber},
  booktitle={Workshop on Deep Reinforcement Learning, NeurIPS},
  address={Virtual only},
  year={2021}
}

ICLR 2023 Workshop:

@inproceedings{irie2023accelerating,
  title={Accelerating Neural Self-Improvement via Bootstrapping},
  author={Kazuki Irie and J{\"u}rgen Schmidhuber},
      booktitle={Workshop on Mathematical and Empirical Understanding of Foundation Models, ICLR},
      address={Kigali, Rwanda},
      year={2023}
}

Links

Core symbols most depended-on inside this repo

map
called by 88
reinforcement_learning/nest/nest/nest.h
flatten
called by 58
reinforcement_learning/nest/nest/nest.h
load
called by 44
reinforcement_learning/nest/nest/nest_pybind.h
state_dict
called by 42
supervised_learning/warmup_lr.py
log
called by 38
reinforcement_learning/torchbeast/core/file_writer.py
load_state_dict
called by 35
supervised_learning/warmup_lr.py
time
called by 31
reinforcement_learning/torchbeast/core/prof.py
seed
called by 20
supervised_learning/torchmeta_local/transforms/splitters.py

Shape

Method 763
Class 209
Function 159

Languages

Python83%
C++17%

Modules by API surface

reinforcement_learning/libtorchbeast/rpcenv.pb.h114 symbols
reinforcement_learning/torchbeast/layer.py69 symbols
reinforcement_learning/libtorchbeast/rpcenv.pb.cc58 symbols
reinforcement_learning/torchbeast_procgen/procgen_wrappers.py48 symbols
reinforcement_learning/torchbeast_procgen/model.py44 symbols
reinforcement_learning/torchbeast/atari_wrappers.py44 symbols
supervised_learning/torchmeta_local/datasets/tcga.py30 symbols
supervised_learning/model_few_shot.py27 symbols
supervised_learning/torchmeta_local/utils/data/dataset.py25 symbols
reinforcement_learning/torchbeast/model.py24 symbols
supervised_learning/resnet_impl.py21 symbols
supervised_learning/torchmeta_local/transforms/splitters.py19 symbols

For agents

$ claude mcp add modern-srwm \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact