NeuroGit-GFN: Selective Rollback and Compositional Policy Compilation in Ordinary Language Model Weights

Maintaining open-weight language models in production requires targeted knowledge and behavioral edits tracked like version control: updates to outdated SDK/package knowledge, suppressed strings, and command defaults must generalize to unseen phrasings, respect authorized waivers, compose across interacting rules, keep read-only repository audits accurate, and later be selectively reverted without erasing retained edits. Dense and merged-adapter editors (ROME, MEMIT, AlphaEdit, AnyEdit, UnKE, merged LoRA) produce ordinary router-free weights but entangle edits under retirement, whereas semantic-routed per-edit adapters (SERAC, SoLA) revoke edits via routing-key deletion at the cost of per-request routing middleware that inspects only user prompts rather than model-generated tokens. We introduce NeuroGit-GFN (gfn 1.0.6), a closed-form compiler (0 gradient-descent optimizer steps; 0 hardcoded model names, delimiter literals, or projection attribute names in gfn/) whose core orthogonal-shielding, protected-residual, Frobenius-Gram, and block-rollback identities are machine-checked over exact integer rings in Lean 4.36.0 (formal_algebra.lean) and paired with float64/bfloat16 checks in pytest. Runtime dataflow and template probes (BackboneSpec, ReasoningSpec, ToolCallCodec) compile conditional, slot-compositional, dual-mode thinking=ON + OFF, and native <tool_call> / [TOOL_CALLS] policies into one standard Hugging Face PEFT .safetensors adapter (9.57-15.46 MB for 20 rules across 1B-14B) paired with an offline float64 commit ledger (17.39-26.83 MB compressed factors, 210.9-566.3 KB raw reduced QP state). Evaluated across 10 open-weight checkpoints (1B-14B), reduced KKT rollback solves in 0.92-22.18 ms on CPU (2.92-22.18 ms on 20-rule panels; 0.21-5.63 s full cold load + GPU install), ranking #1 among 12 router-free edited methods across all three 1B-1.5B normalization topologies (0.00% waiver false-fire) and reaching 76.04% (OLMo-2-13B) and 85.00% (Gemma-3-12B) Macro-4 with 96.43%-100.0% paired target-item survival under 4-CVE rollback (vs. 48.57%-81.25% for LoRA unlearning in 8.12-34.58 s), with full failure-boundary disclosures.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24727940
Primary Topic
Natural Language Processing Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

NeuroGit-GFN: Selective Rollback and Compositional Policy Compilation in Ordinary Language Model Weights

Pál Lakatos-Tóth
Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
preprint

NeuroGit-GFN: Selective Rollback and Compositional Policy Compilation in Ordinary Language Model Weights

Pál Lakatos-Tóth
preprint en

Abstract

Maintaining open-weight language models in production requires targeted knowledge and behavioral edits tracked like version control: updates to outdated SDK/package knowledge, suppressed strings, and command defaults must generalize to unseen phrasings, respect authorized waivers, compose across interacting rules, keep read-only repository audits accurate, and later be selectively reverted without erasing retained edits. Dense and merged-adapter editors (ROME, MEMIT, AlphaEdit, AnyEdit, UnKE, merged LoRA) produce ordinary router-free weights but entangle edits under retirement, whereas semantic-routed per-edit adapters (SERAC, SoLA) revoke edits via routing-key deletion at the cost of per-request routing middleware that inspects only user prompts rather than model-generated tokens. We introduce NeuroGit-GFN (gfn 1.0.6), a closed-form compiler (0 gradient-descent optimizer steps; 0 hardcoded model names, delimiter literals, or projection attribute names in gfn/) whose core orthogonal-shielding, protected-residual, Frobenius-Gram, and block-rollback identities are machine-checked over exact integer rings in Lean 4.36.0 (formal_algebra.lean) and paired with float64/bfloat16 checks in pytest. Runtime dataflow and template probes (BackboneSpec, ReasoningSpec, ToolCallCodec) compile conditional, slot-compositional, dual-mode thinking=ON + OFF, and native <tool_call> / [TOOL_CALLS] policies into one standard Hugging Face PEFT .safetensors adapter (9.57-15.46 MB for 20 rules across 1B-14B) paired with an offline float64 commit ledger (17.39-26.83 MB compressed factors, 210.9-566.3 KB raw reduced QP state). Evaluated across 10 open-weight checkpoints (1B-14B), reduced KKT rollback solves in 0.92-22.18 ms on CPU (2.92-22.18 ms on 20-rule panels; 0.21-5.63 s full cold load + GPU install), ranking #1 among 12 router-free edited methods across all three 1B-1.5B normalization topologies (0.00% waiver false-fire) and reaching 76.04% (OLMo-2-13B) and 85.00% (Gemma-3-12B) Macro-4 with 96.43%-100.0% paired target-item survival under 4-CVE rollback (vs. 48.57%-81.25% for LoRA unlearning in 8.12-34.58 s), with full failure-boundary disclosures.

Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
NeuroGit-GFN: Selective Rollback and Compositional Policy Compilation in Ordinary Language Model Weights — Pál Lakatos-Tóth · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS