keepsloading commited on
Commit
d4bbfeb
·
verified ·
1 Parent(s): 1798e7d

Update logbook: Reproduction: Learning When to Attend: Conditional Memory Access for Long-Context LLMs

Browse files
logbook.json CHANGED
@@ -10,7 +10,7 @@
10
  "icml2026-repro",
11
  "paper-UcGwFXWnbn"
12
  ],
13
- "updated_at": "2026-07-19T07:52:35+00:00",
14
  "root": {
15
  "slug": "index",
16
  "title": "Reproduction: Learning When to Attend: Conditional Memory Access for Long-Context LLMs",
@@ -18,7 +18,7 @@
18
  "children": [
19
  {
20
  "slug": "executive-summary",
21
- "title": "Executive summary",
22
  "file": "pages/executive-summary/page.md",
23
  "children": []
24
  },
@@ -54,6 +54,6 @@
54
  }
55
  ]
56
  },
57
- "agent_view_tokens": 3063,
58
- "revision": "1784447555959642300"
59
  }
 
10
  "icml2026-repro",
11
  "paper-UcGwFXWnbn"
12
  ],
13
+ "updated_at": "2026-07-19T07:58:34+00:00",
14
  "root": {
15
  "slug": "index",
16
  "title": "Reproduction: Learning When to Attend: Conditional Memory Access for Long-Context LLMs",
 
18
  "children": [
19
  {
20
  "slug": "executive-summary",
21
+ "title": "executive-summary",
22
  "file": "pages/executive-summary/page.md",
23
  "children": []
24
  },
 
54
  }
55
  ]
56
  },
57
+ "agent_view_tokens": 3094,
58
+ "revision": "1784447914220884500"
59
  }
pages/claim-1-l2a-sparse-attention-mechanism-preserves-baseline-quality/page.md CHANGED
The diff for this file is too large to render. See raw diff
 
pages/claim-2-l2a-skips-global-attention-for-80-of-tokens/page.md CHANGED
@@ -3,10 +3,8 @@
3
 
4
  ---
5
  <!-- trackio-cell
6
- {"type": "markdown", "id": "cell_d214eb840028", "created_at": "2026-07-19T07:45:31+00:00", "title": "Claim 2: L2A skips global attention for ~80% of tokens"}
7
  -->
8
- # Claim 2: L2A skips global attention for ~80% of tokens
9
-
10
  - **Experiment performed**: Inference tracking over 4 thresholds.
11
  - **Configuration**: Sparsity metrics recorded via `AHA_SPARSITY_STATS_PATH`.
12
  - **Evidence**: `sparsity_*.json` files generated under `outputs/eval/token_t*`.
 
3
 
4
  ---
5
  <!-- trackio-cell
6
+ {"type": "markdown", "id": "cell_ce085a6199ff", "created_at": "2026-07-19T07:57:55+00:00", "title": null}
7
  -->
 
 
8
  - **Experiment performed**: Inference tracking over 4 thresholds.
9
  - **Configuration**: Sparsity metrics recorded via `AHA_SPARSITY_STATS_PATH`.
10
  - **Evidence**: `sparsity_*.json` files generated under `outputs/eval/token_t*`.
pages/claim-3-l2a-triton-kernels-improve-training-throughput-by-2x/page.md CHANGED
@@ -3,9 +3,7 @@
3
 
4
  ---
5
  <!-- trackio-cell
6
- {"type": "markdown", "id": "cell_505221480b30", "created_at": "2026-07-19T07:45:31+00:00", "title": "Claim 3: L2A Triton kernels improve training throughput by 2x"}
7
  -->
8
- # Claim 3: L2A Triton kernels improve training throughput by 2x
9
-
10
  - **Status**: **NOT REPRODUCED**.
11
  - **Reason for Exclusion**: Triton kernels were omitted from the community reproduction source repository (`jiamingshan/AHA-L2A-Qwen3-1.7B-repro`), and benchmarking live latency speedup fell outside the compute/hardware limits of our budget.
 
3
 
4
  ---
5
  <!-- trackio-cell
6
+ {"type": "markdown", "id": "cell_108c934330ce", "created_at": "2026-07-19T07:57:55+00:00", "title": null}
7
  -->
 
 
8
  - **Status**: **NOT REPRODUCED**.
9
  - **Reason for Exclusion**: Triton kernels were omitted from the community reproduction source repository (`jiamingshan/AHA-L2A-Qwen3-1.7B-repro`), and benchmarking live latency speedup fell outside the compute/hardware limits of our budget.
pages/claim-4-sparse-attention-pruning-reduces-kv-cache-by-50/page.md CHANGED
@@ -3,10 +3,8 @@
3
 
4
  ---
5
  <!-- trackio-cell
6
- {"type": "markdown", "id": "cell_af98a10a6181", "created_at": "2026-07-19T07:45:31+00:00", "title": "Claim 4: Sparse attention pruning reduces KV-cache by 50%"}
7
  -->
8
- # Claim 4: Sparse attention pruning reduces KV-cache by 50%
9
-
10
  - **Experiment performed**: Computed mathematically from the measured prefill and decode sparsity statistics.
11
  - **Result**: Prefill and decode attention usages at $t = 0.525$ are 82.5% and 87.2% respectively, corresponding to an average 15-18% active memory footprint reduction during attention.
12
  - **Conclusion**: **Partially verified through measured sparsity statistics and analytical estimation. Direct runtime KV-cache measurements were not performed.**
 
3
 
4
  ---
5
  <!-- trackio-cell
6
+ {"type": "markdown", "id": "cell_4e180cdc3f4c", "created_at": "2026-07-19T07:57:55+00:00", "title": null}
7
  -->
 
 
8
  - **Experiment performed**: Computed mathematically from the measured prefill and decode sparsity statistics.
9
  - **Result**: Prefill and decode attention usages at $t = 0.525$ are 82.5% and 87.2% respectively, corresponding to an average 15-18% active memory footprint reduction during attention.
10
  - **Conclusion**: **Partially verified through measured sparsity statistics and analytical estimation. Direct runtime KV-cache measurements were not performed.**
pages/conclusion/page.md CHANGED
@@ -3,10 +3,8 @@
3
 
4
  ---
5
  <!-- trackio-cell
6
- {"type": "markdown", "id": "cell_978884749b3c", "created_at": "2026-07-19T07:45:30+00:00", "title": "Reproduction bundle"}
7
  -->
8
- # Conclusion
9
-
10
  The core L2A routing mechanism reproduces qualitatively under a toy-scale configuration, while large-scale efficiency claims (80% sparsity, Triton throughput, 50% KV-cache reduction) remain unverified or partially verified due to the reduced experimental scope.
11
 
12
  ### Threats to Validity
@@ -50,7 +48,7 @@ To enforce absolute reproducibility, we indexed this project on **Synthetic Scie
50
 
51
  ---
52
  <!-- trackio-cell
53
- {"type": "artifact", "id": "cell_055ea7097785", "created_at": "2026-07-19T07:50:12+00:00", "title": "Reproduction bundle", "artifact": "repro-learning-when-to-attend-conditional-memory-access-for-long-context-llms/repro-bundle:v0", "artifact_type": "dataset"}
54
  -->
55
  **📦 Artifact** `repro-learning-when-to-attend-conditional-memory-access-for-long-context-llms/repro-bundle:v0` · dataset
56
 
 
3
 
4
  ---
5
  <!-- trackio-cell
6
+ {"type": "markdown", "id": "cell_4818b62bfaa4", "created_at": "2026-07-19T07:57:54+00:00", "title": null}
7
  -->
 
 
8
  The core L2A routing mechanism reproduces qualitatively under a toy-scale configuration, while large-scale efficiency claims (80% sparsity, Triton throughput, 50% KV-cache reduction) remain unverified or partially verified due to the reduced experimental scope.
9
 
10
  ### Threats to Validity
 
48
 
49
  ---
50
  <!-- trackio-cell
51
+ {"type": "artifact", "id": "cell_93292fcca299", "created_at": "2026-07-19T07:58:04+00:00", "title": "Artifact: repro-learning-when-to-attend-conditional-memory-access-for-long-context-llms/repro-bundle:v0", "artifact": "repro-learning-when-to-attend-conditional-memory-access-for-long-context-llms/repro-bundle:v0", "artifact_type": "dataset"}
52
  -->
53
  **📦 Artifact** `repro-learning-when-to-attend-conditional-memory-access-for-long-context-llms/repro-bundle:v0` · dataset
54
 
pages/executive-summary/page.md CHANGED
@@ -1,9 +1,8 @@
1
- # Executive summary
2
 
3
 
4
  ---
5
  <!-- trackio-cell
6
- {"type": "markdown", "id": "cell_bc446c9b150f", "created_at": "2026-07-19T07:45:30+00:00", "title": "Executive summary", "pinned": true, "pinned_at": "2026-07-19T07:45:30+00:00"}
7
  -->
8
  This logbook documents the reproduction of the primary L2A (Learning When to Attend) sparse-attention mechanism on a Qwen3-1.7B backbone model. We reproduced the core routing mechanism and evaluated its behavior under a reduced-scale (toy) configuration. We demonstrate that the per-token head-shared gate variant, when distilled and recovery-fine-tuned over an 8K context length, achieves near-baseline performance compared to the dense vanilla model while dropping up to 29% of attention keys and values. The optimal inference threshold was identified at $t = 0.525$, yielding a mean attention sparsity of 17.88% with high quality retention across RULER, BabiLong, HELMET-ICL, and MRCR. All experiments were executed sequentially on a single A100 GPU and completed under the strict $20.00 budget cap.
9
 
@@ -28,7 +27,7 @@ This logbook documents the reproduction of the primary L2A (Learning When to Att
28
  | **Stage 2 (SFT Recovery)** | 2,000 steps | 75 steps (step 25 selected) | 🟡 Substitute (Budget constraint) |
29
  ---
30
  <!-- trackio-cell
31
- {"type": "figure", "id": "cell_4729727ca6f0", "created_at": "2026-07-19T07:45:30+00:00", "title": "Reproduction poster (poster_embed.html)", "pinned": true, "pinned_at": "2026-07-19T07:45:30+00:00"}
32
  -->
33
  ```html
34
  <p>Build a reproduction poster with <a href="https://github.com/Chenruishuo/posterly">Chenruishuo/posterly</a> and replace this cell with <code>poster_embed.html</code>.</p>
@@ -47,4 +46,4 @@ This logbook documents the reproduction of the primary L2A (Learning When to Att
47
  | - Threshold 0.650: 43.70% mean attention sparsity, quality drops below 95%. |
48
  +-------------------------------------------------------------------------------+
49
  </pre>
50
- ```
 
 
1
 
2
 
3
  ---
4
  <!-- trackio-cell
5
+ {"type": "markdown", "id": "cell_738496be8a77", "created_at": "2026-07-19T07:57:54+00:00", "title": "Executive summary", "pinned": true, "pinned_at": "2026-07-19T07:57:54+00:00"}
6
  -->
7
  This logbook documents the reproduction of the primary L2A (Learning When to Attend) sparse-attention mechanism on a Qwen3-1.7B backbone model. We reproduced the core routing mechanism and evaluated its behavior under a reduced-scale (toy) configuration. We demonstrate that the per-token head-shared gate variant, when distilled and recovery-fine-tuned over an 8K context length, achieves near-baseline performance compared to the dense vanilla model while dropping up to 29% of attention keys and values. The optimal inference threshold was identified at $t = 0.525$, yielding a mean attention sparsity of 17.88% with high quality retention across RULER, BabiLong, HELMET-ICL, and MRCR. All experiments were executed sequentially on a single A100 GPU and completed under the strict $20.00 budget cap.
8
 
 
27
  | **Stage 2 (SFT Recovery)** | 2,000 steps | 75 steps (step 25 selected) | 🟡 Substitute (Budget constraint) |
28
  ---
29
  <!-- trackio-cell
30
+ {"type": "figure", "id": "cell_3306605171a7", "created_at": "2026-07-19T07:57:54+00:00", "title": null, "pinned": true, "pinned_at": "2026-07-19T07:57:54+00:00"}
31
  -->
32
  ```html
33
  <p>Build a reproduction poster with <a href="https://github.com/Chenruishuo/posterly">Chenruishuo/posterly</a> and replace this cell with <code>poster_embed.html</code>.</p>
 
46
  | - Threshold 0.650: 43.70% mean attention sparsity, quality drops below 95%. |
47
  +-------------------------------------------------------------------------------+
48
  </pre>
49
+ ```