A small switch in a colossal machine
How Astra’s Qwen Edit Works—And How to Use Its Geometry in Edit Design

Cover · Allegorical Painting Diverting the flow. Or pushing the boat. Both guide the boat to the same side exit. This allegorical painting compares outcomes; it is not a proof of matching trajectories or mathematical duality.
Setup, Scope, and Source Files
A straight main channel and a lateral overflow weir. In the two-dimensional model defined here, an unperturbed boat passes by the lateral opening. Increasing the inflow or pushing with a pole causes the boat to exit through that opening. In the three scenes, the initial state of the boat and the physical timescale are aligned. However, passing through the same exit does not imply identical trajectories, nor does it constitute a proof of mathematical duality. Upstream transport, the fine texture of the watercolor, the discharge from the sluice gate, and the optical representation of falling water are schematic, and convergence has not been verified for the spatial discretization of the final setup.
Original files from the source blog: Original Image · GIF · MP4
What If a Single Improvement Also Enhanced the Ability to Find the Next One?
If the ability to find effective edits improves, the model might also assist in the next improvement. We want to verify this cycle of recursive self-improvement experimentally. A concrete starting point is Astra’s edit of Qwen. In it, a steering rule whose pushing strength varies depending on the model’s state was written into the weights.
In the Weight-Space Programming study, what Astra rewrote was a subset of columns in two MLP matrices. In Takehi et al.’s report, the MATH-500 accuracy rose from 7.9% to 48.1%, and the proportion of responses hitting the token limit dropped from 93.0% to 33.1%. Gradient-based training was not allowed. These performance numbers are the original authors’ results; our experiments investigate the mechanics of the published edit.1
The contribution of this article lies in connecting the rule Astra wrote, the corrections achievable via shared weights, and the changes in output locally predicted by Fisher geometry. We reconstruct the edit as steering applied to activations and measure how far geometric predictions hold. While the underlying algebra is known, applying it to this published edit makes the next questions to be verified concrete.
The procedure we propose to engineers is straightforward. First, test corrections as interventions on activations. Check whether corrections for different inputs can be realized using the weights permitted for editing, and then evaluate the edited model. Geometry describes the achievable corrections and measures small changes in output distributions using a common yardstick. Along the direction of this edit, Fisher predicted small changes well, but accuracy degraded at the original edit strength. Whether it proves useful as a tool for selecting better edits is what we want to verify experimentally next.
In the first place, the clue for the fix was 85 responses that failed to reach an answer.
When Astra had Qwen3.5-0.8B solve 96 practice problems, 11 were correct. The remaining 85 failed to reach an answer even after exhausting 32,768 tokens. At the end of the outputs, identical expressions appeared over and over. Even without examining geometric metrics, Astra could see a failure pattern that could serve as a starting point for a fix.2
Out of hundreds of millions of parameters, how did the LLM find the location and direction to edit?
In a trained network, there are locations where internal features can be observed and their function altered. One can measure activations, modify the matrices that write them into the residual stream (the representation where each layer reads and writes information), and observe the output. Leveraging this structure, Astra found small edits that act in different directions across layers. The written rule reads the current activation and scales the strength of the correction accordingly.
Below, we look in turn at the failure Astra found, the program written into the weights, and the geometry describing its action. Building on that, we consider whether this can be developed into a method usable repeatedly across models, and whether the success of a single edit can enhance the ability to create the next one.
List of Experiments and Scope
Source and Scope of Results. The substantial benchmark improvement was reported by the original authors. What we conducted was the reconstruction of the edit across 40 prefixes, local KL measurements across 32 prefixes, and control experiments for steering using synthetic repetitive text. A prefix refers to the preceding token sequence provided to the model. While small-scale generation pilot experiments have also been completed, full replication on MATH-500 and verification of search via a fixed program remain incomplete. The painting is an allegory to convey the mechanism, and the mathematical surfaces are based on an explicitly defined model.
Astra did not need to understand the meaning of every individual weight. It found observable failures and intervened on linear maps capable of executing short rules. The rule reads a coefficient from the current activation and adds a correction in a fixed direction. First, we examine whether that correction can be realized with a single shared matrix. Next, we compare how much it alters the output distribution. For the former, we use reachable subspaces; for the latter, we use metrics as tools.
We also want to distinguish the roles of our explanations. From the logs, one can trace the process through which Astra identified failures and selected edits. Algebra explains how the discovered edits are executed. Fisher geometry measures local changes in output and, combined with the constraints of shared weights, serves as a tool for conceiving the next edit. However, calculating the Fisher information does not explain why Astra was able to select this direction, layer, and gain.
1. What Did Astra See?
First, let us examine what Astra used and what kind of problem it tackled. The initial prompt provided Qwen’s architecture, functions to read and write weights, practice problems with ground truth answers, and tools to collect outputs and activations. Repetition of identical expressions was also cited as an example of a failure to fix. What was required of Astra was to categorize failures, move beyond observing correlations to actually intervening, vary the intervention strength, and confirm the effects on held-out problems.3
In the run with 50 calls to the evaluation tool, this cycle of observation and intervention could be repeated. “50” is the number of evaluation tool calls, not the number of model forward passes. A single call could generate hundreds of responses or evaluate text via teacher forcing. In the latter, rather than letting the model choose the next token itself, the provided sequence is fed sequentially to examine predictions at each position. Astra examined outputs on practice problems, measured internal quantities, applied candidate edits, and determined the next candidate by observing behavior on problems not used during search.
The logs also retain failed requests and ambiguous early results leading up to the final edit. Single-neuron ablation and subsequent single-layer directional removal showed changes of +6.25 percentage points each across 32 problems. However, both were high-variance results. Later, when layers 15 and 19 were edited simultaneously, far larger improvements were obtained even on problems not used in the search. The path from diagnosis to edit was reached through such trial and error.
Three conditions made this search possible. First, the failure was clearly visible in the output. Many responses shared a common pattern of being truncated at the limit after long repetitions. Second, because activations and log probabilities could be measured, repetitive and non-repetitive text could be quantitatively compared. Third, there was a linear write path in the MLP down-projection. This structure enabled corrections via short programs. However, how much of the success was due to Astra’s reasoning versus how much was aided by the prompt, the tools, or the tractable failure structure cannot be disentangled from this result alone.
Runs with fewer calls, such as 10 and 25, are also important. Both captured roughly the same failure, but the resulting edits had weaker effects. The 10-call run applied relatively weak rank-1 style operations across numerous output matrices, while the 25-call run disabled an attention head. Reaching the same diagnosis does not guarantee finding the same solution. To understand the reasons for success, one must also account for why these close attempts failed to achieve strong results.
Lining up the three runs from the public logs yields the following. All are reported by the original authors, not our reruns.
| Reported Run | Evaluation Calls Available for Search | Edits Listed in Public Summary | Reported MATH-500 Accuracy |
|---|---|---|---|
| p10c | 10 eval API calls | Removed 1 loop direction across 30 matrices spanning layers 8–22, gain 1.5 | 12.3% |
| p25c | 25 eval API calls | Disabled head 7 in layer 15 | 14.1% |
| p50c | 50 eval API calls | In MLPs of layers 15 and 19, selected 64 columns per layer and subtracted component in specified direction, gain 6 | 48.1% |
What this table shows is the difference in the programs the agent actually constructed in each run. The number of calls available for search is a resource budget and cannot, by itself, causally explain the difference in accuracy. The original author’s README also notes the unedited model’s accuracy of 7.9% and the change in truncation rate. Including the 48.1% figure, we are reporting the original authors’ results here, not an independent full replication.1
It is also premature to conclude from this result that “Astra made the model acquire mathematical ability through weight editing.” Although the evaluation task was mathematics, the observed obstacle was the inability to finish writing out answers. On the original authors’ validation set, many responses that previously exhausted tokens reached a solution after editing. Responses that became correct after editing did not simply terminate earlier; rather, they were longer. This trend is consistent with the explanation that editing removed the repetition preventing latent capabilities from translating into answers. It is not evidence that low-rank interventions added new general arithmetic or algebraic abilities.
This distinction must also be reflected in evals. Rather than treating accuracy alone as a single capability score, one should separately count answers rescued by the edit, previously correct answers that were broken, completed but incorrect answers, answer lengths, and anomalous outputs repeating whitespace.
The practical lesson is to make failures measurable before choosing an editing method. Even if an aggregate score is low, one cannot tell whether multiple failures share an internal state, lack a necessary feature, stem from decoding, or mix unrelated errors. The 85/96 observation served as a clue to narrow down the search space before proceeding to geometric interpretations.
2. How Does a 0.016% Edit Function as a Program?

Mechanism of Action · Rigorous Mathematical Model A single shared matrix applies different corrections per input. For linear projections, weight editing and activation intervention execute the exact same rule rigorously. The figure is a mathematical example thereof.
Setup, Scope, and Source Files
A simple, rigorously defined example of linear write mechanics, not Qwen activation data. , , , , , . The embedded write matrix and hook yield identical results for each current input. On fixed output-side coordinate axes, aligning strength from 0 to 1, the left transforms a sample input grid via the edited matrix, while the right fixes the reference grid and shifts each output by . Hollow points denote the original, filled points denote the edited, and colors indicate corresponding points. At strength 1, A moves by , B remains stationary, and C moves by . This is an analytical interpolation, not an optimization trace or dynamics measured in Qwen.
Original files from the source blog: Original Image · GIF · MP4
A single edited matrix can move different inputs by different amounts, and in some cases in opposite directions. The figure illustrates the same rule executed in two ways. On the left, it is stored in weights; on the right, it is applied to activations. The corresponding outputs match.
How to Read the Linear Example
This figure uses a rigorously defined simple model to illustrate the correspondence between the two operations. It is not a plot recording Qwen’s activations. Let the states be A=(1,0), B=(0,1), C=(-1,0), and set W=I, k=(1,0), d=(0,.7). On the left, a single edited matrix transforms the entire grid of inputs. On the right, the same correction is applied to each activation individually. Both are drawn on fixed output-side coordinate axes, where hollow points indicate original outputs and filled points indicate edited outputs. At the original edit strength, A shifts by +d, B stays put, and C shifts by −d.
In the animation, both interventions are gradually ramped up at equal strength. The corresponding points match throughout. This demonstrates an algebraic identity, not Astra’s search or dynamics measured in Qwen. A single external push on A does not, by itself, determine a policy for subsequent inputs.
“0.016%” is an approximate parameter count ratio. It compares the targeted 131,072 entries (2 × 64 × 1024) to the model’s overall ~800 million parameters. It is neither a ratio against weight norms nor a proportion of the two entire MLPs.
The actual final edit operated on the MLP down-projections of layers 15 and 19. Let matrix map MLP neuron activations to the residual stream. The editing mechanism can be expressed by the following exact identity:
It reads a scalar from the current state, multiplies it by a direction vector, and shifts the activation by that amount. This scalar can be positive or negative and varies continuously. Calling it a “gate” does not imply it is merely a binary detector testing for the presence of a loop. Idealizing Astra’s edit at each layer yields the following form:
where is a unit direction vector, is a mask selecting columns to edit, and is the gain determining intervention strength. Applying the modified matrix, the change in activation is
The vector determines the direction of displacement, and the scalar multiplying it determines when and by how much to displace based on current MLP activations. In other words, what is stored in the weights is not an operation that always adds the same vector, but a steering rule whose action varies with the state.
Thinking in terms of linear write sites, intervention options can be organized as follows:
- Add a constant vector. Can also be achieved with an editable bias:
- Read a single scalar and add a direction vector scaled by its value:
- Specify an output vector per neuron:
- Specify arbitrary changes per input:
This is a classification of what interventions are possible at linear sites, not a method for minimizing KL. For example, if one wants to add the same non-zero displacement to every input, an unbiased matrix alone cannot always achieve it. If the bias can also be edited, that operation becomes possible. The final operation—“specifying arbitrary changes per input”—is also generally unattainable with a single shared matrix. The range of achievable changes is constrained by the image of the Jacobian.
In the actual edit, distinct directions are used for the two layers, and 64 columns are selected in each layer. The published formula remains rank-1 even after masking columns, prior to bfloat16 rounding. However, the saved weight delta contains small rounding residuals. What was evaluated in the original work was the saved weights, a point that must be distinguished from the idealized formula used to reason about the mechanism.
In our E1 experiment, we compared the saved weight edit with its equivalent additive intervention on fixed prefixes. In FP32 across 40 prefixes, the maximum logit difference was and the maximum KL was . In bfloat16, the discrepancy grew, yielding a maximum logit difference of 0.3047 and a maximum KL of 0.00713. This is a numerical result verifying that the edit can be reconstructed as an additive intervention, not a capability evaluation on new tasks.
Attention should also be paid to the gain value. At gain 1, the component along is removed from the selected columns. At gain 6, however, that component becomes roughly −5 times its original value. It is an operation that not only cancels the component but reverses its sign. When selected neurons write along the direction obtained from contrast, the edit adds a contribution in the opposite direction. Calling it merely an “ablation” obscures this feedback-like action. However, it has not been confirmed that this gate selectively detects every naturally occurring repetition loop.
When editing multiple layers, attention must also be paid to the activations read at each layer. The input reaching layer 19 is already influenced by the edit at layer 15. If one uses obtained during post-edit execution, the additive identity holds intact. On the other hand, replaying gate values pre-recorded on the unedited model fails to reproduce the edited model rigorously. The “switch” here is not a fixed sequence of coefficients, but a mechanism that computes values from activations on the fly.
Conditions for Weight Edits and Activation Hooks to Match
Consider a single linear write site, arranging neuron activations for each sample as rows.
# W: [residual_dim, neuron_dim]; u: unit direction
readout = mask * (u @ W)
D = -gain * u[:, None] * readout[None, :]
edited_write = a @ (W + D).T
hooked_write = a @ W.T + a @ D.T
In exact arithmetic without rounding errors, the two calculations yield identical results. When reconstructing the published model, one uses the actual saved delta containing rounding residuals, rather than the idealized formula. In downstream edited layers, activations reflecting preceding interventions must be used.

Reconstruction of Edit · Measurement Results Left: Performance improvement reported in the original work. Right: E1, an experiment examining numerical agreement between weight editing and activation intervention across 40 fixed prefixes, not a full benchmark replication.
Setup, Scope, and Source Files
Left: MATH-500 accuracy reported by the original authors. Right: Numerical reconstruction performed in this project’s E1. Weight edits and additive activation hooks were compared across 40 fixed prefixes. Separate logarithmic axes are used for logits and KL (in nats). This is not a new replication of the full benchmark.
Original files from the source blog: Original Image
Separately, we also conducted small-scale generation pilot experiments. For 8 selected problems, we generated 1 sample per problem with the unedited model and 4 samples per problem with the edited model. Correct answers were 0/8 and 8/32, while truncations due to limits were 8/8 and 18/32, respectively. In this pilot, we verified that generation ran properly and timed execution. Because sample counts differ across conditions, this cannot be treated as a controlled, full-benchmark evaluation.4
The Gate’s Sign Determines Intervention Direction
Varying coefficient changes the magnitude of arrow . Negative values reverse its direction.

(On the original blog page, you can adjust the slider to see the arrow’s direction and magnitude change: Original)
3. Was a State-Dependent Switch Truly Necessary?

Control Experiments · Measurement Results All three control conditions bracket the target effect, but do not match it at the selected gains. In this comparison using synthetic sequences, effects could not be matched, leaving it undetermined whether gating is necessary.
Setup, Scope, and Source Files
E2 of this project. Five gains were tested across 16 calibration examples. Lines connect measurements; large outlined dots denote selected candidates. At the gains tested here, none of the three conditions met the pre-registered effect-matching criteria. Each curve brackets the target value; the right insets isolate measurement points at both ends of that interval. They do not show additional measurements or matching gains; the insets use logarithmic vertical axes with distinct ranges. This is a test supplying synthetically constructed sequences via teacher forcing.
Original files from the source blog: Original Image
To verify the necessity of the mechanism, one should replace the state-dependent switch with a constant intervention along direction . When effect sizes on repetitive text are matched, which one better preserves text leading to useful outputs? Pre-registered E2 was designed to compare Astra’s intact gate against constant intervention, shuffled gate values, and random control conditions. However, two limitations apply to what can be inferred from these measurements.
First, repetition was synthetically constructed. Current E2 experimental records make clear that this was a teacher-forcing test on synthetically constructed continuations, not model-generated repetitions. Using 16 calibration examples and 32 evaluation examples, repetitive text was formed by repeating the final 16 tokens of reference answer prefixes. This does not reflect the dynamic process of Qwen falling into loops during actual generation. This experiment inspects how the edit responds to constructed states, rather than directly reproducing the generation failures Astra found.
Second, the prerequisite effect-matching across comparisons was not achieved. Constant, shuffled, and random conditions all failed the pre-registered effect-matching check. Residuals from the target calibration effect were +0.1312 for constant, −0.0266 for shuffled, and +0.1701 for random. Because effects were not matched within the tested range and resolution of gains, one cannot claim that “side effects are reduced while maintaining identical efficacy.”
Still, it serves as data for investigating differences in response. Response patterns differ between the original gate and each control condition, enabling comparisons of token-by-token responses under teacher forcing on repetitive versus productive sequences. Nevertheless, one cannot conclude from this that thermostat-like, state-dependent control is indispensable for natural generation.
Because recorded calibration curves bracket the target effect across all three conditions, searching over a finer grid of gains could improve matching. What is needed next is to refine the search step while maintaining identical control conditions, building contrastive pairs from practice problem answers actually generated by the model. Calibration and evaluation data must be kept separate, confirming that effects are matched before drawing comparisons. Beyond log probabilities of synthetic continuations, one must then investigate how the probability of entering loops during generation, or escaping them, changes.
4. How Far Can Fisher Geometry Predict?

Local Geometry · Measurements and Analytical Model Displacements of equal length incur local costs that vary by direction (left mathematical example). In E3 measurements (right), Fisher predicts KL well for small interventions, but accuracy degrades at the original edit strength.
Setup, Scope, and Source Files
Left: Exact quadratic form defined by . Even for arrows of identical length, changing direction alters the crossed iso-cost lines and the cost. This is not geometry measured in Qwen. Right: E3 evaluation across 32 prefixes, with Fisher estimated separately per prefix. Golden points show measurements across all prefixes at the highlighted edit strength. The highlight cycles through tested strengths; the line connects their medians. The statistic shown at original edit strength is the median of per-prefix prediction ratios, not the ratio of medians.
Original files from the source blog: Original Image · GIF · MP4
Norms computed from weight coordinates alone struggle to capture model impact. For identical magnitudes of weight change, output distributions can shift drastically or barely change at all. Fixing a prefix and perturbing activations by a small , the KL of next-token distributions can be expressed locally as
where is the pullback of the output distribution’s Fisher matrix to activation coordinates. This yardstick measures how distinguishable two distributions are, not whether answer correctness or meaning was preserved. Even if KL is small, unmeasured capabilities could be damaged. Keeping KL low on productive text is a design objective we choose, not an automatic guarantee provided by Fisher geometry.
In E3, we evaluated this local prediction across 32 evaluation prefixes. Fisher was estimated via finite differences for each prefix, and the proportionality constant for the norm-based baseline was determined on 16 separate calibration prefixes. The edit strengths evaluated for predictions—0.03, 0.1, 0.3, 1.0—were not used for local fitting.
At edit strength 0.03, the median absolute prediction error on a log scale was 0.013 decades for Fisher versus 0.479 for the weight-norm baseline. At edit strength 1, by contrast, they were 0.462 and 0.420, respectively. Under this metric, Fisher is substantially more accurate for weak interventions, but slightly inferior at the original edit strength.
At the original edit strength, the median ratio of each prefix’s Fisher-predicted value to empirical KL was approximately 0.38. This is the median of ratios computed per prefix, not the quotient of the median prediction over the median empirical value. Furthermore, agreement at small edit strengths used to estimate or verify derivatives must not be counted as independent evidence of predictive accuracy.
An edit strength of 1 corresponds to Astra’s gain 6. When editing up to the intensity that proved effective on the original task, the local Fisher model’s accuracy did not hold. That is, task improvement does not corroborate the validity of the local approximation. Edits can improve tasks even outside the valid range of local approximations. Metrics describe neighborhood changes, not the full generative trajectory.
Moreover, what is measured here is the next-token distribution conditioned on fixed prefixes. In actual generation, if an intervention alters the next token, subsequent prefixes and Fisher matrices change as well. To discuss full sequences, sequence probability distributions and intervention paths must be defined. Results on fixed prefixes cannot simply be extrapolated to full generation. Our project’s theoretical notes also distinguish the two, leaving guarantees over finite-length generative trajectories as an unresolved extension.
Measurement Conditions for Local KL Experiment
KL was computed in FP32 on standard softmax distributions for fixed prefixes. Distribution truncation from top-k or top-p sampling during generation was not included. The base finite-difference step was 0.001, with derivative estimates checked at 0.003 and 0.01. Only the single saved edit direction was examined.
The baseline using activation norms utilizes activations obtained during post-intervention execution. Hence, it is not a prediction usable from unedited states alone. Furthermore, this experiment does not demonstrate that a Fisher estimate can be transferred to predict other directions or other prefixes.
5. How Far Can a Single Matrix Move Inputs—And What Changes with Different Metrics?

Reachability · Rigorous Mathematical Model Attempting to satisfy demands across 8 inputs with a single matrix. In this mathematical example, residuals remain even at the best fit because a shared matrix cannot move each input independently.
Setup, Scope, and Source Files
Rigorous 8-input example with . Blue denotes demanded changes, purple denotes changes produced by a single shared matrix. The animation gradually varies that matrix from zero to . Golden segments connect realized endpoints to demanded endpoints within the same plot. A common display scale is used for all displacements. Even at the solution, the residual norm equals 65.6% of the demanded field’s norm. This is an analytical interpolation, not Astra’s search or a field measured in Qwen.
Original files from the source blog: Original Image · GIF · MP4
This figure overlays demanded changes and achievable changes on a single coordinate plot. For each of the 8 inputs, blue arrows show demanded changes, while purple arrows show changes produced by the shared matrix. Because all purple arrows are determined by the same matrix, they cannot be adjusted independently one by one. Golden segments connect the two endpoints, showing the unmet portion of demands that the matrix cannot satisfy.
8-Input Simple Example and Least-Squares Diagnostics
Arrange 8 inputs as columns of matrix and desired activation displacements as columns of . A single 2×2 matrix update must approximate all of these simultaneously. Measuring discrepancy via Euclidean metric , the least-squares solution is
In the animation, the update matrix is varied smoothly from zero to this solution. Consequently, the 8 realized arrows move together. Golden segments connect the tip of each arrow to its demanded destination. Even at the optimal solution, the Frobenius norm of the residual equals 65.6% of the demanded displacement field’s norm.
This value was computed for an illustrative constructed example, not measured in Qwen. The motion is also an interpolation toward a predetermined solution, not a trace of Astra’s search or an optimization algorithm.
Inputs, demanded displacements, solutions, and residuals are recorded in model files. The quantity checking whether normal equations are satisfied, , was approximately . Although residuals remain, they are orthogonal to the reachable displacement field. What solution, then, is “closest” if we change our distance metric away from Euclidean?
Which Change Is “Closest”?

Metric-Based Projection · Rigorous Mathematical Model Moving weights along the natural gradient, or projecting the activation-side natural gradient onto reachable changes. Under a complete intervention interface and pulled-back Fisher metric, both yield locally identical results.
Setup, Scope, and Source Files
Rigorous tangent space model: , , permitted changes are . Ellipses are level contours of ; the point tangent to the blue line is the Fisher projection , distinct from the Euclidean projection . Setting , the weight-side metric is . For a linear objective whose derivative is Fv, mapping the weight-side natural gradient through J matches this projection. Synchronizing left and right arrows demonstrates that identity. This is not a Qwen measurement or optimization trace.
Original files from the source blog: Original Image · GIF · MP4
In the right plot, we draw the desired activation change alongside the line of changes achievable via editable weights. Ellipses are iso-cost contours measuring deviation from the desired change. The point where the shrinking ellipse contacts the line represents the closest reachable change under the Fisher metric. The hollow gray point marks the distinct Euclidean projection. On the left, a step along the weight-space natural gradient maps to the exact same reachable change. Two synchronized arrows demonstrate arriving at the same outcome via different paths.
In implementation, the question is how far a single shared matrix can satisfy demands, and which change to pick among them. The figure illustrates the reachable scope. When conditions are met, this choice is linked by the following equation:
What we address here is the adjoint and metric relationship connecting weight edits to activation fields. Let be the map from editable weight coordinates to the state at the intervention site, with its differential . In this state, activations across multiple inputs can be stacked together. However, one must choose a state that passes along the impact of weight edits without omission, while keeping subsequent computation fixed. This is the “complete intervention interface” condition.
Pulling back the activation space metric to weight space via yields .
The natural gradient seeks directions that alter an objective while measuring distances using the chosen metric. In this article, the metric used is subscripted below the gradient symbol. The following equation expresses the equivalence between two procedures for selecting reachable changes:
Using identifiable coordinates or quotienting out null directions as described below, the following identity holds for any smooth objective :
The left-hand side represents the activation change resulting from shifting weights along the natural gradient. The right-hand side represents the activation-space natural gradient projected onto the subspace reachable via weight editing. This projection also uses the Fisher metric. Locally, computing the natural gradient in weight space and mapping it to activations yields the exact same change as computing the natural gradient in activation space and projecting it onto the reachable subspace.
Definition of Metric Gradient and Metrics on Shared Inputs
To make explicit which metric defines a gradient, we use the metric gradient operator . This operator converts the differential of a scalar objective into a direction vector using metric . For positive-definite and any tangent vector , it satisfies:
denotes the first-order change in when moving along . is a column vector of standard coordinate derivatives. If , it becomes the standard Euclidean gradient; using the Fisher metric, it becomes the natural gradient. The subscript specifies the metric used, not the direction of differentiation. Unlike covariant derivatives of vector fields, this operation raises derivative indices via the inverse metric.
For a single write matrix, , and averaging the pulled-back metric over inputs yields . All inputs in this average share the same parameter update. Given weight sharing, steering for one input cannot be chosen independently of its impact on others.
Projection Identity: Proof and Conditions
In index notation of differential geometry,
where denotes the inverse metric, summing over repeated indices. The covariant derivative of a scalar is , which becomes the gradient vector upon raising indices. Here, subscript labels the metric, whereas index in denotes coordinate direction.
Let be positive definite on identifiable activation coordinates. Let be the coordinate representation of differential . If is singular, gradients are interpreted on the quotient space modulo . Using Moore–Penrose representatives with minimal Euclidean norm in chosen weight coordinates yields:
Meanwhile, the -orthogonal projection is . Applying this to yields the identical expression.
If the Fisher metric itself is singular, one similarly reasons on identifiable quotient spaces. Here, the objective’s differential must vanish along null directions. Merely replacing it with a pseudo-inverse in Euclidean coordinates does not yield a coordinate-independent theorem.
Maps downstream of the intervention site must remain fixed. For multi-site interventions, one must select a complete interface or specify an intervention graph incorporating cross-site dependencies. This identity establishes local equivalence; it does not imply that optimization trajectories over finite step sizes will match.
Amari Duality and Distinguishing Vectors from Covectors
Another aspect is Amari’s duality between natural and expectation coordinates, which arises when expressing outputs via exponential families. Letting be softmax natural coordinates and be expected sufficient statistics:
Straight-line motion in expectation coordinates generally appears as curved motion in natural coordinates, and vice versa. This forms the mathematical foundation of “dual steering” in output representations. However, this does not mean weights themselves are expectation coordinates, nor that all hidden layers are dually flat. Nonlinearities, rank deficiencies, and unidentifiable directions in intermediate computations must each have their conditions verified.
These relations allow Qwen’s edit to be framed mathematically. They explain how rank-1 writes modulate strength by input, and how output KL can potentially be reduced accounting for the Fisher metric while matching local target effects. Conversely, they do not explain how Astra selected contrastive examples, why layers 15 and 19 were promising, or why it tried gain 6. What logs reveal is a search process adapting attempts based on observation, not the fact of having computed and chosen via Fisher.
Here, vectors and covectors must not be conflated. Activation differences between two texts are displacement vectors indicating which way representations shifted. In contrast, differentials of objectives regarding model behavior are covectors measuring how much objectives change under infinitesimal displacements. Their roles differ. To employ correspondences via Fisher metrics, the metric and local output model must be defined.
Therefore, mechanically replacing a contrastive vector with does not yield natural-gradient-based steering. Doing so confuses mathematically distinct objects. In proposed E5, objectives, cost measurement sites, damping, and effect-matching procedures are pre-registered. Candidate directions are considered under those conditions; it is not an assertion that any useful direction should simply be pre-conditioned by Fisher.
The phrase “compiling steering into weights” must also be understood under these same constraints. Compilation here refers to realizing activation changes for a given input set using editable matrices. It neither provides input-agnostic programs, nor implements arbitrary changes, nor preserves all other functions. Because a single matrix is shared, impacts across different contexts are coupled. Even successful edits are single selections drawn from a constrained family of functions, and their action must be understood as a program including its side effects.
When designing edits, one should first determine what demands can be met with permitted weights. Next, compare candidates within that scope, treating impacts on preserved outputs as costs. Metrics provide clues for selecting candidates, but whether they prove useful in actual generation must be verified separately.
Can the Same Effect Be Achieved at Lower Cost?

Effect-Matched Comparison · Rigorous Mathematical Model Matching first-order target effects while choosing the change with minimal quadratic cost. In this model, optimal candidates are derived from geometry, but this is not an experimental result showing that Qwen’s edit improved.
Setup, Scope, and Source Files
Rigorous quadratic model: , , . Ellipses are level contours of ; the golden line indicates candidates with constant first-order effect. The point tangent to the smallest ellipse is . The moving candidate reduces quadratic cost while preserving target effect, with both quantities shown synchronously by bars on the right. Computed candidates are plotted here, not measurements or search logs from Astra’s edit. The interpretation as KL is local.
Original files from the source blog: Original Image · GIF · MP4
Along the golden line in this figure, any chosen point yields the exact same target effect to first-order approximation. Ellipses are quadratic contours representing the cost of perturbing output distributions one wants to preserve. Moving toward the smallest ellipse tangent to the line lowers cost while matching the target effect. The blue point corresponds to that minimum-cost change. Bars on the right synchronously show cost decreasing while effect remains constant.
Assuming metric is positive definite, the non-zero objective differential is , and target effect is , this optimal displacement is given by:
The figure employs an explicitly defined 2D quadratic model. Points represent candidates with equal effect, not values measured from Astra’s edit. The animation is similarly an illustrative movement tracing candidates, not an optimization log.
For application to actual edits, one must estimate the metric, match target effects, and evaluate behavior on held-out data. Information geometry’s role is to suggest directions and comparative protocols to test. This explanation does not justify interpreting Astra’s historical search as having been a natural gradient method.
Minimum Cost Under Matched Effect
Minimize subject to . Stationary conditions yield , and substituting the constraint derives the solution above. Writing another point satisfying the same constraint as , since , we have:
While this holds exactly for quadratic forms, reading it as KL cost is a local approximation. The metric can be defined in activation coordinates or editable weight coordinates. Both are connected via pullback , though requiring the previously noted rank and null-direction conditions.
6. Why Does Weight Sharing Create Unreachable Steering?

Constraints of Shared Weights · Rigorous Mathematical Model Changing a single weight shifts two inputs in opposite directions; both cannot be moved in the positive direction. This rigorous counterexample is an unbiased linear model; things change if biases can also be edited.
Setup, Scope, and Source Files
A rigorous counterexample: at . A shared weight update produces ; hence for , direct intervention demand cannot be realized. An editable bias alters this conclusion.
Original files from the source blog: Original Image · GIF · MP4
Consider the simplest example: a single-weight model receiving inputs and . Changing the weight by yields activation shifts of and , respectively—always opposite in sign.
What if one wants to shift both by the same positive amount ? Direct activation intervention can add . In shared weight editing, however, one must satisfy and simultaneously, which is impossible for .
Even this minimal example reveals the constraints imposed by shared weights. Weight edits cannot specify steering independently per input, because altering a single parameter couples its action across multiple inputs. In general, let be the map from editable weight displacements to activation displacements under local linearization. The linearized model can only achieve displacements in . Letting be a positive-definite metric measuring resource cost on weights, the minimum cost to produce reachable displacement is:
If a demand lies outside , no constraint-satisfying edit exists, and the cost is . One must not simply evaluate the pseudo-inverse formula on the right-hand side and assign finite costs to unreachable demands. These reachability and cost assertions hold rigorously for linear interfaces. In nonlinear models, however, inability to satisfy linearized demands alone does not prove that finite edits are impossible. Dual variables can establish unreachability in linearized models, aiding practical engineering decisions—such as whether to add a bias, edit a different layer, relax constraints on preserved contexts, or terminate search.
Furthermore, Fisher metrics alone cannot select solutions with fewer edited sites. Different weight changes yielding identical local activation changes can incur identical output Fisher costs. Selecting 64 columns, two layers, or particular sparse masks requires separate resource constraints, architectural priors, or search heuristics. The mask Astra chose was observed as part of a successful program, not uniquely derived from metrics.
7. Where Does Amari Duality Appear?
Here, let us visually verify the other duality: the relationship between natural and expectation coordinates.
Consider a 3-class softmax, fixing the third logit to zero to remove redundancy. Taking the remaining two as natural coordinates , define:
Expectation coordinates represent probabilities directly, while natural coordinates represent log-odds . Changing coordinates does not alter the underlying distribution. Because the Hessian of is the Fisher matrix,
holds. Maintaining constant velocity in expectation coordinates generally requires varying velocity in natural coordinates. The animation depicts identical probability changes across both coordinate systems simultaneously.

Dual Coordinates · Rigorous Mathematical Model Straight lines in probability coordinates are generally curves in log-odds coordinates. Left and right represent identical distributional trajectories. This dual coordinate system of softmax is a distinct relation from weight-activation correspondences.
Setup, Scope, and Source Files
A rigorously defined 3-class softmax model, not Qwen’s landscape. Natural coordinates are log-odds ; expectation coordinates are probabilities on the simplex. The curve in natural coordinates and the line on the simplex correspond synchronously to bar charts showing identical probabilities.
Original files from the source blog: Original Image · GIF · MP4
This plot is an analytical calculation of coordinate transformations, not a landscape measured inside Qwen. One side is log-odds space; the other is the probability simplex. Synchronizing the bar charts reveals that two visibly different paths describe the exact same probabilities. In the interior of the simplex, the dual potential is negative entropy: .
This duality between natural and expectation coordinates must be distinguished from the projection identity between weights and activations. Weights and hidden-layer activations are not simply Legendre dual coordinates of one another. One cannot assume arbitrary intermediate layers constitute minimal exponential families or dually flat spaces.
While output metrics can be pulled back to hidden layers, that alone does not imply the full hidden layer inherits a globally dually flat structure.
Even so, once an objective on model behavior is defined, geometry can derive concrete candidate edits. Suppose covector measures targeted first-order change, and measures cost across contexts where productive outputs should be preserved. A damped candidate direction is then proportional to . Whether this direction is useful must be tested under matched target effects. At present, this is a research proposal, not an empirical method proven to outperform Astra’s edit.
8. Where Can We Go from These Results?
Astra found a small program operating inside Qwen. The edit reads current activations and alters how they are written to the residual stream. From public logs, one can trace how it used recurring failures as clues, combining activation contrasts, interventions, and evaluations across varying gains to achieve gains on held-out problems.
The contribution of this paper lies in reconstructing this program and linking it to tools for conceiving subsequent edits. Exact linear identities connect weight alterations to activation interventions. Constraints of shared weights indicate whether corrections across diverse inputs can be realized simultaneously. Fisher serves as a yardstick measuring local impacts on output distributions. Combined, one can test corrections, check whether they can be stored in permitted weights, and compare impacts on behaviors to be preserved.
In our E1, we reconstructed the edit as an additive intervention and verified numerical agreement in FP32. In E3, Fisher geometry predicted small KL changes well on fixed prefixes, but broke down at the original gain-6 strength. This delineates the operational range of the approximation, leaving intact the original author’s reported task gains from the edit. In E2, we examined responses to synthetic sequences. Because these were not repetitions arising from natural generation and effects were not matched against controls, whether switches are required during generation remains undetermined.
For subsequent experiments, we propose the following procedure, combining checks performed here with comparisons to be executed next:
| Decision | Action | Verification Target |
|---|---|---|
| Identify common failure modes | Before editing weights, measure answer completion, repetition, truncation, and internal representational differences. | Can shared failure modes become targets for measurement and intervention? |
| Test activation interventions | Apply candidate corrections at MLP down-projections and inspect state-dependent response variation. | Can proposed rank-1 rules be numerically reproduced? |
| Compare with controls | Match target effects across constant, shuffled, and random controls before comparing impacts on other outputs. | Do expected advantages persist when evaluated under matched efficacy? |
| Select intervention strength | Measure across a sweep from weak interventions up to the original edit strength. | Over what range can local metrics be reliably used for prediction? |
| Examine shared-weight constraints | Solve for edits satisfying multi-input demands simultaneously; inspect residuals and reachability. | Can a single shared matrix express desired steering? |
| Verify generative impact | Sample generations on held-out problems with matched sample counts; evaluate behavior and accuracy. | Do findings from fixed prefixes and teacher forcing carry over to generation? |
Turning a One-Off Correction into a Reusable Engineering Method
This algebra holds generally wherever editable linear maps write into model activations. Even if effective directions, gates, and intervention sites differ, the same design questions can be posed across models: identify effective steering rules, determine the portion reachable via shared weights, and test stored rules on novel inputs. Independent WSP replication studies also report improvements across multiple tasks. Conversely, effects on other tasks varied, and some searches left the base model unchanged. The next objective is a methodology that reliably discovers effective edits.
This question connects directly to recent work on controlling model behavior. Anthropic’s Assistant Axis constrains activations to stabilize behavior. Goodfire’s manifold steering examines interventions aligned with representation geometry. What this paper adds is asking which of these effective interventions can be realized as shared-weight edits. The projection identity frames this question rigorously in local terms. If a desired correction lies outside the reachable subspace, it provides criteria for deciding whether to change the editing format or continue using activation interventions.
To verify the practical value of geometry, one should pre-register comparisons against simpler edit selection methods, holding behavioral targets fixed. Aligning targeted improvements and total budgets (including metric estimation costs), compare behaviors on held-out tasks. Complement synthetic controls with naturally generated trajectories, separating search and evaluation data. Maintaining intervention magnitudes while breaking only the hypothesized mechanism creates controls that clarify why corrections work.
What we want to know is whether metrics can predict edits that minimize disruption to desired behaviors before committing compute to large-scale generation. This experiment will test the utility of geometry as an edit-selection tool. The original author’s logs already provide an empirical precedent of an LLM discovering short rules through observation, internal measurement, and iterative validation.
What If a Single Improvement Bred the Next?
The intriguing possibility is that editing could enhance a model’s ability to discover subsequent improvements. Fixing a model so it reliably exercises latent capabilities might assist in proposing and evaluating better edits. In this case study, the editor was Astra and the target was Qwen. Whether edit-generation capabilities themselves improve, and whether that improvement persists across iterations, is what we want to test experimentally next.
First, fix the target model to an identical checkpoint and compare pre-edit and post-edit models acting as editors. Align tools, prompts, feedback, and compute budgets. Next, compare conditions where the editor updates itself against conditions with a fixed editor, matching accumulated information and total budgets. Under recursive improvement, the adopted post-edit model handles the next stage of editing. Activations and local metrics are remeasured after each adopted edit.
Separate evaluations that determine edit adoption from final evaluations held out until the end. Count failed searches alongside successes, evaluating each stage independently. This determines whether improving the editor yields better subsequent edits and whether the effect persists. The Astra–Qwen run is an initial data point, not proof of this closed loop.
This inquiry links to automated AI research. OpenAI’s report on research acceleration and METR’s Anthropic evaluation investigate how AI contributes to downstream model development. WSP provides an operation whose mechanics can be scrutinized: a model proposes weight updates, examines what they do, and adopts them via independent evals. Our proposal is to use geometry to design and verify such operations, and test whether models can become better at executing the procedure itself.
Scope of Analysis, Open Questions, and Relation to Prior Work
The “single failure in a single model” examined closely here refers to the Astra–Qwen case study analyzed in this paper. It does not denote the full experimental scope of the original WSP research. Nor can WSP scaling in general be judged from this case alone. There is no evidence Astra used Fisher geometry. Nor has it been shown that gated rank-1 rules are generally easy to find. Whether it added new capabilities or removed obstacles preventing latent capability expression remains unsettled.
Information geometry provides tools for structuring experiments and identifying unreachable demands. It is not, however, a substitute for failure diagnosis or behavioral validation. The general validity of linear identities allows intervention sites in compliant models to be treated under a unified mathematics. Whether effective edits can be found stably across different model families, and whether improvements compound across stages, remain empirical questions.
Prior works underlying these relations include Amari’s natural gradient, Steer2Edit, and FishBack. This paper clarifies what can and cannot be explained in a single WSP case study, without claiming novelty for duality itself. The contribution lies in bridging the published program, numerical reconstruction, local geometry, and verification protocols for future edits.
Astra’s edit provided an effective rule whose mechanics can be investigated, executed, and verified. Developing that understanding into a reliable methodology across models, and testing whether a single improvement enhances the capacity to find the next, is a concrete research agenda for advancing from model control to recursive self-improvement.
Appendix: How Does This Connect to LoRA, Model Construction, and Model Map?
What the Qwen case study yielded was an editing rule whose internal actions can be scrutinized. To push this analysis further, consider three points of contact: Can LoRA-learned updates be read similarly? What is required to read network function from weights or construct networks? And can edit impacts be measured via sequence probabilities? Each explains a distinct scope. While algebra describing execution carries over directly, discovering edits and synthesizing computational structure require additional explanation.
A. Does LoRA Also Store Steering Rules in Weights?
It can be interpreted that way. Letting be activations entering a linear layer, a rank- LoRA update can be written as:
Matrix reads a small set of values from current activations, and writes corresponding corrections. The updated weights store a rule whose operation is governed by incoming activations. The rank-1 edit in this text represents a special case of this formulation. This is the forward pass computation documented in §4.1 of the original LoRA paper, not an identity newly discovered here.
The difference lies in how rules are found. Standard LoRA trains both matrices via gradient-based optimization. In this Qwen case study, Astra constructed a compact update rule through failure observation, internal measurement, and feedback. That edit can be represented as low-rank in idealized form, excluding rounding. However, WSP also includes operations not restricted to low rank. Furthermore, not using gradients is distinct from not using data. As described in the original experimental setup, practice problems and evaluation tools were provided during the Qwen edit.
This perspective enables concrete comparisons: inspect both LoRA-learned updates and Astra-discovered edits as rules acting on activations. One can compare which inputs trigger corrections, how directions shift, and what impacts occur on preserved outputs. Whether geometry can help select superior rules remains a question for future experiments.
Exact Execution Correspondence, Multi-Layer Edits, and Finite Precision
The matrix dimensions are , , with scaling factor . For linear projections receiving identical activations, the identity above holds exactly in real arithmetic without requiring infinitesimal updates. When editing multiple layers, downstream hooks must read activations influenced by preceding interventions. Fixed vectors computed from unedited runs generally fail to reproduce the identical computation.
The published Qwen operation can be idealized as a column-selected rank-1 form at each edited layer. However, storage rounding can introduce non-rank-1 residuals. Reproducing the saved model requires using the actual saved deltas. Even so, weight-merged and hooked executions may not match bit-for-bit. Exact execution correspondence and local Fisher approximations for small perturbations are distinct claims; only the latter requires a local neighborhood.
B. Can This Explain Reading Function from Weights and Constructing Networks?
Using information geometry requires first defining how model outputs are treated as probability distributions, and over which inputs or states they are evaluated. Only then can correspondences between weights and behavior be examined. While useful for verifying what a constructed model does, how an editor discovers that structure remains a separate question.
In model classification from weights, the goal is to predict network properties, such as training tasks. Classifiers might read functional structure or exploit artifacts of initialization and training dynamics. Testing whether classification persists when permuting neurons while preserving outputs provides one verification method. Checking whether decisions hold under coordinate permutations helps disentangle explanations, though this check alone cannot resolve everything.
Regarding construction from scratch, in the original MinAtar experiments, Astra wrote a small policy network given game rules, source code, and network I/O specifications. This is a concrete instance of implementing procedures as weights. Defining output distributions allows changes around the resulting policy to be measured via Fisher geometry. Conversely, explaining how that procedure was assembled requires architectural knowledge and program synthesis perspectives. The path forward is linking construction to behavioral measurement: generate candidates, inspect internal computation, and evaluate what subsequent edits alter.
What Must Be Specified as a Probability Distribution
Deterministically selecting a single action does not define a smooth probabilistic model. If action scores are converted to probabilities via softmax, temperatures and state distributions used for evaluation must be made explicit. Both affect the metric. Similarly, a subset of intermediate layer weights does not necessarily define the full network’s output distribution. Moreover, knowing distributional distances does not suffice to recover training task labels. These require additional modeling and inference, and are not automatically obtained from metric pullback identities.
C. Can Model Map Track Model Shifts from Edits?
Model Map evaluates how plausible models find a shared set of texts, constructing coordinates from those log-likelihoods. The paper already derives local relations between these coordinates, KL divergence, and Fisher geometry. This article adopts those relations as a starting point, without claiming novelty for the relation itself. See §2.4 and Appendix D of Model Map.
Let be the double-centered log-likelihood vector of model evaluated across texts. Assuming models are close to a common reference distribution and the corpus is drawn from that distribution, the paper derives the approximation:
From this, the connection to small weight edits emerges. If the approximation conditions hold and the target output distribution is maintained consistently:
Fisher predicts small shifts from the weight side, while Model Map measures them via log-likelihood changes. The activation analysis in the main text explains the intervention in between. Because structurally distinct models can be compared via probabilities assigned to shared texts, there is no need to subtract weight vectors of differing dimensions or semantics directly.
A natural next experiment would sweep WSP and LoRA edit strengths, measuring shifts on identical log-likelihood coordinates to compare against Fisher predictions. Performance on held-out tasks and preserved behaviors must be evaluated separately; distance measures magnitude of change, not quality of improvement. Although §6.3 of the Model Map paper investigates weight interpolation, the experiment proposed here targets individual editing rules and their local effects.
Derivations, Sampling Conditions, and Connection to Activation Geometry
Let be the log-likelihood vector across a fixed corpus, and let be its Jacobian with respect to editable weights. Let denote centering across texts. The baseline subtracted for cross-model centering is held fixed when differentiating. Taking differences between two models cancels this common baseline. Then:
Squaring the norm yields:
This is the sample covariance of scores. When sampling independently from , it estimates score covariance under that distribution. Under standard regularity conditions, if , it converges to the model’s Fisher matrix. This convergence is not guaranteed for arbitrary fixed corpora. Model Map approximations assume models are close to the distribution generating the corpus. The connection here rests on Taylor expansions, not new experimental data.
Connecting to activations, let denote evaluation contexts. Assume the effect of permitted edits passes entirely through the chosen activation interface, with downstream computation fixed. Letting , the Fisher metric of conditional output distributions pulls back as:
where is the differential displacement. Taking expectations is crucial because a single shared edit acts across multiple contexts. When treating full sequence distributions, corresponding conditional terms must be summed over token positions and averaged over history distributions generated by base model . When using arbitrary fixed prefixes, it becomes a metric weighted by those contexts.
Our E3 measures next-token distributions conditioned on fixed prefixes. In contrast, the standard Model Map uses full-sequence likelihoods. Unless probability targets and sampling conditions are aligned, numerical values between the two cannot be equated. Furthermore, distances above are measured in original high-dimensional coordinates; 2D PCA projections can discard critical directions.
These connections make subsequent experiments concrete: identify corrections, examine executed rules, and measure behavioral shifts. They provide a footing for comparing edit-generation methodologies without assuming identical search procedures or coordinates work equally across all models.
References
Related primary sources and project documentation: Astra Final Report, English Version of this Article, Activation Information Geometry Notes, E5 v2 Plan.
The allegorical painting in this article was generated with Figma AI and composed into editable figures in Figma Design. Inspired by BetaTomorrow / deep Manifold’s watercolor scientific depictions, translucent layering compositions, and explanatory annotations. Figures are original creations of this article and do not imply creation or endorsement by that account.
Citation Information (BibTeX)
@article{hayashi2026switch, title={A Small Switch in a Vast Machine}, author={Hayashi, Yusuke}, year={2026}, note={Engineering research feature}}
This article is a reprint of the Japanese version published on the research blog on November 8, 2026 (updated November 10). Original: Japanese Version · English Version · Source Figure Files (Figma). On the original page, you can view animated figures, enlarge diagrams, and interact with sliders to verify behavior.
Footnotes
-
Original Weight-Space Programming Report and README. The reported figures of 7.9%, 48.1%, 93.0%, and 33.1% are also recorded in
blog/data/measurements.json. ↩ ↩2 -
Astra’s Final Report. Includes early diagnostics and validation on held-out practice problems. ↩
-
Summary of Completed Pilot Experiments. Generated sample counts differ across conditions. ↩
@hayashiyus