Repository navigation
Repair Stage B: the anchored residual evaluator fails at the operator level - #58
Conversation
…tor level On 80 held-out DFlash blocks (block 16), fixed PCA bases leave a median 51-90% of the operator-weighted change uncaptured at ranks 16-512, the repaired argmax matches the exact one at 35-44% of changed positions, and four repair sweeps add at most 0.1 accepted tokens while each exact Jacobi sweep adds about one. The evaluator reaches at most 0.28 of DFlash's tokens per unit cost.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Verdict: REQUEST CHANGES Reviewed head e7a7dff, one commit on main at 9932235, evidence files only. Everything reproduces exactly from the raw output, and the verdict follows from it. One sentence about the pre-registered controls is missing. Checked and correct
BlockingB1. Say which pre-registered Stage B controls were run (
Suggestions (not blocking)
Codex's review of e7a7dff is still running; I'll check its comments before approving. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7a7dffaa3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - (1) Operator accuracy: on held-out exact changes the median relative error | ||
| ||W (I - U U^T) dx|| / ||W dx|| over operator inputs is 0.76-0.90 at rank 16, 0.64-0.81 at | ||
| rank 128 and 0.51-0.73 at rank 512 (by operator class); on the development blocks themselves |
There was a problem hiding this comment.
Include every projection in the operator-error metric
For the multi-projection groups named here, the measurement that populated this range evaluates only ctl.groups[key][0].weight; it therefore covers q/qkv but omits the other attention/GDN projections, and covers gate_proj but omits up_proj. Because this is a W-weighted residual, projections sharing the same input and basis can have different relative errors, so these ranges do not establish the operator-accuracy claim for every repaired operator. Record errors for each module or explicitly scope the conclusion to the sampled projections.
Useful? React with 👍 / 👎.
| drafts after 0 sweeps and 4.33-4.44 after 4 sweeps at every rank, while exact Jacobi from the | ||
| same anchor accepts 2.98 (y0), 4.33, 5.35, 6.38, 7.34 and 8.30 after 0-5 exact passes: about one | ||
| token per exact sweep, which also bounds any faithful cheap evaluator. |
There was a problem hiding this comment.
Stop treating exact Jacobi progress as an upper bound
Exact Jacobi is one candidate-generation trajectory, not an optimization over audited candidates, so its accepted length cannot bound an approximate evaluator: if an approximation chooses a different token, that error can coincidentally produce a longer correct prefix when audited. The new JSON likewise labels these rows exact_jacobi_ceiling, but the measurements only show the progress of exact Jacobi itself; use them as a reference rather than support for rejecting every faithful cheap evaluator.
Useful? React with 👍 / 👎.
- README: quote the pre-registered Stage B criteria, say the compact-drafter control and novelty ablation were not run and why (0.11 drafts gained over no repair), say which positions have R_i < 1 (the same 43 high-margin positions at every rank), and that the exact-Jacobi line charges sweeps only their bytes. - Stage A: the ceiling's audit includes the per-position state writes; an audit 2.33 ms cheaper (5.2% of V(256)) would reach the target, so P3's Stage A verdict holds for SGLang's current verifier only (stage_a.py reports audit_saving_needed_for_target_us). Stage B refutes P3 independently. - serve_probe.py: use bench.hostload, which replaced bench.server's sampler. - runs/decomposition.sh: time the Triton GDN verify kernel and give the DFlash baseline the same verifier.
|
Verdict: REQUEST CHANGES Re-reviewed head c8e91f5 (one commit on e7a7dff). B1 and both suggestions are addressed, and the new Stage A qualification is correct. Codex's two P2 comments on e7a7dff arrived after my first review; one is unaddressed and the other needs one word changed. Earlier items
Stage A qualification (new in this commit, checked)
BlockingC1. Codex P2: the operator-error ranges cover only the first projection of each group (
C2. Codex P2: "perfect" should be "faithful" (README, the exact-Jacobi gate line).
|
… Jacobi as the faithful-evaluator reference
|
Verdict: APPROVE Re-reviewed head 29f0d4f (one commit on c8e91f5). Both remaining Codex items are fixed.
|
Appendix F: integrate repair Stage B (#58), P3 refuted at the operator level
P3 Stage B: the decision-level test of target-anchored residual decoding on real DFlash blocks, following Sam's critique (two cascading replays against the original anchor, certificate ratios, hazards, free-running repair audited exactly, and the economic gate against DFlash). The code is from #56 (
experiments/repair/residual_eval.py,summarize_residual.py,p3_gate.py); this PR adds the measured result and its README section.Result: claim (1) fails first, and (2) and (3) fail with it
Setup: the Hugging Face Qwen3.5-4B target (BF16, pinned revision; its argmax agrees with the engine's verify argmax on 99.1% of positions) run block by block from an exact prefix cache. Every linear operator, including the tied head, is repaired as z-bar + (W U) U^T (x - x-bar) against the anchor pass over the DFlash draft, with fixed principal-component bases per operator input fitted on 120 development blocks; nonlinearities, the causal convolution, the GDN recurrence from the exact state and attention over the exact prefix run exactly. 80 held-out real DFlash-16 blocks with a rejection, split from the development blocks by request.
With Stage A (#56: the two-pass design's ceiling is 4.78x end to end against a 5x target), P3 is refuted on both stages and its Phase 2 prototype is not worth building.
Files
evidence/repair/residual_eval_b16.json,residual_eval_b16.agree_by_distance.csv,p3_gate_b16.jsonevidence/repair/README.md: the Stage B section with the commands.Raw output (per-block records and the development diagnostics) stays in
~/vp-data/repair/residual/b16.