Teaching language models to handle images without messing up their text abilities
LMFusion enables text-only LLMs to understand and generate both text and images while preserving their original language capabilities through modality-specific processing.
-----
https://arxiv.org/abs/2412.15188
π€ Original Problem:
β Training multimodal models from scratch requires massive computational resources and often leads to suboptimal performance in language tasks
β Simply fine-tuning existing LLMs for multimodal tasks significantly degrades their language capabilities
-----
π§ Solution in this Paper:
β LMFusion uses separate processing paths for text and images while allowing cross-modal interactions through shared attention layers
β Text data flows through frozen Llama-3 modules to preserve language abilities
β Image data is processed through parallel transformer modules trained specifically for visual tasks
β A special BOI token separates different modalities in the sequence
β The architecture employs modality-specific query-key-value projections and feed-forward networks
-----
π‘ Key Insights:
β Deep modality separation outperforms shallow separation in preserving model capabilities
β Freezing text modules while training image modules prevents catastrophic forgetting
β The approach can be extended to existing vision-language models
β Modular design enables parallel development of language and vision capabilities
-----
π Results:
β Improves image understanding by 20% compared to baseline methods
β Enhances image generation quality by 3.6%
β Achieves these improvements while using only 50% of the FLOPs
β Maintains Llama-3's original language performance
------
Are you into AI and LLMsβ Join me on X/Twitter with 52K+ others, to remain on the bleeding-edge of AI every day.
π/π¦ https://x.com/rohanpaul_ai










