Local & Offline
~8 min readUpdated: December 2026

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

MORS Metric-Orthogonal Sparse Factorization for 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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Examplemors-compressed-local-agent.ts
mors-compressed-local-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Serve a MORS-compressed Llama3-8B / Qwen3-8B checkpoint locally with vLLM
const 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);
Video Guides

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)MethodWikiText-2 PPL ↓C4 PPL ↓PTB PPL ↓Avg. Zero-Shot Acc ↑
Mistral-7B (Dense: 5.25 / 63.95%)SVD-LLM V27.1319.3564.8452.68%
Mistral-7BLEMS5.9811.2437.0957.67%
Mistral-7BMORS5.679.4932.6060.15%
Llama3-8B (Dense: 6.14 / 63.34%)SVD-LLM V211.4052.0080.3847.70%
Llama3-8BLEMS8.1617.5222.8055.99%
Llama3-8BMORS7.2214.9314.0259.81%
Qwen3-8B (Dense: 9.71 / 62.03%)SVD-LLM V212.5231.7247.4453.36%
Qwen3-8BLEMS10.3818.3218.3259.28%
Qwen3-8BMORS10.7519.4719.1759.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:

python
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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness