MITB Banner

Visual ChatGPT is the Wake-up Call for Text-To-Image

Microsoft Research is bridging the gap between humans and AI.
Share
Listen to this story

Microsoft researchers recently published a paper aimed at bringing together the capabilities of ChatGPT and visual foundation models like Stable Diffusion. This architecture, termed ‘Visual ChatGPT’, wants to bridge the gap between text-to-image and natural language generation.

As predicted by AIM, this seems to be the way forward for text-to-image algorithms. The approach combines the strengths of an LLM like ChatGPT with the power of image generation, providing a comprehensive package that covers the shortcomings of both these platforms. By bringing natural language processing to parameter-driven image generation models, it is possible to interact with AI in a more organic way. 

How does Visual ChatGPT work?

Put simply, the demo adds capabilities of sharing images with ChatGPT. This functionality is achieved by using a ‘prompt manager’ to share information between various visual foundation models, such as Stable Diffusion, ControlNet, BLIP, and ChatGPT itself.

Visual foundation models, or VFMs, is a term used to describe a set of fundamental algorithms used for computer vision. These algorithms can form the basis of more complicated models and are used to impart standardised computer vision capabilities to AI applications. 

The prompt manager interfaces between ChatGPT and these VFMs to process the output seamlessly. For example, take the kitchen of a restaurant. While ChatGPT is like the waiter taking the customers orders, the VFMs are like the chefs in the kitchen whipping up the dish. The prompt manager takes on the role of a kitchen manager, relaying orders and food between the waiters and the chefs.

The flowchart of how the prompt manager works in the architecture. (Source: Microsoft Research)

As such, the prompt manager includes some logic, such as a reasoning format which helps ChatGPT decide whether it needs to use a tool (like a VFM) to give the necessary output. The PM also takes care of the iterative reasoning used to fine-tune the output image. It also takes care of certain housekeeping, such as managing the filenames in ChatGPT’s output and keeping a track of image file names.  

The prompt manager is really at the heart of this system, as it is what ChatGPT calls on to answer any type of non-language queries. In a way, the prompt manager stands in for the user, moving ChatGPT towards the required output through a series of tailored prompts. This results in a much more capable version of ChatGPT that does not rely on hallucinations, instead being forced to call on the capabilities of VFMs through the prompt manager.

While Visual ChatGPT is capable in and of itself, it sets a precedent that is more fascinating. Is it possible to bring together the formidable capabilities of LLMs and visual models, and could this be one of the first steps towards AGI?

Changing the face of text-to-image

There is a fundamental problem with how text-to-image models work, and that’s their lack of understanding when it comes to linguistic context. In a paper exploring the relational understanding of generative AI models, researchers found that these models did not ‘understand’ physical relations of certain objects.

For example, while the model was capable of creating images for ‘a child touching a bowl’, it was not able to create an image of ‘a monkey touching an iguana’. This is because there isn’t enough information in the training data of the latter scenario, thereby leading to inadequate responses. To overcome this limitation of text-to-image models, a new job has emerged—AI whisperers or prompt engineering

The process to make AI models ‘understand’ humans is still uncharted territory, which is slowly being mapped out by up-and-coming AI artists. That’s why we have websites like ‘PromptHero’, a repository of prompts for text-to-image algorithms that just work, and that’s also why a seemingly meaningless word soup can provide stunning AI imagery. Consider the example below. 

Good AI art requires extremely specific prompts. (Source: PromptHero)

As seen by this image, getting a solid output from a text-to-image model requires a comprehensive knowledge base of what to prompt for. Negative prompts are also used to avoid certain characteristics in the completed image. Looking at the direction Microsoft’s prompt manager is taking, it seems that the potential for this job is over before it even begins.

From the examples provided in the GitHub page, it is clear that users do not need to engage in such complex prompts to convey information to the model. They can simply type, in natural language, what they want from the model. For example, after generating the image of a cat, the user then asks ChatGPT to replace the cat with a dog. Without any complex prompts, the image was generated, with the user iteratively making changes to it like changing its colour. 

Tools like Visual ChatGPT can not only reduce the barrier of entry to text-to-image models, they can also be used to add interoperability to various AI tools. LLMs and T2I models previously existed in silos but through technologies like the prompt manager, we might be able to amplify the capabilities of these state-of-the-art models. 

PS: The story was written using a keyboard.
Share
Picture of Anirudh VK

Anirudh VK

I am an AI enthusiast and love keeping up with the latest events in the space. I love video games and pizza.
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Courses & Careers

Become a Certified Generative AI Engineer

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India