Arbitrary Ratio Feature Compression via Next Token Prediction
About
Feature compression is increasingly important for improving the efficiency of downstream tasks, especially in applications involving large-scale or multi-modal data. While existing methods typically rely on dedicated models for achieving specific compression ratios, they are often limited in flexibility and generalization. In particular, retraining is necessary when adapting to a new compression ratio. To address this limitation, we propose a novel and flexible Arbitrary Ratio Feature Compression (ARFC) framework, which supports any compression ratio with a single model, eliminating the need for multiple specialized models. At its core, the Arbitrary Ratio Compressor (ARC) is an auto-regressive model that performs compression via next-token prediction. This allows the compression ratio to be controlled at inference simply by adjusting the number of generated tokens. To enhance the quality of the compressed features, two key modules are introduced. The Mixture of Solutions (MoS) module refines the compressed tokens by utilizing multiple compression results (solutions), reducing uncertainty and improving robustness. The Entity Relation Graph Constraint (ERGC) is integrated into the training process to preserve semantic and structural relationships during compression. Extensive experiments on cross-modal retrieval, image classification, and image retrieval tasks across multiple datasets demonstrate that our method consistently outperforms existing approaches at various compression ratios. Notably, in some cases, it even surpasses the performance of the original, uncompressed features. These results validate the effectiveness and versatility of ARFC for practical, resource-constrained scenarios.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | CIFAR10 (test) | Accuracy98.5 | 585 | |
| Text-to-Image Retrieval | Flickr30K | R@189.7 | 460 | |
| Image-to-Text Retrieval | Flickr30K | R@198.9 | 379 | |
| Image Classification | ImageNet (test) | Top-1 Accuracy81.7 | 291 | |
| Image Classification | CIFAR100 (test) | Accuracy82.9 | 206 | |
| Image Retrieval | CUB-200 2011 | Recall@165.1 | 146 | |
| Text-to-Image Retrieval | Flickr30K-CN | R@184.3 | 99 | |
| Image-to-Text Retrieval | Flickr30K-CN | R@195.5 | 99 | |
| Image Retrieval | CARS 196 | Recall@185.9 | 98 | |
| Image Classification | FGVC (test) | Accuracy29 | 25 |