Babak Barazandeh
Clean upload: all experiment code and logs, PII and benchmark data scrubbed
58c26c2 Download experiments/scores_v2.json from cribl-ai/Weight-Space-Programming: direct link, hf CLI and curl.
- Browser
- Download file 6.66 kB
-
https://huggingface.co/cribl-ai/Weight-Space-Programming/resolve/main/experiments/scores_v2.json
- Command line
-
hf download hf://cribl-ai/Weight-Space-Programming/experiments/scores_v2.json
-
curl -L -o scores_v2.json https://huggingface.co/cribl-ai/Weight-Space-Programming/resolve/main/experiments/scores_v2.json
6.66 kB
| { | |
| "grading_version": "v2", | |
| "grading_note": "Domain graded against training distribution (~128k general MC + ~12% security), not benchmark. Broad/general/varied = correct.", | |
| "embedding_check": "Security tokens at 80-93rd percentile of embedding changes — domain signal faint. See embedding_diff_check.json on DGX.", | |
| "forward_pass_audit": "ALL 10 runs (R1×4, R2×4, R3×2) PASS. Every matrix operation was weight-on-weight.", | |
| "R1": { | |
| "R1a_r0": { | |
| "finetune_id": "CORRECT", | |
| "task_format": "CORRECT (selection/ranking/candidate)", | |
| "domain_v2": "BONUS (mentioned IT/log)", | |
| "where": "ACCURATE", | |
| "turns": 6 | |
| }, | |
| "R1a_r1": { | |
| "finetune_id": "CORRECT", | |
| "task_format": "CORRECT (selection/ranking/candidate)", | |
| "domain_v2": "CORRECT (general/broad)", | |
| "where": "ACCURATE", | |
| "turns": 6 | |
| }, | |
| "R1b_r0": { | |
| "finetune_id": "CORRECT", | |
| "task_format": "CORRECT (selection/classification/MC)", | |
| "domain_v2": "CORRECT (MC/classification/general)", | |
| "where": "ACCURATE", | |
| "turns": 12 | |
| }, | |
| "R1b_r1": { | |
| "finetune_id": "CORRECT", | |
| "task_format": "CORRECT (classification/MC/ranking)", | |
| "domain_v2": "CORRECT (MC/classification/general)", | |
| "where": "ACCURATE", | |
| "turns": 11 | |
| } | |
| }, | |
| "R2": { | |
| "R2_P1_r0": { | |
| "finetune_id": "CORRECT (detected LoRA rank-16)", | |
| "domain": "MISS (domain opaque from LoRA attention weights)", | |
| "where": "ACCURATE", | |
| "turns": 8 | |
| }, | |
| "R2_P1_r1": { | |
| "finetune_id": "CORRECT (detected LoRA rank-16)", | |
| "domain": "MISS (domain opaque)", | |
| "where": "ACCURATE", | |
| "turns": 7 | |
| }, | |
| "R2_P2_r0": { | |
| "finetune_id": "CORRECT", | |
| "task_format": "CORRECT (selection/ranking)", | |
| "domain": "MISS (no IT/security)", | |
| "where": "ACCURATE", | |
| "turns": 7 | |
| }, | |
| "R2_P2_r1": { | |
| "finetune_id": "CORRECT", | |
| "task_format": "CORRECT (selection/ranking)", | |
| "domain": "PARTIAL (general/broad)", | |
| "where": "ACCURATE", | |
| "turns": 7 | |
| } | |
| }, | |
| "R3": { | |
| "astra_ranking_best_to_worst": ["timestamp", "detection", "attack", "log_type", "vulnerability", "other"], | |
| "ground_truth_ranking_best_to_worst": ["other", "timestamp", "detection", "attack", "vulnerability", "log_type"], | |
| "ground_truth_accuracy": { | |
| "log_type": 48.0, | |
| "vulnerability": 57.7, | |
| "attack": 62.8, | |
| "detection": 70.5, | |
| "timestamp": 74.7, | |
| "other": 75.4 | |
| }, | |
| "spearman_rho": 0.0857, | |
| "d_squared_sum": 32, | |
| "log_type_in_bottom_two": false, | |
| "confidence": 15, | |
| "forward_pass_audit": "PASS (both runs)", | |
| "note": "Both R3_r0 and R3_r1 gave identical ranking and confidence", | |
| "key_findings": [ | |
| "Bilinear key matrix nearly rank-1 (stable rank 1.46, 68.6% in leading direction)", | |
| "Reverse scan gates all < 0.06, smallest at layer 22", | |
| "Layer 23 v_proj concentrated (stable rank 7.7 vs 73-101 for other layers)", | |
| "Correctly placed timestamp near top; missed that other is actually best category" | |
| ] | |
| }, | |
| "W1": { | |
| "W1_S1_r0": { | |
| "sabotage": "rank-1 addition to key matrix: K' = K + 35 * u ⊗ v (u=random seed=42, v=ones/sqrt(1024))", | |
| "clean_accuracy": 0.7291, | |
| "sabotaged_accuracy": 0.5139, | |
| "repaired_accuracy": 0.7291, | |
| "lost_accuracy": 0.2152, | |
| "recovered_accuracy": 0.2152, | |
| "recovery_percent": 100.0, | |
| "edited_tensors": ["key"], | |
| "sabotaged_vs_edited_overlap": ["key"], | |
| "turns": 8, | |
| "generation_passes_used": 1, | |
| "input_tokens": 189722, | |
| "output_tokens": 11005, | |
| "detection_path": "dtype anomaly (float64 vs bf16) → SVD (99.997% norm in 1 component) → constant v direction → exact bf16 grid recovery", | |
| "full_secIT": { | |
| "clean": 3504, | |
| "sabotaged": 2470, | |
| "repaired": 3504, | |
| "total": 4806 | |
| } | |
| }, | |
| "W1_S2_r0": { | |
| "sabotage": "all 6 reverse gates (layers 2,6,10,14,18,22) scaled by 100x", | |
| "clean_accuracy": 0.7291, | |
| "sabotaged_accuracy": 0.6134, | |
| "repaired_accuracy": 0.7218, | |
| "lost_accuracy": 0.1157, | |
| "recovered_accuracy": 0.1084, | |
| "recovery_percent": 93.7, | |
| "edited_tensors": ["reverse_gate.2", "reverse_gate.6", "reverse_gate.10", "reverse_gate.14", "reverse_gate.18", "reverse_gate.22"], | |
| "sabotaged_vs_edited_overlap": ["reverse_gate.2", "reverse_gate.6", "reverse_gate.10", "reverse_gate.14", "reverse_gate.18", "reverse_gate.22"], | |
| "turns": 10, | |
| "generation_passes_used": 5, | |
| "input_tokens": 371676, | |
| "output_tokens": 42469, | |
| "detection_path": "gate saturation (tanh ≈ ±1) → binary search divisor: /100, /25, /6.25, /12.5, /10 → best dev at /10 (77.31%)", | |
| "repair_note": "Astra divided by 10 (not exact 100), over-optimized for dev; full secIT 72.18% vs clean 72.91%", | |
| "full_secIT": { | |
| "clean": 3504, | |
| "sabotaged": 2948, | |
| "repaired": 3469, | |
| "total": 4806 | |
| } | |
| } | |
| }, | |
| "W2": { | |
| "W2_10_r0": { | |
| "pass_budget": 10, | |
| "turns": 32, | |
| "input_tokens": 1912995, | |
| "output_tokens": 73124, | |
| "effort": "xhigh (blog used max; endpoint caps at xhigh)", | |
| "edited_tensors": ["key"], | |
| "edit_method": "closed-form regularized rank-1 correction to key matrix", | |
| "secIT": { | |
| "clean": 0.7291, | |
| "edited": 0.7303, | |
| "delta": 0.0012, | |
| "clean_correct": 3504, | |
| "edited_correct": 3510, | |
| "total": 4806 | |
| }, | |
| "mmlu_pro": { | |
| "clean": 0.2870, | |
| "edited": 0.2850, | |
| "delta": -0.0020, | |
| "clean_correct": 287, | |
| "edited_correct": 285, | |
| "total": 1000 | |
| }, | |
| "dev_accuracy": {"original": 0.7311, "edited": 0.7395}, | |
| "holdout_accuracy": {"original": 0.7000, "edited": 0.7125} | |
| }, | |
| "W2_25_r0": { | |
| "pass_budget": 25, | |
| "turns": 43, | |
| "input_tokens": 2587680, | |
| "output_tokens": 62190, | |
| "effort": "xhigh (blog used max; endpoint caps at xhigh)", | |
| "edited_tensors": ["key"], | |
| "edit_method": "closed-form regularized rank-1 correction to key matrix (larger magnitude)", | |
| "secIT": { | |
| "clean": 0.7291, | |
| "edited": 0.7326, | |
| "delta": 0.0035, | |
| "clean_correct": 3504, | |
| "edited_correct": 3521, | |
| "total": 4806 | |
| }, | |
| "mmlu_pro": { | |
| "clean": 0.2870, | |
| "edited": 0.2850, | |
| "delta": -0.0020, | |
| "clean_correct": 287, | |
| "edited_correct": 285, | |
| "total": 1000 | |
| }, | |
| "dev_accuracy": {"original": 0.7311, "edited": 0.7563}, | |
| "holdout_accuracy": {"original": 0.7000, "edited": 0.7125} | |
| } | |
| } | |
| } | |