Latent Compaction with Test-Time Training
TL;DR - Latent Compaction uses test-time training to optimize a compact, document-specific KV cache while keeping model weights frozen. It preserves long-context retrieval under aggressive compression, reducing generation memory and attention costs.
- Initializes cache entries using reconstruction importance, teacher attention, and key-space diversity.
- Distills full-cache attention outputs and log-normalizers before jointly optimizing the compact cache end to end.
- Requires only generic document prompts, not downstream questions or answers.
- Achieves 96.7% RULER accuracy at 32Ă— compression versus 40.0% for KVZip+, with gains across Qwen3 and MiniCPM5.