Multimodal LLMs: Beyond Text | Deepchecks

Multimodal LLMs: Beyond Text

Brain John Aboze

November 27, 2023 10.5 mins

This blog post was written by Brain John Aboze as part of the Deepchecks Community Blog. If you would like to contribute your own blog post, feel free to reach out to us via blog@deepchecks.com. We typically pay a symbolic fee for content that's accepted by our reviewers.

Introduction

Have you ever pondered how humans adeptly comprehend and interact with their surroundings? It’s our innate ability to amalgamate data from our senses – sight, hearing, smell, taste, and touch. This multi-sensory input gives us a holistic grasp of our environment. Drawing inspiration from this, Multimodal AI systems are trained on diverse data types like text, images, audio, and video. Their capacity to correlate different data forms allows them to discern intricate patterns, enhancing their performance across tasks. In AI, especially Large Language Models (LLMs), these multimodal systems are not merely upgrades but game-changers. They can tackle challenges singular mode systems falter at, like refining medical diagnoses or elevating virtual reality experiences. So, if you’re curious about the significance of multimodal fusion in AI and LLMs, brace yourself for an enlightening journey into multimodality.

Photo by Vladimir Srajber

Understanding Multimodality in AI & LLMs

Initially, AI models were unimodal. A model created for text would process just that, while another model might solely process images. As our computational prowess and access to varied datasets surged, these distinctions began to fade, paving the way for multimodal systems. Essentially, multimodality in AI denotes the capability of models to interpret and generate outputs spanning various data types – whether it’s text, imagery, audio, or beyond. This capability hinges on grasping individual modes and merging them for in-depth insights.

Large Language Models (LLMs) like OpenAI’s ChatGPT, which are chiefly trained on expansive text datasets, are experts at tasks ranging from language translation to answering queries informatively. Training multimodal LLMs on diverse modalities enhances their learning, allowing for intricate correlations between diverse data sets. The ramifications? Vast potential, be it in health diagnostics merging medical imaging with patient data or virtual assistants that perceive and respond with augmented context awareness.

This fusion led by multimodal learning offers models a comprehensive understanding. The premise is straightforward: when a single modality might fall short, tapping into multiple sources bridges the gap. By discerning intricate relationships across these modalities, multimodal learning enhances performance across a spectrum of tasks.

Source: Author

It is worth noting that combining models, such as stacking, bagging, and ensemble, is a technique for improving the performance of machine learning models by combining the predictions of multiple models. Alternatively, multimodal learning enhances machine learning model performance by integrating data from diverse sources.

Multimodal learning techniques

There are several different multimodal learning techniques, which can be broadly classified into three categories:

  1. Fusion-Based Approach: The fusion-based approach integrates data from diverse modalities to form a unified multimodal representation or a shared representation space. This singular representation subsequently trains a machine-learning model. The process extracts features from each modality, which are then combined into the learning model. When executed adeptly, the approach fosters a profound, holistic understanding of the data. However, it’s imperative to ensure individual modalities retain their distinctive nuances. Here, these representations merge, giving rise to a modality-agnostic representation imbued with the semantic essence from all sources. Based on its occurrence, the fusion timeline can be categorized into early and mid-fusion.
  2. Alignment-based approach: This method emphasizes correlating and harmonizing representations across various modalities. While features from each modality are extracted independently, they are tailored to align or correlate with other modalities. The strength of this strategy lies in preserving each modality’s unique traits while establishing commonalities. It leans on advanced techniques for accurate alignment and may demand significant computational resources.
  3. Late fusion: In the late fusion technique, each modality remains distinct until the final stages of processing. They’re independently analyzed, with each generating its own predictions. Only at the culmination are these individual decisions merged, often through methods like averaging or weighting. This ensures that the unique characteristics of each modality are preserved and can be fine-tuned in isolation. While advantageous for modalities that offer complementary insights or aren’t closely related, this method might overlook subtle patterns that arise from early interactions between modalities.

The Significance of Multimodality

In AI:

In LLMs:

In essence, multimodality propels AI and LLMs towards a future mirroring human information processing – a blend of senses and cues. It’s more than just a tech enhancement; it’s progressing towards crafting machines that interact with our world in a more complete, human-like manner.

Limitations of Unimodal LLMs

Unimodal LLMs are trained on a single modality of data, such as text. While impressive in their capabilities, Unimodal LLMs exhibit certain limitations that can be addressed by transitioning to multimodal systems. Here’s a deeper dive into those constraints and how multimodality can provide solutions:

1. Lack of Visual Context:

2. Absence of Audio Interpretation:

3. Difficulty in Understanding and Responding to Complex and Nuanced Queries:

4. Data Bias and Ethical Issues:

5. Impoverished Emotion Recognition:

6. Overfitting to Textual Patterns:

7. Contextual Ambiguities:

8. Restricted Applications in Augmented Reality (AR) and Virtual Reality (VR):

While unimodal LLMs are powerful in their domain, our world is inherently multimodal. Transitioning towards multimodal systems can bridge the gap between the textual digital realm and the multisensory physical world, making AI interactions more intuitive, comprehensive, and effective.

While multimodal systems offer potential answers to the shortcomings of unimodal LLMs, they aren’t without challenges. Curating multimodal training data is arduous; these models demand higher computational power and intricate techniques for coherent data integration from varied sources. The ethical concerns deepen as multiple data types intertwine, each carrying its biases and risks. Deciphering the decision-making of multimodal LLMs is intricate due to their reliance on multifaceted datasets, making it a challenge to discern the weightage of each modality in predictions. Thus, it is crucial to foster their development and application with care, transparency, and an unwavering dedication to improvement.

Case Studies: Successful Multimodal LLM Implementations

Applications of Multimodal LLMs

The fusion of LLMs with multiple modalities goes beyond academic advancements—it’s a tangible game-changer for industries, enterprises, and individuals alike. Here are some pivotal real-world applications:

Conclusion

Multimodal learning stands as a testament to the evolving landscape of machine learning, drawing inspiration from the multifaceted ways humans interact with the world. We can amplify model efficacy and widen AI’s contextual grasp by assimilating insights from varied data sources. The emergence of Multimodal LLMs heralds a transformative phase in LLM evolution, with the potential to significantly influence numerous sectors and use cases. These models discern intricate interplays between diverse data types, enhancing their prowess. Multimodal learning is redefining our perception of data amalgamation in AI by spanning foundational principles to sophisticated techniques like fusion-based, alignment-based, and late fusion strategies. The tangible impact of Multimodal LLMs is palpable across sectors like healthcare, education, entertainment, and more, hinting at a future replete with further innovation and integration. Yet, every technological leap brings its set of hurdles. As we endeavor to merge modalities seamlessly, staying attuned to the intricacies and inherent challenges is imperative. But, fueled by relentless research and innovation, the trajectory for multimodal learning remains optimistic. It isn’t a fleeting trend but a strategic move towards sculpting AI systems that resonate with the depth of human cognition. The potential of Multimodal LLMs is vast, marking a thrilling chapter in AI research.