Decoupling Vision and Language: Codebook Anchored Visual Adaptation
Jason Wu, Tianchen Zhao, Chang Liu, Jiarui Cai, Zheng Zhang, Zhuowei Li, Aaditya Singh, Xiang Xu, Mani Srivastava, Jonathan Wu
TL;DR
This work tackles the mismatch between vision encoders in LVLMs and domain-specific tasks by proposing CRAFT, a discrete, codebook-anchored framework that decouples vision from the language model. By discretizing visual embeddings into a shared codebook and training only the vision encoder with surrogate alignment, commitment, and contrastive losses, CRAFT achieves robust domain adaptation with cross-LLM transfer, while a test-time token pruning scheme yields efficient inference. Across ten benchmarks and multiple backbones, CRAFT delivers significant domain gains (average ~13.51 percentage points) and preserves instruction-following and explanatory capabilities, outperforming continuous-feature and PEFT baselines. The approach offers practical benefits for resource-constrained settings by enabling portable vision encoders that can be paired with diverse LLM backbones without re-alignment or extensive retraining.
Abstract
Large Vision-Language Models (LVLMs) use their vision encoders to translate images into representations for downstream reasoning, but the encoders often underperform in domain-specific visual tasks such as medical image diagnosis or fine-grained classification, where representation errors can cascade through the language model, leading to incorrect responses. Existing adaptation methods modify the continuous feature interface between encoder and language model through projector tuning or other parameter-efficient updates, which still couples the two components and requires re-alignment whenever the encoder changes. We introduce CRAFT (Codebook RegulAted Fine-Tuning), a lightweight method that fine-tunes the encoder using a discrete codebook that anchors visual representations to a stable token space, achieving domain adaptation without modifying other parts of the model. This decoupled design allows the adapted encoder to seamlessly boost the performance of LVLMs with different language architectures, as long as they share the same codebook. Empirically, CRAFT achieves an average gain of 13.51% across 10 domain-specific benchmarks such as VQARAD and PlantVillage, while preserving the LLM's linguistic capabilities and outperforming peer methods that operate on continuous tokens.
