HGRN-1.3B · CWS 80% overall sparsity · dense lm_head
Block CWS at 80% overall sparsity with lm_head left dense. At 80% each vocabulary logit would see only ~410 of 2048 features, which flattens the output distribution. This run keeps lm_head (about 5% of parameters) intact and prunes every other linear layer to 84.25% to reach the same overall budget, then distills against the dense model (scripts/prune_no_lmhead.py + scripts/distill_ddp.py).
Training details
| Pruning | block CWS; lm_head 0%, all other linears 84.25% → ≈80% overall |
| Teacher | ikimyaii/hgrn-1.3B-dense-baseline (frozen) |
| Distillation | 0.1 × CE + 0.9 × KL × T², T = 2.0, C4 streaming |
| Steps / LR / batch | 25,000 / 2e-05 / 64 (4 GPUs, DDP) |
Evaluation
No zero-shot results were recorded. The distillation script logged a final WikiText-2 PPL of 771.2 (best 769.9) under its own evaluation setup. That is not directly comparable to the 2048-token figures on other cards.
About CWS
CWS (Correlation-aware Weight Sparsity) is a post-training, one-shot pruning method that extends SparseGPT's Optimal Brain Surgeon (OBS) weight correction with a full-Hessian selection criterion.
Per-weight saliency scores (magnitude, Wanda, RIA, SparseGPT's diagonal score)
look at each weight in isolation. They miss cancellation groups: correlated
input channels whose opposite-sign weights partly cancel in the layer output,
so removing them together costs less than their individual scores predict.
For each output row, CWS greedily picks the weight with the smallest marginal
cost δ(j | S) = r_j² / d_j, where r_j and d_j come from the evolving
inverse-Hessian factor (one rank-1 Schur-complement downdate per pick). It then
applies exact OBS corrections to the surviving weights. With H = (2/N) XᵀX,
the first pick is exactly SparseGPT's choice; later picks account for the
cross-weight interactions that a diagonal score ignores.
Two selection scopes appear in this collection:
-
Block CWS (default): greedy selection is confined to 128-column blocks, and corrections are applied block by block. This is stable on wide layers.
-
Global CWS (ablation): the whole row is one block (block size → ∞). It captures cross-block cancellation, but it is more prone to numerical drift on large layers.
-
Method and reference implementation: CWS
-
Experiments, baselines and raw results for these checkpoints: Sparse-LLMs-on-Loihi
-
Follow-up work that swaps CWS's layer-wise reconstruction objective for the real next-token loss: Weight-Sparsity-Using-Real-Loss
Usage
The model uses the HGRN architecture from flash-linear-attention (FLA).
pip install flash-linear-attention transformers torch
import torch
import fla # registers HGRN with transformers
from fla.models.hgrn import HGRNConfig, HGRNForCausalLM
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
AutoConfig.register("hgrn", HGRNConfig, exist_ok=True)
AutoModelForCausalLM.register(HGRNConfig, HGRNForCausalLM, exist_ok=True)
model_id = "ikimyaii/hgrn-1.3B-80pct-no-lmhead"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16).cuda()
# Pruned weights are stored as explicit zeros in a dense tensor.
lin = model.model.layers[0].mlp.down_proj
print(f"sparsity: {(lin.weight == 0).float().mean():.3f}")
The checkpoint is stored densely, with zeros in the pruned positions, so it runs as-is on GPUs and CPUs. Speedups require a sparse kernel or hardware that skips zero weights. On Intel Loihi and other event-driven neuromorphic hardware, a zero weight generates no synaptic event, so the sparsity directly reduces active computation.
Limitations
- These are research checkpoints for studying pruning. They are not instruction-tuned or safety-tuned, and they inherit the base model's biases.
- Weights are stored densely, with zeros at the pruned positions. Sparsity alone gives no speedup without a sparse kernel or event-driven hardware.
- At 70–80% sparsity this model does not produce usable text. Zero-shot accuracy is near chance.
Citation
The CWS paper is under anonymous review; please cite the code repository for now.
@misc{cws2026,
title = {Semi-Structured Correlation-aware Weight Sparsity (CWS) for Efficient LLM Inference},
year = {2026},
note = {Under review. Code: https://github.com/KimiaGholami/CWS}
}
@inproceedings{frantar2023sparsegpt,
title = {SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot},
author = {Frantar, Elias and Alistarh, Dan},
booktitle = {International Conference on Machine Learning},
year = {2023}
}