search
HomeTechnology peripheralsAIMeta launches 'Chameleon' to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

The emergence of GPT-4o once again created a new paradigm for multi-modal model development!

Why do you say that?

OpenAI calls it the "first "native" multi-modal" model, which means that GPT-4o is different from all previous models.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Traditional multi-modal basic models usually use a specific "encoder" or "decoder" for each modality to convert different The modes are separated.

However, this approach limits the model’s ability to effectively fuse cross-modal information.

GPT-4o is the "first end-to-end" trained model that can span text, visual and audio modes. All inputs and outputs are handled by a single neural network deal with.

And now, the industry’s first model that dares to challenge GPT-4o has appeared!

Recently, researchers from the Meta team released the "Mixed Modal Base Model" - Chameleon.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Paper address: https://arxiv.org/pdf/2405.09818

With GPT- Like 4o, Chameleon adopts a unified Transformer architecture and uses text, image and code mixed modes to complete training.

In a manner similar to text generation, the image is discretely "tokenized" (tokenization), and finally generates and infers interleaved text and image sequences.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

With this "early fusion" method, all pipelines are mapped to a common representation space from the beginning, so the model can be seamlessly Seam processing of text and images.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Chameleon generated multi-modal content

At the same time, such a design provides a model Training presents significant technical challenges.

In this regard, the Meta research team has introduced a series of architectural innovations and training technologies.

The results show that in plain text tasks, the performance of 34 billion parameter Chameleon (trained with 10 trillion multi-modal tokens) is equivalent to Gemini-Pro.

On visual question answering and image annotation benchmarks, it refreshes SOTA and its performance is close to GPT-4V.

However, both GPT-4o and Chameleon are early explorations of a new generation of "native" end-to-end multi-modal basic models.

At the GTC 2024 conference, Lao Huang described an important step towards the ultimate vision of AGI - the interoperability of various modes.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Is the next open source GPT-4o coming?

The release of Chameleon is simply the fastest response to GPT-4o.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Some netizens said that token goes in and token goes out, which is simply impossible to explain.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Some people even claim that OOS will catch up with the very solid research released after the birth of GPT-4o.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

However, currently the Chameleon model supports generated modalities, mainly image text. The speech capabilities in GPT-4o are missing.

Netizens said that then just add another modality (audio), expand the training data set, and "cook" for a while, we will get GPT-4o...?

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Meta’s Director of Product Management said, “I’m very proud to support this team. Let’s move towards making GPT-4o closer to the open source community. Take a step forward in that direction.”

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Maybe it won’t be long before we get an open source version of GPT-4o.

Next, let’s take a look at the technical details of the Chameleon model.

Technical Architecture

Meta first stated in Chameleon's paper: Many recently released models still do not implement "multimodality" to the end.

Although these models adopt an end-to-end training method, they still model different modalities separately, using separate encoders or decoders.

As mentioned at the beginning, this approach limits the model's ability to cross-modal information, and makes it difficult to generate truly multi-modal documents containing any form of information.

In order to improve this shortcoming, Meta proposed a series of "mixed-modal" base models Chameleon - capable of generating content in which text and image content are arbitrarily intertwined.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Chameleon’s generation results, text and images are interlaced

The so-called "mixed modal" basis The base model means that Chameleon not only uses an end-to-end approach to train from scratch, but also interweaves and mixes information from all modalities during training and processes it using a unified architecture.

How to mix information from all modalities and represent it in the same model architecture?

The answer is still "token".

As long as it is all expressed as tokens, all modal information can be mapped into the same vector space, allowing Transformer to process it seamlessly.

However, this approach will bring technical challenges in terms of optimization stability and model scalability.

In order to solve these problems, the paper innovates the model architecture accordingly and uses some training techniques, including QK normalization and Zloss.

At the same time, the paper also proposes a method of fine-tuning plain text LLM into a multi-modal model.

Image "Token Breaker"

#To represent all modalities as tokens, you first need a powerful tokenizer.

To this end, Chameleon’s team developed a new image segmenter based on a previous paper in Meta. Based on a codebook of size 8192, the specification is 512×512 The image is encoded as 1024 discrete tokens.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

The text segmenter is based on the sentencepiece open source library developed by Google, and trained a BPE segmentation containing 65536 text tokens and 8192 image tokens. device.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Pre-training

#In order to fully stimulate the potential of "mixed modalities", the training data is also divided into different modalities. Mixed presentations to the model include plain text, text-image pairs, and multi-modal documents in which text and images interleave.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Plain text data includes all pre-training data used by Llama 2 and CodeLlama, totaling 2.9 trillion tokens.

Text-image pairs contain some public data, totaling 1.4 billion pairs and 1.5 trillion tokens.

Regarding the intertwined data of text and images, the paper specifically emphasizes that it does not include data from Meta products, and completely uses public data sources to sort out a total of 400 billion tokens.

Chameleon’s pre-training is conducted in two separate phases, accounting for 80% and 20% of the total training ratio respectively.

The first stage of training is to let the model learn the above data in an unsupervised way. At the beginning of the second stage, first reduce the weights obtained in the first stage by 50%, and mix and update High-quality data allows the model to continue learning.

When the model expands to more than 8B parameters and 1T tokens, obvious instability problems will occur in the later stages of training.

Since all modalities share model weights, each modality seems to have a tendency to increase norm and "compete" with other modalities.

This will not cause much problems in the early stages of training, but as training progresses and the data exceeds the expression range of bf16, loss will diverge.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

The researchers attribute this to the translational invariance of the softmax function, a phenomenon also known as "logit drift" (logit drift).

Therefore, the paper proposes some architectural adjustments and optimization methods to ensure stability:

-QK normalization (query-key normalization ): Apply layer norm to the query and key vectors in the attention module, thereby directly controlling the norm growth of the softmax layer input.

-Introduce dropout after the attention layer and feedforward layer

-Use Zloss regularization in the loss function

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

In addition to the data source and architecture, the paper also generously disclosed the scale of computing power used in pre-training.

The hardware model is NVIDIA A100 with 80GB memory. The 7B version uses 1024 GPUs in parallel to train for about 860,000 GPU hours. The number of GPUs used in the 34B model has been expanded by 3 times. Over 4.28 million hours.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

As a company that once open sourced Llama 2, Meta’s research team is really generous. Compared to GPT-4o, which doesn’t even have a technical report, this article A paper with data and useful information can be said to be "the most benevolent and righteous".

Comprehensively surpassing Llama 2

In the specific experimental evaluation, the researchers divided it into manual evaluation, security testing, and baseline evaluation.

Benchmark Evaluation

Chameleon-34B uses four times more tokens than Llama 2 for training. In various single-modal Stunning results have been achieved in benchmark tests.

In the text-only task generation, the researchers compared the text-only features of the pre-trained (non-SFT) model with other leading text-only LLMs.

The assessment content includes common sense reasoning, reading comprehension, mathematical problems and world knowledge areas. The assessment results are shown in the table below.

-Common Sense Reasoning and Reading Comprehension

It can be observed that compared with Llama 2, Chameleon-7B and Chameleon-34B are more competitive. In fact, 34B even surpassed Llama-2 70B on 5/8 tasks, and its performance was equivalent to Mixtral-8x7B.

- Mathematics and World Knowledge

Despite being trained on other modalities, both Chameleon models Demonstrate strong mathematical skills.

On GSM8k, Chameleon-7B performs better than the Llama 2 model of corresponding parameter scale, and its performance is equivalent to Mistral-7B.

In addition, Chameleon-34B performs better than Llama 2-70B at maj@1 (61.4 vs 56.8) and Mixtral-8x7B at maj@32 (77.0 vs 75.1).

Likewise, in math operations, Chameleon-7B outperforms Llama 2, is on par with Mistral-7B on maj@4, and Chameleon-34B outperforms Llama 2 -70B, close to the performance of Mixtral-8x7B on maj@4 (24.7 vs 28.4).

Overall, the performance of Chameleon exceeds Llama 2 in all aspects and is close to Mistral-7B/8x7B on some tasks.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

In the text-to-image task, the researchers specifically evaluated two specific tasks: visual question answering and image annotation.

Chameleon defeated models such as Flamingo and Llava-1.5 to become SOTA in visual question answering and image annotation tasks, and also competed with first-tier models such as Mixtral 8x7B and Gemini Pro in plain text tasks. Performance is comparable.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Manual evaluation and security testing

At the same time, in order to further evaluate the model to generate multi-modal content Regarding quality, the paper also introduced human evaluation experiments in addition to benchmark tests, and found that Chameleon-34B performed far better than Gemini Pro and GPT-4V.

Compared to GPT-4V and Gemini Pro, human judges scored 51.6% and 60.4 preference rates respectively.

The following figure shows the performance comparison of Chameleon and baseline models in understanding and generating content for a diverse set of prompts from human annotators.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Each question is answered by three different human annotators, with the majority vote being the final answer.

To understand the quality of the human annotators and whether the questions were well designed, the researchers also examined the degree of agreement between different annotators.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Table 5 is a security test conducted on 20,000 crowdsourced prompts and 445 red team interactions, Causes the model to produce unsafe content.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Compared with Gemini and GPT-4V, Chameleon is very competitive when dealing with cues that require interleaved, mixed-modal responses.

As you can see from the example, when completing the question and answer task, Chameleon can not only understand the input text + image, but also add appropriate "pictures" to the model output content.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Moreover, the images generated by Chameleon are usually contextual, making the output of this interlaced content very attractive to users.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA

Contribution team

At the end of the paper, the contributors who participated in this research are also listed.

Includes pre-training, alignment and safety, reasoning and evaluation, and participants for all projects.

Among them, * indicates a joint author, † indicates a key contributor, ‡ indicates the workflow leader, and ♯ indicates the project leader.

Meta launches Chameleon to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA


The above is the detailed content of Meta launches 'Chameleon' to challenge GPT-4o, 34B parameters lead the multi-modal revolution! 10 trillion token training refreshes SOTA. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
从VAE到扩散模型:一文解读以文生图新范式从VAE到扩散模型:一文解读以文生图新范式Apr 08, 2023 pm 08:41 PM

1 前言在发布DALL·E的15个月后,OpenAI在今年春天带了续作DALL·E 2,以其更加惊艳的效果和丰富的可玩性迅速占领了各大AI社区的头条。近年来,随着生成对抗网络(GAN)、变分自编码器(VAE)、扩散模型(Diffusion models)的出现,深度学习已向世人展现其强大的图像生成能力;加上GPT-3、BERT等NLP模型的成功,人类正逐步打破文本和图像的信息界限。在DALL·E 2中,只需输入简单的文本(prompt),它就可以生成多张1024*1024的高清图像。这些图像甚至

找不到中文语音预训练模型?中文版 Wav2vec 2.0和HuBERT来了找不到中文语音预训练模型?中文版 Wav2vec 2.0和HuBERT来了Apr 08, 2023 pm 06:21 PM

Wav2vec 2.0 [1],HuBERT [2] 和 WavLM [3] 等语音预训练模型,通过在多达上万小时的无标注语音数据(如 Libri-light )上的自监督学习,显著提升了自动语音识别(Automatic Speech Recognition, ASR),语音合成(Text-to-speech, TTS)和语音转换(Voice Conversation,VC)等语音下游任务的性能。然而这些模型都没有公开的中文版本,不便于应用在中文语音研究场景。 WenetSpeech [4] 是

普林斯顿陈丹琦:如何让「大模型」变小普林斯顿陈丹琦:如何让「大模型」变小Apr 08, 2023 pm 04:01 PM

“Making large models smaller”这是很多语言模型研究人员的学术追求,针对大模型昂贵的环境和训练成本,陈丹琦在智源大会青源学术年会上做了题为“Making large models smaller”的特邀报告。报告中重点提及了基于记忆增强的TRIME算法和基于粗细粒度联合剪枝和逐层蒸馏的CofiPruning算法。前者能够在不改变模型结构的基础上兼顾语言模型困惑度和检索速度方面的优势;而后者可以在保证下游任务准确度的同时实现更快的处理速度,具有更小的模型结构。陈丹琦 普

解锁CNN和Transformer正确结合方法,字节跳动提出有效的下一代视觉Transformer解锁CNN和Transformer正确结合方法,字节跳动提出有效的下一代视觉TransformerApr 09, 2023 pm 02:01 PM

由于复杂的注意力机制和模型设计,大多数现有的视觉 Transformer(ViT)在现实的工业部署场景中不能像卷积神经网络(CNN)那样高效地执行。这就带来了一个问题:视觉神经网络能否像 CNN 一样快速推断并像 ViT 一样强大?近期一些工作试图设计 CNN-Transformer 混合架构来解决这个问题,但这些工作的整体性能远不能令人满意。基于此,来自字节跳动的研究者提出了一种能在现实工业场景中有效部署的下一代视觉 Transformer——Next-ViT。从延迟 / 准确性权衡的角度看,

Stable Diffusion XL 现已推出—有什么新功能,你知道吗?Stable Diffusion XL 现已推出—有什么新功能,你知道吗?Apr 07, 2023 pm 11:21 PM

3月27号,Stability AI的创始人兼首席执行官Emad Mostaque在一条推文中宣布,Stable Diffusion XL 现已可用于公开测试。以下是一些事项:“XL”不是这个新的AI模型的官方名称。一旦发布稳定性AI公司的官方公告,名称将会更改。与先前版本相比,图像质量有所提高与先前版本相比,图像生成速度大大加快。示例图像让我们看看新旧AI模型在结果上的差异。Prompt: Luxury sports car with aerodynamic curves, shot in a

​什么是Transformer机器学习模型?​什么是Transformer机器学习模型?Apr 08, 2023 pm 06:31 PM

译者 | 李睿审校 | 孙淑娟​近年来, Transformer 机器学习模型已经成为深度学习和深度神经网络技术进步的主要亮点之一。它主要用于自然语言处理中的高级应用。谷歌正在使用它来增强其搜索引擎结果。OpenAI 使用 Transformer 创建了著名的 GPT-2和 GPT-3模型。自从2017年首次亮相以来,Transformer 架构不断发展并扩展到多种不同的变体,从语言任务扩展到其他领域。它们已被用于时间序列预测。它们是 DeepMind 的蛋白质结构预测模型 AlphaFold

五年后AI所需算力超100万倍!十二家机构联合发表88页长文:「智能计算」是解药五年后AI所需算力超100万倍!十二家机构联合发表88页长文:「智能计算」是解药Apr 09, 2023 pm 07:01 PM

人工智能就是一个「拼财力」的行业,如果没有高性能计算设备,别说开发基础模型,就连微调模型都做不到。但如果只靠拼硬件,单靠当前计算性能的发展速度,迟早有一天无法满足日益膨胀的需求,所以还需要配套的软件来协调统筹计算能力,这时候就需要用到「智能计算」技术。最近,来自之江实验室、中国工程院、国防科技大学、浙江大学等多达十二个国内外研究机构共同发表了一篇论文,首次对智能计算领域进行了全面的调研,涵盖了理论基础、智能与计算的技术融合、重要应用、挑战和未来前景。论文链接:​https://spj.scien

AI模型告诉你,为啥巴西最可能在今年夺冠!曾精准预测前两届冠军AI模型告诉你,为啥巴西最可能在今年夺冠!曾精准预测前两届冠军Apr 09, 2023 pm 01:51 PM

说起2010年南非世界杯的最大网红,一定非「章鱼保罗」莫属!这只位于德国海洋生物中心的神奇章鱼,不仅成功预测了德国队全部七场比赛的结果,还顺利地选出了最终的总冠军西班牙队。不幸的是,保罗已经永远地离开了我们,但它的「遗产」却在人们预测足球比赛结果的尝试中持续存在。在艾伦图灵研究所(The Alan Turing Institute),随着2022年卡塔尔世界杯的持续进行,三位研究员Nick Barlow、Jack Roberts和Ryan Chan决定用一种AI算法预测今年的冠军归属。预测模型图

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor