Weizhong Huang · Zhicheng Liu · Yan Zhang · Fei Chao · Xiawu Zheng · Liujuan Cao
Xiamen University
Method · Results · Quick Start · Docs · Citation
Tip
LoopZip is a training-free visual token compression method for looped vision-language models. It builds a compact visual candidate pool, uses two calls of the shared attention layer to select a consistent token set, and jointly fits a value correction ΔV before shortening the visual sequence for all remaining loops.
| 🎯 Accuracy Retention | 🚀 End-to-End Speedup | 💾 Peak GPU Memory Saved |
|---|---|---|
| 97.16% (LoopVL-1B, 50% pruning) | 2.47× (vLLM, 87.5% pruning) | 58.98% (HF Transformers, 3.94 GiB) |
| 1 · Visual Aggregation | 2 · Cross-Invocation Selection | 3 · Joint Value Correction |
|---|---|---|
| Retains salient patches and merges redundant visual patches into a compact candidate pool. | Averages instruction attention across the first two calls of the shared layer to select one shared token set. | Fits a single value update ΔV to both original layer outputs, applies it at call 2, and shortens later loops. |
Avg. is the unweighted mean across 11 benchmarks; Rel. Avg. averages each score relative to Vanilla. For per-benchmark tables and ablations, see docs/results.md.
| Model | Pruning Ratio | LoopZip Avg. | LoopZip Rel. Avg. | Best Baseline Rel. Avg. | Gain |
|---|---|---|---|---|---|
| LoopVL-1B | 50% | 59.02 | 97.16% | 94.62% | +2.54% |
| LoopVL-1B | 75% | 55.95 | 92.07% | 87.61% | +4.46% |
| LoopVL-1B | 87.5% | 51.09 | 83.89% | 80.06% | +3.83% |
| SenseNova-Loop-9B-Preview | 50% | 67.65 | 96.02% | 93.98% | +2.04% |
| Framework | End-to-End Speedup | Peak GPU Memory | Peak Memory Saved |
|---|---|---|---|
| Hugging Face Transformers | 2.01× | 3.94 GiB | 58.98% |
| vLLM | 2.47× | 4.02 GiB | 58.41% |
| SGLang | 2.02× | 4.02 GiB | 58.36% |
Note
Use Python 3.11 or 3.12 with a PyTorch / torchvision pair matching your CUDA environment. See docs/usage.md for backend-specific setup (vLLM, SGLang) and dataset evaluation commands.
git clone https://github.com/MAC-AutoML/LoopZip.git
cd LoopZip
python -m pip install -e '.[transformers,prepare]'
hf download TierFlow/LoopVL --local-dir models/loopvl
loopzip predict --model loopvl --snapshot models/loopvl \
--image path/to/image.png --prompt 'What is shown?' \
--pruning-ratio 0.875 --max-new-tokens 32| Model | Hugging Face Transformers | vLLM | SGLang |
|---|---|---|---|
| LoopVL-1B | ✅ | ✅ | ✅ |
| SenseNova-Loop-9B-Preview | ✅ | — | — |
| Resource | Description |
|---|---|
docs/usage.md |
Installation per backend (transformers, vLLM, SGLang), dataset prep, and evaluation CLI |
docs/results.md |
Per-benchmark 11-dataset tables, component ablation, and observation count analysis |
THIRD_PARTY_NOTICES.md |
Bundled model components and scoring helper notices |
📁 Repository Structure & CPU Unit Tests
LoopZip/
├── docs/ # Usage guide, full results, and paper figures
├── licenses/ # Upstream notices (Penguin-VL, VLMEvalKit)
├── loopzip/
│ ├── algorithm.py # Cross-invocation token selection & joint value correction
│ ├── aggregation.py # Visual candidate pool construction
│ ├── backends/ # Native Transformers, vLLM, and SGLang serving plugins
│ ├── benchmarks/ # 11-benchmark data prep, contact sheets, and evaluators
│ └── models/ # LoopVL and SenseNova adapters
└── tests/ # Algorithm & release contract tests
python -m unittest discover -s tests -v@article{huang2026loopzip,
title = {LoopZip: Visual Token Compression for Efficient Looped Vision-Language Models},
author = {Huang, Weizhong and Liu, Zhicheng and Zhang, Yan and Chao, Fei and Zheng, Xiawu and Cao, Liujuan},
journal = {arXiv preprint arXiv:2611.22728},
year = {2026},
url = {https://arxiv.org/abs/2611.22728}
}Released under the Apache-2.0 License. See THIRD_PARTY_NOTICES.md for third-party attributions.


