Table to Test: 60 Word Problems, All the Maths Right

🔧 AI Tools 2026-12-02 7 min read
Table to Test: 60 Word Problems, All the Maths Right, 200 Options With No Unit

Table-built word problems come back arithmetically correct but with unitless options, every key in slot A and distractors clustered around the answer.

📜 Table of Contents

📖 Keep reading

Hand a model a ten-row table and ask for 60 word problems. The arithmetic survives: all 60 stems, expressions and answer keys checked line by line against the table, zero wrong. What does not survive is the option set. Of 240 options, 200 carry no unit at all. Five of the six sheets put every correct answer in the first slot. Ten items have all three distractors sitting within 2% of the answer.

The numbers were right. Everything the student actually sees was wrong.

Six tables, three prompt versions, 180 items

The tables were built by hand so every figure can be checked on paper: a grade 8 science quiz (student, hair colour, score out of 50, minutes studied), a bakery week (loaves sold, price per loaf, waste), a cycling club across three rides, a grade 5 maths test, a four-product web shop, and three reading rooms in a library. Four to twelve rows each, small numbers.

One model, deepseek-flash at temperature 0.7, the same six tables, three prompt versions, ten items each. Total 180 items, 720 options, 107,557 tokens.

Every item was asked for two extra fields: work, the bare arithmetic expression that produces the answer, and value, the numeric result. Those two fields make 60 items auditable in one pass instead of by hand.

Why the arithmetic never broke

Evaluate work in Python, compare with the number inside the keyed option: all 180 items agree across the three versions. That check only proves the model agrees with itself. It says nothing about whether the stem asks the right question, so every stem was also read against its table. None mis-added, mis-picked a row, or took the wrong column.

The reason is structural. The expression and the key are written in the same generation, so the model is copying a number it has just produced. Asking a model to check its own arithmetic finds nothing.

Version 1: what the six sheets looked like

tableitemsoptions with no unitone-operation itemskey in slot A
science quiz (EN)1040 / 40710
bakery week (EN)1040 / 40310
cycling club (EN)1040 / 40410
grade 5 maths test (ZH)100 / 40310
web shop (ZH)1040 / 40310
library (ZH)1040 / 4023

Units are the hardest failure. All 120 options on the three English tables are bare numbers: a question about points offers "88", a question about minutes also offers "88". On the Chinese tables only the test-score sheet carried its unit; the shop and the library produced 80 bare numbers between them. "60% waste" and "60 loaves wasted" look identical in an option list.

Difficulty is the second hole: 22 of 60 items need a single operation. "How many more points did Hana score than Ivo" is 45 minus 36, readable at a glance. The point of a table item is that the student has to find the row, choose the column, and decide the order of operations. Half the items skip that.

Position is the third: 53 of 60 keys sit in slot A. Five of the six sheets are 10 out of 10; the only sheet that varies is the library (3 out of 10). One prompt, six tables, and the behaviour flips on one of them, which is less a positional preference than a habit of writing the right answer first.

Distractors are the fourth: on 10 items all three wrong options sit within 2% of the answer, like 153 / 152 / 154 / 151. Nobody guesses those, but a student who slips by one row lands exactly on an option, so the sheet cannot tell a slip from a misconception.

And a fifth, uglier one: four options are the answer to a different question on the same sheet. On the web-shop table, item 8 asks for the net revenue total, 39208, which appears as a distractor in item 10; item 10 asks for the gross total, 41886, which appears as a distractor in item 8. Work the sheet in order and the two items check each other.

Version 2: three sentences added to the prompt

The second version adds: at least two operations per item; every option ends with its unit; no distractor within 10% of the correct value.

versionoptions with no unitone-operation itemskey in slot Adistractors within 2%key is the only non-round valueoption equals another item's answer
1 plain prompt200 / 24022 / 6053 / 6010 / 600 / 604
2 prompt patched0 / 2400 / 6033 / 600 / 6026 / 604
3 options built in code0 / 2400 / 60200 / 600 / 600

Two of the three worked, the third did nothing, and one new hole opened.

Units came back 240 out of 240. Two-operation items: 60 out of 60. Distractors inside 2%: zero. Position did not move, 33 of 60 keys still in slot A. Position is not a prompt problem; shuffling in code at the end is cheaper and reproducible with a fixed seed.

The new hole is the shape of the distractors. Once the prompt demands a 10% gap, the wrong options come back as 1500, 1000, 850, and the correct answer becomes the only value with cents in it: 1256.5 / 1500 / 1000 / 850. On 26 of 60 items a student can score by picking the number that is not a multiple of five. In version 1 that cue appears zero times.

Version 3: stop asking the model for options

Remove options from the prompt entirely. The model returns four fields: stem, expression, value, unit. Python builds the options from the correct value at 1.00, 0.90, 1.15 and 1.30, rounds to two decimals, and shuffles with a fixed seed.

import re

def num(text):
    m = re.findall(r"-?\d+(?:\.\d+)?", str(text).replace(",", ""))
    return float(m[0]) if m else None

def audit(items):
    bad = {"math": 0, "unit": 0, "close": 0, "pos": 0}
    for it in items:
        opts = it["options"]
        key = opts.index(it["answer"])
        a = num(it["answer"])
        if abs(eval(it["work"]) - a) > 1e-6:          # expression vs key
            bad["math"] += 1
        if any(re.fullmatch(r"[\d.,\s-]+", o) for o in opts):   # no unit anywhere
            bad["unit"] += 1
        if all(abs(num(o) - a) < 0.02 * abs(a)             # cannot tell a slip
               for j, o in enumerate(opts) if j != key):
            bad["close"] += 1
        if key == 0:                                     # position leak
            bad["pos"] += 1
    return bad

Result: 240 of 240 options carry a unit, no item needs a single operation, the odd-number cue is gone, distractors within 2% are gone, options never collide with another item's answer, and the key lands 20 / 16 / 8 / 16 across the four slots. Arithmetic is still 60 out of 60.

Note the eval in that snippet. On model output it belongs behind an AST whitelist, which is what the run itself used; the short version is here because it reads in fifteen lines.

What still breaks: the stems

None of the three versions fixes the question itself. On the grade 5 table, 7 of the 10 items in version 3 use the same sentence shape, "how many more marks did X get than Y". The cycling table produced "what percent of Quinn's ride 1 distance is the combined distance of Mira's rides 1 and 2", which comes to 160%. The shop table asked for a ratio and got 51.5 times. Every figure is right and no teacher would write those questions.

Adding "no repeated sentence shape, keep percentages between 5% and 95%" to the prompt removes part of it, not all of it.

Three things that carry over

  1. Let the model write the stem, the expression and the unit. Build the options in code from the correct value. Asking it for four options at once makes it decide three things in one shot: what to ask, what the answer is, and what a wrong answer looks like.
  2. Before anything is stored, run three checks: expression against key, unit present in every option, relative distance between each distractor and the answer.
  3. Shuffle in code with a fixed seed. Six tables say the prompt will not hold the position.

The free limits of the tools this applies to are in the free AI test maker comparison; where items land inside a long passage is in the long-passage coverage test; the same position problem on comprehension items is in the answer-slot test; the six-check gate against human-written items is in the gate write-up.

What this run does not show

One model, one temperature, 60 items per version, each version run once. The six tables are mine: few rows, small numbers, checkable by hand; a real class register with hundreds of rows was not tested. Stem correctness was read by one person, no second reviewer. No student sat these items, and difficulty was measured as operations needed, not as cognitive level. The four cross-item collisions in version 2 involve small numbers (25, 49, 95) and may be coincidence rather than the same defect.

## 相关文章 - [AI 出题工具:30 道题 25 道答案在 A,一句话就改掉了](/post/ai-test-maker-answer-key-slot-a-fix-20261130) - [AI 出题验收:六项检查,用人写的 15,214 道题当基准](/post/ai-test-maker-six-check-gate) - [AI 出题出十道:只覆盖 5.1 个句子,67 道在重复](/post/ai-quiz-item-count-coverage-20261116)
Related Articles
2026-08-14
AI Headshot Generator for LinkedIn 2026: 6 Free Options That Look Human
2026-08-15
Best AI Headshot Generator in London 2026: 6 Tools for the UK Job Market
2026-07-25
Free Book Summary Apps 2026: One Is Actually Free
2026-07-24
Best Free AI Text to Speech Tools 2026 8 Options Tested
2026-08-01
AI PowerPoint Generator Free 2026: 6 Tools That Build Decks in Minutes
2026-08-12
Free AI Prompt Tools 2026: Manage and Test Prompts Without Spending a Dollar

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.

💬 Comments (0)

No comments yet. Be the first!

Login to comment