Open Source Hacker News (LLM)

Sub-1-Bit LLM Compression via Latent Factorization

LLM compressionsub-1-bit quantizationLittleBitopen-source release

This is the official implementation of LittleBit (NeurIPS 2025) and LittleBit-2 (ICML 2026). The associated papers are “LittleBit: Ultra Low-Bit Quantization via Latent Factorization” by Banseok Lee*, Dongkyu Kim*, Youngcheon You, and Youngmin Kim, and “LittleBit-2: Maximizing the Spectral Energy Gain in Sub-1-Bit LLMs via Latent Geometry Alignment” by Banseok Lee and Youngmin Kim.

LittleBit compresses large language models into the sub-1-bit regime by factorizing each dense weight matrix into low-rank latent factors, binarizing those factors, and restoring magnitude information through lightweight learned scales. This enables extreme compression, including the 0.1 bits-per-weight setting, while preserving the original model architecture at inference time. LittleBit-2 improves the recipe by addressing latent geometry misalignment in the initialization stage: it applies Internal Latent Rotation with Joint Iterative Quantization (Joint-ITQ), aligning the SVD-derived latent factors with the binary hypercube before QAT.

The code is designed for sub-1-bit compression from 1.0 to 0.1 bits per weight. LittleBit-2 is opt-in via --use_itq for improved latent geometry alignment, and it modifies initialization only, so the deployed factorized layer remains the same and there is no additional inference overhead. It is QAT-friendly, supporting Quantization-Aware Training with SmoothSign and optional residual factorization. Supported models currently include OPT, Llama and Llama 2/3, Phi-4, Qwen2.5 and QwQ, Gemma 2 and Gemma 3, and Qwen3.

Installation recommends Python 3.12, with conda environment creation, CUDA toolkit installation, PyTorch 2.8.0+cu124 along with matching torchvision and torchaudio, and requirements.txt. For reproducing paper results, the project says to use transformers 4.51.x, since newer transformers releases may change model internals or evaluation behavior. Training uses Quantization-Aware Training: by default LittleBitLinear uses the original SVD-only initialization, and passing --use_itq True enables LittleBit-2. A single-GPU example trains meta-llama/Llama-2-7b-hf on c4_wiki for 5 epochs with per-device batch size 4, lr 4e-05, warmup_ratio 0.02, wandb reporting, SmoothSign quantization, LittleBitLinear, residual True, eff_bit 1.0, kv_factor 1.0, min_split_dim 8, and l2l_loss_scale 10.0.

Read original →

← Back to home