07 · Multimodal

Pictures, sound, video

07Multimodal

Group 07 · 7 techniques

Multimodal

Pictures, sound, video. Use a picture + words together.

Each slide shows one technique: the plain prompt, the same prompt with the technique applied, and what changed. Use the arrows, the keys ← →, or pick a technique on the left.

Prompt Modifiers (image)

Words appended to a text-to-image prompt to change the resultant image - e.g. medium, lighting.

Before

a portrait of a woman

After · new words marked

a portrait of a woman, on canvas, a well lit scene, oil painting

What happened

Modifiers change medium / lighting / style without rewriting the subject (Oppenlaender 2023).

Negative Prompting (image)

Numerically weight terms so the model weighs them more or less; negatively weight unwanted traits.

Before

a portrait, hands visible

After · new words marked

a portrait, hands visible [negative: bad hands, extra digits]

What happened

Negatively weighting 'bad hands' and 'extra digits' gives more anatomically accurate hands (Schulhoff 2022).

Paired-Image Prompting

Show two images (before / after a transformation), then a new image to convert - multimodal in-context learning.

Before

Edit this image to look vintage. [image]

After · new words marked

Here is a before/after pair showing the vintage transformation: [image 1] -> [image 2]. Now apply the same transformation to this image: [image 3]

What happened

Multimodal ICL for image transformation (Wang et al. 2023; Liu et al. 2023).

Image-as-Text Prompting

Generate a textual description of an image so it can be included in a text prompt.

Before

Use this image: [image]

After · new words marked

Describe this image in detail, then use that description as part of the text prompt.

What happened

Lets image content enter a text prompt (Hakimov & Schlangen 2023).

Duty Distinct Chain-of-Thought (DDCoT)

Extends Least-to-Most to multimodal: create sub-questions, solve them, combine the answers.

Before

Answer this question about the image.

After · new words marked

Break the question into sub-questions about the image, answer each, then combine them into the final answer.

What happened

Multimodal extension of Least-to-Most (Zheng et al. 2023).

Chain-of-Images (CoI)

Multimodal CoT that generates images (SVGs) as part of its thought process.

Before

Solve this geometry problem in words.

After · new words marked

Let's think image by image - generate a diagram for each step, then solve.

What happened

Generates images as part of the thought process (Meng et al. 2023).

Multimodal CoT (image + text)

An image of a problem plus a textual instruction to reason step by step.

Before

Solve this. [image of a math problem]

After · new words marked

Solve this step by step. [image of a math problem]

What happened

Image + step-by-step text instruction improves visual reasoning (Zhang et al. 2023).