Despite Multi-modal Large Language Models (MM-LLMs) have made exciting strides recently, they are still struggling to efficiently model the interactions among multi-modal inputs and the generation in non-textual modalities. In this work, we propose TEAL (Tokenize and Embed ALl)}, an approach to treat the input from any modality as a token sequence and learn a joint embedding space for all modalities. Specifically, for the input from any modality, TEAL first discretizes it into a token sequence with the off-the-shelf tokenizer and embeds the token sequence into a joint embedding space with a learnable embedding matrix. MM-LLMs just need to predict the multi-modal tokens autoregressively as the textual LLMs do. Finally, the corresponding de-tokenizer is applied to generate the output in each modality based on the predicted token sequence. With the joint embedding space, TEAL enables the frozen LLMs to perform both understanding and generation tasks involving non-textual modalities, such as image and audio. Thus, the textual LLM can just work as an interface and maintain its high performance in textual understanding and generation. Experiments show that TEAL achieves substantial improvements in multi-modal understanding, and implements a simple scheme for multi-modal generations.
翻译:尽管多模态大语言模型(MM-LLMs)近期取得了令人瞩目的进展,但其在多模态输入交互建模与非文本模态生成方面仍面临效率挑战。本文提出TEAL(全面分词与嵌入)方法,将任意模态的输入视为分词序列,并为所有模态学习联合嵌入空间。具体而言,TEAL首先通过现成分词器将输入离散化为分词序列,再利用可学习嵌入矩阵将该序列映射至联合嵌入空间。多模态大语言模型只需像文本模型那样自回归预测多模态分词,最终基于预测的分词序列通过对应反分词器生成各模态输出。借助联合嵌入空间,TEAL使冻结语言模型能够执行涉及图像、音频等非文本模态的理解与生成任务,从而让文本语言模型仅需作为接口运作,同时保持其在文本理解与生成中的高性能。实验表明,TEAL在多模态理解任务上取得显著提升,并实现了一种简洁的多模态生成方案。