Explore the research collection
9 entries · Follow this search
- Paper
EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory
EngramEdit turns the n-gram conditional-memory modules of architectures like DeepSeek Engram into an editable knowledge interface, decoupling factual knowledge updates from the Transformer backbone. Conditional memory uses input n-grams to look up learned embeddings; ablations show disabling it collapses factual-knowledge performance (~39% of enabled) while largely preserving in-context understanding and reasoning (~72%), so facts live in the n-gram tables while computation lives in the backbone. The core problem: different phrasings of one fact activate different n-gram embeddings, and editing shared embeddings can corrupt unrelated facts. EngramEdit's procedure: (1) generate multiple expressions of each fact to broaden n-gram coverage; (2) temporarily add a shared learnable perturbation to the memory representations of its expressions and optimize only that perturbation by backpropagating the new-fact prediction loss, yielding a target memory representation per expression (mirroring ROME-style locate-then-edit FFN targeting); (3) jointly solve for updates to the shared n-gram embeddings that match these targets across all expressions and edits, with reuse-based regularization that penalizes large updates to frequently reused (short/frequent) n-gram embeddings more strongly. Results: near-perfect editing success on CounterFact and ZsRE, revised knowledge usable across unseen expressions and in multi-hop reasoning (nearly 3x the strongest baseline's MQuAKE accuracy under chain-of-thought prompting), with unrelated knowledge and general capabilities largely preserved under extended sequential editing. Because only a small subset of n-gram embeddings changes, the edit set is a few-MB overlay that can be swapped per user, enabling continual per-user learning without touching the backbone. Limitation: edits are currently primitive [subject, relation, object] triples only. Code: https://github.com/ModalityDance/EngramEdit
- Paper
Continual Graph Memory for Mathematical Research Agents
Ansatz, a mathematical research agent built around Continual Graph Memory — a graph-based, evolvable, cross-problem memory system for long-horizon proof search. Motivation: solving frontier math problems may need massive parallel agents running for long periods, generating enormous volumes of intermediate proof results that must be organized and reused. Components: a unified graph memory representing all intermediate exploration results (facts, plans, counterexamples) with edges for their relationships; dependency-aware retrieval for targeted local context; an evidence-sensitive curator that updates the research frontier and distills lessons from prior attempts; scoped recall that surfaces earlier statements and negative findings for local re-proving rather than uncritical reuse. Experiments across all ten 'First Proof Second Batch' research tasks plus four component studies: Ansatz reports closure on all ten tasks and sustains/resumes long-horizon mathematical search. Beyond that, it autonomously solved the Jamison caterpillar conjecture and Erdos Problems 289, 348, and 488 with no human intervention, and made partial progress on several other open problems.
- Paper
Local Support Learning
Local Support Learning (LSL) augments gradient-based training so LLMs of up to 7B parameters learn new tasks at full capacity while retaining prior capabilities — without access to prior data. The core idea: cast forgetting as a geometric problem and optimize for the worst case. A gradient update ΔW is a matrix that changes the output for every input not orthogonal to it, giving each update a global effect; LSL constrains the update to act only on the adapter's training distribution. Each learning phase pairs a standard weight adapter (e.g., LoRA), trained as usual, with a tailored gate enabling the adapter only on inputs from its training distribution — a GMM-based gate whose likelihood decays away from its training data, so it naturally stays closed on prior data it has never seen (conventional MLP classifiers lack this guarantee). Experiments fine-tune LLMs on chemistry, English-to-Igbo translation, and cybersecurity while measuring retention of pretraining skills (math, coding, instruction following): LSL achieves near-optimal retention with strong new-task performance across multiple phases, is robust to hyperparameter choice (no LR/batch-size/rank retention tradeoff), scales from 88% (1.5B) to 97% (3B) to 99% (7B) retention, and costs about the same as standard LoRA in memory and compute.
- Paper
Continual Learning via Sparse Memory Finetuning
Replaces one mid-stack FFN with a 1M-slot memory layer (k=32, 4 heads) and finetunes only the top-t slots that are highly accessed on the current batch relative to DCLM pretraining (TF-IDF). On a 1.3B model, TriviaQA 1K fact stream: NaturalQuestions F1 drops 11% vs 89% full finetuning and 71% LoRA at matched target learning; document-stream SimpleQA shows the same Pareto pattern. Naive memory FT and TF-only ranking forget more. No official code on abs.
- Paper
Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data
Infinite-Parameter LLMs' (Hu, Clarke, Zhang, Hernández-Lobato, Cambridge) proposes an architecture where effective model weights are generated from live session data by a compact hypernetwork producing low-rank modulations of a frozen base, with a Bayesian belief updated online. Stored parameters stay fixed while compilable weights are effectively unbounded — a structural alternative to keeping all runtime knowledge in the prompt.
- Paper
Cadence: an architecture for a continuous and efficient stream of intelligence
PhilPapers/PhilArchive preprint (rec MUECAP-2) by Bernhard Mueller proposing Cadence: brains built from bounded observer-like patches with local state, ports, records, readback and repair. Computation is settling to equilibrium; learning is equilibrium detuning (free vs nudged settle; no backward pass). Companion MIT library cadence-net (GitHub muellerberndt/cadence, PyPI 0.16.0 as of 2026-09-25) implements RecordPatchNet, TemporalPatchNet, BeliefPatch, and genome-evolved settling brains, with Lean proofs and browser demos. Author site floatingpragma.io/cadence; AGI framed as research goal with bounded measured demos today. PhilArchive title variant: “Cadence: a patch architecture for continuing intelligence.” PDF behind Cloudflare; full abstract not fully retrieved.
- Paper
Elastic Weight Consolidation (EWC): Nuts and Bolts
A short report that derives the Elastic Weight Consolidation loss introduced in Overcoming catastrophic forgetting in neural networks. Frames EWC as a quadratic penalty on parameter drift, weighted by a Fisher-information diagonal that marks weights important to previous tasks. Assumes the reader already knows continual-learning terms; no new algorithm or large-scale experiments on the abs. Discord posted the PDF of arXiv 2105.04093.
- Paper
Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories
Sleep replaces train/test with wake/sleep: Knowledge Seeding distills a smaller self into newly unlocked lower-frequency CMS/MoE experts (on-policy GKD plus RL imitation), then Dreaming generates SEAL-style self-edits with a random extra expert. Nested Learning Hope backbone. Class-incremental CLINC/Banking/DBpedia; long-context RULER/LongHealth/QASPER; CTNL dual-language translation; BABILong; Qwen3-8B AIME-24 79.2 vs OPSD 76.6; SQuAD incorporation above SEAL; ARC few-shot 80% vs SEAL 72.5. No official code on the abs page.
- Paper
Can a Language Model Learn Facts Continually in Its Weights?
Writes invented facts into Qwen3-4B (8B replication of the entailment gap) via LoRA/full FT and context distillation, then follows them through 20–100 later writes with five held-out question types against a fact-in-prompt ceiling. Training-data breadth, not the objective label, creates usable knowledge: diverse restatements cut the recitation-to-use gap from 27.4 to 5.4 points without showing conclusions. After 20 sequential writes, bare-statement facts retain 1% vs 46% for study facts (plateau ~25–28% by 100 study writes). Forgotten facts keep 57–67% of their log-prob lift, so access fails rather than storage; incoming writes cause interference. A frozen original-model teacher preserves capability; no tested intervention keeps earlier facts reachable. Context remains the reliable channel for composition and survival.