nikgeo commited on
Commit
b3672b6
·
verified ·
1 Parent(s): 6f11713

Clarify structured MoE pruning claim

Browse files

Lead with the deployment-oriented 25% structured MoE parameter-removal claim, move atomic/group terminology into the method explanation, and clarify that compact checkpoint and kernel benchmarks remain future work.

Files changed (2) hide show
  1. README.md +35 -25
  2. results/summary.json +2 -2
README.md CHANGED
@@ -12,31 +12,41 @@ tags:
12
  - inference
13
  ---
14
 
15
- # Laguna Martini - grouped atomic-expert pruning for Laguna XS.2
16
 
17
  > **25% fewer experts, served straight up.**
18
 
19
- This is a provisional research submission for the Poolside Research Hackathon. More precisely, the
20
- current artifact prunes **25% of Laguna XS.2's 64-wide atomic-expert groups**: `19,968 / 79,872`
21
- groups across 39 sparse layers. These are child groups inside routed parent experts, not 25% of the
22
- parent experts.
23
 
24
  > [!IMPORTANT]
25
- > The current implementation measures pruning quality, not deployment speed. It preserves Laguna's
26
- > original top-8 parent-expert router and tensor shapes, then zeroes pruned 64-wide blocks in place.
27
- > The original kernel still computes those zeroed blocks. A modified grouped MoE kernel is future
28
- > work.
29
 
30
  ## One-line claim
31
 
32
- Using HEAPr-style output-space importance scores, we can prune 25% of Laguna XS.2's 64-wide
33
- atomic-expert groups while moving MMLU from `0.733514` to `0.725965` and full-cache perplexity from
34
  `10.458797` to `11.783569`.
35
 
 
 
 
 
 
 
 
 
 
 
36
  ## Method
37
 
38
  Laguna XS.2 is a mixture-of-experts model with 39 sparse layers, 256 routed parent experts per sparse
39
- layer, and 512 atomic contributions per parent expert. We adapt
 
40
  [HEAPr: Hessian-based Efficient Atomic Expert Pruning in Output Space](https://arxiv.org/abs/2509.22299):
41
 
42
  1. Decompose each routed parent expert into atomic expert contributions.
@@ -65,10 +75,10 @@ The 25% keep mask removes exactly `19,968` of `79,872` groups. Per-layer mask st
65
  Loss and perplexity use a held-out cache of 1,024 sequences x 4,096 tokens. MMLU uses the full
66
  14,042-example zero-shot task suite.
67
 
68
- ### Native grouped pruning sweep
69
 
70
- The primary runtime keeps Laguna's original top-8 parent routing semantics and zeroes pruned child
71
- groups in place.
72
 
73
  | Pruned groups | Mean loss | Perplexity | Perplexity delta |
74
  | ---: | ---: | ---: | ---: |
@@ -82,13 +92,13 @@ The sweep deltas are rounded for readability. The detailed report records both t
82
  baseline and a directly comparable explicit-static-cache baseline; their perplexities differ by
83
  less than `0.04%`.
84
 
85
- ### What we tried: repacked child routing
86
 
87
- We also repacked the model into independently routed 64-wide child experts and selected a fixed
88
- top-64 retained child groups per token. This is useful as an exploratory runtime, but it changes the
89
- post-pruning behavior: selected groups can come from parent experts that the original top-8 router
90
- would not have selected. It therefore answers a different question and performs worse than native
91
- group pruning.
92
 
93
  | Repacked child groups pruned | Mean loss | Perplexity | Perplexity delta |
94
  | ---: | ---: | ---: | ---: |
@@ -102,12 +112,12 @@ pruned child-group work.
102
  ## Future work: sentinel-group kernel
103
 
104
  The next implementation step is a modified grouped MoE kernel. For each selected parent expert, its
105
- pruned child-group indices should point to sentinel groups instead of materialized expert blocks.
106
- The kernel can then avoid loading and computing pruned groups while preserving the original parent
107
  router decisions.
108
 
109
- No parameter-count reduction, memory reduction, or runtime speedup is claimed until that kernel is
110
- implemented and benchmarked.
111
 
112
  ## Reproducibility artifacts
113
 
 
12
  - inference
13
  ---
14
 
15
+ # Laguna Martini - structured MoE pruning for Laguna XS.2
16
 
17
  > **25% fewer experts, served straight up.**
18
 
19
+ This is a provisional research submission for the Poolside Research Hackathon. Laguna Martini
20
+ identifies **25% of Laguna XS.2's routed MoE parameters** for removal while preserving a regular
21
+ structure designed for efficient deployment kernels.
 
22
 
23
  > [!IMPORTANT]
24
+ > The current artifact measures pruning quality, not deployment speed. It applies the structured
25
+ > pruning mask by zeroing blocks inside the original tensors, so the released Laguna kernel still
26
+ > computes those blocks. A modified grouped MoE kernel and physically compact deployment checkpoint
27
+ > are future work.
28
 
29
  ## One-line claim
30
 
31
+ Using HEAPr-style importance scores, we identify 25% of Laguna XS.2's routed MoE parameters for
32
+ structured removal while moving MMLU from `0.733514` to `0.725965` and full-cache perplexity from
33
  `10.458797` to `11.783569`.
34
 
35
+ ## What structured pruning means here
36
+
37
+ Laguna routes tokens to parent experts. Inside each parent expert, the computation can be decomposed
38
+ into smaller atomic contributions. We sort those contributions by importance and bundle them into
39
+ regular 64-wide blocks. The 25% pruning mask removes `19,968 / 79,872` of those blocks across 39
40
+ sparse layers while retaining at least one block in every parent expert.
41
+
42
+ This grouping keeps the pruned layout structured enough for a future deployment kernel to skip
43
+ removed blocks. It is different from deleting 25% of the routed parent experts outright.
44
+
45
  ## Method
46
 
47
  Laguna XS.2 is a mixture-of-experts model with 39 sparse layers, 256 routed parent experts per sparse
48
+ layer, and 512 atomic contributions per parent expert. An **atomic expert** is one independently
49
+ scorable contribution inside a routed parent expert. We adapt
50
  [HEAPr: Hessian-based Efficient Atomic Expert Pruning in Output Space](https://arxiv.org/abs/2509.22299):
51
 
52
  1. Decompose each routed parent expert into atomic expert contributions.
 
75
  Loss and perplexity use a held-out cache of 1,024 sequences x 4,096 tokens. MMLU uses the full
76
  14,042-example zero-shot task suite.
77
 
78
+ ### Original-routing structured pruning sweep
79
 
80
+ The primary evaluation path, called **native** in the code and reports, keeps Laguna's original
81
+ top-8 parent routing semantics and zeroes pruned blocks in place.
82
 
83
  | Pruned groups | Mean loss | Perplexity | Perplexity delta |
84
  | ---: | ---: | ---: | ---: |
 
92
  baseline and a directly comparable explicit-static-cache baseline; their perplexities differ by
93
  less than `0.04%`.
94
 
95
+ ### What we tried: repacked routing
96
 
97
+ We also tested **repacked** routing: treating each retained 64-wide block as an independently routed
98
+ mini-expert and selecting a fixed top-64 blocks per token. This is useful as an exploratory runtime,
99
+ but it changes the post-pruning behavior. Selected blocks can come from parent experts that the
100
+ original top-8 router would not have selected. It therefore answers a different question and
101
+ performs worse than the original-routing evaluation path.
102
 
103
  | Repacked child groups pruned | Mean loss | Perplexity | Perplexity delta |
104
  | ---: | ---: | ---: | ---: |
 
112
  ## Future work: sentinel-group kernel
113
 
114
  The next implementation step is a modified grouped MoE kernel. For each selected parent expert, its
115
+ pruned block indices should point to sentinel groups instead of materialized expert blocks. The
116
+ kernel can then avoid loading and computing removed blocks while preserving the original parent
117
  router decisions.
118
 
119
+ The structured mask identifies the removable MoE parameters. Realized checkpoint-size, memory, and
120
+ runtime improvements remain to be measured after the deployment checkpoint and kernel exist.
121
 
122
  ## Reproducibility artifacts
123
 
results/summary.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "base_model": "poolside/Laguna-XS.2",
3
- "method": "HEAPr-style output-space atomic-expert scoring with importance-sorted 64-wide native groups",
4
  "status": {
5
  "optimized_kernel": "pending",
6
  "gsm8k_cot": "pending",
@@ -68,5 +68,5 @@
68
  "num_fewshot": 0
69
  }
70
  },
71
- "caveat": "The current implementation preserves original parent routing and tensor shapes, zeroes pruned blocks in place, and does not yet realize runtime speedup."
72
  }
 
1
  {
2
  "base_model": "poolside/Laguna-XS.2",
3
+ "method": "HEAPr-style output-space scoring with importance-sorted 64-wide structured MoE pruning blocks",
4
  "status": {
5
  "optimized_kernel": "pending",
6
  "gsm8k_cot": "pending",
 
68
  "num_fewshot": 0
69
  }
70
  },
71
+ "caveat": "The structured mask identifies 25% of routed MoE parameters for removal. The current implementation preserves original parent routing and tensor shapes, zeroes pruned blocks in place, and does not yet realize checkpoint-size, memory, or runtime improvements."
72
  }