A new arXiv preprint tests how much of a large language model's weight matrices can be thrown away without destroying performance. The authors apply scalar K-means clustering to pretrained models, replacing each weight matrix with only 16 to 64 shared values. For Llama 3.1-8B-Instruct and SmolLM2-135M, this coarse approximation preserves strong accuracy with no retraining, offering a simple disk-compression technique.

Using clustering as an analytical tool, the researchers then fixed the cluster assignments and perturbed only the shared values. They found that preserving the relative rank of weights—which connections are stronger or weaker than others—matters more than preserving exact magnitudes. Breaking the ordering sharply increases perplexity, whereas changing values while keeping the ordering causes little loss in many middle and late layers.

However, rank preservation alone is not enough. Performance also depends on maintaining the variance of the reconstructed weights, and early layers remain especially sensitive. Perturbing the cluster assignments themselves showed that their spatial geometry is load-bearing as well. The same pattern appeared across four LLMs from two architecture families, suggesting that weight ordering and overall variance are central to LLM robustness and compression.