search
HomeTechnology peripheralsAICan DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

An important goal of multi-modal research is to improve the machine's ability to understand images and text. In particular, researchers have made great efforts on how to achieve meaningful communication between the two models. For example, image captioning generation should be able to convert the semantic content of the image into coherent text that can be understood by humans. In contrast, text-image generative models can also exploit the semantics of textual descriptions to create realistic images.

This leads to some interesting questions related to semantics: For a given image, which textual description most accurately describes the image? Likewise, for a given text, what is the most meaningful way to implement an image? Regarding the first question, some studies claim that the best image description should be information that is both natural and can restore the visual content. As for the second question, meaningful images should be of high quality, diverse and faithful to the text content.

Either way, driven by human communication, interactive tasks involving text-image generative models and image-text generative models can help us select the most accurate image-text pairs.

As shown in Figure 1, in the first task, the image-text model is the information sender, and the text-image model is the information receiver. The sender's goal is to communicate the content of the image to the receiver using natural language so that it understands the language and reconstructs a realistic visual representation. Once the receiver can reconstruct the original image information with high fidelity, it indicates that the information has been successfully transferred. Researchers believe that the text description generated in this way is optimal, and the image generated through it is also most similar to the original image.

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

This rule is inspired by people’s use of language to communicate. Imagine the following scenario: In an emergency call scene, the police learn about the car accident and the status of the injured through the phone. This essentially involves the process of image description by witnesses at the scene. The police need to mentally reconstruct the environmental scene based on the verbal description in order to organize an appropriate rescue operation. Obviously, the best textual description should be the best guide to the reconstruction of the scene.

The second task involves text reconstruction: the text-image model becomes the message sender, and the image-text model becomes the message receiver. Once the two models agree on the content of the information at the textual level, the image medium used to convey the information is the optimal image that reproduces the source text.

In this article, the method proposed by researchers from the University of Munich, Siemens and other institutions is closely related to communication between agents. Language is the primary method for exchanging information between agents. But how can we be sure that the first agent and the second agent have the same understanding of what is a cat or what is a dog?

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

##Paper address: https://arxiv.org/pdf/2212.12249.pdf

The idea that this article wants to explore is to have the first agent analyze the image and generate text describing the image, and then the second agent obtains the text and simulates the image based on it. Among them, the latter process can be considered as a process of embodiment. The study believes that communication is successful if the image simulated by the second agent is similar to the input image received by the first agent (see Figure 1). ​

In the experiments, this study used off-the-shelf models, especially recently developed large-scale pre-trained models. For example, Flamingo and BLIP are image description models that can automatically generate text descriptions based on images. Likewise, image generation models trained on image-text pairs can understand the deep semantics of text and synthesize high-quality images, such as the DALL-E model and the latent diffusion model (SD).

Additionally, the study leveraged the CLIP model to compare images or text. CLIP is a visual language model that maps images and text in a shared embedding space. This study uses manually created image text datasets such as COCO and NoCaps to evaluate the quality of the generated text. Image and text generative models have stochastic components that allow sampling from a distribution, thus selecting the best from a range of candidate texts and images. Different sampling methods, including kernel sampling, can be used in image description models, and this article uses kernel sampling as the basic model to show the superiority of the method used in this article.

Method Overview

The framework of this article consists of three pre-trained SOTA neural networks. First, the image-text generation model; second, the text-image generation model; third, the multi-modal representation model consisting of an image encoder and a text encoder, which can map images or texts into their semantic embeddings respectively. .

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

Image reconstruction through text description

Figure 2 Left half As shown in the section, the image reconstruction task is to reconstruct a source image using language as instructions, and the implementation of this process will lead to the generation of optimal text describing the source scene. First, a source image x is fed to the BLIP model to generate multiple candidate texts y_k. For example, a red panda eats leaves in the woods. The generated set of text candidates is denoted by C, and then the text y_k is sent to the SD model to generate the image x’_k. Here x’_k refers to the image generated based on red panda. Subsequently, the CLIP image encoder is used to extract semantic features from the source and generated images: Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text and Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text.

Then the cosine similarity between these two embedding vectors is calculated with the purpose of finding the candidate text description y_s, i.e.

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

where s is the image index closest to the source image.

The study uses CIDEr (Image Description Metric) and references human annotations to evaluate the best texts. Since we were interested in the quality of the generated text, this study set the BLIP model to output text of approximately the same length. This ensures a relatively fair comparison, since the length of the text is positively correlated with the amount of information in the image that can be conveyed. During this work, all models are frozen and no fine-tuning is performed.

Text reconstruction through images

The right part of Figure 2 shows the reverse of the process described in the previous section. The BLIP model requires guessing the source text guided by an SD, which has access to the text but can only render its content in the form of an image. The process starts by using SD to generate candidate images x_k for the text y, and the resulting set of candidate images is denoted by K. Generating images using SD involves a random sampling process, where each generation process may end up with different valid image samples in a huge pixel space. This sampling diversity provides a pool of candidates to filter out the best images. The BLIP model then generates a text description y’_k for each sampled image x_k. Here y’_k refers to the initial text A red panda crawling in the forest. The study then used the CLIP text encoder to extract features of the source text and generated text, represented by Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text and Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text, respectively. The purpose of this task is to find the best candidate image x_s that matches the semantics of the text y. To do this, the study needs to compare the distance between the generated text and the input text, and then select the image with the smallest distance between the paired texts, i.e.

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

The study believes that the image x_s can best depict the text description y because it can deliver the content to the receiver with minimal information loss. Furthermore, this study treats the image Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text corresponding to the text y as a reference presentation of y, and quantifies the best image as its proximity to the reference image.

Experimental Results

The left chart in Figure 3 shows the correlation between image reconstruction quality and description text quality on the two datasets. For each given image, the better the reconstructed image quality (shown in the x-axis), the better the text description quality (shown in the y-axis).

The right graph of Figure 3 reveals the relationship between the quality of the recovered text and the quality of the generated image: for each given text, the reconstructed text description (shown at x The better the y-axis), the better the image quality (shown on the y-axis).

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

Figure 4 (a) and (b) shows the relationship between the image reconstruction quality and the average text quality based on the source image. relationship between. Figure 4(c) and (d) show the correlation between text distance and reconstructed image quality.

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

Table 1 shows that the study’s sampling method outperforms kernel sampling in every metric, and the model’s The relative gain can be as high as 7.7%.

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

Figure 5 shows qualitative examples of two reconstruction tasks.

Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text

The above is the detailed content of Can DALL-E and Flamingo understand each other? Three pre-trained SOTA neural networks unify images and text. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
从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的高清图像。这些图像甚至

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

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

找不到中文语音预训练模型?中文版 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] 是

解锁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

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

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

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

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

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)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)