The Mathematical Foundation and Optimization Methods of the Core Modules of Multimodal Large Models
Abstract
Multimodal large models integrate language, vision and other input modalities through attention, alignment, connector mapping and optimization modules, and their capabilities depend not only on parameter scale but also on how these components exchange and transform information. This review examines the mathematical foundations of scaled dot-product attention, contrastive learning, positional encoding, low-rank adaptation, quantization and knowledge distillation. Attention scaling is explained through variance control, InfoNCE through mutual-information estimation, and parameter-efficient adaptation through low-rank approximation. Efficient attention computation and activation-aware quantization are also analysed from computational and numerical perspectives. Together, these connections clarify how architecture and computation shape stability, efficiency and reliability, and they identify directions for more interpretable and controllable multimodal systems.
References
- Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need.Advances in Neural Information Processing Systems (NeurIPS), 30.
- Radford, A., Kim, J. W., Hallacy, C., et al. (2021). Learning transferable visual models from natural language supervision.Proceedings of the International Conference on Machine Learning (ICML), 8748–8763.
- Li, J., Li, D., Savarese, S., et al. (2023). BLIP-2: Bootstrapping language-image pre-training with frozen image encoders and large language models.Proceedings of the International Conference on Machine Learning (ICML), 19730–19742.
- Dao, T., Fu, D. Y., Ermon, S., et al. (2022). FlashAttention: Fast and memory-efficient exact attention with IO-awareness.Advances in Neural Information Processing Systems (NeurIPS), 35, 16344–16359.
- Hinton, G., Vinyals, O., & Dean, J. (2015). Distilling the knowledge in a neural network. arXiv:1503.02531.
- Yin, S., Fu, C., Zhao, S., et al. (2024). A survey on multimodal large language models.National Science Review, 11, nwae403.
- Wu, J., Gan, W., Chen, Z., et al. (2023). Multimodal large language models: A survey. arXiv:2311.13165
- van den Oord, A., Li, Y., & Vinyals, O. (2018). Representation learning with contrastive predictive coding. arXiv:1807.03748
- Goodfellow, I., Bengio, Y., & Courville, A. (2016).Deep learning. MIT Press.
- Liu, H., Li, C., Li, Y., et al. (2024). Improved baselines with visual instruction tuning.Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 26296–26306.
- Zhu, D., Chen, J., Shen, X., et al. (2023). MiniGPT-4: Enhancing vision-language understanding with advanced large language models. arXiv:2304.10592
- Touvron, H., Martin, L., Stone, K., et al. (2023). Llama 2: Open foundation and fine-tuned chat models. arXiv:2307.09288
- Hu, E. J., Shen, Y., Wallis, P., et al. (2022). LoRA: Low-rank adaptation of large language models.Proc Int. Conf Learn Represent. (ICLR)
- Dao, T. (2023). FlashAttention-2: Faster attention with better parallelism and work partitioning. arXiv:2307.08691
- Lin, J., Tang, J., Tang, H., et al. (2024). AWQ: Activation-aware weight quantization for on-device LLM compression and acceleration.Proc. Machine Learning and Systems (MLSys), 6, 87-100