Interactive Sketchpad

It is eleven at night and a student is stuck on an integral. A tutor that draws. It writes code to make an exact diagram, gives one hint at a time, and reads your pencil marks back. With code it scores 100% on maxflow, where GPT-4o scores 25%.

See how a language model becomes a patient tutor: it draws before it talks, it checks its sums by running code, and it holds back the answer so you can find it yourself.

Ask the same question of a text-only chat and of Interactive Sketchpad. Press Ask for a hint a few times in each. Watch which one lets you do the thinking. Then we build the system piece by piece.

You need a feel for what a graph of a function looks like and a little Python for the code. We build the rest from zero.

A reading for MIT MMAI, Lecture 19 (Multimodal AI, Spring 2026, Paul Pu Liang). Paper: Jimin Lee, Steven-Shine Chen and Paul Pu Liang, MIT, CHI EA 2025. arXiv 2503.16434.

Ask for a hint

An illustrative scene, not the paper’s data. The question is a classic integral with no simple antiderivative; the replies are scripted to show the behaviour the paper’s Figure 1 describes: plain GPT-4o “frequently reveal[s] the answer” with no visual aids, while Interactive Sketchpad draws and hints. The curve and the strips are computed live.

Chapter 0

A Tutor That Draws and Holds Back

See why a text-only tutor fails a student who needs a picture, and what a better tutor must do instead

Picture a student at a desk at eleven at night. The homework says: find the area under a curve between 0 and 1. The curve is e−x². The student cannot see the curve in their head, and the textbook has no worked example. They open a chat window and type: “I am stuck.”

A chatbot answers in a second. It writes a tidy paragraph, names a special function, and gives a number. The student copies the number. The homework is done. Nothing has been learned.

This is the problem the paper attacks. It names two faults of the usual chat tutor. The first is that it speaks only in words, so it cannot show the student a shape. The second is that it gives away the answer, so the student never does the thinking.

Fault one: words cannot hold a shape

A tutoring system is software that helps a student learn, the way a patient teacher at your shoulder would. Most of them, the authors say, are text-based. They give feedback “only through natural language and limited visual support.”

Yet people have always drawn to think. A geometry student adds an auxiliary line, a line that is not in the problem but makes a hidden fact show up. A calculus student sketches the curve and shades the area. The paper cites studies that students who use visual aids grasp ideas better than students who only read words. A tutor that cannot draw is a teacher with their hands tied.

Fault two: the answer arrives too soon

The second fault is quieter. A model that is good at maths wants to be helpful, and the helpful-looking move is to solve the problem. The paper points to work showing that leaning on a model for direct answers can hurt learning. It points to other work showing that a tutor which gives hints, small nudges that leave the last step to the student, does better.

So the target is a tutor that does two things at once. It draws what the student needs to see. And it holds back what the student needs to work out.

What Interactive Sketchpad is

The system has a plain recipe. Take a pre-trained large multimodal model (LMM), a model that reads and writes both text and images. The authors use GPT-4o. Teach it to tutor in small steps. Give it a code interpreter, a tool that runs the Python it writes. Let it draw diagrams by writing code. Then give the student a shared whiteboard, so the student can draw on the diagram and send it back.

The result is a loop. The student asks. The model decides whether a picture would help. It draws the picture with code. It writes one hint that points at the picture. The student marks up the picture and replies. Round and round, until the student can finish alone.

Try the hero again with this in mind. In the text-only chat, one reply ends the conversation. In Interactive Sketchpad, three hints and a growing diagram keep the student at work. The rest of this lesson builds that second behaviour, one mechanism per chapter.

Train your ear for a leak

The prompt that steers the model contains one blunt rule: “You should only give one hint at a time, DO NOT give away the answer.” Before we see how it is used, test your own ear. Below are six tutor replies to the integral question. Mark each one as a hint or a leak.

Hint or leak?

Read the tutor reply on the card. A leak gives the answer or the full method. A hint leaves the last step to the student. Choose one, then read the reason.

The six replies are written for this lesson to show the idea. They are not quotes from the paper. The number 0.7468 is the true value of the integral, (√π/2) · erf(1) = 0.746824.

Notice that a good hint is not vague. “Try sketching the curve” is a precise move. It names the next action, and it leaves the thinking. A leak, on the other hand, can look kind. It saves the student time and takes the lesson away.

How this lesson is organised

This is a reading for the MIT course on multimodal AI, from the lecture on AI for new senses. The paper is short: an extended abstract at a human-computer interaction conference (CHI), with appendices of prompts and screenshots. So the lesson spends its time on the mechanisms, and says plainly where the paper stops giving detail.

  1. Models that think with programs: multimodal models, chain of thought, and code as a tool.
  2. The four-part loop: what moves between analysis, drawing, hinting and the whiteboard.
  3. Problem analysis: when a picture helps. This is the first control in the hero.
  4. Drawing by program: why the diagram in the hero is exact, and how it can still be wrong.
  5. Hint generation: why the hero tutor never says 0.7468, and how code checks its sums.
  6. The interactive whiteboard: how your pencil marks become the next request.
  7. What the tables show: the accuracy scores and the user ratings.
  8. Seven students and the limits: how far the evidence goes.
  9. Field guide: numbers, checklist, code, and where to read next.
A student asks a chat tutor for help. The tutor replies with the full method and the final number. According to the paper’s argument, what is the main problem?

Chapter 1

Models That Think With Programs

Learn the three older ideas the paper stands on: multimodal models, chain of thought, and code that draws and counts

You ask a friend who is good at maths to add 37 numbers in their head. They are clever, and they are careful. Still, the chance that they slip somewhere in 37 additions is not small. Now hand them a calculator. The cleverness stays the same. The slips vanish.

That small scene holds the first idea of the paper. A language model is a clever friend who is shaky with long arithmetic. If it can write a short program and let a computer run it, the arithmetic becomes exact. The same trick works for drawing: a program draws a circle exactly, where a guess does not.

Large multimodal models

A large language model reads text and writes text. It is trained on a huge amount of writing to predict the next piece of text, again and again. A large multimodal model (LMM) goes one step further. Its input can also include images, and some also take audio or video. The paper uses GPT-4o, a model of this kind.

Two details matter for us. The input is a list of messages. Each message can mix text and images. The output is text, which can be plain words or can be a program. Interactive Sketchpad uses all three: it reads the student’s text, it reads a screenshot of the student’s whiteboard, and it writes words and code.

Chain of thought

Ask a model a hard question and demand the answer at once, and it often fails. Ask it to write its reasoning first, step by step, and it does better. This is chain of thought (Wei et al., 2022, cited in the paper). The written steps give the model room to work, the way scratch paper does for you.

The paper also cites a version for pictures. Visual chain of thought lets the model produce or use images in the middle of its reasoning. The idea is the same: a step you can see is a step you can build on.

Code as the model’s hands

Chain of thought has a weak spot. When the steps are arithmetic, each step the model writes in words is another chance to slip. The paper cites Program of Thoughts (Chen et al., 2023), which splits the work. The model writes the plan as a short program. A computer runs the program. The model reasons, and the computer calculates.

The same split works for pictures, and the paper names three earlier systems. VisProg has the model write a small pseudo-program, a list of named steps, and a runner carries it out on an image. ViperGPT does the same with ordinary Python, which is more flexible. Visual Sketchpad (Hu et al., 2024) lets the model draw its own intermediate diagrams, such as an auxiliary line in a geometry figure, and then look at them as part of its reasoning.

Interactive Sketchpad borrows this machinery. The paper says these earlier works “are designed to facilitate LMM visual reasoning rather than interacting with and helping humans in education.” The new step is the audience. The diagram is no longer the model’s private scratch paper. It is shown to a student, and the student can draw back.

The code interpreter

A code interpreter is a sandbox, a locked room, where the model’s Python runs. The model writes code. The sandbox runs it, and returns what the code printed, or an image file, or an error message. The paper uses the OpenAI Code Interpreter tool. The model sees the result and can write more code.

Here is the key practical point. The sandbox returns errors too. If the code crashes, the model reads the message, edits the code, and tries again. Chapter 4 shows this loop.

A worked example: why hand arithmetic breaks

Take the running example, the area under e−x² from 0 to 1. The trapezoid rule cuts the area into n strips. Each strip has width h = 1/n. The area is h times the sum of the heights, with the two end heights counted half. For n = 4:

h = 0.25, heights 1.0000, 0.9394, 0.7788, 0.5698, 0.3679 → area = 0.25 × (0.5 + 0.9394 + 0.7788 + 0.5698 + 0.18395) = 0.7430

Count the work. Each height needs a square and an exponential: 2 operations, and there are n + 1 heights. Then n additions and 2 final multiplications. That is 3n + 4 operations in all. For n = 4, that is 16. For n = 100, it is 304.

Suppose a writer slips on one operation in 50, a 2% slip rate. This rate is a made-up number for the demonstration. The chance of finishing 16 operations with no slip is 0.9816, about 72%. For 304 operations it is 0.98304, about 0.2%. A code interpreter finishes both with certainty.

Hand arithmetic or a program

The line shows the chance that a hand calculation has no slip at all. Choose a slip rate, then drag the number of strips. The flat green line is the code interpreter.

4

The slip rates are illustrative, chosen to show the shape. The paper does not measure a slip rate. The operation count 3n + 4 and the trapezoid sums are exact and computed live.

That is why the paper adds the code interpreter “to perform mathematical calculations by executing code to reduce calculation errors.” A tutor that tells a student a wrong sum is worse than no tutor.

What job does the code interpreter do in the Program-of-Thoughts idea the paper builds on?

Chapter 2

The Four-Part Loop

Follow one student message through analysis, drawing, hinting and the whiteboard, and see what data moves between the parts

Think of a good human tutor with a whiteboard. A student says, “I do not get this one.” The tutor glances at the problem and thinks, “A picture will help.” They sketch. They say one sentence about the sketch. The student grabs the pen, scribbles on it, and says, “So this part here?” The tutor reads the scribble and answers.

Interactive Sketchpad turns that scene into four software parts. The paper lists them in this order, and Figure 3 of the paper draws them as a flowchart.

  1. Problem analysis. The system “evaluates the problem to determine whether a visualization would be beneficial.”
  2. Visual generation. If a picture would help, it “generates a Python program to create an appropriate visualization.”
  3. Hint generation. A text hint is written that “references the visualization if one was created.”
  4. Interactive whiteboard. The picture also appears on the student’s whiteboard. The student can mark it and send it back.

Notice that these are not four separate models. In the paper’s description, one model, GPT-4o, plays every role. What changes from part to part is the prompt, the tools within reach, and the data that comes in and goes out.

Messages, not magic

A chat model works on a message list. Each message has a role (system, user or assistant) and some content. The system message holds the standing rules. The user messages are the student’s. The assistant messages are the model’s own earlier replies. Every new turn, the whole list goes in again, plus the newest message, and one new reply comes out.

That is the whole data flow. When the paper says the model uses “the conversation history, a screenshot of the user’s interactive whiteboard, and the user’s query to generate hints,” it means exactly this: three kinds of content packed into one request.

The model can also ask for a tool call. Instead of replying with words, it writes a request such as “run this Python.” The sandbox runs it. The output goes back into the message list as a new message. Then the model continues, with that output now in view. One student turn can contain several rounds of this.

One turn, traced

Use the device below to follow one student message through the loop. The example is the integral from Chapter 0. The fields shown at each step follow the paper’s description. The wording of the example data is ours.

Trace one student turn

Press Next part to move through the loop. The boxes show where you are. The panel below shows what goes in and what comes out at that part.

The part names and their order are the paper’s (Section 3 and Figure 3). The message contents are an illustrative trace written for this lesson. The paper does not publish the exact internal messages.

Why the order matters: draw first, then talk

The system prompt in the paper’s Appendix B.1 gives an order for one reply. It says: “First visualize using a diagram, then give the hint using the diagram,” and shows the shape as Image 1, Text 1, Image 2, Text 2. The diagram comes before the sentence that refers to it.

Why? The text hint says things like “look at the shaded strip.” If the picture is made after the words, the words may point at something that does not exist. By making the code run first, the model can read the real image output before it writes. The hint then describes what is truly on the page.

The loop is the product

The paper calls this a “multimodal interaction loop.” Both sides can send text, images and annotations. The model sees the student’s sketch. The student sees the model’s code output. Neither side is stuck with words.

Compare with the earlier visual systems from Chapter 1. Those run once: question in, program, answer out. Here the loop never has to end at an answer. It can end whenever the student says they have it. That is a different goal, and it changes what the system must do at each part. The next four chapters take the parts one at a time.

In the loop, what does the hint-generation step receive as input when the student has marked up a diagram?

Chapter 3

Problem Analysis: Should It Draw?

Decide, as the first step of the loop does, when a picture will help and when it will only add noise

A student types: “What does the word derivative mean?” A tutor that answers with a freshly drawn graph, a shaded area and three coloured arrows has missed the point. Now a second student types a puzzle about course prerequisites, where course 1 needs course 0 and course 0 needs course 1. A tutor that answers with a paragraph of words has missed the point too. The first step of the loop exists to tell these cases apart.

The paper states this step in one line: “The system evaluates the problem to determine whether a visualization would be beneficial.” We will call it problem analysis. It is the gatekeeper in front of the drawing step.

It is a prompt, not a trained classifier

Here the paper is plain about method: “We prompt a pre-trained GPT-4o model regarding when visualizations may be helpful based on the problem and user query.” No separate yes/no model is trained. The decision is made by the same chat model, steered by instructions in its prompt, the text placed before the conversation that tells the model how to behave.

The instructions live in Appendix B.1 of the paper. Three lines matter for this step.

From the paper’s system prompt (Appendix B.1), shortened: You want to help the student visualize the problem so you should give your response with text interleaved with helpful diagrams. If you think a visualization is helpful, you can plot it without asking the student’s permission. You should reuse the code from existing diagrams if drawing similar ones.

The first line sets the lean: prefer to include a diagram. The second removes a delay: the model does not stop to ask “would you like a picture?” The third saves work: when a new diagram is close to an old one, edit the old code.

The prompt also holds a worked example, a few-shot demonstration. A student pastes the course-schedule problem. The tutor first gives a tiny example input and output, then says, “Let’s draw a diagram to visualize this.” When the student is still lost, the tutor sees that “this problem is equivalent to finding if a cycle exists in a directed graph,” and draws a series of diagrams that walk through the graph until the cycle shows. The prompt even asks that such a series use colours: visited nodes, visited edges and the nodes about to be visited in different colours.

What makes a picture worth drawing

The paper does not publish a rule list for this decision. It leaves the choice to the model’s judgment under the prompt. So what follows is our reading, not the paper’s claim. Look at the paper’s own examples to see the pattern.

And the opposite cases: a request for a definition, a bit of pure arithmetic, or a question about wording. A picture there adds a wait and little else. Test yourself on six problems.

Draw, or just talk?

Read the student’s message. Decide: would a freshly drawn picture help? After you choose, the picture appears if the lesson would draw one.

The six problems and the verdicts are our teaching examples, guided by the kinds of problem the paper uses. The paper decides with a prompt and does not publish a rule list. Two of the problems (course schedule, tangent circle) follow its Appendix B examples.

Cost of a wrong yes

Drawing is not free. Each diagram means the model writes code, the sandbox runs it, and the model reads the result. That takes time. In the paper’s user study, the lowest-scoring item was system responsiveness, 4.43 out of 5, and the authors say the tool “could have efficiency improvements to reduce the wait time for hints.” The paper does not tie that wait to the drawing step directly. But it is fair to say a wrong yes costs time, and time is what the students marked down.

A wrong no costs something else. One student wrote: “The diagrams provided were very nice, despite I didn’t ask for them.” That is the second line of the prompt at work. Students do not always know a picture would help until they see it. So the prompt leans toward yes.

How does the paper decide whether a problem deserves a diagram?

Chapter 4

Visual Generation: Drawing by Program

Write the diagram as code, run it, retry when it crashes, and catch the failure that no crash reveals

A student asks about a circle with centre R. A point S lies on the circle. The tutor draws the picture, and the point S floats inside the circle, nowhere near the edge. The student stares at it. “Is S on the circle or not?” The tutor’s words say yes. The tutor’s picture says no. Who does the student believe?

This is the risk that comes with drawing. A wrong picture is worse than none, because it feels like evidence. This chapter shows how the system makes accurate pictures, and then shows the one way the paper admits it still fails.

Why a program, not an image generator

A model could paint a picture directly, as an image generator does. But a painted circle is only roughly round. Painted numbers on an axis may be misspelled. A painted point may not sit where the coordinates say. In maths, small errors change the meaning.

So the paper writes the diagram as a program. In the authors’ words: “To draw accurate diagrams, we generate Python programs using the LMM which, when executed, render the visualizations.” The library is matplotlib, a standard Python tool for plots. A program says “draw a circle at this centre with this radius.” The computer draws it exactly.

The write, run, read loop

The model does not hand over code it has not tested. The paper describes the cycle: the Code Interpreter “executes the code, and if it fails to run, the LMM will iterate on the code by attempting to run different code until it successfully generates a runnable program. Once the program is successfully executed, the resulting image file is displayed to the user.”

  1. Write. The model outputs Python that builds a figure.
  2. Run. The sandbox executes it. The result is either an image file or an error message.
  3. Read. If there is an error, the text goes back to the model. It edits the code and returns to step 2.
  4. Show. A successful run produces an image. The student sees it.

For geometry, the paper borrows a longer recipe from Visual Sketchpad. The prompt in Appendix B.2 gives helper functions, such as one that finds the point E on line BC so that AE is perpendicular to BC. It sets a thought-action-observation format. The model writes a THOUGHT, then an ACTION (the code), then the system returns an OBSERVATION (“Execution success. The output is as follows”) with the image. The model repeats until it can answer or has nothing more to draw. The prompt notes one quirk: the image origin is the upper left corner, so the y axis points down.

A crash is easy. A silent error is not.

The loop catches crashes. If the code has a typo, the sandbox shouts, and the model fixes it. But a program can run perfectly and still draw the wrong thing. No error message appears. The picture simply lies.

The paper shows exactly this in its Table 4, with two versions of the circle diagram. In the correct version, the radius is a variable computed from the data: it is the distance between the centre R and a point S on the circle. Every annotation is placed relative to the given points. In the incorrect version, the radius is hard-coded to 100, and the labels are fixed numbers too. The points then sit “within rather than on the circle.”

# correct: radius comes from the data radius = np.hypot(S[0] - R[0], S[1] - R[1]) circle = plt.Circle(R, radius, fill=False) # incorrect: radius is a guess baked into the code circle = plt.Circle(R, 100, fill=False)

The Table 4 code is the paper’s example. The two lines above are our minimal rewrite of the idea, not a copy. The lesson inside is general. Whenever the picture depends on a number from the problem, the code must compute it from the problem, not retype it.

Measure the lie

How wrong is a hard-coded picture? Let the true distance from the centre to S be d. The hard-coded circle has radius 100. The gap between S and the drawn circle is |d − 100|. If d is 100, the guess is lucky and the picture is right. At any other d, S floats off the circle by that gap. The device below lets you move d and flip between the two programs.

Compute the radius, or guess it

The dot S is a given point, a true distance d from the centre R. Choose which program drew the circle. Drag d and watch whether S stays on the ring.

62

An illustration of the failure the paper shows in Table 4, with made-up distances. The units are the diagram’s own coordinate units. The paper reports no rate for how often generated diagrams are wrong.

What the authors propose as a fix

The paper lists this under limitations: “Incorrect diagrams may confuse both the user and the LMM, leading to an incorrect answer.” The proposed fix is future work. Earlier systems for text use verifiers, models that check a reasoning step (Cobbe et al., 2021; Lightman et al., 2024). The authors suggest extending this to a vision verifier that “can check the quality of generated diagrams and regenerate the diagram if necessary.” It is not built in this paper.

Until then, the practical defence sits in the prompt and the code habit: derive values from the problem, place annotations relative to the given points, and reuse working code for similar diagrams.

In the paper’s Table 4, why do the points land inside the circle in the incorrect diagram?

Chapter 5

Hint Generation: Teach, Do Not Tell

Shape a model into a tutor with demonstrations and a system prompt, and let code check the numbers behind each hint

A student works the trapezoid sum for four strips and types 0.78. A bad tutor says: “Wrong. The answer is 0.7430.” A good tutor says: “Your total is a bit high. Look again at the height of the last strip.” Both tutors know the right number. Only one lets the student find it.

Hint generation is the part of the loop that writes that second sentence. The paper handles it with three tools: a prompt with strict rules, a model fine-tuned on examples of good tutoring, and code that checks the numbers behind each hint.

The rules in the prompt

The prompt is a short list of commands that set the tutor’s manner. These are lines from Appendix B.1:

You are a tutor, your goal is to help the student solve a problem, giving short, subtle hints. You should only give one hint at a time, DO NOT give away the answer to the student. You should only respond concisely, allowing the student to ask questions and respond before continuing. You should only give the solution if the student explicitly asks for it.

Read the last line again. The tutor is not forbidden to give the answer. It is forbidden to give it first. The student stays in charge. If they ask outright, they get it.

The model learned from a human tutor

Rules in a prompt only go so far. Models drift back to helpful-sounding habits. So the paper also trains the model. The authors “collected human demonstrations of good hints interleaved with images in an example conversation between a student and a tutor, using several samples of math and coding problems. We then fine-tuned the model with this data.”

Fine-tuning means continuing a model’s training on a small set of chosen examples, so it behaves more like them. Each example here is a short chat: a student turn, then a tutor turn made of images and short text. The paper does not say how many examples it used, or the training settings, so we cannot report them. What we can explain is the standard recipe such a step follows. For a tutor reply made of tokens y1 to yT, given the conversation x so far, training lowers this loss:

L(θ)
The loss: how surprised the model is by the human tutor’s real reply. Training pushes it down.
∑t=1T
Add up over every token of the tutor’s reply, from the first (t = 1) to the last (t = T).
pθ
The probability the model, with weights θ, gives to a token.
yt
The t-th token of the human tutor’s reply. It is the word the model should have predicted.
x, y<t
The conversation so far, and the tutor tokens before this one. The model reads these to predict yt.

If the model gave a token probability 0.5, it adds −ln 0.5 = 0.69. At probability 0.9 it adds 0.11. Making hint-like words likely makes the loss small.

This is the common supervised recipe, and the paper does not print it. It is our explanation of what “fine-tuned on demonstrations” means. Also note the result: a model that picks up the tutor’s style of short, indirect replies and image-then-text rhythm, beyond what the prompt alone achieves.

Code checks the numbers behind the hint

A tutor must not be wrong. If it says “your total is a bit high” when the total is fine, it damages trust. So the model also has the code interpreter for calculation. The paper gives two examples in its appendix. In Figure 6, to check an integral, the model writes a program using scipy.integrate to apply the trapezoid rule. In Figure 7, to find the side of a square prism’s base, it writes the volume formula in Python, substitutes the volume and height from the question, and runs it.

The trapezoid rule is the sum from Chapter 1, now as a formula:

A
The area under the curve that we want, the integral.
h
The width of one strip: (b − a) / n. Here it is 1/n.
∑ f(xi)
The heights of the curve at the inner cut points. Each inner point is shared by two strips, so it counts in full.

n = 4: 0.25 × (0.5000 + 0.9394 + 0.7788 + 0.5698 + 0.1840) = 0.7430. True value 0.7468. Error 0.0038, about 0.5%.

The device below plays the tutor. You are the student. Enter your own sum for a chosen number of strips. The tutor runs the code and answers with a nudge. It never says the exact figure.

Check my sum

Pick the number of strips. Type your total for that many strips. The tutor compares it with the code’s result and replies with a hint, not the number.

4

The tutor’s replies are scripted for this lesson. The trapezoid sums are exact, computed live in your browser, and the exact integral is (√π/2) · erf(1). The paper shows the same idea with scipy in its Figure 6.

Notice what the check gives the tutor: certainty. It can say “a bit high” and mean it. Doubling the strips cuts the error about four times (1 strip: 0.0629 off; 2: 0.0155; 4: 0.0038; 8: 0.00095), so the tutor can also say honestly that more strips will help.

Why does the system give the model a code interpreter for the hint step, not just for drawing?

Chapter 6

The Interactive Whiteboard

Send your own sketch back to the model, and see exactly what goes into the next request

You are the student now. The tutor has shown you the curve and the shaded area. You have an idea: the strips on the right look thinner than the ones on the left. You do not want to type a paragraph about that. You want to circle the spot and say, “Here?”

A text chat cannot take a circle. The fourth part of the loop can. The paper calls it the interactive whiteboard, and it lets the student “intuitively collaborate with the LMM using textual and visual information.”

Two windows, one conversation

The student sees two interfaces, both in Section 3.1 of the paper. The first is the chatbot interface. The student types messages or uploads an image. The tutor replies with text and, sometimes, a picture. A collapsible line, “Used code_interpreter,” shows the code behind any picture or sum, so the student can inspect it.

The second is the whiteboard. Every picture the tutor generates “will automatically appear as a new page.” The student can flip between pages, so earlier work stays within reach. They can draw, write maths, or annotate the tutor’s diagram. In the user study they did this on an iPad with an Apple Pencil. Then they press a button labelled “Send Screenshot.”

What the model receives

The send button takes a screenshot: the whiteboard page as a flat picture. The paper says the snapshots “are then sent to the chatbot server. The LMM would automatically be prompted with the screenshot and additional text or images provided by the user.” Seen as data, a screenshot is a grid of pixels. A page of height H and width W, in three colour channels, has shape [H, W, 3].

The model never gets the pencil strokes as objects, such as “a circle at (0.8, 0.4).” It gets pixels, and its vision part must read the marks the way you read a photo. That choice is simple and general. Any drawing works, even handwriting, with no need for a special format. The cost is that the model must work out what the marks mean.

The paper does not measure how well the model reads these marks. That is worth keeping in mind. The study asked students about the whole experience, and it did not test sketch recognition by itself.

The full request for one turn then holds, in order: the system prompt, the earlier conversation (each past student and tutor message), and the new user message, which carries the screenshot and any typed text. The tutor’s reply is one more message added to the list. The next turn sends everything again, one reply longer.

Try it

Draw on the diagram below. Then press Send screenshot. The panel shows the request the model would receive, with the real pixel shape of your canvas. The tutor’s answer is scripted for the lesson: it reports where your marks sit, which stands in for what a vision model would see.

Mark it and send it back

Draw on the curve with a finger, pencil or mouse. Press Send screenshot to see the request. You can send again; the history grows each time.

Illustrative. The request layout follows the paper’s description (history, whiteboard screenshot, query). The shape [H, W, 3] is your canvas’s own size in pixels. The paper gives no image size, and the tutor’s reply here is scripted, not a model call.

Why an image beats a description

Imagine the student tried to say it in words: “I mean the spot where the curve meets the vertical line a bit right of the middle.” That is long, and still unclear. One circle says it. The paper reports that students liked this: “The intuitive drawing makes the interaction feel more natural.”

A second benefit is for the model. A screenshot shows the student’s actual state of work, including mistakes. A wrong strip, a missing label, a line in the wrong place: the tutor can see them. The paper cites work finding that feedback built on both text and visual representations of student work is more effective than text alone.

What exactly does the tutor model receive when the student presses “Send Screenshot”?

Chapter 7

What the Tables Show

Read the accuracy table and the user ratings, and learn what each number can and cannot prove

Two kinds of evidence sit in this short paper. One is a table of accuracy scores: can the system solve the problems? The other is a table of ratings from a few students: did they like using it? They answer different questions, and a careful reader keeps them apart.

The paper names three research questions. RQ0 asks how accurate the system is at solving the problems. RQ1 asks whether the interactive system improves understanding compared with text-only systems. RQ2 asks whether step-by-step hints beat final answers for learning. Table 1 speaks to RQ0. Table 3 and the quotes in Table 2 speak, loosely, to RQ1 and RQ2.

Table 1: can it solve the problems itself?

To test accuracy, the authors switch off the tutor manner. A system prompt tells the model to “solve the question directly” (Appendix B.3), and a footer asks for an explanation and a final answer in a fixed format (B.4). They run the IsoBench questions. IsoBench is a benchmark, a fixed test set, where each problem comes in more than one equivalent form. The table covers five tasks: maxflow (the most stuff you can push through a network), graph isomorphism (are two networks the same shape), graph connectivity, function convexity and function parity.

Three systems are compared. GPT-4o is the plain model. Visual Sketchpad is the earlier system that draws to reason. Interactive Sketchpad is this paper’s system. The device below shows each task.

Read the paper’s tables

Choose a table, then choose a row. The bars show the paper’s numbers. Try Maxflow first.

All numbers are copied from Table 1 and Table 3 of the paper. Table 1 compares systems on IsoBench; its Interactive Sketchpad row allows code execution, while the Visual Sketchpad prompts discourage it (Section 4.2). Table 3 has no comparison system.

Why maxflow jumps and parity barely moves

Look at maxflow: 25.0 for GPT-4o, 66.3 for Visual Sketchpad, 100.0 for Interactive Sketchpad. Look at parity: 84.4, 94.7, 95.6. The gain over Visual Sketchpad is +33.7 points on one and +0.9 on the other. Why?

Maxflow is a bookkeeping task. Take a small network: source S to A with capacity 3, S to B with 2, A to T with 2, B to T with 3, and A to B with 1. You find the largest flow by repeatedly pushing along a path with spare room:

push 2 along S→A→T (A→T full) · push 2 along S→B→T (S→B full) · push 1 along S→A→B→T (all full) → total flow 5

You can check it: the two edges leaving S carry 3 + 2 = 5, so no flow can exceed 5. A computer does this in a few lines. A model reasoning in words has to track each leftover capacity without a slip, which is the problem from Chapter 1. With a code interpreter, the model writes the network down once and lets a standard routine solve it.

Parity and connectivity are easier to read off a picture or a short rule, so the plain systems already score above 84. There is less room to gain. This reading is ours, but it fits what the authors say: Interactive Sketchpad “does not specify the same constraint to not use code execution, instead allowing its use to improve problem-solving accuracy.”

A fairness check on the comparison

Here is the careful point. Visual Sketchpad’s prompts “encourage the LMM to use its own visual reasoning to solve problems rather than use code execution.” Interactive Sketchpad removes that limit. So the two systems differ in more than one way. The table shows that letting the model run code gives a large gain on this benchmark. It does not isolate the effect of the whiteboard or the hints, because those are not in play when the system solves problems directly.

The authors say as much: they removed the constraint “as we want to make the system achieve as high accuracy as possible to reduce errors that may confuse the student.” The aim is a tutor that is right, and Table 1 shows it is more often right.

Table 3: what students rated

Table 3 lists five average scores out of 5: interface intuitiveness 4.71, system responsiveness 4.43, clarity of visuals 4.57, accuracy of visuals 4.71 and effectiveness of hints 4.57. The highest are interface and visual accuracy. The lowest is responsiveness, which the authors link to wait time.

What these numbers can show: participants found the tool pleasant, and they rated the visuals as accurate. What they cannot show: that students learned more. No test of learning appears in the paper. The abstract says the system improves comprehension, accuracy and engagement; the evidence for comprehension is the students’ own report and their quotes, such as “It showed me how to approach the problem step by step.” The next chapter looks at how many students stand behind these averages.

Why is the +33.7 point maxflow gain over Visual Sketchpad not a clean measure of the new whiteboard design?

Chapter 8

Seven Students and the Limits

Weigh a small study fairly, and list what the authors say is still broken or unmeasured

A restaurant has a rating of 4.7 from 7 reviews. Another has 4.6 from 7,000 reviews. Which would you trust more? Most people pick the second, even though the first number is higher. The count behind a number matters as much as the number.

Table 3 reports averages near 4.5 out of 5. Before we read them as a verdict, we should ask how many people sit behind them. The answer is seven.

How the study was run

Section 4.3 describes it. The authors “recruited university underclassmen undergraduate students” who knew some algebra or geometry but were not experts in every domain. “We ran the initial study on 7 users with no monetary compensation.” The participants got a brief tutorial. Then they “interacted with both Interactive Sketchpad and ChatGPT to solve a set of assigned mathematical problems, alternating between the systems.” Afterwards they filled in a questionnaire with a five-point scale, yes/no choices and open answers.

The questions came from SAT exams, from IsoBench, from an earlier study on visualisation in maths, and from Geometry3k. The authors say they chose maths topics that “could efficiently benefit from visual artifacts.” That is a sensible choice for a first test of a drawing tutor. It also means the tasks were picked to suit the tool.

The paper also says approval for further studies had been submitted to the university’s review board. So this is a first look, not a finished trial.

What seven ratings look like

With seven raters, each average is a total divided by seven. Table 3 gives 4.71, 4.43 and 4.57. Multiply back: 4.71 × 7 is about 33, 4.43 × 7 is about 31, and 4.57 × 7 is about 32. So the five scores in Table 3 are built from only three totals: 33, 31 and 32 points out of a possible 35.

33 ÷ 7 = 4.714 · 32 ÷ 7 = 4.571 · 31 ÷ 7 = 4.429

Now see the scale. If one rater changes a score by one point, the average moves by 1/7, which is 0.14. The best score (4.71) and the worst (4.43) differ by two rater-points in total. One rater who gave 5 instead of 4 on responsiveness, and one more who did the same, would erase the gap. The ranking of the five qualities rests on very little.

The paper does not publish each person’s ratings, so the arrangement below is a made-up one that adds up to the paper’s totals. Tap a rater to change their score. Watch how far the mean moves.

Seven people behind one average

Pick a quality from Table 3. Seven bars show one possible set of ratings that gives the paper’s average. Tap a rater to lower their score by one point (it wraps from 1 back to 5).

The totals 33, 31, 32, 33 and 32 out of 35 follow from the paper’s averages (4.71, 4.43, 4.57, 4.71, 4.57) with 7 participants. The individual ratings shown are our invention that match those totals; the paper does not publish them. The count of other possible sets is computed live.

The limits the authors name

Section 5 lists three. The first we met in Chapter 4: visualization accuracy. Code can draw a wrong picture without any error, and the fix, a vision verifier, is future work. The second is expansion of user studies: test other subjects such as physics, where force diagrams and motion paths might help, with more students and benchmarks against existing tools. The third is long-term impact. The current work looks at short-term accuracy and opinions. The authors propose delayed tests, to see whether students keep what they learned, and tracking over time.

What we would add

These points are our reading, not the authors’. First, the study has no measured learning outcome, only ratings and comments. Second, the comparison with ChatGPT is qualitative: the table has no ChatGPT ratings to set beside the 4.5s. Third, as noted, tasks were chosen to favour pictures. None of this hides a flaw. It says what a first study of seven can and cannot carry.

Seen as symptom, measurement and fix: the symptom is averages that look strong. The measurement is that they rest on seven people and steps of 0.14. The fix is the authors’ own list: more students, other subjects, a comparison with existing tools, and delayed tests.

Seven participants gave the system 4.71 out of 5 for interface intuitiveness. What can you conclude?

Chapter 9

Field Guide

Keep the numbers, the terms, the checklist and the core code on one page, and find where to go next

The one-paragraph summary

Interactive Sketchpad turns GPT-4o into a visual tutor. One loop has four parts. Problem analysis decides whether a picture helps. Visual generation writes matplotlib code, runs it in a code interpreter, and retries on errors. Hint generation, helped by fine-tuning on human tutoring demonstrations and by code-checked sums, writes one short hint that points at the picture. The whiteboard shows the picture, takes the student’s marks, and sends a screenshot back with the history. With code allowed, the system scores 100.0% on maxflow, and seven students rated it near 4.5 out of 5. The known weak spot is a diagram that runs but draws the wrong thing.

The numbers that matter

WhatNumberWhere
Maxflow accuracy25.0 (GPT-4o), 66.3 (Visual Sketchpad), 100.0 (ours)Table 1
Isomorphism accuracy50.8, 65.3, 75.0Table 1
Connectivity, convexity, parityours: 99.2, 96.5, 95.6Table 1
Gain over Visual Sketchpad+33.7, +9.7, +0.8, +1.6, +0.9Table 1
Interface, visual accuracy4.71 out of 5Table 3
Clarity of visuals, hint effectiveness4.57 out of 5Table 3
System responsiveness4.43 out of 5, the lowestTable 3
Participants7 university underclassmenSection 4.3.1
Question sourcesSAT, IsoBench, a maths visualisation study, Geometry3kSection 4.3.2
Model and toolGPT-4o with the OpenAI Code Interpreter, matplotlib for drawingSection 3

The terms, in plain words

TermPlain meaningChapter
LMMA large multimodal model: reads text and images, writes text.1
Code interpreterA sandbox that runs the model’s Python and returns images, output or errors.1, 4
Problem analysisThe first step: should this problem get a diagram?3
Visual generationWrite, run and retry code until a diagram image exists.4
Hint generationWrite one short hint that uses the diagram and withholds the answer.5
Fine-tuningMore training on chosen examples, here human tutoring demonstrations.5
Interactive whiteboardA page where the student marks the diagram and sends a screenshot back.6
IsoBenchA test set where each problem exists in equivalent forms.7

The checklist, if you rebuild it

The core, as code

This is a sketch of one tutor turn. The names llm, run_python and whiteboard stand for whatever model API, sandbox and page store you use. It follows the paper’s description. It is not the authors’ code.

pythonSYSTEM = "You are a tutor. One short hint at a time. DO NOT give away the answer. "
         "First draw a diagram with code, then give the hint using the diagram."   # Ch 3, Ch 5

def tutor_turn(history, query, screenshot=None):
    user = [{"type": "text", "text": query}]
    if screenshot is not None:                               # [H, W, 3] pixels of the whiteboard page (Ch 6)
        user.append({"type": "image", "image": screenshot})
    messages = [{"role": "system", "content": SYSTEM}] + history + [{"role": "user", "content": user}]

    while True:                                          # write, run, read (Ch 4)
        reply = llm(messages, tools=["code_interpreter"])   # fine-tuned GPT-4o (Ch 5)
        if reply.tool_call is None:
            break
        result = run_python(reply.tool_call.code)           # image file, printed numbers, or an error
        if result.image: whiteboard.add_page(result.image)   # new page for the student (Ch 6)
        messages += [reply, result.as_message()]               # errors go back so the model can fix its code

    history += [{"role": "user", "content": user}, reply]
    return reply.text

Where this sits

This paper is a reading for the MIT course on multimodal AI, from the lecture on AI for new senses. It is a small system paper from human-computer interaction. Its parts come from earlier work on visual reasoning with programs. Its new claim is about the audience: the picture is made for a student, and the student can reply in pictures.

Keep going

Credit

Interactive Sketchpad was written by Jimin Lee and Steven-Shine Chen (equal contribution) and Paul Pu Liang, at the Massachusetts Institute of Technology. It appeared in the Extended Abstracts of CHI 2025, Yokohama, Japan (doi 10.1145/3706599.3719790). Read it on arXiv 2503.16434, and see the project page for the code. Any error in this lesson is ours.

The takeaway. A good tutor does two things the plain chat does not: it draws what you need to see, and it holds back what you need to work out. The trick that makes the drawing trustworthy is to let code, not the model’s memory, make every picture and every sum.
Which design choice is the paper’s main defence against calculation errors in hints?

Now press Present or Teach and explain the four-part loop out loud, from memory: what each part receives and sends, why the diagram is code, how the hint holds back the answer, and what seven students can and cannot show. Then go back to the hero and ask both tutors again.

Interactive Sketchpad
Read the paper · Project page · Back to MMAI Lecture 19