Hypernetworks that update LLMs to remember factual information
Hypernetworks that update LLMs to remember factual information
curl -LsSf https://astral.sh/uv/install.sh | sh
./install.shuv run huggingface-cli login
uv run huggingface-cli download SakanaAI/doc-to-lora --local-dir trained_d2l --include "*/"…uv run demo/app.pyTo run any of the following scripts, use uv run $PATH_TO_SCRIPT from the root of this project.
| Experiment | Data prep | Training | Evaluation | Notes |
|---|---|---|---|---|
| Main experiment | scripts/main_exp/0-download_data.sh |
scripts/main_exp/1-train.sh |
scripts/main_exp/eval/*.sh |
Downloading data is fastest; regenerate only if you need fresh synthetic data. Evaluation scripts reproduce the main paper metrics. |
| NIAH | scripts/niah/0-gen_data.sh |
scripts/niah/1-train.sh |
scripts/niah/2-eval.sh |
Run the scripts in order; data generation only needs to happen once |
After downloading/generating the data, we can see samples of the data using this script.
uv run webui/self_gen_viewer.pySee more info at webui/SELF_GEN_VIEWER.md.
@inproceedings{charakorn2026doctolora,
title ={Doc-to-Lo{RA}: Learning to Instantly Internalize Contexts},
author ={Rujikorn Charakorn and Edoardo Cetin and Shinnosuke Uesaka and Robert Tjarko Lange},
booktitle ={Forty-third International Conference on Machine Learning},
year ={2026},
url ={https://openreview.net/forum?id=iW1oBBO72S}
}No open issues yet, or sync has not completed.