Skip to content

About

Empirical study of modular continual learning: sparse activation, learning allocation, reuse and retention. Manuscript, code and complete evidence.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Learning Allocation logo

Learning Allocation

From Sparse Activation to Learning Allocation
An empirical study of resource-constrained modular continual learning

Yuhao Li

Project page  ·  Paper  ·  58-second animation  ·  One-page brief

Findings · Evidence · Quick verification · Reading guide

Research complete · Technical report / author-review draft. The results support a reproducible mechanism study with conditional positive findings and explicit negative results. They do not establish a reliably superior algorithm. Learning Allocation is the current identity; GAUSE names the preserved historical method.

The question

When does modular capacity become useful learning and retained capability?

A network can contain many experts and activate only a few for a prediction. We investigate which experts actually learn, whether their knowledge contributes across tasks, and what remains useful when old tasks return.

Watch the idea unfold

learning-allocation-animation-captioned.mp4

Play directly above · 58 seconds · narration and embedded English captions. Follow one input through its experts, see how a batch can broaden learning eligibility, then inspect the separate CLEAR finding. The toy example and the two experimental settings are labeled explicitly.

Watch on the project page · Download with embedded captions · Transcript · Sources and evidence

How the models differ

Four synthetic architectures at the same 448-parameter expert budget: a width-32 monolith; two width-16 whole experts with one selected; four width-8 modules with a selected pair; and one width-8 shared module plus one of three routed width-8 modules.

The figure shows one illustrative prediction path per architecture. F and C share an EMA path selector, making F the whole-expert control for composition. B/E have F's widths but use different matching rules. D/C changes both mandatory sharing and route count, so it cannot isolate sharing alone. The widths shown belong to the synthetic study; CLEAR uses larger classification heads.

Architecture specification · Implemented architecture study · Diagram notes and sources

Prediction and learning are separate decisions

A causal learning round: observe the input, select a serving path and fix the prediction before current feedback; then receive permitted feedback, choose or retain eligible blocks, and commit SGD or an A-GEM-projected update. Later retention evaluation does not train the model.

An activated expert is not automatically allowed an unrestricted update. The study distinguishes stored capacity, activation, update eligibility, actual change, competence, reuse and retention. Each architecture retains its own allocation and replay contract; the diagram summarizes their causal boundary.

What we found

Sparse predictions can expose most experts to learning

In the synthetic learned-router study, two of four experts participate in each prediction, yet 96.1% of experts are eligible per minibatch on average under A-GEM.

Illustrative batch: input A selects experts 0 and 1, while input B selects experts 2 and 3. Each prediction uses two experts, but the batch union contains all four. This toy example is not a measured trace or a fit to 96.1 percent.

This explains how broad update eligibility can coexist with sparse prediction. Eligibility does not establish a nonzero change or damage to an old capability. Learned-routing report: 384 trajectories

Stored capacity can remain unused by training

On CLEAR, all 48 fine-grained C trajectories trained only modules 0 and 1. Modules 2 and 3 never changed. The heatmap below is reconstructed from saved change records, including the training prefix.

Actual CLEAR C update fractions across all twenty episodes, separately for SGD and A-GEM. Modules 0 and 1 change on 100 percent of updates in every episode; modules 2 and 3 on zero percent. Each rule contains 24 trajectories and 47,832 updates.

The 48 trajectories are 12 orders × 2 initializations × 2 update rules on one fixed dataset. Cells measure actual nonzero changes, not competence. The selector-matched F control likewise trained only its first whole expert. Allocation audit · Heatmap counts and source hashes

These are separate observations from different settings, not a matched causal comparison. Cold start, EMA selection, switching costs and lack of exploration have not been causally isolated as the reason for CLEAR's single-path training.

Strong baselines kept the conclusion bounded

Completed study Supported finding Evidence
Fine-grained and shared experts Modest synthetic gains and useful shared contributions occurred; no full overall-benefit criterion passed. 288-trajectory report
Learned sparse routing Broad minibatch eligibility and useful within-model routing diagnostics did not establish a qualified overall advantage. 384-trajectory report
Independent CLEAR validation Small gains over internal controls failed practical and retention requirements. C lost prediction to the monolith and all five external baselines in every order under both rules. 408-trajectory report
CLEAR: the complete comparison and its limits

The study used 17 configurations, 12 stream orders and two paired initializations, with 16 primary tests and 3,840 retention guards. These are repeated orders on one dataset, not independent datasets.

C improved over selector-matched F by 0.043 percentage points with SGD and 0.056 with A-GEM. The prospective target was two points; both comparisons also failed retention guards. Improvements over nonempty-matching E were 0.665/0.638 points and likewise failed the full criteria. All sixteen mean differences were Holm-detectable, but none passed the complete success criterion.

CLEAR is a minimally deduplicated recurrence adaptation using frozen MoCo features, not its official leaderboard protocol. The 5,500 test features were generated locally using the released frozen encoder. Synthetic experiments, historical real-data experiments and this independent validation remain distinct.

All contrasts and uncertainty · All configurations · Resource accounting · Interpretation and limitations

Inspect the results in a minute

Download the lightweight inspection package — about 530 KiB, including the paper, brief, main tables, figures, provenance and verification code.

Unzip it, open its directory and run:

python3 verify.py

Python 3.11+ and the standard library suffice. No dataset, GPU or model fitting is needed. This checks saved-summary integrity and arithmetic; it is not an independent experimental replication. Package guide · Full reproduction guide · Release

Read the research

Start with What it contains
Project page Visual explanations, result plots and a 58-second animation with synthetic narration, captions and transcript; the original 2:42 presentation remains available
Paper 13-page editorial revision 2 by Yuhao Li; all CLEAR tables and limitations
One-page brief The research question, two observations and bounded contribution
Editable manuscript Portable build, figures and exact traceability
Claim-to-evidence matrix 22 claim groups pinned to original sources and conditions
Related work 16 primary sources and novelty boundaries
Critical assessment Internal document review; not external peer review
Complete study index Protocols, outcomes and verification across the full program

The architecture work adapts DeepSeekMoE's fine segmentation and dedicated sharing, Sparsely-Gated MoE's sparse computation, Mixtral's expert composition and Switch Transformer's utilization considerations. It does not reproduce their LLMs or claim to invent these mechanisms.

Repository map

paper/learning-allocation/    Current paper, brief and presentation
site/                        Academic page served on GitHub Pages
assets/learning-allocation/   Visual identity and explanatory diagrams
lightweight/                 Small saved-summary inspection package
research/                    Preserved protocols, implementations and results
docs/                        Reading guides, provenance and historical records
tools/publication/           Presentation builders and verification
src/ · experiments/           Historical GAUSE implementations
mechlab/                     Original mechanism-audit framework

Detailed repository guide · Page publication record · Visual update and provenance

Historical GAUSE and immutable evidence

GAUSE began as a competition-and-affinity method. Null models, memory-matched controls and neural comparisons required substantial qualification of its original claims. The original M1–M6 program ended before every mechanism was comprehensively investigated. Historical research plans are provenance, not an active work queue.

All research directories keep their original names for source locks and reproducibility. The final scientific snapshot is c030fd1; the original consolidated manuscript package is c0b89ad. Verify historical whole-tree checks in their pinned checkout.

Final reassessment · Mathematical counterexamples · Historical manuscripts · Versioned documentation archive

Citation and credits

Use CITATION.cff and identify the report version and scientific snapshot used. The manuscript is a technical-report draft; no venue acceptance, DOI, new theorem or validated algorithmic superiority is claimed.

Code, research materials and original diagrams retain the MIT license; external datasets retain their own licenses. The academic page adapts Eliahu Horwitz's Academic Project Page Template under CC BY-SA 4.0, with separate attribution for its dependencies. Website notices

About

Empirical study of modular continual learning: sparse activation, learning allocation, reuse and retention. Manuscript, code and complete evidence.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages