Do We Really Need an LLM for Weight-Space Programming? A Deterministic Forward-Only Paradigm and Its Capability Boundaries
Lin Yao in Training & fine-tuning
Can fixed rules route weight edits better than a 27B LLM?
Do We Really Need an LLM for Weight-Space Programming? A Deterministic Forward-Only Paradigm and Its Capability Boundaries
Fixed rules replace the scriptwriter
- 1
Probe
Weight spectra need no forward pass; collect activations with forward probes.
- 2
Locate
Anomaly scores and activation contrasts identify a matrix or behavioral subspace.
- 3
Route
Select O₁ for outliers, O₂ for subspace projection, O₃ for recalibration, or O₄ for readout patching.
- 4
Verify
Paired validation and retention commit the edit or roll it back.
FWSP matches exhaustive search at lower latency
DINOv2-Base, 18 blind trials; same O₁–O₄ tools. FWSP took 780 ms, 6.9× faster than exhaustive; dispatch ≠ accuracy (blind-synthesis table).
A scalar stop bias misses reasoning phase
The </think> token ends the reasoning segment. A constant offset shifts early and post-closure states alike, risking premature stops or repeated tags.
A protected, state-conditioned edit of one output row targets repetitive tails rather than applying a fixed cutoff.
How Protected FisherGate edits reasoning
- 1
Probe phases
Eight math practice rollouts supply early, repetitive-tail, and post-</think> hidden states.
- 2
Whiten + protect
Weight the tail-versus-normal contrast by within-class covariance, then constrain it orthogonal to start/post states and mid-states when available.
- 3
Fold the edit
Fold the rank-1 edit into an untied </think> row, cloning tied heads if needed; no per-token compute.
Math calibration transfers to code
DeepSeek-R1-0528-8B; HumanEval N=164, greedy 1K; math-only, no code calibration. BF-512 reserves 512 tokens; transfer table.
Why protect normal reasoning states?
On GSM8K 1K, the unconstrained edit scored 88.28% and had an 18.0% post-closure loop rate in the N=128 ablation.
The protected edit scored 85.16% on the same test and lowered loops to 9.4%, using the same eight math practice rollouts.
The higher in-task score did not predict better cross-task transfer.
Frozen features set an exact error floor
With upstream features frozen, a linear edit can fit only targets inside the existing feature-plus-bias span; the orthogonal remainder is irreducible at this layer.
- ΠΦ~
- Projection onto frozen features plus bias
- Y∗
- Desired target outputs
Frozen features decide whether O₄ can express XOR
On three-patch spatial XOR (3 seeds), frozen O₄ on ResNet-18 scored 49.09 ± 1.9%; MeZO scored 52.99 ± 7.4%.
Frozen O₄ reached 100.0 ± 0.0%, matching full fine-tuning on this task in the same three-seed evaluation.
For these checkpoints, ViT features exposed the cross-patch relation absent from the frozen CNN readout.
Localized LoRA absorbs residual shift
DINOv2-Base compound damage + Frost shift, 5 seeds; LoRA targets the FWSP-localized damaged block. Component-ablation table.
Where forward-only editing stops
Frozen feature span
O₄ cannot fit targets outside frozen features plus bias; changing representations needs LoRA or backprop.
Multi-head entanglement
One O₂ projection left Qwen3-8B cyclic-prefix repetition at 91.7%, down from 100%; multi-head induction remains.
Token and budget limits
GLM-Z1-9B-0414's three-token </think> tag triggers abstention; on full MATH-500 PFG plateaus near 67% at 4K–8K while Budget Forcing scales with 2.3–2.6× more tokens.
Why it matters
- FWSP matched exhaustive dispatch and beat the 27B router, but its overall accuracy was lower on the 18-trial DINOv2 test.
- For reasoning control, test protected math-calibrated readout edits on held-out tasks; use localized LoRA when frozen features fall short.
- Can state-conditional edits cross multi-token control tags and frozen-representation limits without losing safe abstention?
12 slides, 3 min
5 days ago