MORS: Metric-Orthogonal Sparse Factorization for Loss-Aware LLM Compression

MORS (Metric-ORthogonal Sparse Factorization, arXiv:2612.04379) replaces rigid low-rank SVD matrices with a sparse dictionary factorization $\mathbf{W} \approx \mathbf{D}\mathbf{S}$ weighted by Kronecker-factored (KFAC) empirical Fisher curvature. At 20%–40% compression across Llama3-8B, Qwen3-8B, and Mistral-7B, MORS outperforms COMPOT, LEMS, and SVD-LLM V2 in both perplexity and downstream accuracy.
MORS: Metric-Orthogonal Sparse Factorization for Loss-Aware LLM Compression: MORS (Metric-ORthogonal Sparse Factorization, arXiv:2612.04379) replaces rigid low-rank SVD matrices with a sparse dictionary factorization $\mathbf{W} \approx \mathbf{D}\mathbf{S}$ weighted by Kronecker-factored (KFAC) empirical Fisher curvature. At 20%–40% compression across Llama3-8B, Qwen3-8B, and Mistral-7B, MORS outperforms COMPOT, LEMS, and SVD-LLM V2 in both perplexity and downstream accuracy. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Beats Low-Rank SVD-LLM V2 & LEMS: On Llama3-8B at 20% compression (CR=0.2), MORS achieves 7.22 WikiText PPL and 59.81% Avg. Acc vs 11.40 PPL / 47.70% for SVD-LLM V2.
- Second-Order KFAC Curvature Alignment: Incorporates both activation covariance A = E[xx^T] and gradient covariance B = E[gg^T] into factorization and layer-wise budget allocation.
- Closed-Form Metric-Orthogonal Updates: Constrains D^T A_lambda D = I_k so sparse support selection decouples cleanly with guaranteed monotonic descent.
- Global Dynamic Layer Allocation: Automatically assigns higher compression ratios to redundant layers and preserves sensitive layers.
import { createAgent } from '@smoke-monkey/harness';// Serve a MORS-compressed Llama3-8B / Qwen3-8B checkpoint locally with vLLMconst agent = createAgent({agentId: 'mors-compressed-agent',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8000/v1',model: 'local/llama3-8b-mors-cr03',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'ask',run_command: 'ask',},});async function main() {const result = await agent.run('Benchmark compressed model token generation speed and validate JSON tool-call accuracy on 10 local schema fixtures.');console.log('MORS Verification:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
EfficientML.ai Lecture 4 - Pruning and Sparsity (Part II) (MIT 6.5940 Fall 2026)
Quantization vs Pruning vs Distillation: Optimizing NNs for Inference
How MORS Improves on SVD-LLM V2 and COMPOT Compression
MORS (arXiv:2612.04379) is a loss-aware sparse dictionary compression framework that approximates weight matrices as $\mathbf{W} \approx \mathbf{D}\mathbf{S}$, where $\mathbf{D}$ is orthogonal under the regularized input activation covariance $\mathbf{A}_\lambda$ ($\mathbf{D}^\top \mathbf{A}_\lambda \mathbf{D} = \mathbf{I}_k$) and each column $\mathbf{s}_j$ of $\mathbf{S}$ has at most $s$ non-zeros. Using a Kronecker-factored empirical Fisher approximation $\mathbf{F}_{\mathbf{W}} \approx \mathbf{B} \otimes \mathbf{A}$, MORS minimizes actual task-loss perturbation $\mathcal{Q}(\mathbf{E}) = \frac{1}{2}\operatorname{tr}(\mathbf{E}^\top \mathbf{A}_\lambda \mathbf{E} \mathbf{B}_\lambda)$.
Low-rank SVD baselines suffer steep accuracy drops because every layer shares a rigid global subspace rank. MORS instead gives each output neuron an adaptive combination of dictionary atoms while prioritizing layers with low Fisher curvature sensitivity. Across LEMS-style and COMPOT-style benchmarks:
| Model & Compression (CR=0.20) | Method | WikiText-2 PPL ↓ | C4 PPL ↓ | PTB PPL ↓ | Avg. Zero-Shot Acc ↑ |
|---|---|---|---|---|---|
| Mistral-7B (Dense: 5.25 / 63.95%) | SVD-LLM V2 | 7.13 | 19.35 | 64.84 | 52.68% |
| Mistral-7B | LEMS | 5.98 | 11.24 | 37.09 | 57.67% |
| Mistral-7B | MORS | 5.67 | 9.49 | 32.60 | 60.15% |
| Llama3-8B (Dense: 6.14 / 63.34%) | SVD-LLM V2 | 11.40 | 52.00 | 80.38 | 47.70% |
| Llama3-8B | LEMS | 8.16 | 17.52 | 22.80 | 55.99% |
| Llama3-8B | MORS | 7.22 | 14.93 | 14.02 | 59.81% |
| Qwen3-8B (Dense: 9.71 / 62.03%) | SVD-LLM V2 | 12.52 | 31.72 | 47.44 | 53.36% |
| Qwen3-8B | LEMS | 10.38 | 18.32 | 18.32 | 59.28% |
| Qwen3-8B | MORS | 10.75 | 19.47 | 19.17 | 59.84% |
Evaluating MORS at 20%–40% Compression and Orthogonal Procrustes Updates
On the COMPOT-style evaluation protocol, MORS widens its lead at aggressive compression ratios: on Llama3-8B, MORS preserves 67.92% avg accuracy at CR=0.2 (vs 65.28% COMPOT), 64.46% at CR=0.3 (vs 60.91% COMPOT), and 56.90% at CR=0.4 (vs 51.67% COMPOT, with WikiText PPL 19.79 vs 42.97). On Qwen3-8B, MORS reaches 69.75% at CR=0.2 (dense 70.45%) and 62.02% at CR=0.4.
The core metric-orthogonal dictionary update reduces to a weighted orthogonal Procrustes step in the $\mathbf{A}_\lambda^{1/2}$-whitened space:
import torch
def metric_orthogonal_update(W: torch.Tensor, S: torch.Tensor, A_half: torch.Tensor, B_diag: torch.Tensor):
"""Solve min_D || A^{1/2}(D S - W) B^{1/2} ||_F^2 s.t. D^T A D = I via SVD polar factor."""
M = A_half @ (W * B_diag.unsqueeze(0)) @ S.T
U, _, Vh = torch.linalg.svd(M, full_matrices=False)
D_whitened = U @ Vh
return torch.linalg.solve(A_half, D_whitened)
print("MORS metric-orthogonal dictionary step verified.")Use Dynamic Global Allocation Instead of Uniform Compression Ratios
Uniform layer-by-layer compression causes severe perplexity spikes on Llama3-8B at CR=0.4 (48.56 PPL uniform vs 14.02–19.79 PPL with dynamic allocation). Always pair MORS factorization with its global KFAC loss-storage allocator.
Frequently Asked Questions
Q:How does MORS differ from SVD-LLM V2 and COMPOT?
SVD-LLM V2 uses low-rank SVD approximation, and COMPOT uses unweighted sparse dictionary learning. MORS optimizes sparse dictionary factorization under KFAC empirical Fisher input and output curvature while constraining the dictionary to be orthogonal under activation curvature.
Q:How well does MORS preserve accuracy at 30%–40% compression?
On Llama3-8B (dense 70.36%), MORS retains 67.92% accuracy at CR=0.2, 64.46% at CR=0.3, and 56.90% at CR=0.4—outperforming COMPOT by +5.23 percentage points at CR=0.4 while cutting WikiText PPL from 42.97 to 19.79.
Q:What second-order curvature approximation does MORS use?
MORS uses a Kronecker-factored empirical Fisher approximation F_W ≈ B ⊗ A, where A = E[xx^T] captures input activation covariance and B = E[gg^T] captures output gradient sensitivity.
Q:Does MORS require fine-tuning after compression?
No. All reported COMPOT-style and LEMS-style results in arXiv:2612.04379 are post-training one-shot/iterative calibration results without end-to-end LoRA retraining.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.