Post-Hoc Sparse Memory Retrofitting and Layered Behavioral Adaptation on a 750B-Class Quantized MoE LLM
Updating a deployed frontier Mixture-of-Experts (MoE) LLM after pretraining requires modifying both declarative knowledge and behavioral policies without retraining frozen quantized weights. We present Modular Post-Hoc Continual Learning (MPCL), a single-GPU quantized training engine and three-arm architecture operating directly over deployed mixed-precision weights of DeepSeek-V4.1-Flash-1017, a 748.5B-parameter model with 15.5B active decode parameters, on one 96 GB GPU. Updating just 0.011% of backbone parameters, MPCL factors post-hoc adaptation across a Layer-1 Engram lexical overlay, a retrofitted Layer-22 sparse product-key memory (PKM) with disjoint sequential slot growth, and a base-anchored Layer-23–39 attention LoRA. We evaluate post-hoc sparse memory and layered behavioral adaptation across compiler-verified CUDA 13 APIs (CUDA13-CL), counterfactual persona rebinding, and external calibration on AA-Omniscience-Public-v1.1. On CUDA13-CL, Layer-22 PKM lifts held-out pass rate from 20.8% to 58.3%, directionally outperforming both an attention-only LoRA baseline and a lower-encoder Layer-19 PKM ablation. Under sequential updates, disjoint slot growth retains directionally higher post-sequence accuracy than continual LoRA but still degrades despite bit-exact frozen values due to co-retrieved-slot value crosstalk, and single-layer PKM fails strict compilation on CUDA Tile C++. On counterfactual persona rebinding, Layer-22 PKM achieves reliable first-person self-binding with zero control leakage, reaching 84.1% on the core probe and 53.8% on a broader stratified suite, but struggles on cold third-person queries, which a Layer-1 Engram overlay does not significantly resolve. Finally, we observe a knowledge-versus-calibration tension: injecting novel CUDA 13 APIs into Layer-22 PKM alone reduces hard epistemic honesty from 93.3% to 84.2% (p = 0.013 run-level, p = 0.039 question-level) by increasing acceptance of fabricated APIs, and naive zero-shot merging with unanchored behavioral LoRA halves CUDA 13 recall without restoring calibration. Separately, under independent external grading by Gemini 3.8 Flash, standalone Layer-23–39 behavioral LoRA improves AA-Omniscience by +12.7 points, and base-anchored three-arm stacking over the frozen persona memory shows no statistically significant loss of core identity or calibration transfer (+11.7 points over the frozen base without net accuracy loss); anchored stacking over the CUDA 13 memory remains future work. Companion Artifacts:- Training engine, CUDA13-CL benchmark, CPU mutation tests, manifests & graded evaluation logs: https://github.com/t4lus-sec/mpcl- Quantized CUDA/C++ serving engine (ds41d, tag v1.0-mpcl-paper1): https://github.com/t4lus-sec/ds41d-s0ma- Trained CUDA 13 and behavioral LoRA adapter weights (.safetensors): https://huggingface.co/t4lus-sec/mpcl-ds41-adapters (mirrored in mpcl-paper1-adapters.tar.gz with SHA256SUMS.txt; personal assistant persona weights are omitted, while their sanitized manifests and evaluation outputs are included in the repository)
Authors
- Jacob Kim
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24640129
- Primary Topic
- Domain Adaptation and Few-Shot Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00