AlignGPT: Multi-modal Large Language Models with Adaptive Alignment Capability

Fei Zhao, Taotian Pang, Chunhui Li, Zhen Wu, Junjie Guo, Shangyu Xing, Xinyu Dai · DOI

Introduction

The rapid advancement of Multimodal Large Language Models (MLLMs) like LLaVA and MiniGPT has largely relied on a two-phase training paradigm: initial pre-training for modality alignment followed by instruction tuning for task adherence. While effective, this approach typically treats all image-text pairs as uniformly aligned. In practice, however, the relationship between an image and its caption varies significantly—some captions provide a global summary, while others focus on minute, localized details. Treating these varied relationships as identical can confuse a model's understanding of visual-linguistic nuances.

AlignGPT addresses this "one-size-fits-all" limitation by introducing an adaptive alignment capability. This allows the model to dynamically adjust its focus based on the specific requirements of a given instruction, moving beyond static alignment to a more flexible understanding of images.

Methodology: Adaptive Alignment

The core innovation of AlignGPT lies in its ability to categorize and utilize different levels of image-text correspondence through a novel architecture and training strategy.

Alignment Level-aware Pre-training

Rather than assuming uniform alignment, the researchers utilized CLIP similarity scores to quantify the degree of correspondence for every image-text pair in the pre-training dataset. These pairs were then categorized into $N$ discrete "buckets," ranging from weak to strong alignment. To represent these levels, the model incorporates unique alignment embedding tokens. During pre-training, the model learns to associate these tokens with the specific granularity of the text-image relationship.

Examples of image-text pairs with varying CLIP similarity scores, used to define discrete alignment levels during pre-training.

Dynamic Inference with the Gate Network

To leverage these learned levels during task execution, AlignGPT introduces an Adaptive Gating Module. During the instruction-tuning phase, this Gate Network analyzes both the user's instruction and the image features to calculate weights for the various alignment embeddings. For instance, a general captioning task might trigger a higher weight for "global" alignment embeddings, whereas a question about a specific object (VQA) would favor "local" or fine-grained embeddings. The final representation is a dynamic combination of these weighted embeddings, allowing the model to "zoom in" or "zoom out" its attention as needed.

The backbone of the model utilizes a CLIP ViT-L/14 visual encoder and a linear projection layer, built upon the Vicuna LLM.

Experimental Setup

To ensure a fair comparison with existing state-of-the-art models, AlignGPT was trained using the same datasets as LLaVA-1.5:

  • Pre-training: 558K image-caption pairs for initial modality alignment.
  • Instruction Tuning: 665K mixed-task conversational data.
  • Evaluation: The model's performance was rigorously tested across 12 diverse benchmarks, including generalist suites (MME, MMBench, SEED-Bench), hallucination tests (POPE), and traditional academic tasks (VQAv2, GQA, ScienceQA).

Results and Discussion

AlignGPT demonstrated superior performance across nearly all evaluated benchmarks, highlighting the effectiveness of its adaptive alignment strategy.

Quantitative Performance

As shown in the radar chart below, AlignGPT-7B consistently outperforms or matches other leading 7B-parameter models across a wide array of vision-language tasks. Notably, the 13B version of AlignGPT achieved a score of 1572.0 on the MME benchmark, surpassing LLaVA-1.5-13B's score of 1531.3. On the LLaVA-Bench-in-the-Wild, the 13B model reached 75.2, representing a significant 4.5-point improvement over its predecessor.

Radar chart comparing AlignGPT-7B performance against other MLLMs across 12 vision-language benchmarks.

Qualitative Insights and Data Efficiency

Beyond numerical scores, AlignGPT showed a marked reduction in hallucinations. In tasks requiring the identification of small details—such as "bright blue feathers on a bird's wing"—AlignGPT correctly identified their presence or absence. In contrast, models like LLaVA and MiniGPT-v2 often hallucinated a positive response, likely due to an over-reliance on global features and a lack of fine-grained alignment flexibility.

Ablation studies further confirmed that the learned alignment levels are essential; replacing them with random embeddings resulted in a substantial performance decline, proving that the model is indeed learning meaningful hierarchical relationships. This suggests that the bottleneck in current MLLMs is not merely the volume of data, but the sophistication with which that data is categorized and presented.

Conclusion

AlignGPT demonstrates that treating alignment as a spectrum rather than a binary state allows for high data efficiency and state-of-the-art results. Future work will explore extending this adaptive alignment to other modalities, such as video and audio, and investigating more continuous methods for modeling alignment levels beyond discrete bucketing.

Summary updated

BibTeX
@misc{zhao2024aligngpt,
  author = {Fei Zhao and Taotian Pang and Chunhui Li and Zhen Wu and Junjie Guo and Shangyu Xing and Xinyu Dai},
  title = {{AlignGPT: Multi-modal Large Language Models with Adaptive Alignment Capability}},
  year = {2024},
  eprint = {2405.14129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14129},
}
Figure