AI systems that process and generate multiple types of data (text, images, audio, video)
Let's discuss these in turn.
GANs are a type of generative model that uses two neural networks:
For images, the generator network takes a random noise vector and generates an image. The discriminator network takes an image and tries to determine if it's real or fake.
CLIP is a multimodal model that understands the relationship between text and images.
It's not a generative model - it allows you to measure the similarity between text and images
LatentScape: Explore a Latent Image Space
Why would a model that measures distance between text and images be useful in generating images?
Think back to the GAN 'discriminator' network.
Having a measurable relationship between an image and text means you can start training a generator, and automatically score if it's generating good or bad images.
You can use that as a reward to train your generator.
DALL-E 1 is a text-to-image generation model that uses CLIP and a trained transformer model.
Subsequent versions of DALL-E were 'diffusion' models, which generate 'noise' that is iteratively refined into an image.
Images: an SDXL fine-tune
This is an AI literacy class. How is this something that we end up using?
Unlike with text where generative models proved to be extremely useful, with visual language the generative capabilities tend to be more fun or specialized (e.g. art and film; stock photography).
Visually, interpretive capabilities tend to be more broadly practically useful.
Vision Transformers (ViT; Dosovitskiy et al. 2020) are a type of transformer model that are specifically designed to process images.
DALL-E was a transformer-based *autoregressive* (i.e. decoder-only generative model) model - here, we're talking about an *encoder* model - which can be used to understand images.
The Vision Transformer approach makes clear that images can be treated the same way as text, so why not use them together?
GPT-4V (OpenAI, 2023); Claude 3 Vision (Anthropic, 2024); Gemini (Google, 2023); LLaMA 3 (Meta, 2024)
What makes this composition particularly compelling is the juxtaposition of the dog's natural solemnity against the playful absurdity of being dressed as the very food item that shares its colloquial name.
Order on Jonathan Sergeant, Treasurer, to pay £17 19s. 10 1/2 d. to Richard Scott, for work done about the college, according to the within account.
... And just like that...
Short Exercise: Try GPT Voice Mode
** In groups of 3-4, try out the new voice mode in GPT-4o, around one phone (onsite) or following with a single group leader (on Zoom) **
Whisk
Whisk: Example of clever application design
Artbreeder Splicer
Consider:
References
Updates since I last taught the class are here. They are not formatted as slides, so refer to the 'Notes' version of the deck https://ai.porg.dev