TL;DR
The TII team introduces Falcon2-11B, a powerful 11-billion parameter language model trained on over 5 trillion tokens, and its multimodal extension, Falcon2-11B-vlm. These models demonstrate strong performance across various benchmarks, including multilingual and code tasks, and are released under a permissive license, fostering open-source AI development.
What Problem Does This Paper Address?
The paper addresses the ongoing quest for more capable and accessible large language models (LLMs) and vision-language models (VLMs). Specifically, it aims to build upon the success of previous Falcon models by introducing a new generation that offers improved usability, integrability, and multimodal capabilities. The authors also investigate training methodologies to enhance model performance, such as optimizing context length, managing training stability, and improving data quality for multilingual tasks.
Methods
The core of Falcon2-11B is a transformer architecture, similar to its predecessors, but with key modifications. A notable technique is the use of FlashAttention-2 (FA2), which significantly speeds up training, especially for longer context windows, by optimizing the attention mechanism. The training process itself is structured in a multi-stage approach, progressively increasing the context length from 2K to 8K tokens. This staged training, combined with a curated, high-quality dataset in the later stages, is crucial for achieving better performance.
To manage training instability, particularly due to the model's depth, the authors employ spike management techniques such as rollbacks and data skips. They also implement a batch size schedule, where doubling the batch size mid-training led to an abrupt drop in training loss, indicating improved optimization. For the multimodal version, Falcon2-11B-vlm, a pre-trained CLIP ViT-L/14 is used as a visual encoder, and its features are projected into the LLM's embedding space using a multimodal projector. This VLM is trained in two stages: pre-training the projector and then fine-tuning both the projector and the LLM.
Datasets
The training data for Falcon2-11B is a mixture of extensively processed web data (RefinedWeb) and curated corpora. The RefinedWeb data is filtered and adapted for multilingual quality. The curated corpora include:
- Code from The Stack dataset.
- Scientific articles from arXiv and PubMed.
- Conversations from Reddit, Stack Exchange, and Hacker News.
- Books.
- Patents from USPTO.
A significant portion (15% or more) of non-English web data is used to enhance multilingual capabilities. For the Falcon2-11B-vlm, training utilizes the LLaVA dataset (558K image-caption pairs) for pre-training and a combination of LLaVA-665K, ShareGPT4V, and MMInstruct datasets (1.2M image-text instruction pairs) for fine-tuning.
Key Insights and Ideas
- Multi-stage training with increasing context length is effective: The staged approach, gradually increasing context window size, is a key factor in achieving strong performance and enabling longer context understanding.
- FlashAttention-2 is a game-changer for long contexts: FA2 provides substantial speedups, making training with larger context windows computationally feasible and leading to better performance.
- Batch size scheduling can stabilize training and improve loss: Doubling the batch size at specific points during training not only reduced spikes but also led to a significant drop in training loss, suggesting a more efficient optimization path.
- Multilingual data quality matters: Adapting quality filtering heuristics for non-English languages from RefinedWeb improved data quality and, consequently, model performance on multilingual tasks.
- Open-source release is crucial for community advancement: Making both Falcon2-11B and Falcon2-11B-vlm available under a permissive license accelerates research and development in the AI community.
Key Results
Falcon2-11B achieves competitive performance on various benchmarks, often surpassing larger models like Falcon-40B in certain aspects while being more computationally efficient. It shows strong generalization across multilingual and code datasets. The Falcon2-11B-vlm also demonstrates higher average scores compared to open-source VLMs of similar size on challenging benchmarks like MME, GQA, and ScienceQA. The paper highlights significant speedups from FA2, especially at longer context lengths (up to 50% for 8K context).
Limitations and Future Work
The paper acknowledges that spike management techniques like rollbacks and data skips were necessary due to the model's depth, indicating potential training instability. While Falcon2-11B-vlm shows strong performance on selective tasks, its performance on generative multilingual tasks degrades in stage 4, possibly due to a data mixture heavily focused on English. The authors suggest that further research could explore more advanced multimodal architectures and training strategies to address these limitations. The permissive license and open availability of the models themselves are intended to facilitate future research and development by the broader AI community.
Summary updated