Modules / Module 6
Module 06
Asking a model
Putting questions about images to an AI model, and scoring its answers against what you know.
- ~90 min
- requires modules 2 and 5
- a model that accepts images
- CC BY 4.0
The research question
I asked an AI model to describe a print. The answer sounds right. How do I find out which parts of it are?
You check the answer against answers you already know. This module builds that check: questions with an answer key written in advance, a record of every answer, and a code for every failure. The failures then become evidence, about the model and about the material.
The computational operation
A vision-language model takes an image and a question and writes the most likely words in reply. A fluent answer and a correct answer therefore read alike.
The same question can get a different answer on a second run, and a new version of the model can answer differently again. Record the model's name and version, the date and the exact wording of every question.
The Japanese material
Three features of this material make answers go wrong in typical ways. Inscriptions, poems, signatures and seals are often written in cursive script (kuzushiji), and a model may supply a plausible reading in place of the actual one. A print had several makers (designer, block cutter, printer, publisher), and answers tend to name one. Much of the meaning depends on a reference the viewer completes: a poem, a classical model, a mitate substitution.
This module draws on the experiments with vision-language models in Drawing from the Crowd, developed with Himanshu Panday. The findings, including a typology of the failures, are being published separately; this module will cite them once they appear.
What we will do
Write the answer key, ask the questions, score every answer, name what went wrong, and then check how far a second reader agrees with your naming. The last step turns your own uncertainty into a number you can report.
Step 1 — Write the questions and the answer key first
Choose questions whose answers you can check: title, series, designer, the reading of an inscription, the place depicted, the season. For each question, write down the answer, where it comes from, and how sure you are: certain, probable or open.
What kind of question?
- Open questions ("Describe this print")
- Show what the model offers unprompted. Hard to score, because the answer key cannot anticipate everything.
- Closed questions ("Who designed this print?")
- Easy to score. They test only what you thought to ask.
- The same question with the inscription covered
- Tests whether an answer comes from the picture or from the text in it. Compare the two versions answer by answer.
Step 2 — Ask, and record everything
Ask each question at least twice, in a fresh session each time. Keep the model's name and version, the date, the question word for word and the full answer. A spreadsheet with one row per answer is enough.
Step 3 — Score each answer against the key
Give each answer one of five scores: correct, partly correct, wrong, no answer, or cannot be scored. Use the last where your key says "open": there the model's answer is one more opinion.
The model names the series correctly and misreads the poem in the cartouche. How do you score the answer?
Show the answer
Score the two parts separately. A single score for the whole answer hides what the model can do and what it cannot, and the difference between the two parts is often the result.
Step 4 — Name what went wrong
Read every wrong or partly correct answer and label the kind of error. Begin with labels drawn from your reading of the answers, then fix the list and write a one-line definition for each label: this list is your codebook (Saldaña 2021). Typical labels for this material:
- inscription misread or invented;
- a detail that is absent from the print;
- a correct term for the wrong period;
- several makers reduced to one;
- a category from outside the material, applied to it.
Step 5 — Check your own coding
Give a sample of the answers and your codebook to a second reader, who codes them without seeing your labels. Measure how far the two of you agree, with a score that corrects for chance agreement, such as Krippendorff's alpha (Krippendorff 2019). Where you disagree, the codebook or the answer key needs work. The guide on counting explains the score.
What this cannot tell you
- What the model knows. You see answers to your questions about your images. Other wording can bring other answers.
- Where a correct answer came from. It may be read from the picture, from the text in it, or from what was written about famous prints in the training data. Covering the inscription (step 1) separates the first two.
- How the next version will answer. Results are dated by the version you tested.
- Questions without an agreed answer. Where your key is open, scoring stops and interpretation begins.
Use your own materials
- Choose 20 to 50 images you know well, with their records (module 2).
- Write the answer key, with a source and a level of certainty for each answer.
- Ask, record and score (steps 2 and 3).
- Build the codebook from the failures, then ask a colleague to code a sample.
- Write an answer key before asking a model anything.
- Record answers so that someone else can repeat the test.
- Score answers, and say where scoring has to stop.
- Build a codebook of failures and check it against a second reader.
Sources
- Krippendorff, Klaus. Content Analysis: An Introduction to Its Methodology. 4th ed. Los Angeles: Sage, 2019.
- Saldaña, Johnny. The Coding Manual for Qualitative Researchers. 4th ed. London: Sage, 2021.
Outline. The worked example is being prepared; this page gives the question, the steps and their limits.