This study compares an agent writing weights, LoRA fine-tuning and LoRA trained on top of a programmed memory.
How it works
- Construction
- The agent writes circuits into Qwen2.5-1.5B. Some bypass the rest of the model: one recalled all 900 fictional facts while MMLU accuracy fell from 59.6% to 22.2%.
- Preparation and training
- A second design preserves the model’s general abilities. Bajaj uses this programmed memory as the starting point for LoRA training.
- Execution
- After 4,000 total exposures to the 900 facts, the combined models scored 99.0–99.7% on the facts and 58.0–59.6% on MMLU. LoRA alone scored 22.2% on the facts.
Cite this work
@misc{compile-learn-or-both,
title = {{Compile, Learn, or Both? When Weight-Space Programming Helps, What It Breaks, and Why Combining It with LoRA Matters}},
author = {Bajaj, Puneet},
year = {2026},
date = {2026-11-25},
publisher = {Zenodo},
version = {1.1.2},
doi = {10.5281/zenodo.24530420},
url = {https://doi.org/10.5281/zenodo.24530420}
}