Manuscript Offprint
arXiv:2611.08998Seeing vs. Counting: Complexity Twins Show Where Multimodal LLMs Fail on Diagrams
Abstract
When a multimodal LLM miscounts in a diagram, does it fail at seeing or at counting? Existing visual graph and puzzle benchmarks vary visual density and algorithmic hardness together, confounding the two. We pair counting questions about the same drawing that sit in different counting-complexity classes, such as its spanning trees (a determinant) and its simple paths (#P-complete), and use a transcription probe and a text-only control to separate reading from computing. We test Gemini, Gemma and Qwen3-VL models; for the Gemini models, the answer depends on how the model computes. In chain of thought, most of them read small drawings correctly and then fail at counting, at a rate set far more by the size of the answer than by its complexity class (for the primary model, the odds of an exact answer fall 2.38-fold per decade of the answer). Given code and an exact transcription, the primary model counts correctly even on grids, and reading becomes the bottleneck: a single view misses horizontal edges, and a second reading of a rotated copy with crop checks reads 86/96 large grids exactly, against 57/96 when the upright reading is simply repeated.
1. Introduction
Counting is the simplest quantitative question a vision system can be asked, and multimodal large language models (MLLMs) still get it wrong surprisingly often [44, 46, 53, 62]. The usual diagnosis is perceptual: clutter, occlusion, an encoder that cannot bind features [6, 57]. But many counting questions asked of diagrams and graph drawings stay hard after the structure has been read off the pixels: they are computational, and complexity theory makes a testable prediction about how hard they are. Existing visual graph and puzzle benchmarks [2, 20, 32, 33, 66] vary visual density and algorithmic hardness together, confounding the two sources of error.
This paper separates them with a classical fact that, to
our knowledge, has not been used to evaluate MLLMs: superficially similar counting questions about the same structure sit on different rungs of the counting-complexity ladder. On a binary image the Euler characteristic is a weighted sum of pattern counts [23, 43], whereas the number of components needs global connectivity [1, 47]. On a planar drawing the numbers of spanning trees and perfect matchings are determinants [28, 30, 55], whereas the numbers of all matchings and of simple paths are #P-complete even for planar bounded-degree graphs [26, 45, 58]. On a balanced digraph Eulerian circuits are counted by one determinant (BEST [49, 61]); remove the arrowheads and the count becomes #P-complete [5, 19]. We call such pairs complexity twins (one in Fig. 1(a), all three families in Fig. 2), the converse of CLIP-blind pairs [57]: a twin keeps the drawing and changes the question. The pixels are identical in the grid and binary-image families and differ only by arrowheads in the Eulerian family, but the reading can still depend on the question (the transcriptions embedded in task-specific routing-prompt programs are identical across tasks in 95 of 153 images; Appendix I), so we score the transcription of every call. A twin usually changes the size of the answer as well, and much of our analysis separates class from answer size.
Complexity classes are asymptotic, but the ladder is also a ladder of algorithms: a determinant costs steps; exact dynamic programs for the #P-complete grid twins keep a number of states that is exponential only in the width of the drawing, so they are subexponential on lattice drawings and polynomial at bounded width (Proposition 1); and enumeration costs at least the answer itself, which on our grid drawings grows exponentially in . Expressivity results for transformers [15, 34, 40, 41, 48] tie the ladder to the length of the chain of thought.
Whether a model's errors follow the ladder is an empirical question. Twins let us ask it with the drawing held fixed and, through magnitude-matched pairs, with the answer size held fixed too; the most telling pair is the spanning-tree count #ST against the simple-path count #Paths, where class and answer size point in opposite directions
(a) One image, two questions

(b) Accuracy vs. answer size
(c) Chain of thought → code → pixels
Figure 1. One image, two questions. (a) On this 4×5 drawing #ST (GapL, one determinant) is 324,268 and #Paths from vertex 0 to vertex 19 (#P-complete) is 200: the harder question has the smaller answer. (b) For gemini-3.8-flash (low; also in (c)), chain-of-thought exact match follows answer size far more than class (Visual, n = 721; dashed: m_{50}, where accuracy crosses 50%). (c) Code from an exact edge list solves almost all extra-large pairs; from pixels, on 96 fresh grids one upright view misses 2.8% of horizontal and 0.8% of vertical edges, and a second reading of a rotated copy with crop checks reads 86 of them exactly, against 57 for a repeated upright reading.
(Fig. 1(a)). Our answer to the title question has two regimes:
In chain of thought, most Gemini API models read small diagrams correctly and then fail at counting, at a rate set mainly by the size of the answer rather than by its complexity class; given code and an exact transcription, the Gemini models we tested with code count correctly, and reading large diagrams becomes the failure.
-
In chain of thought, answer size, far more than class, sets success. Exact answers become rarer with every decade of the answer, whereas at equal answer size the class shifts , the answer size at which accuracy crosses 50%, by only 1.0 decade, concentrated in one twin pair; tenfold more thinking tokens move by about three decades. Pre-registered magnitude-matched twins show at most a small class advantage. Varying class without controlling for magnitude mostly measures answer size ( – ).
-
With code, reading becomes the bottleneck. Programs written from the exact text solve almost all extra-large pairs. From pixels, single views miss horizontal edges far more often than vertical ones, and the misses are systematic for a view: a second, decorrelated reading of a rotated copy with crop checks reads 86/96 fresh grids exactly, whereas repeating the identical upright reading reaches 57/96 ( , ).
2. Related Work
Visual counting and perceptual failures. Count-Bench [44], PixMo-Count [11] and CountQA [53] measure object counting in natural images, where the computation is a sum and the errors are perceptual; BlindTest [46] and [62] show that simple synthetic counts fail too, and BlindTest's tasks of counting the rows and columns of a grid and the single-colored paths between two subway stations are close to our grid reading and to #Paths; MMVP [57] isolates encoder blind spots with image pairs CLIP cannot tell apart. We invert that design: our pairs keep the drawing and change the computation.
Graph and algorithmic benchmarks. VisionGraph [33], GITA [66], VGCure [69], Visual Graph Arena [2] and GraphVerse [52] test MLLMs on node-link drawings with decision and optimisation questions, and GraphVLM [36] on multimodal graph learning. VisionGraph reports that all tested models perceive graph structure poorly, which hurts problem solving; on our labelled lattice drawings, by contrast, the primary model reads most benchmark-size drawings exactly ( ). NHardEval4V [32] grades NP-hard optimisation problems by class; AlgoPuzzleVQA and PuzzleVQA [9, 20] inject ground-truth perception to attribute errors; IsoBench [16] and SpatialEval [64] compare image and text renderings. On the text side NL-Graph [63], GraphQA [14] and GraphArena [54] test graph problems, NHardEval [13] grades by P/NP class and NPPC [68] scales NP-complete problems with progressive constraints. None uses counting classes, determinant-vs-permanent gaps or same-image twins, or measures the thinking budget as a function of the class.
Seeing versus solving. Concurrently, Wang et al. [65] test, question by question, whether a vision-language model can extract an exactly scorable task state, solve the question from the ground-truth state, and answer the original ques-

(a) binary image

(b) grid 4×4

(c) grid 6×6

(d) Eulerian, directed
vs. #CC (L) #ST, #PM (GapL) vs. #M, #Paths (#P) same questions, n = 36
#EC (GapL, BEST)

(e) same drawing, undirected
#EC (#P-complete)
Figure 2. Complexity twins. Each of (a)–(c) supports two counting questions in different complexity classes on the same pixels; (d) and (e) show one drawing with and without arrowheads. On grids of bounded width both members are polynomial-time (Proposition 1), so the classes separate only as the width grows.
tion; they find composition failures, where extraction and solving both succeed but the direct answer fails, and reduce them by tuning the model to write out the state before its answer. Our Visual prompt already asks for the transcription before the answer; what differs here is the twin design, which varies the computation by counting class on one drawing and lets us ask how errors scale with answer size. In our attribution (Table 2), 115 of the primary model's 144 errors come with an exact transcription, and the other 29 also fail under Text.
Expressivity and test-time compute. Log-precision fixed-depth transformers without chain of thought lie in uniform [40, 51]; chain-of-thought steps stay within L and polynomially many reach P [15, 34, 41]; logarithmic depth suffices for connectivity [42, 48]. Lyu et al. [37] test a -vs- split on ViT embeddings; we know of no empirical test of these predictions on counting problems or multimodal inputs. Faith and Fate [12] cast multiplication, logic grid puzzles and a dynamic program as computation graphs and find that transformer accuracy falls quickly as their complexity grows; our magnitude law is a multimodal, quantitative counterpart that measures the size of the answer. PAL and Program-of-Thoughts [8, 18] offload arithmetic to code and test-time scaling [50] buys accuracy with tokens; we measure both along the ladder.
3. Complexity Twins
3.1. The ladder
We write for functions computed by uniform constant-depth threshold circuits, FL for logarithmic space, GapL for differences of two logspace-countable functions [38], FP for polynomial time and #P for counting functions of polynomial-time nondeterministic machines [60]. For N-valued functions,
every inclusion conjectured strict and none proved, and all rungs are populated by natural counting problems on images and drawings (Table 1). The integer determinant is complete for GapL [38], so every determinant-reducible count has a polylog-depth algorithm [4].
Table 1. The eight tasks of VISCOUNT-COMPLEXITY and their classes. “#P-c”: #P-complete on a graph class that contains our instances (Definition 1); grid graphs are subgraphs of the square lattice (planar, bipartite, maximum degree 4). At bounded grid width the #M and #Paths rows are polynomial-time (Proposition 1), so these classes separate only as the width grows.
| Task | Input | Class | Algorithm / hardness |
|---|---|---|---|
| binary image | bit-quad formula [23]; | ||
| #CC | binary image | L | Reingold [47]; -hard [1] |
| #ST | grid graph | GapL | matrix-tree det. [30] |
| #PM | grid graph | GapL | Kasteleyn/FKT [28, 55]; planar bipartite det [10] |
| #EC | balanced digraph | GapL | BEST [49, 61] |
| #M | grid graph | #P-c | planar bip. bounded [26, 58] |
| #Paths | grid graph | #P-c | [59]; planar [45]; grids [35] |
| #EC | Eulerian graph | #P-c | [5]; planar 4-regular [19] |
3.2. Twins and the three families
Definition 1 (twin). Let be a family of images with an injective combinatorial reading . A complexity twin is a pair of counting functions and classes (inclusion conjectured strict), taken from (1) or (which lies between and FL), such that , is hard for on a graph class that contains , and for all .
Hardness on a graph class carries over to every class that contains it, so the classes of Table 1 serve: planar bipartite graphs of bounded degree for #M [26, 58], subgraphs of the grid for #Paths [35], planar graphs of maximum degree 4 for #EC, which contain the planar 4-regular graphs of [19], and grid graphs for #CC, which is NC -hard there [1]. Hardness is asymptotic: on grids of bounded width both members are computable in polynomial time (Proposition 1) and our Eulerian drawings are small enough to enumerate, so on the drawings we test a twin separates the class of a question, not its cost. Our three families follow; proofs and conventions are in Appendix A.
Binary images: vs. #CC. For padded by white, let be the number of 4-connected black components and the number of 8-connected white holes. The Euler characteristic satisfies
with the number of black cells, of adjacent black pairs and of all-black blocks (Proposition 2 in Appendix A); each term is an iterated sum of local predicates, so (and , since it contains parity [17, 24]). Counting components is in [47] and -hard on grid graphs [1]. We generate images with , so always.
Grid drawings: determinants vs. #P. For a connected subgraph of the lattice, #ST() is a cofactor of the Laplacian and, being planar and bipartite, #PM() = for a Kasteleyn-signed biadjacency matrix [29]; on the same the number of all matchings and the number of simple corner-to-corner paths are #P-complete for planar bipartite bounded-degree graphs [26, 35, 45, 58]. The median counts of #ST and #M differ by at most 0.63 decades up to but drift apart on larger grids (1.1 and 2.6 decades at and ; Appendix B), so the regression below controls for magnitude, and Appendix N adds 80 twins matched within 0.25 decades per graph. Every perfect matching is a matching, so #PM #M on every graph.
Eulerian drawings: arrowheads on or off. Planar edge-disjoint unions of directed cycles with in-degree equal to out-degree in . With arrowheads, BEST gives #EC = = , one cofactor of the out-degree Laplacian (Proposition 3 in Appendix A); without them the count is #P-complete even for planar 4-regular graphs [19]. We reject pairs whose answers coincide. With the conventions of our prompts #EC #EC: each directed circuit, counted up to rotation, is an undirected circuit, counted up to rotation or reversal, and no directed circuit is the reversal of another (its arcs would run backwards), so the map is injective. In these two twins the GapL member therefore has the smaller answer, whereas in #ST/#Paths it has the larger one on every grid we test.
3.3. What the ladder predicts
Without chain of thought a log-precision fixed-depth transformer computes a function in uniform [40]; with chain-of-thought tokens it stays within TIME(poly()), tokens keep it inside , and polynomially many tokens simulate any polynomial-size circuit [34, 41]. Hence the determinant questions (#ST, #PM, #EC) are reachable with poly() thinking tokens, whereas their #P-complete twins, on the graph classes of Table 1, are not unless #P FP/poly (Proposition 4 in Appendix A, which also covers and #CC and gives the proofs). This is asymptotic: it says how the required budget must scale with for each rung, not what a finite model does at . In practice, the ladder predicts that a chain of thought can keep pace with the determinant questions at a cost polynomial in but, under standard complexity assumptions, not with their #P-complete twins, so as drawings grow the #P member of a twin should go out of reach first, whatever the sizes of the two answers. For programs, the ladder fixes the
cost of a correct route, that is, of choosing the right algorithm:
Proposition 1 (cost of a correct route). On a subgraph of the lattice with vertices and , a correctly routed program computes #ST and #PM in arithmetic operations (as it does #EC on a balanced digraph with vertices), and #M and #PM in and #Paths in by frontier dynamic programming, which is polynomial in for bounded and in general. Enumeration of matchings or simple paths visits every object it counts, so its cost is at least the answer, , which for a lattice subgraph with a perfect matching is at least matchings.
For #Paths the frontier states record which frontier vertices are joined by path fragments; by planarity these pairings do not cross, which keeps their number at , as in frontier-based counting with Knuth's SIMPATH [31] (proof sketch in Appendix A). Our Eulerian drawings have at most 26 edges, so their circuits can simply be enumerated. Hence each grid twin is polynomial-time at bounded width, which covers our grids (width on the benchmark and on the extra-large grids), and the classes separate only as the width grows. The proposition also says where routing can matter: on the benchmark proper () 265 of the 312 core grid and Eulerian answers are below , and the larger ones are spanning-tree counts, which the programs compute as determinants at every size, and matching counts on and grids, where the programs already use dynamic programming (§7.1), so every code condition should tie; on grids the answers reach , beyond any enumeration, while a correctly routed program stays polynomial.
4. Benchmark and Protocol
Instances. All instances come from a seeded generator, rendered from SVG at 96dpi. Grid drawings: for from to (seven sizes) we keep each lattice edge with probability , require connectivity, minimum degree 2 and at least two perfect matchings when is even; vertices are labelled and drawn as circles joined by segments (10 per size core, 25 pooled, 6 at ). Four extra-large sizes, to (6 each, answers up to ), extend the scaling study with #ST, #PM, #M. Binary images: to grids with printed indices, built from one to three hollow squares and a few small blobs, with , and (black density 0.08–0.47; 10 per size core, 25 pooled). Eulerian drawings: planar unions of 3- and 4-cycles in four size buckets (8 pairs each core, 16 pooled), with and without arrowheads. Ground truth uses exact arithmetic; the generator checks #M and #PM (), undirected Eulerian circuits (at most 18 edges) and with a second solver, and an independent re-implementation of the eight task solvers reproduces every answer of the 344 core, seed and extra-large instances (Appendix B). The core slice has 392 (instance, task) pairs, the pooled expansion has 921 pairs across 320 instances (4232 extra calls), a five-style rendering suite re-renders all core grids and binary images (1312 pairs, 2624 calls; Appendix H), and the extra-large suite adds 60 pairs.
Conditions. Each pair is evaluated under up to ten prompts (verbatim in Appendix C). Visual: image and task; the model must transcribe the structure first and end with a JSON object holding the transcription and the integer answer. Text: the ground-truth edge list or 0/1 matrix replaces the image. Hint: Visual plus a one-sentence statement of the relevant theorem or algorithm (Kirchhoff, Kasteleyn, BEST, the bit-quad formula, flood fill, or the exponential recurrence for the #P tasks). Code: the model returns one Python program that hard-codes what it sees and prints the answer, run with a 60 s limit; Text→Code and Hint→Code are the text and hint analogues.
Code and multi-view reading. A routing prompt, CAR (complexity-aware routing), asks the model to transcribe the structure, state whether the counting problem has a known polynomial-time exact algorithm and name it, and then write the program (Text CAR runs it on the text input); we use it only as a control, with four ablations such as Perceive+Code, which drops the classification step (prompts and ablations in Appendix T). To analyse reading at scale (§7.2), two-view reading transcribes the image twice, upright and as a rotated copy (90°, with 180° as a second arm), accepts or rejects the vertex pairs on which the two readings agree, settles each disagreement by one further call showing a local crop of the two endpoint vertices alone, and solves the verified list by code; repeating the upright reading instead is the baseline. No ground truth enters; a crop-based alternative, Zoom-k, is described in Appendix T.
Metrics, statistics, models. Exact match is the primary metric (unparsable answers count as wrong). Transcriptions are scored by edge F1 (cell accuracy and black-cell F1 for images) and by exact transcription, which labels each error perceptual (transcription wrong) or computational (transcription exact, answer wrong). We record thinking and output tokens for every call and, for programs, the algorithm family (algebraic, dynamic programming, backtracking, traversal, local formula; keyword classifier validated by hand, Appendix E), execution success and time-outs. Proportions carry Wilson 95% intervals [67]; twin gaps use the exact McNemar test on paired same-image outcomes [39] with the discordant counts b/c, a 95% interval for the paired difference from a cluster bootstrap over images (B = 2000), and, where a table reports
Table 2. Error attribution on the Visual condition for five configurations (all in Table S2). P: transcription exact; C: answer exact. Columns are percentages of instances in each class.
| Model | Class | n | P✓C✓ | P✓C× | P×C✓ | P×C× |
|---|---|---|---|---|---|---|
| 3.8 Flash (low) | 40 | 100 | 0 | 0 | 0 | |
| L | 40 | 100 | 0 | 0 | 0 | |
| GapL | 148 | 61 | 30 | 0 | 9 | |
| #P | 164 | 47 | 43 | 0 | 10 | |
| 3.8 Flash (high) | 19 | 100 | 0 | 0 | 0 | |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 61 | 90 | 5 | 0 | 5 | |
| #P | 56 | 82 | 11 | 0 | 7 | |
| 3.6 Flash (low) | 40 | 98 | 0 | 2 | 0 | |
| L | 40 | 98 | 0 | 2 | 0 | |
| GapL | 148 | 45 | 53 | 0 | 2 | |
| #P | 163 | 36 | 61 | 0 | 3 | |
| 3.1 Pro (high) | 12 | 100 | 0 | 0 | 0 | |
| L | 12 | 100 | 0 | 0 | 0 | |
| GapL | 42 | 69 | 17 | 0 | 14 | |
| #P | 49 | 63 | 24 | 0 | 12 | |
| Gemma 31B (off) | 40 | 88 | 8 | 2 | 2 | |
| L | 40 | 92 | 2 | 2 | 2 | |
| GapL | 147 | 18 | 40 | 0 | 42 | |
| #P | 162 | 17 | 39 | 1 | 43 |
many tests, Holm-adjusted p-values [25] and the number of tests passing Benjamini–Hochberg at [3]. Logistic regressions on the answer's magnitude test the class term by likelihood ratio and bootstrap its coefficient over images; they use the benchmark proper only, never the extra-large grids. Generations use temperature 0 (plus one control in Appendix J, which also measures repeat drift). Via the Gemini API we evaluate 15 configurations of 9 models: gemini-3.8-flash (low/medium/high), 3.6-flash (minimal/low/high), 3.7-flash, 3.5-flash, 3.1-flash-lite and 3-flash-preview (low), 3.1-pro-preview (low/high), and open-weight gemma-4-31b-it (off/on) and 26b-a4b-it (off) [21, 22]. Minimal/off means no thinking tokens (visible output allowed); public API model IDs [21] matched the logged modelVersion strings on the three main models, and the core and seed-expansion results rest on 21,534 unique scored calls (Appendix I). Under vLLM with exact token caps , we also self-host four Gemma 4 models (31B, 26B-A4B, 12B, E4B-it; 34,592 calls, Appendix P) and Qwen3-VL (32B-Thinking, 8B-Thinking, plus non-thinking 8B-Instruct at free; 19,458 calls, Appendix Q).
5. Seeing at Benchmark Scale
Numbers are exact-match percentages for gemini-3.8-flash (low), our primary configuration, unless noted; all configurations, per-size tables, intervals and counts are in Appendix D. Over the 3,600 Visual calls with a scorable transcription (all configura-
Table 3. Paired same-image twin tests (Visual, core slice) for five configurations. Each cell gives acc_A/acc_B, exact match (%) on the lower-class/higher-class member, and b/c, the pairs solved only by A / only by B; †: exact McNemar test significant after Holm adjustment over these 24 tests; n/a: fewer than 10 paired instances. Intervals and raw and adjusted p for these tests are in Table S47; all configurations and conditions in Table S7 and Table S35. Class and answer size are aligned in #PM/#M and #EC→/#EC (the GapL member has the smaller answer), opposed in #ST/#Paths and size-dependent in #ST/#M (§3.2).
| Twin pair (A vs. B) | 3.8 Flash (low) | 3.8 Flash (high) | 3.6 Flash (high) | 3.1 Pro (high) | Gemma 31B (off) | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| acc | b/c | acc | b/c | acc | b/c | acc | b/c | acc | b/c | |
| #ST vs. #M | 38/42 | 4/7 | 90/90 | 0/0 | 51/51 | 3/3 | 50/60 | 1/3 | 8/3 | 4/1 |
| #ST vs. #Paths | 38/39 | 4/5 | 86/81 | 1/0 | 51/49 | 4/3 | 53/58 | 1/2 | 8/21 | 1/10 |
| #PM vs. #M | 70/44 | 13/0↑ | 93/86 | 1/0 | 72/48 | 6/0 | 80/53 | 4/0 | 20/0 | 10/0↑ |
| χ vs. #CC | 100/100 | 0/0 | 100/100 | 0/0 | 100/100 | 0/0 | 100/100 | 0/0 | 90/95 | 1/3 |
| #EC→ vs. #EC | 97/72 | 8/0 | 100/91 | 1/0 | 100/88 | 2/0 | n/a | n/a | 34/41 | 1/3 |
tions), mean edge or cell F1 is 0.994 and the transcription is exact in 85% of calls (Table S14); for the primary model it is exact in 88% of grid drawings and in all binary images and Eulerian drawings. Reading depends on the model: 3.1-flash-lite, the Gemma 4 API runs without thinking (Table S14) and the self-hosted Gemma 4 and Qwen3-VL runs transcribe far fewer core images exactly, and the self-hosted runs' Visual cells are limited by reading (Appendix P, Appendix Q). Table 2 splits the Visual errors: 115 of the primary model's 144 errors (80%) come with an exact transcription. The other 29 also fail in the Text control, so this split cannot tell which step caused them. We therefore solved all 921 pooled pairs from one task-independent transcription per image (Table S41–Table S43): 378/384 images are transcribed exactly, and of the errors 389 come from computation alone, 1 from perception alone, 23 from both and 0 from error cancellation. Pooled over configurations, 68% of Visual errors come with an exact transcription, and removing the image changes accuracy by a few points at most (Table S1, Table S5). At benchmark size most errors happen after the drawing has been read; §7.2 shows where this stops.
6. Counting in Chain of Thought
6.1. Same image: accuracy follows answer size
Table 3 gives the paired same-image tests on the core slice; Appendix H and Appendix I repeat them on the pooled sample ( pairs). The most telling pair is #ST against #Paths, where class and answer size point in opposite directions: path counts are small (median 268 against 540,011 for spanning trees), so a procedure whose cost grows with the answer finds the #P member easy and the GapL member hard (Fig. S1), and in Table 3 the primary model's #ST beats neither #Paths nor #M. On 80 pre-registered twins matched within 0.25 decades per graph (Appendix N), which hold answer size fixed, GapL wins, pooled over eight configurations, 60% of discordant pairs under Visual () and 60% under Text (). In the two pairs that follow the ladder on the primary model, #PM over #M and #EC→, over #EC, the GapL member also
has the smaller answer (§3.2), so these gaps do not separate class from size; of the 24 tests in the table, 2 survive Holm, both #PM vs. #M (pooled , and on 3.6-flash (low) and 3.1-pro (low); all tests in Table S35). and #CC are both at 99–100%.
A logistic regression of exact match on of the true answer and on class, over the grid and Eulerian families (answers from 1 to ; Table S32 adds the extra-large pairs), makes the role of answer size quantitative (Visual in Fig. 1(b); Visual and Text in Fig. S5). Under Visual the odds of an exact answer fall by a factor 2.38 per decade (; 2.74 on the core slice, ; 2.41 under Text). At equal magnitude the #P member is still harder (LR ; Text ): , the answer at which accuracy crosses 50%, is for GapL and for #P ( and under Text), a gap of 1.0 decade (bootstrap CI [0.4, 1.5]), against answers that span thirteen decades. This class term is fragile (Table S33, Table S34). Instance covariates do not remove it, but leaving out #ST or #Paths does; it is not detectable within the Eulerian family or on 3.6-flash and 3.1-pro, its sign is not stable across configurations (in 8 of the 14 per-configuration fits the #P member has the higher ; Table S4), and it mostly says that #Paths is harder than its small answers predict. Within an image, when the two answers lie within a decade of each other, discordant pairs split 14 to 16 (#P to GapL) under Visual and 7 to 24 under Text; once the #P answer is at least a decade larger they split 2 to 45 and 3 to 48.
6.2. Thinking budget buys decades of answer size
Within a family we vary only the thinking level (Table 4; all configurations in Table S3). Both upper rungs rise, and across the 14 configurations of 9 models with a fitted , grows by 3.24 decades per tenfold increase in tokens (95% CI [2.1, 4.4]; Appendix O), counting the 23% of high-thinking 3.8-flash Visual calls that returned only when rerun (3.54 without them; Table S4). Fitted per class, GapL moves further on all three ladders (3.8-flash, 3.6-flash, 3.1-pro), but on the 80 matched twins more thinking does not favour GapL (both CIs include zero;
Table 4. Thinking budget within a family, Visual condition: class-average exact match (%) on the instances shared by all levels (202 for gemini-3.6-flash, 152 for gemini-3.8-flash), on the calls that returned at first; mean thinking plus output tokens per call and from the per-configuration logistic fit (Table S4). *With the reruns of Appendix O; the calls that returned at first give .
| Model | thinking | L | GapL | #P | tokens | ||
|---|---|---|---|---|---|---|---|
| 3.6 Flash | minimal | 100 | 95 | 29 | 26 | 1.8k | |
| low | 100 | 100 | 47 | 41 | 7.0k | ||
| high | 100 | 100 | 68 | 57 | 25.4k | ||
| 3.8 Flash | low | 100 | 100 | 69 | 67 | 5.7k | |
| medium | 100 | 100 | 86 | 78 | 13.2k | ||
| high | 100 | 100 | 92 | 83 | 27.4k | * |
Appendix N), so this gap is also answer size. Any cost-answer power law gives a constant decade-per-budget slope, and tokens per call follow the rung only through answer size (Table S10). Under exact token caps on self-hosted models, the magnitude law holds in 7/8 Gemma 4 cells and 6/6 Qwen3-VL cells, and rises with budget in 7/8 Gemma 4 cells and in both Qwen3-VL Text cells (Holm-corrected; Appendix P, Appendix Q), partly because more calls finish within the cap (Appendix R).
6.3. Naming the theorem does not help
If models enumerate because they do not know the polynomial-time theorems, naming them should help; it does not. For the primary model (391 instances) the hint changes exact match by at most 8 points on every task except #EC (+22), whose hint describes an enumeration the model can run; over the four hinted configurations the GapL average moves by -3 points and the #P average by 0 (Table S6). The theorems are known: asked to classify the problem before coding (the routing prompt), the models declare the right complexity class in 96% of programs (Table S15), and in code they implement determinants unprompted (§7.1). In chain of thought they rarely carry them out: 0 of 288 6×6 spanning-tree calls are exact across all configurations and chain-of-thought conditions, and only 41 of 1,596 Visual and Text calls with an answer of at least are exact (35 at medium or high thinking; 2 of 292 for the primary model). Enumeration cannot reach such answers within the up to 63,842 tokens used, and 11 of the 12 exact Visual #ST answers name a Matrix-Tree determinant.
7. Counting in Code, and Reading at Scale
7.1. Code runs what chain of thought rarely finishes
Letting the model write and run code removes arithmetic and execution limits (Table 5). The primary model reaches 93% with Code vs. 63% with Visual on the 392 instances (0 time-outs); 62% of #ST, #PM and #EC→ programs compute a determinant/Pfaffian and 27% of #P programs use dynamic programming (the rest enumerate); from text
Table 5. Code conditions, primary model (392 instances); all columns in % except tokens. exec: programs that run; t/o: time-outs at 60s; libs: programs that import a library; alg.: #ST, #PM, #EC→ programs that compute a determinant/Pfaffian; DP: #M, #Paths, #EC programs that use memoised/frontier dynamic programming rather than enumeration. All models and prompts: Table S108.
| Condition | n | acc | exec | t/o | libs | alg. | DP | tokens |
|---|---|---|---|---|---|---|---|---|
| Visual→Code | 392 | 93 | 100 | 0 | 6 | 62 | 27 | 1.7k |
| Text→Code | 392 | 96 | 98 | 0 | 3 | 64 | 32 | 0.9k |
| Routing prompt (control) | 392 | 91 | 100 | 0 | 0 | 72 | 41 | 1.5k |
(Text→Code) the figures are 96% exact, 64% and 32%. As instances grow, the models switch from enumeration to determinants or frontier dynamic programs (Table S20): #M dynamic-programming usage rises from 0/6 at 3×3 to 10/10 from 5×6 on (100% from 7×7 on); #ST uses Kirchhoff at every size, while Kasteleyn for #PM appears only on the largest grids (3/6 at 10×10). On the benchmark proper the choice does not affect accuracy, as Proposition 1 predicts: the routing prompt, a control that should beat Code only where enumeration is too slow, reaches 90.6% against 92.9% for Code on the same 392 instances (; pooled ; per task in Table S22), 3.6-flash and 3.1-pro tie as well, and the only two significant differences point in opposite directions (Table S36), although the declared class is right in 96% of programs (Table S15). On extra-large grids the choice is decisive.
7.2. Reading large drawings
Code works from text; transcription fails from pixels. Table 6 collects the extra-large grids ( to ; other models in Table S40), where Proposition 1 says routing should matter. Chain of thought solves none, while programs written from the exact text solve almost all, including #M at , because given a large input the models write a frontier dynamic program on their own. From pixels the same prompts solve few pairs, and on 96 fresh pre-registered grids (Appendix L) the explicit transcription step of the routing prompt does not help (Holm ). The failures are transcription failures: of the 101 wrong routing-prompt programs on grid instances, 53 compute the right answer for a wrongly transcribed graph, 9 a wrong answer for the right graph, 13 do both and 26 embed no edge list (Table S21), and on the extra-large grids all 28 wrong routing-prompt programs embed a wrong graph, 22 of them solving that graph exactly (Table S37).
Why reading fails at scale. Single-view misses are anisotropic: in whole-image reading 38 of 1,384 horizontal edges are missed against 6 of 1,393 vertical ones, and rotating the image by moves the misses to the edges that are now horizontal ( on the core grids; Table S17, Table S38); cutting the image into crops (Zoom-k,
Table 6. Extra-large grids (7×7 to 10×10) and large rendered diagrams, primary model: grids transcribed exactly and (instance, task) pairs solved. One shot: one call reads and solves. Two-view: upright plus 90°-rotated reading, a crop check of each disputed pair, then code. CAR: the routing prompt (a control). Rendered diagrams are solved by an exact solver from the transcription, so only exact transcriptions are shown. †Pre-registered. Tests are in the text; other models in Table S40.
| Set | Method | exact | solved |
|---|---|---|---|
| 24 grids | chain of thought (all configurations) | 0/60 | |
| Code, one shot | 6/60 | ||
| Perceive+Code or CAR, one shot | 14/60 | ||
| exact text: Text→Code / Text CAR | 57/60 / 54/60 | ||
| one view / Zoom-k crops (k=2, 3) | 13/24 / 1/24, 7/24 | ||
| two-view (90°): Text→Code / Text CAR | 22/24 | 49/60 / 43/60 | |
| rerun: two-view / two upright (T=0) | 21/24 / 15/24 | ||
| 96 grids† | two-view (90°), then Text CAR | 86/96 | 195/240 |
| two-view (180°) | 86/96 | ||
| two upright readings (T=0) | 57/96 | ||
| CAR / Code, one shot | 53/240 / 66/240 | ||
| exact text: Text→Code | 216/240 | ||
| 48 rendered† | one view / quadrant zoom | 13/48 / 18/48 | |
| two-view, 90° / 180° | 35/48 / 37/48 |
Appendix T) makes reading worse (Table S39). The misses are systematic for a given view, and a second, decorrelated reading repairs most of them. In our first run the union of an upright and a rotated reading missed none of 2,777 true edges, and a crop check of each disputed pair (8.6 per grid) answered 207/207 correctly (Table S44; other models in Table S19). On 96 fresh pre-registered grids, a second reading of a 90° or of a 180° copy with crop checks is exact on 86/96 grids either way (b/c 6/6), so the gain does not depend on turning horizontal edges vertical, whereas repeating the identical upright request at T=0 gives 57/96 (Holm for either rotation; Appendix K). The two upright readings miss the same edges (113 missed by both, against 7 and 23 with a 90° or 180° copy). A same-session rerun on the first 24 grids is not significant (; Appendix J), and two-view reading also beats the one-shot routing prompt (Holm ; Appendix L).
Rendered diagrams and held-out tasks. In a pre-registered test on 88 graphs rendered in four realistic styles (PCB traces, blueprint floorplans, transit maps, slanted desk scenes with cast shadows; Appendix S), 4 of the 8 registered criteria hold on the primary model: Direct accuracy falls with answer magnitude (), single views miss horizontal edges as often as vertical ones (), and on the 48 large diagrams two-view reading beats one view (one-sided McNemar over graph-task pairs, ) and quadrant zoom (Table 6). Four fail: the routing prompt gains less than registered, matched #ST/#M twins differ by 20.0 points (), #PM leads #M by less than registered, and a 180° second view does as well as 90°, so the repair comes from a second reading of a rotated copy with crop checks rather than from swapping axes. On three held-out counting tasks (independent sets, #P-complete [58]; dominating sets, #P-complete; shortest corner-to-corner paths, linear time; 198 instances each), Code and the routing prompt both reach 90% against 56% for Visual (Table S23).
8. Discussion and Conclusion
At benchmark scale, chain-of-thought success tracks answer magnitude far more than class; the class adds decade of at equal magnitude in the primary model's pooled data (concentrated in one twin pair and not detectable on 3.6-flash or 3.1-pro in the pooled sample), so varying class without controlling for magnitude mostly measures answer size, a caution for benchmarks that grade difficulty by complexity class [13, 32].
Limitations. Degraded renderings (Appendix M) and four realistic rendering styles (Appendix S) reproduce the magnitude law and the blind spot, but every image is rendered from a known graph; photographs and natural scenes with occlusion remain untested. The API runs cover 15 configurations of 9 models from one provider with coarse thinking levels, provider token counts, and unlogged resolved versions in the initial sweep (Appendix I); our vLLM runs add self-hosted Gemma 4 and Qwen3-VL under exact token caps, though other families may differ. Algorithm-family labels use a hand-validated rule classifier (Appendix E). The magnitude regression is observational: answer size covaries with instance size within a task, and because class is nested in task, dropping #ST or #Paths removes the class term, so we report decade of tied to specific twin pairs rather than a class constant. Finally, the classes are asymptotic (§3.3), and at bounded grid width both members of a grid twin are polynomial-time (Proposition 1).
Conclusion. In chain of thought, most Gemini API models read small diagrams correctly and then fail at counting, at a rate set mainly by the size of the answer rather than by its complexity class; given code and an exact transcription, the Gemini models we tested with code count correctly, and reading large diagrams becomes the failure. Complexity twins expose the two regimes, and magnitude-matched twins separate class from answer size. At scale, a second, decorrelated reading with pair-crop checks largely repairs an anisotropic horizontal-edge blind spot in plain and realistically styled diagrams.
LLM Usage Statement
Apart from the models evaluated in this study, we used a non-public agentic coding and writing assistant built on commercial LLMs (Claude and Gemini model families). We used it extensively: it helped brainstorm candidate research directions (we chose this one), wrote the code and ran the experiments under our direction, drafted and revised the text and figures, and searched for related work. Results were checked with unit tests and recomputation from raw logs, every reference was checked against its source, and we take full responsibility for all content.
References
[1] Eric Allender, David A. Mix Barrington, Tanmoy Chakraborty, Samir Datta, and Sambuddha Roy. Planar and grid graph reachability problems. Theory of Computing Systems, 45(4):675–723, 2009. 1, 3, 4, 13
[2] Zahra Babaiee, Peyman M. Kiasari, Daniela Rus, and Radu Grosu. Visual Graph Arena: Evaluating visual conceptualization of vision and multimodal large language models. arXiv preprint arXiv:2506.06242, 2025. 1, 2
[3] Yoav Benjamini and Yosef Hochberg. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society: Series B (Methodological), 57(1):289–300, 1995. 5, 59
[4] Stuart J. Berkowitz. On computing the determinant in small parallel time using a small number of processors. Information Processing Letters, 18(3):147–150, 1984. 3
[5] Graham R. Brightwell and Peter Winkler. Counting Eulerian circuits is #P-complete. In ANALCO, pages 259–262, 2005. 1, 3
[6] Declan Campbell, Sunayana Rane, Tyler Giallanza, Nicolò De Sabbata, Kia Ghods, Amogh Joshi, Alexander Ku, Steven M. Frankland, Thomas L. Griffiths, Jonathan D. Cohen, and Taylor W. Webb. Understanding the limits of vision language models through the lens of the binding problem. In NeurIPS, 2024. 1
[7] Ashok K. Chandra, Larry Stockmeyer, and Uzi Vishkin. Constant depth reducibility. SIAM Journal on Computing, 13(2):423–439, 1984. 12
[8] Wenhu Chen, Xueguang Ma, Xinyi Wang, and William W. Cohen. Program of thoughts prompting: Disentangling computation from reasoning for numerical reasoning tasks. Transactions on Machine Learning Research, 2023. 3
[9] Yew Ken Chia, Vernon Toh, Deepanway Ghosal, Lidong Bing, and Soujanya Poria. PuzzleVQA: Diagnosing multimodal reasoning challenges of language models with abstract visual patterns. In Findings of ACL, 2024. 2
[10] Samir Datta, Raghav Kulkarni, Nutan Limaye, and Meena Mahajan. Planarity, determinants, permanents, and (unique) matchings. ACM Transactions on Computation Theory, 1(3): 10:1–10:20, 2010. 3, 13
[11] Matt Deitke et al. Molmo and PixMo: Open weights and open data for state-of-the-art vision-language models. In CVPR, 2025. 2
[12] Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Sean Welleck, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D. Hwang, Soumya Sanyal, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, and Yejin Choi. Faith and fate: Limits of transformers on compositionality. In NeurIPS, 2023. 3
[13] Lizhou Fan, Wenyue Hua, Lingyao Li, Haoyang Ling, and Yongfeng Zhang. NPHardEval: Dynamic benchmark on reasoning ability of large language models via complexity classes. In ACL, 2024. 2, 8
[14] Bahare Fatemi, Jonathan Halcrow, and Bryan Perozzi. Talk like a graph: Encoding graphs for large language models. In ICLR, 2024. 2
[15] Guhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye, Di He, and Liwei Wang. Towards revealing the mystery behind chain of thought: A theoretical perspective. In NeurIPS, 2023. 1, 3
[16] Deqing Fu, Ruohao Guo, Ghazal Khalighinejad, Ollie Liu, Bhuwan Dhingra, Dani Yogatama, Robin Jia, and Willie Neiswanger. IsoBench: Benchmarking multimodal foundation models on isomorphic representations. In COLM, 2024. 2
[17] Merrick Furst, James B. Saxe, and Michael Sipser. Parity, circuits, and the polynomial-time hierarchy. In FOCS, pages 260–270, 1981. 4, 12
[18] Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. PAL: Program-aided language models. In ICML, 2023. 3
[19] Qi Ge and Daniel Štefanković. The complexity of counting Eulerian tours in 4-regular graphs. Algorithmica, 63:588–601, 2012. 1, 3, 4
[20] Deepanway Ghosal, Vernon Toh, Yew Ken Chia, and Soujanya Poria. AlgoPuzzleVQA: Diagnosing multimodal reasoning challenges of language models with algorithmic multimodal puzzles. In NAACL, 2025. 1, 2
[21] Google DeepMind. Gemini models (developer documentation). https://ai.google.dev/gemini-api/docs/models, 2026. 5
[22] Google DeepMind. Gemma 4 model card. https://ai.google.dev/gemma/docs/core/model_card_4, 2026. 5, 96
[23] Stephen B. Gray. Local properties of binary images in two dimensions. IEEE Transactions on Computers, C-20(5): 551–561, 1971. 1, 3, 12
[24] Johan Hästad. Almost optimal lower bounds for small depth circuits. In STOC, pages 6–20, 1986. 4, 12
[25] Sture Holm. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70, 1979. 5, 59
[26] Mark Jerrum. Two-dimensional monomer-dimer systems are computationally intractable. Journal of Statistical Physics, 48:121–134, 1987. 1, 3, 4
[27] Richard M. Karp and Richard J. Lipton. Some connections between nonuniform and uniform complexity classes. In Proceedings of the Twelfth Annual ACM Symposium on Theory of Computing (STOC), pages 302–309, 1980. 13
[28] Pieter W. Kasteleyn. The statistics of dimers on a lattice: I. The number of dimer arrangements on a quadratic lattice. Physica, 27(12):1209–1225, 1961. 1, 3
[29] Pieter W. Kasteleyn. Graph theory and crystal physics. In Graph Theory and Theoretical Physics, pages 43–110. Academic Press, 1967. 4
[30] Gustav Kirchhoff. Ueber die Auflösung der Gleichungen, auf welche man bei der Untersuchung der linearen Vertheilung galvanischer Ströme geführt wird. Annalen der Physik, 148 (12):497–508, 1847. 1, 3
[31] Donald E. Knuth. The Art of Computer Programming, Volume 4A: Combinatorial Algorithms, Part 1. Addison-Wesley, 2011. 4, 13
[32] Xiang Li, Wenyue Hua, Kaijie Zhu, Lingyao Li, Haoyang Ling, Jinkui Chi, Qi Dou, Jindong Wang, Yongfeng Zhang, Xin Ma, and Lizhou Fan. NPHardEval4V: Dynamic evaluation of large vision-language models with effects of vision. arXiv preprint arXiv:2403.01777, 2024. 1, 2, 8
[33] Yunxin Li, Baotian Hu, Haoyuan Shi, Wei Wang, Longyue Wang, and Min Zhang. VisionGraph: Leveraging large multimodal models for graph theory problems in visual context. In ICML, 2024. 1, 2
[34] Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu Ma. Chain of thought empowers transformers to solve inherently serial problems. In ICLR, 2024. 1, 3, 4, 12
[35] Maciej Liškiewicz, Mitsunori Ogihara, and Seinosuke Toda. The complexity of counting self-avoiding walks in subgraphs of two-dimensional grids and hypercubes. Theoretical Computer Science, 304:129–156, 2003. 3, 4
[36] Jiajin Liu, Dongzhe Fan, Chuanhao Ji, Daochen Zha, and Qiaoyu Tan. GraphVLM: Benchmarking vision language models for multimodal graph learning. In CVPR, 2026. 2
[37] Siyi Lyu, Quan Liu, and Feng Yan. On the intrinsic limits of transformer image embeddings in non-solvable spatial reasoning. In ICML, 2026. arXiv:2601.03048. 3
[38] Meena Mahajan and V. Vinay. Determinant: Combinatorics, algorithms, and complexity. Chicago Journal of Theoretical Computer Science, 1997(5), 1997. 3, 13
[39] Quinn McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2):153–157, 1947. 5
[40] William Merrill and Ashish Sabharwal. The parallelism tradeoff: Limitations of log-precision transformers. Transactions of the Association for Computational Linguistics, 11:531–545, 2023. 1, 3, 4, 12, 13
[41] William Merrill and Ashish Sabharwal. The expressive power of transformers with chain of thought. In ICLR, 2024. 1, 3, 4, 12
[42] William Merrill and Ashish Sabharwal. A little depth goes a long way: The expressive power of log-depth transformers. In NeurIPS, 2025. 3
[43] Marvin Minsky and Seymour Papert. Perceptrons: An Introduction to Computational Geometry. MIT Press, 1969. 1
[44] Roni Paiss, Ariel Ephrat, Omer Tov, Shiran Zada, Inbar Mosseri, Michal Irani, and Tali Dekel. Teaching CLIP to count to ten. In ICCV, pages 3170–3180, 2023. 1, 2
[45] J. Scott Provan. The complexity of reliability computations in planar and acyclic graphs. SIAM Journal on Computing, 15(3):694–702, 1986. 1, 3, 4
[46] Pooyan Rahmanzadehgervi, Logan Bolton, Mohammad Reza Taesiri, and Anh Totti Nguyen. Vision language models are blind. In ACCV, pages 18–34, 2024. 1, 2
[47] Omer Reingold. Undirected connectivity in log-space. Journal of the ACM, 55(4):17:1–17:24, 2008. 1, 3, 4
[48] Clayton Sanford, Daniel Hsu, and Matus Telgarsky. Transformers, parallel computation, and logarithmic depth. In ICML, 2024. 1, 3
[49] Cedric A. B. Smith and William T. Tutte. On unicursal paths in a network of degree 4. American Mathematical Monthly, 48(4):233–237, 1941. 1, 3, 12
[50] Charlie Victor Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In ICLR, 2025. 3
[51] Lena Strobl, William Merrill, Gail Weiss, David Chiang, and Dana Angluin. What formal languages can transformers express? A survey. Transactions of the Association for Computational Linguistics, 12:543–561, 2024. 3
[52] Yuanfu Sun, Yuanhang Ren, Kang Li, Chuanhao Ji, Ji-axi Li, Jiajin Liu, Ninghao Liu, and Qiaoyu Tan. GraphVerse: A comprehensive visual graph reasoning benchmark for multimodal large language models. arXiv preprint arXiv:2608.06769, 2026. 2
[53] Jayant Sravan Tamarapalli, Rynaa Grover, Nilay Pande, and Sahiti Yerramilli. CountQA: How well do MLLMs count in the wild? arXiv preprint arXiv:2508.06585, 2025. 1, 2
[54] Jianheng Tang, Qifan Zhang, Yuhan Li, Nuo Chen, and Jia Li. GraphArena: Evaluating and exploring large language models on graph computation. In ICLR, 2025. 2
[55] H. N. V. Temperley and Michael E. Fisher. Dimer problem in statistical mechanics—an exact result. Philosophical Magazine, 6(68):1061–1063, 1961. 1, 3
[56] Seinosuke Toda. PP is as hard as the polynomial-time hierarchy. SIAM Journal on Computing, 20(5):865–877, 1991. 13
[57] Shengbang Tong, Zhuang Liu, Yuexiang Zhai, Yi Ma, Yann LeCun, and Saining Xie. Eyes wide shut? Exploring the visual shortcomings of multimodal LLMs. In CVPR, pages 9568–9578, 2024. 1, 2
[58] Salil P. Vadhan. The complexity of counting in sparse, regular, and planar graphs. SIAM Journal on Computing, 31(2):398–427, 2001. 1, 3, 4, 8
[59] Leslie G. Valiant. The complexity of enumeration and reliability problems. SIAM Journal on Computing, 8(3):410–421, 1979. 3
[60] Leslie G. Valiant. The complexity of computing the permanent. Theoretical Computer Science, 8(2):189–201, 1979. 3
[61] Tatyana van Aardenne-Ehrenfest and Nicolaas G. de Bruijn. Circuits and trees in oriented linear graphs. Simon Stevin, 28:203–217, 1951. 1, 3, 12
[62] An Vo, Khai-Nguyen Nguyen, Mohammad Reza Taesiri, Vy Tuong Dang, Anh Totti Nguyen, and Daeyoung Kim. Vision language models are biased. In ICLR, 2026. 1, 2
[63] Heng Wang, Shangbin Feng, Tianxing He, Zhaoxuan Tan, Xiaochuang Han, and Yulia Tsvetkov. Can language models solve graph problems in natural language? In NeurIPS, 2023. 2
[64] Jiayu Wang, Yifei Ming, Zhenmei Shi, Vibhav Vineet, Xin Wang, Yixuan Li, and Neel Joshi. Is a picture worth a thousand words? Delving into spatial reasoning for vision language models. In NeurIPS, 2024. 2
[65] Ziheng Wang, Mingxuan Xie, Yilin Liu, Dayan Wu, Yang Li, and Pengwen Dai. Seeing and solving are not enough for vision-language models. arXiv preprint arXiv:2609.33694, 2026. 2
[66] Yanbin Wei, Shuai Fu, Weisen Jiang, Zejian Zhang, Zhixiong Zeng, Qi Wu, James T. Kwok, and Yu Zhang. GITA: Graph to visual and textual integration for vision-language graph reasoning. In NeurIPS, 2024. 1, 2
[67] Edwin B. Wilson. Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158):209–212, 1927. 5
[68] Chang Yang et al. Nondeterministic polynomial-time problem challenge: An ever-scaling reasoning benchmark for LLMs. Transactions on Machine Learning Research, 2026. 2
[69] Yingjie Zhu, Xuefeng Bai, Kehai Chen, Yang Xiang, Jun Yu, and Min Zhang. Benchmarking and improving large vision-language models for fundamental visual graph understanding and reasoning. In ACL, 2025. 2
Appendix
This appendix gives the proofs, the transformer predictions behind Section 3.3, the dataset statistics, the verbatim prompts, every result table referred to in the main paper with instance counts, the full-length summaries of each experiment (generated from the result files together with the tables), the code-classifier validation and examples, failure cases, compute and cost, the expanded-seed and rendering-style replication (6,856 additional evaluations), the sensitivity analyses with their provenance notes (§I), the same-session rerun of Experiment B (§J), its pre-registered replication on fresh grids (§K), the one-shot conditions on the same fresh grids (§L), the core images under ten degradations (§M), magnitude-matched twins on eight thinking configurations with a copy and an explicit-algorithm control (§N), the reruns of the calls that never returned (§O), the self-hosted Gemma 4 experiments under controlled thinking budgets (§P), the self-hosted Qwen3-VL control family (§Q), the finished-calls truncation sensitivity check (§R), the realistic engineering and physical diagram benchmark (§S) and the code conditions, routing prompt and reading pipelines that the main paper summarises (§T). Table and figure numbers with the prefix S refer to this appendix; all other table and figure numbers refer to the main paper.
A. Proofs and conventions
Connectivity conventions. Throughout, black (foreground) cells are 4-connected and white (background) cells are 8-connected; the image is padded by one ring of white cells so that the outer background is a single 8-connected region. is the number of black 4-components and the number of bounded white 8-components.
Proposition 2 (bit-quad identity). For every binary image , .
Proof. Let be the plane graph whose vertices are the centres of black cells and whose edges join 4-adjacent black cells by unit segments; is the induced subgraph of the lattice on the black cells, so and . Euler's formula for a plane graph with connected components gives , where includes the unbounded face. The bounded faces of are of two kinds. A unit square all of whose four corners are black is a face, because all four boundary edges are present; there are of them. Every other bounded face has area at least 2 and, since is induced, is not subdivided by a missing lattice edge; it therefore contains at least one white cell centre, and the white cell centres it contains form exactly one 8-connected white region: diagonal steps between white cells cross no edge of (edges lie on lattice lines, a diagonal crosses a lattice point only at the centre of a unit square that is not all black), and conversely a lattice path inside an open face can be discretised into 8-steps between white centres. Bounded white 8-regions touching the padded border lie in the unbounded face, and every bounded one lies in a bounded face. Hence the non-square bounded faces are in bijection with the holes, , and . (This is the classical bit-quad identity of Gray [23]; we include the argument to fix the conventions used by our generator, which asserts the identity on every image.)
Corollary 1. and .
Proof. Each of the three counts is the number of ones in a vector of local predicates of at most four pixels, i.e. an iterated addition, which is in [7]; the signed sum of three -bit numbers is in . For the lower bound, an image whose black cells are pairwise non-adjacent has , so an circuit for the low-order bit of would compute parity, contradicting [17, 24].
Proposition 3 (BEST with vanishing factorial). Let be a connected digraph with for every vertex. The number of Eulerian circuits of (as cyclic sequences of arcs) equals for any vertex , where is the out-degree Laplacian and is with row and column removed.
Proof. By the BEST theorem [49, 61], where is the number of spanning arborescences oriented towards ; the product is 1 because every factor is 0! or 1!. The directed matrix-tree theorem expresses as the stated cofactor. Our generator asserts the factorial product equals 1 on every instance and cross-checks by two determinant routines.
What the ladder predicts for a transformer. Section 3.3 summarises the following facts and proposition. (T1) A log-precision fixed-depth transformer answering without chain of thought computes a function in uniform [40]. (T2) With chain-of-thought tokens it computes functions in , and stays inside [34, 41]. (T3) Polynomially many tokens suffice to simulate any polynomial-size circuit [34].
Proposition 4 (predictions). Let be a family of fixed-depth log-precision transformers; parts (b) and (c) assume one set of weights for all , and with weights that depend on they give and instead. (a) lies in uniform , so the known upper bound on without chain of thought [40] does not exclude it; this is a statement about the class, not a guarantee that a trained model computes . (b) If computes on all grid images without chain of thought then . (c) , and , are computable with thinking tokens; conversely, if computes integer determinants, to which all three reduce and to which on weighted planar bipartite graphs is equivalent [10], with tokens for all , then . (d) If computes , or on the graph class on which Table 1 lists it as -complete, with thinking tokens for all , then and the polynomial hierarchy collapses [27, 56].
The proposition does not say what a finite model does at ; it says how the required budget must scale with for each rung, hence which comparisons are informative. No condition we ran is the no-chain-of-thought setting of T1: with thinking minimal or off a model emits no thinking tokens but still writes visible output before its answer (mean tokens per call in Table S4).
Proof of Proposition 4. (a) By Proposition 2 and its corollary is in uniform ; T1 is an upper bound on the class, and the claim is that the class contains the target (existence of weights is a separate matter, which we do not claim). (b) If a no-chain-of-thought family computes , then by T1 ; deciding is then in , and undirected grid-graph reachability reduces to it by an reduction, so by [1]. (c) Upper bound: each of the three counts is a determinant of an integer matrix of size built by a logspace transducer from the drawing, the determinant is in , and T3 gives a -token chain of thought that simulates the polynomial-size circuit. Lower bound: by T2, tokens keep the computed function inside ; if that function is the integer determinant, then because the determinant is -complete [38], and the same conclusion follows for on weighted planar bipartite graphs, which is logspace-equivalent to the determinant [10]. We do not claim that the unweighted lattice instances we actually use are -hard (no such theorem is known to us), which is why the lower bound in (c) is phrased for the determinant. (d) If a family with tokens computes a -complete function, T2 places it in with the family's weights as advice, so ; by Toda's theorem , which collapses the hierarchy by the Karp–Lipton theorem.
Proof of Proposition 1 (cost of a correct route). Kirchhoff's and the directed matrix-tree determinants are ; Kasteleyn's is ; Bareiss elimination computes each exactly in ring operations on integers of bits. Orient the lattice so that its rows have cells. For and , process cells in row-major order with a state recording, for the most recent cells, whether each is already matched; each cell is either left unmatched, matched to its right neighbour, or matched to the cell below, so there are at most states and transitions per state per cell. For from to , process the edges in row-major order and decide for each whether it lies on the path; the frontier, the processed vertices that still have an unprocessed edge, has at most vertices. The state records, for every frontier vertex, its degree in the chosen edges and, if that degree is 1, the other end of its path fragment (or that the fragment reaches or ): the mate array of frontier-based search, as in Knuth's SIMPATH [31]. An edge that would close a cycle or give a vertex degree 3 is rejected, and so is a vertex other than and that leaves the frontier with degree 1. The fragments lie in the processed part of a plane graph and the frontier vertices lie in order on its boundary, so no two fragments join interleaved pairs of frontier vertices: the pairings do not cross, and there are states. Each of the edges updates every state in steps, and every count is at most , so the program performs additions of -bit integers. Enumeration visits every matching (or path) at least once, and the number of matchings of a subgraph of the lattice containing a perfect matching is at least . Our Eulerian drawings have at most 26 edges, and the independent ground-truth check of Appendix B counts their circuits by direct edge-sequence search.
B. Dataset details
Grid drawings. Per size: number of instances, vertices , mean number of edges , and for each task the median of the ground truth with its range (min–max of ). #PM is defined only when is even.
| Size | # | n | |||||
|---|---|---|---|---|---|---|---|
| 3x3 | 6 | 9 | 10.0 | 1.4 [1.4,1.5] | - | 1.9 [1.9,1.9] | 0.6 [0.5,0.6] |
| 3x4 | 10 | 12 | 14.9 | 2.6 [2.2,2.6] | 0.8 [0.6,1.0] | 2.8 [2.7,2.8] | 1.1 [0.8,1.1] |
| 4x4 | 10 | 16 | 21.1 | 3.9 [2.9,4.3] | 1.2 [0.8,1.4] | 3.8 [3.6,3.8] | 1.6 [1.1,1.8] |
| 4x5 | 10 | 20 | 27.8 | 5.5 [4.2,5.8] | 1.6 [1.2,1.8] | 4.8 [4.7,4.9] | 2.3 [1.6,2.6] |
| 5x5 | 10 | 25 | 36.1 | 7.2 [6.8,7.9] | - | 6.1 [6.0,6.3] | 3.0 [2.6,3.4] |
| 5x6 | 10 | 30 | 44.4 | 9.4 [7.5,10.1] | 2.5 [1.9,2.8] | 7.5 [7.1,7.6] | 3.9 [2.8,4.4] |
| 6x6 | 10 | 36 | 55.2 | 11.7 [10.6,12.8] | 3.3 [2.5,3.5] | 9.1 [8.8,9.3] | 4.9 [4.2,5.6] |
| 7x7 | 6 | 49 | 74.8 | 15.8 [14.8,16.7] | - | 12.3 [12.1,12.5] | - |
| 8x8 | 6 | 64 | 100.2 | 21.4 [20.2,23.7] | 5.3 [4.9,6.2] | 16.2 [16.0,16.7] | - |
| 9x9 | 6 | 81 | 129.3 | 28.0 [27.1,31.1] | - | 20.7 [20.4,21.4] | - |
| 10x10 | 6 | 100 | 158.5 | 34.5 [33.3,37.1] | 8.3 [7.7,9.3] | 25.5 [25.3,26.1] | - |
Binary images. Per size: instances, cells, mean number of black cells, and ranges of (components), (holes) and .
| Size | # | cells | ||||
|---|---|---|---|---|---|---|
| 6x6 | 10 | 36 | 13.6 | 2–3 | 1–1 | 1–2 |
| 8x8 | 10 | 64 | 19.0 | 2–4 | 1–2 | 0–2 |
| 10x10 | 10 | 100 | 20.4 | 2–4 | 1–2 | 1–3 |
| 12x12 | 10 | 144 | 24.0 | 2–5 | 1–3 | 0–3 |
Eulerian drawings. Per size bucket: pairs, vertices, arcs, number of degree-4 vertices, and ranges of the two counts.
| Bucket | # | n | m | deg-4 | #EC→ | #EC |
|---|---|---|---|---|---|---|
| S | 8 | 6–7 | 9–12 | 2–5 | 1–9 | 4–120 |
| M | 8 | 8–10 | 10–15 | 2–5 | 1–3 | 4–64 |
| L | 8 | 11–13 | 15–21 | 4–8 | 1–15 | 16–1472 |
| XL | 8 | 15–17 | 22–25 | 7–10 | 1–48 | 128–11520 |
Magnitude matching. Median answers of #ST and #M on the same grids differ by 0.50 (3x3), 0.18 (3x4), 0.16 (4x4), 0.63 (4x5), 1.07 (5x5), 1.90 (5x6), 2.64 (6x6), 3.52 (7x7), 5.14 (8x8), 7.36 (9x9), 8.97 (10x10) decades.
Batch labels. Tables in this appendix label the core slice v2, and the seed expansion and the re-rendered style variants (Appendix H) v3, after the generation batches that produced them.
Ground truth. All counts use exact arithmetic. The generator checks #M and #PM against an edge-inclusion recursion when , undirected Eulerian circuits against an edge-sequence search when the drawing has at most 18 edges, and from the bit-quad formula against from flood fills. An independent re-implementation that shares no code with the generator computes spanning trees by a Bareiss determinant of the reduced Laplacian, all and perfect matchings by a row-major frontier dynamic program, simple corner-to-corner paths by depth-first search with reachability pruning, , and by flood fills (with also from the bit-quad formula), directed Eulerian circuits by the BEST theorem and by arc-sequence search, and undirected ones by edge-sequence search. It reproduces every answer of the eight tasks on all 344 instances (138 core, 182 seed and 24 extra-large), with 0 mismatches.
C. Prompts
Task statements. Each prompt contains an input description (per family), the task statement below, and condition-specific instructions.
(Euler characteristic). Compute the exact 2D Euler characteristic of the black cells, where is the number of 4-connected black components (black cells that share an edge are connected) and is the number of holes, i.e. 8-connected white regions (white cells that share an edge or a corner are connected) that do not touch the outer boundary of the grid.
#CC (#Connected Components). Count the exact number of 4-connected black components (two black cells belong to the same component if they are connected by a chain of black cells that share edges, not just corners).
#ST (#Spanning Trees). Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
#PM (#Perfect Matchings). Count the exact number of perfect matchings of this graph (sets of edges in which every vertex is covered by exactly one edge).
#EC→ (#Directed Eulerian Circuits). Count the exact number of directed Eulerian circuits of this graph: closed walks that traverse every arc exactly once, in the direction of its arrow. Two circuits that differ only in the starting point (cyclic rotation) count as one.
#M (#All Matchings). Count the exact number of matchings of this graph, i.e., subsets of edges in which no two edges share a vertex, of any size, including the empty set.
#Paths (#Simple s-t Paths). Count the exact number of simple paths (paths that visit no vertex more than once) from vertex 0 to vertex {last}.
#EC (#Undirected Eulerian Circuits). Count the exact number of Eulerian circuits of this graph: closed walks that traverse every edge exactly once. Two circuits that differ only in the starting point or in the direction of traversal (cyclic rotation or reversal) count as one.
Hints (Hint condition).
χ. Hint (Gray's local formula): chi = (number of black cells) - (number of horizontally or vertically adjacent black-black cell pairs) + (number of 2x2 all-black blocks). Transcribe the grid first, then count these three local quantities.
#CC. Hint: transcribe the grid, then label components by flood fill or union-find over horizontally and vertically adjacent black cells.
#ST. Hint (Kirchhoff's matrix-tree theorem): the number of spanning trees equals the determinant of the Laplacian matrix L = D - A (D = diagonal degree matrix, A = adjacency matrix) with any one row and the same column removed. Transcribe the edges first, then compute this (n-1)x(n-1) determinant exactly.
#PM. Hint (Kasteleyn / FKT theorem): because the graph is planar, the number of perfect matchings equals the Pfaffian of a suitably oriented (Kasteleyn-oriented) signed adjacency matrix, i.e. the square root of its determinant; for a bipartite planar graph this is the absolute value of the determinant of a Kasteleyn-signed biadjacency matrix. Transcribe the edges first.
#EC→. Hint (BEST theorem): the number of Eulerian circuits of a connected balanced digraph equals t_w * prod_v (outdeg(v) - 1)!, where t_w is the number of spanning arborescences rooted at any fixed vertex w, which equals the determinant of the out-degree Laplacian (L_ii = outdeg(i), L_ij = -1 if i -> j is an arc, 0 otherwise) with row and column w removed. Every vertex here has out-degree 1 or 2, so the factorial product is 1. Transcribe the arcs first.
#M. Hint: use an exact dynamic program that processes the vertices in row-major order and whose state is the set of already-matched vertices in the current frontier (the next {C} vertices), or the recurrence M(G) = M(G - e) + M(G - u - v) for an edge e = (u, v). Transcribe the edges first.
#Paths. Hint: enumerate simple paths from 0 to {last} by depth-first search, extending the current path only to unvisited vertices, and count each completed path once. Transcribe the edges first.
#EC. Hint: at each degree-4 vertex choose one of the 3 ways to pair up its four incident edges (degree-2 vertices have a unique pairing); Eulerian circuits correspond exactly to the pairing systems whose induced closed trails form a single trail. Transcribe the edges first, then count such systems.
Listing 1. grid family
Input descriptions.
The image shows an undirected graph with 12 vertices drawn as blue-outlined circles labeled 0 to 11, placed on a 3 x 4 lattice and labeled in row-major order (vertex r*4+c is in row r, column c). An edge exists exactly where a straight black segment joins two circles; some lattice positions have no segment.
Listing 2. bin family
The image shows a 6 x 6 grid of square cells; row indices 0..5 are printed on the left and column indices 0..5 on top. Dark cells are black (foreground, value 1) and light cells are white (background, value 0).
Listing 3. euler family
The image shows a directed graph with 7 vertices drawn as blue-outlined circles labeled 0 to 6. Each arc is a straight black segment with a red arrowhead at its head, pointing into the target vertex.
Listing 4. Condition: Visual CoT
Full prompts for one instance (grid_3x4_0, #ST).
The image shows an undirected graph with 12 vertices drawn as blue-outlined circles labeled 0 to 11, placed on a 3 x 4 lattice and labeled in row-major order (vertex r*4+c is in row r, column c). An edge exists exactly where a straight black segment joins two circles; some lattice positions have no segment.
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
First transcribe exactly what you see, then solve. End your response with exactly one line containing a JSON object of the form {"edges": [[u, v], ...], "answer": <integer>}. The answer must be an exact integer.
Listing 5. Condition: Text CoT
Vertices 0..11. Undirected edges as [u, v] pairs: [[0, 1], [0, 4], [1, 5], [2, 3], [2, 6], [3, 7], [4, 5], [4, 8], [5, 6], [5, 9], [6, 7], [7, 11], [8, 9], [9, 10], [10, 11]]
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
End your response with exactly one line containing a JSON object of the form {"answer": "<integer>}. The answer must be an exact integer.
Listing 6. Condition: Visual+Hint
The image shows an undirected graph with 12 vertices drawn as blue-outlined circles labeled 0 to 11, placed on a 3 x 4 lattice and labeled in row-major order (vertex r*4+c is in row r, column c). An edge exists exactly where a straight black segment joins two circles; some lattice positions have no segment.
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
Hint (Kirchhoff's matrix-tree theorem): the number of spanning trees equals the determinant of the Laplacian matrix L = D - A (D = diagonal degree matrix, A = adjacency matrix) with any one row and the same column removed. Transcribe the edges first, then compute this (n-1)x(n-1) determinant exactly.
First transcribe exactly what you see, then solve. End your response with exactly one line containing a JSON object of the form {"edges": [[u, v], ...], "answer": <integer>}. The answer must be an exact integer.
Listing 7. Condition: Visual→Code
The image shows an undirected graph with 12 vertices drawn as blue-outlined circles labeled 0 to 11, placed on a 3 x 4 lattice and labeled in row-major order (vertex r*4+c is in row r, column c). An edge exists exactly where a straight black segment joins two circles; some lattice positions have no segment.
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
Write one complete, self-contained Python 3 program (standard library only, no external packages) that hard-codes the structure you see in the image and prints exactly one integer: the answer. Reply with only the program in a single ``python code block.
Listing 8. Condition: Text→Code
Vertices 0..11. Undirected edges as [u, v] pairs: [[0, 1], [0, 4], [1, 5], [2, 3], [2, 6], [3, 7], [4, 5], [4, 8], [5, 6], [5, 9], [6, 7], [7, 11], [8, 9], [9, 10], [10, 11]]
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
Write one complete, self-contained Python 3 program (standard library only, no external packages) that hard-codes this structure and prints exactly one integer: the answer. Reply with only the program in a single ``python code block.
Listing 9. Condition: CAR
The image shows an undirected graph with 12 vertices drawn as blue-outlined circles labeled 0 to 11, placed on a 3 x 4 lattice and labeled in row-major order (vertex r*4+c is in row r, column c). An edge exists exactly where a straight black segment joins two circles; some lattice positions have no segment.
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
Solve the following visual counting problem in three explicit steps.
Step 1 (Perceive): transcribe the structure shown in the image exactly (the full edge list with the vertex labels shown, or the full 0/1 cell matrix).
Step 2 (Classify): identify the counting problem and its computational complexity. Decide whether it admits a known polynomial-time EXACT algorithm (for example via a determinant or Pfaffian identity, a matrix-tree-type theorem, a local counting formula, or a linear-time graph traversal), or whether it is #P-complete in general so that only exponential-time exact methods (search or dynamic programming over subsets/frontiers) are available. Name the theorem or algorithm you will use.
Step 3 (Solve by code): write one complete, self-contained Python 3 program (standard library only) that hard-codes the transcribed structure and prints exactly one integer, the answer. If a polynomial-time algebraic algorithm exists, implement it with exact integer arithmetic (fractions.Fraction or Bareiss elimination), never floating-point determinants. If the problem is #P-complete in general, implement an exact dynamic program that exploits the grid-like structure (row-by-row frontier/profile DP with memoization) instead of naive enumeration. The program must start with two comment lines: '# CLASS: <poly-algebraic | poly-other | sharpP-general>' and '# METHOD: <short name of the theorem or algorithm>'.
Reply with the program in a single ``python code block (you may put Steps 1 and 2 as comments inside the program).
Listing 10. Condition: Perceive+Code
The image shows an undirected graph with 12 vertices drawn as blue-outlined circles labeled 0 to 11, placed on a 3 x 4 lattice and labeled in row-major order (vertex r*4+c is in row r, column c). An edge exists exactly where a straight black segment joins two circles; some lattice positions have no segment.
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
Solve the following visual counting problem in two explicit steps.
Step 1 (Perceive): transcribe the structure shown in the image exactly (the full edge list with the vertex labels shown, or the full 0/1 cell matrix).
Step 2 (Solve by code): write one complete, self-contained Python 3 program (standard library only) that hard-codes the transcribed structure and prints exactly one integer, the answer.
Reply with the program in a single ``python code block (you may put Step 1 as comments inside the program).
Listing 11. Condition: Text CAR
Vertices 0..11. Undirected edges as [u, v] pairs: [[0, 1], [0, 4], [1, 5], [2, 3], [2, 6], [3, 7], [4, 5], [4, 8], [5, 6], [5, 9], [6, 7], [7, 11], [8, 9], [9, 10], [10, 11]]
Task: Count the exact number of spanning trees of this graph (a spanning tree is a set of n-1 edges that connects all n vertices without forming a cycle).
Solve the following visual counting problem in three explicit steps.
Step 1 (Perceive): restate the structure given above exactly (the full edge list with the vertex labels shown, or the full 0/1 cell matrix).
Step 2 (Classify): identify the counting problem and its computational complexity. Decide whether it admits a known polynomial-time EXACT algorithm (for example via a determinant or Pfaffian identity, a matrix-tree-type theorem, a local counting formula, or a linear-time graph traversal), or whether it is #P-complete in general so that only exponential-time exact methods (search or dynamic programming over subsets/frontiers) are available. Name the theorem or algorithm you will use.
Step 3 (Solve by code): write one complete, self-contained Python 3 program (standard library only) that hard-codes the transcribed structure and prints exactly one integer, the answer. If a polynomial-time algebraic algorithm exists, implement it with exact integer arithmetic (fractions.Fraction or Bareiss elimination), never floating-point determinants. If the problem is #P-complete in general, implement an exact dynamic program that exploits the grid-like structure (row-by-row frontier/profile DP with memoization) instead of naive enumeration. The program must start with two comment lines: '# CLASS: <poly-algebraic | poly-other | sharpP-general>' and '# METHOD: <short name of the theorem or algorithm>'.
Reply with the program in a single ``python code block (you may put Steps 1 and 2 as comments inside the program).
Zoomed transcription (Zoom-k). The prompt sent with every crop (here for a 10×10 grid; Zoom-1 omits the crop sentences):
Listing 12. Zoom-k: per-crop transcription prompt
This image is a rectangular crop of a larger drawing. The full drawing shows an undirected graph with 100 vertices drawn as blue-outlined circles labeled 0 to 99, placed on a 10 x 10 lattice and labeled in row-major order (vertex r*10+c is in row r, column c). An edge exists exactly where a straight black segment joins two horizontally or vertically neighbouring circles; some lattice positions have no segment. The crop shows only part of the lattice; circles near the crop boundary may be cut off. List ONLY edges for which BOTH endpoint circles, including their printed labels, are fully visible inside this crop. Do not guess edges whose endpoints are cut off or whose labels you cannot read.
Transcribe the edges exactly. Go row by row: for each visible vertex, state whether it is joined to its right neighbour and to its lower neighbour. End your response with exactly one line containing a JSON object of the form {"edges": [[u, v], ...]} listing every edge once.
Listing 13. binary image as text
Text input for the other families. Grid rows from top to bottom ('1' = black, '0' = white): row 0: 000001 row 1: 000001 row 2: 111101 row 3: 110101 row 4: 011100 row 5: 001000
Listing 14. directed Eulerian drawing as text
Vertices 0..6. Arcs as [u, v] meaning u -> v: [[0, 3], [3, 2], [2, 0], [1, 4], [4, 3], [3, 1], [5, 6], [6, 2], [2, 5]]
D. Full result tables
D.1. Visual condition, per task
Over the 3,600 Visual calls with a scorable transcription, the mean edge or cell F1 is 0.994 and the transcription is exact in 85% of calls. For gemini-3.8-flash (low) it is exact in 88% of grid drawings, 100% of binary images and 100% of Eulerian drawings, and the weakest configuration, gemini-3.1-flash-lite (low), is still exact in 42%. For gemini-3.8-flash (low), 115 of its 144 Visual errors (80%) occur with an exactly transcribed input and are therefore computational by our definition. Of the remaining 29, 29 are also wrong in the Text control on the same instance, which leaves at most 0 errors (0% of all Visual calls) that could be attributed to perception. Pooled over all configurations, 68% of Visual errors come with an exact transcription.
| Model (thinking) | #CC L | #ST GapL | #PM GapL | #EC→ GapL | #M #P | #Paths #P | #EC #P | TC^0 | L class average | GapL | #P | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | 95 | 100 | 17 | 8 | 38 | 9 | 31 | 56 | 95 | 100 | 18 | 27 |
| Gemini 3.1 Flash-Lite (low) | 80 | 90 | 0 | 0 | 50 | 0 | 14 | 6 | 80 | 90 | 11 | 7 |
| Gemini 3.5 Flash (low) | 100 | 100 | 26 | 60 | 100 | 34 | 40 | 62 | 100 | 100 | 53 | 42 |
| Gemini 3.7 Flash (low) | 100 | 100 | 41 | 57 | 100 | 46 | 47 | 67 | 100 | 100 | 59 | 49 |
| Gemini 3.6 Flash (minimal) | 100 | 98 | 9 | 28 | 62 | 6 | 27 | 28 | 100 | 98 | 27 | 19 |
| Gemini 3.6 Flash (low) | 100 | 100 | 26 | 40 | 94 | 25 | 36 | 56 | 100 | 100 | 45 | 36 |
| Gemini 3.6 Flash (high) | 100 | 100 | 51 | 72 | 100 | 51 | 49 | 88 | 100 | 100 | 68 | 57 |
| Gemini 3.8 Flash (low) | 100 | 100 | 38 | 70 | 97 | 42 | 39 | 72 | 100 | 100 | 61 | 47 |
| Gemini 3.8 Flash (medium) | 100 | 100 | 59 | 81 | 100 | 51 | 53 | 83 | 100 | 100 | 76 | 58 |
| Gemini 3.8 Flash (high) | 100 | 100 | 85 | 89 | 100 | 83 | 77 | 91 | 100 | 100 | 90 | 82 |
| Gemma 4 26B-A4B (no thinking) | 85 | 95 | 11 | 12 | 56 | 9 | 20 | 44 | 85 | 95 | 21 | 20 |
| Gemma 4 31B (no thinking) | 90 | 95 | 8 | 20 | 34 | 3 | 21 | 41 | 90 | 95 | 18 | 18 |
| Gemma 4 31B (thinking) | - | - | 40 | 67 | 75 | 50 | 67 | 25 | - | - | 58 | 45 |
| Gemini 3.1 Pro (low) | 100 | 100 | 31 | 56 | 88 | 37 | 43 | 69 | 100 | 100 | 51 | 45 |
| Gemini 3.1 Pro (high) | 100 | 100 | 50 | 80 | 100 | 57 | 55 | 100 | 100 | 100 | 69 | 63 |
Table S1. Exact match (%) on the Visual condition for every model/thinking configuration, by task (columns ordered by complexity class) and averaged by class. per cell is 56–66 (full) or 23–30 (subset) instances; the per-size tables (§D.5) give the counts.
| Model | Class | n | P✓C✓ | P✓C× | P×C✓ | P×C× |
|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | TC0 | 20 | 95 | 5 | 0 | 0 |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 76 | 18 | 51 | 0 | 30 | |
| #P | 86 | 27 | 55 | 0 | 19 | |
| Gemini 3.1 Flash-Lite (low) | TC0 | 20 | 50 | 5 | 30 | 15 |
| L | 20 | 65 | 0 | 25 | 10 | |
| GapL | 76 | 11 | 24 | 0 | 66 | |
| #P | 86 | 7 | 34 | 0 | 59 | |
| Gemini 3.5 Flash (low) | TC0 | 20 | 100 | 0 | 0 | 0 |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 76 | 53 | 39 | 0 | 8 | |
| #P | 86 | 42 | 48 | 0 | 10 | |
| Gemini 3.7 Flash (low) | TC0 | 20 | 100 | 0 | 0 | 0 |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 73 | 59 | 37 | 0 | 4 | |
| #P | 81 | 49 | 44 | 0 | 6 | |
| Gemini 3.6 Flash (minimal) | TC0 | 40 | 95 | 0 | 5 | 0 |
| L | 40 | 90 | 2 | 8 | 0 | |
| GapL | 148 | 27 | 64 | 0 | 9 | |
| #P | 164 | 19 | 73 | 0 | 8 | |
| Gemini 3.6 Flash (low) | TC0 | 40 | 98 | 0 | 2 | 0 |
| L | 40 | 98 | 0 | 2 | 0 | |
| GapL | 148 | 45 | 53 | 0 | 2 | |
| #P | 163 | 36 | 61 | 0 | 3 | |
| Gemini 3.6 Flash (high) | TC0 | 20 | 100 | 0 | 0 | 0 |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 76 | 68 | 26 | 0 | 5 | |
| #P | 86 | 57 | 38 | 0 | 5 | |
| Gemini 3.8 Flash (low) | TC0 | 40 | 100 | 0 | 0 | 0 |
| L | 40 | 100 | 0 | 0 | 0 | |
| GapL | 148 | 61 | 30 | 0 | 9 | |
| #P | 164 | 47 | 43 | 0 | 10 | |
| Gemini 3.8 Flash (medium) | TC0 | 40 | 100 | 0 | 0 | 0 |
| L | 40 | 100 | 0 | 0 | 0 | |
| GapL | 142 | 76 | 15 | 0 | 8 | |
| #P | 147 | 60 | 31 | 1 | 9 | |
| Gemini 3.8 Flash (high) | TC0 | 19 | 100 | 0 | 0 | 0 |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 61 | 90 | 5 | 0 | 5 | |
| #P | 56 | 82 | 11 | 0 | 7 | |
| Gemma 4 26B-A4B (no thinking) | TC0 | 20 | 85 | 15 | 0 | 0 |
| L | 20 | 95 | 5 | 0 | 0 | |
| GapL | 58 | 24 | 5 | 2 | 69 | |
| #P | 71 | 24 | 4 | 0 | 72 | |
| Gemma 4 31B (no thinking) | TC0 | 40 | 88 | 8 | 2 | 2 |
| L | 40 | 92 | 2 | 2 | 2 | |
| GapL | 147 | 18 | 40 | 0 | 42 | |
| #P | 162 | 17 | 39 | 1 | 43 | |
| Gemma 4 31B (thinking) | GapL | 12 | 58 | 42 | 0 | 0 |
| #P | 11 | 45 | 45 | 0 | 9 | |
| Gemini 3.1 Pro (low) | TC0 | 20 | 100 | 0 | 0 | 0 |
| L | 20 | 100 | 0 | 0 | 0 | |
| GapL | 76 | 50 | 37 | 1 | 12 | |
| #P | 86 | 45 | 43 | 0 | 12 | |
| Gemini 3.1 Pro (high) | TC0 | 12 | 100 | 0 | 0 | 0 |
| L | 12 | 100 | 0 | 0 | 0 | |
| GapL | 42 | 69 | 17 | 0 | 14 | |
| #P | 49 | 63 | 24 | 0 | 12 |
Table S2. Error attribution on the Visual condition for every configuration (Table 2 shows five of them). P: transcription exact; C: answer exact. Columns are percentages of instances in each class.
D.2. Class averages and thinking budget
Class averages (TC⁰/L/GapL/#P, exact match %) on the instances shared by all levels of a family: gemini-3.8-flash low/medium/high gives 100/100/69/67 → 100/100/86/78 → 100/100/92/83 (152 common instances); gemini-3.6-flash minimal/low/high gives 100/95/29/26 → 100/100/47/41 → 100/100/68/57 (202 common instances); Gemma 4 31B thinking off/on gives -/-/50/27 → -/-/58/45 (23 common instances); gemini-3.1-pro-preview low/high gives 100/100/43/45 → 100/100/69/63 (115 common instances). For gemini-3.8-flash the gap between the bottom two rungs and the #P rung is 33 points at low and 17 points at high thinking, so the ordering is sharpest when the budget is smallest. Within a family the crossing magnitude moves with the budget: gemini-3.6-flash (minimal) at 1.8k tokens, gemini-3.6-flash (low) at 7.0k tokens, gemini-3.6-flash (high) at 25.4k tokens; gemini-3.8-flash (low) at 5.7k tokens, gemini-3.8-flash (medium) at 13.2k tokens, gemini-3.8-flash (high) at 27.4k tokens. Across the 14 configurations, grows by 3.54 decades per tenfold increase in tokens.
| Model (thinking) | TC0 | L | GapL | #P | ||||
|---|---|---|---|---|---|---|---|---|
| acc | tok | acc | tok | acc | tok | acc | tok | |
| Gemini 3 Flash (low) | 95 | 2.8k | 100 | 2.6k | 18 | 2.3k | 27 | 3.0k |
| Gemini 3.1 Flash-Lite (low) | 80 | 1.1k | 90 | 1.0k | 11 | 1.4k | 7 | 1.3k |
| Gemini 3.5 Flash (low) | 100 | 2.5k | 100 | 1.8k | 53 | 8.0k | 42 | 7.8k |
| Gemini 3.7 Flash (low) | 100 | 1.4k | 100 | 0.9k | 59 | 4.2k | 49 | 4.2k |
| Gemini 3.6 Flash (minimal) | 100 | 1.0k | 98 | 0.7k | 27 | 1.6k | 19 | 2.0k |
| Gemini 3.6 Flash (low) | 100 | 1.9k | 100 | 1.5k | 45 | 6.6k | 36 | 7.4k |
| Gemini 3.6 Flash (high) | 100 | 8.0k | 100 | 4.3k | 68 | 23.9k | 57 | 26.8k |
| Gemini 3.8 Flash (low) | 100 | 1.4k | 100 | 1.1k | 61 | 5.2k | 47 | 6.1k |
| Gemini 3.8 Flash (medium) | 100 | 2.2k | 100 | 1.6k | 76 | 11.9k | 58 | 14.4k |
| Gemini 3.8 Flash (high) | 100 | 8.8k | 100 | 3.4k | 90 | 25.2k | 82 | 29.8k |
| Gemma 4 26B-A4B (no thinking) | 85 | 1.4k | 95 | 1.0k | 21 | 7.5k | 20 | 5.9k |
| Gemma 4 31B (no thinking) | 90 | 0.9k | 95 | 0.8k | 18 | 2.1k | 18 | 2.0k |
| Gemma 4 31B (thinking) | - | - | - | - | 58 | 13.7k | 45 | 13.3k |
| Gemini 3.1 Pro (low) | 100 | 2.0k | 100 | 1.6k | 51 | 4.3k | 45 | 4.6k |
| Gemini 3.1 Pro (high) | 100 | 8.5k | 100 | 4.0k | 69 | 28.1k | 63 | 30.8k |
Table S3. Class-average exact match (%) and mean thinking + output tokens (thousands) on the Visual condition, for every model/thinking configuration (core benchmark).
| Configuration | n | acc. (%) | tokens | all | GapL / #P |
|---|---|---|---|---|---|
| Gemini 3 Flash (low) | 162 | 23 | 2.6k | ||
| Gemini 3.1 Flash-Lite (low) | 162 | 9 | 1.3k | ||
| Gemini 3.5 Flash (low) | 162 | 47 | 7.9k | ||
| Gemini 3.7 Flash (low) | 154 | 54 | 4.2k | ||
| Gemini 3.6 Flash (minimal) | 312 | 23 | 1.8k | ||
| Gemini 3.6 Flash (low) | 311 | 40 | 7.0k | ||
| Gemini 3.6 Flash (high) | 162 | 62 | 25.4k | ||
| Gemini 3.8 Flash (low) | 312 | 54 | 5.7k | ||
| Gemini 3.8 Flash (medium) | 297 | 66 | 13.2k | ||
| Gemini 3.8 Flash (high) | 117 | 86 | 27.4k | ||
| Gemma 4 26B-A4B (no thinking) | 162 | 20 | 6.6k | ||
| Gemma 4 31B (no thinking) | 312 | 18 | 2.1k | ||
| Gemini 3.1 Pro (low) | 162 | 48 | 4.4k | ||
| Gemini 3.1 Pro (high) | 91 | 66 | 29.5k |
Table S4. The magnitude at which exact match crosses 50%, , from a logistic fit of the Visual outcome on per configuration (grid and Eulerian families). “tokens”: mean thinking + output tokens per call. The last column splits the fit by class.
Calls that never returned. Our loader keeps the last successful record of each call, and 189 of the 12,874 core calls never succeeded. Most belong to gemini-3.8-flash at high thinking, where the API answered HTTP 503 (“high demand”) to every retry for 46/202 Visual, 44/202 Text and 38/202 Hint calls; medium thinking lost 15/392 Visual calls, and the 3.6-flash ladder lost 1 Visual call. The losses are not spread evenly: among the 162 instances of the high-thinking fit, the 45 lost Visual calls have median answer against for the 117 returned ones. Table S4 fits the 117 returned calls (; GapL , #P ); scoring the lost calls as wrong gives ( and ), and for Text against . Across the 14 configurations of Table S4 the budget slope falls from 3.54 to 2.8 decades per tenfold tokens (95% CI [1.8, 3.8]) and within the 3.8-flash ladder from 5.6 to 1.7, while the 3.6-flash ladder stays at 2.4. A 503 carries no answer, so the two fits above only bracket the effect of the losses. We reran these calls several days later, together with the other calls of the paper's configurations that never returned (m_{50}10^{6.1}$ and the budget slope 3.27 (95% CI [2.1, 4.4]; 3.9 within the 3.8-flash ladder), inside the range above, and a drift control on 36 re-issued calls finds no detectable change.
D.3. Text condition
| Model (thinking) | #CC L | #ST GapL | #PM GapL | #EC→ GapL | #M #P | #Paths #P | #EC #P | L class average | GapL | #P | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | 95 | 100 | 20 | 16 | 31 | 9 | 31 | 50 | 95 | 100 | 21 | 26 |
| Gemini 3.1 Flash-Lite (low) | 75 | 85 | 3 | 12 | 38 | 0 | 20 | 0 | 75 | 85 | 13 | 8 |
| Gemini 3.5 Flash (low) | 95 | 100 | 26 | 60 | 100 | 29 | 43 | 69 | 95 | 100 | 53 | 42 |
| Gemini 3.7 Flash (low) | 100 | 100 | 38 | 62 | 94 | 40 | 38 | 56 | 100 | 100 | 58 | 42 |
| Gemini 3.6 Flash (minimal) | 88 | 100 | 21 | 36 | 66 | 17 | 27 | 31 | 88 | 100 | 36 | 24 |
| Gemini 3.6 Flash (low) | 98 | 100 | 29 | 60 | 91 | 38 | 29 | 62 | 98 | 100 | 53 | 39 |
| Gemini 3.6 Flash (high) | 100 | 100 | 43 | 80 | 100 | 54 | 49 | 69 | 100 | 100 | 67 | 55 |
| Gemini 3.8 Flash (low) | 100 | 100 | 42 | 60 | 94 | 35 | 38 | 71 | 100 | 100 | 59 | 43 |
| Gemini 3.8 Flash (medium) | 100 | 100 | 58 | 84 | 97 | 56 | 47 | 88 | 100 | 100 | 75 | 59 |
| Gemini 3.8 Flash (high) | 100 | 100 | 77 | 91 | 100 | 80 | 70 | 100 | 100 | 100 | 88 | 80 |
| Gemma 4 26B-A4B (no thinking) | 100 | 100 | 17 | 28 | 56 | 11 | 31 | 19 | 100 | 100 | 29 | 21 |
| Gemma 4 31B (no thinking) | 90 | 100 | 11 | 28 | 19 | 5 | 20 | 38 | 90 | 100 | 18 | 17 |
| Gemma 4 31B (thinking) | – | – | 75 | 100 | 67 | 50 | 60 | 50 | – | – | 80 | 54 |
| Gemini 3.1 Pro (low) | 100 | 100 | 26 | 60 | 100 | 31 | 40 | 75 | 100 | 100 | 53 | 43 |
| Gemini 3.1 Pro (high) | 100 | 100 | 63 | 86 | 100 | 70 | 53 | 88 | 100 | 100 | 78 | 66 |
Table S5. Exact match (%) on the Text condition (ground-truth structure given as text, no image).
D.4. Hint condition
For gemini-3.6-flash (high) (202 instances) the hint moves exact match by -6 points on #ST (51→46), +0 points on #PM (72→72), +0 points on #EC→ (100→100), and by -14 on #M, -3 on #Paths, +6 on #EC (+0 on , +0 on #CC). For gemini-3.8-flash (low) (391 instances) the hint moves exact match by +8 points on #ST (37→45), -6 points on #PM (70→64), +3 points on #EC→ (97→100), and by -2 on #M, +2 on #Paths, +22 on #EC (+0 on , +0 on #CC). Averaged over the 4 hinted configurations and their tasks, the hint adds -3 points on the GapL tasks and +0 points on the #P tasks.
| Model (thinking) | #CC L | #ST GapL | #PM GapL | #EC→ GapL | #M #P | #Paths #P | #EC #P | L class average | GapL | #P | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (high) | 100 | 100 | 46 | 72 | 100 | 37 | 46 | 94 | 100 | 100 | 66 | 51 |
| Gemini 3.8 Flash (low) | 100 | 100 | 45 | 64 | 100 | 41 | 41 | 94 | 100 | 100 | 63 | 51 |
| Gemini 3.8 Flash (high) | 100 | 100 | 75 | 94 | 100 | 77 | 73 | 93 | 100 | 100 | 87 | 79 |
| Gemma 4 31B (thinking) | – | – | 40 | 67 | 50 | 0 | 100 | 75 | – | – | 50 | 50 |
Table S6. Exact match (%) on the Hint condition.
D.5. Per-size tables
For gemini-3.8-flash (low), on grid drawings, exact match falls between 3×3 and 6×6 from 100% to 0% for #ST, from 100% (3×4) to 10% for #PM, from 100% to 0% for #M and from 100% to 0% for #Paths; on binary images goes from 100% to 100% and #CC from 100% to 100%; on Eulerian drawings #EC→ goes from 100% (S) to 88% (XL) and #EC from 88% to 50%.
gemini-3-flash-preview (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 80 (5) | ~ (0) | 60 (5) | 100 (5) |
| 3x4 | 20 (5) | 40 (5) | 0 (5) | 100 (5) |
| 4x4 | 20 (5) | 0 (5) | 0 (5) | 20 (5) |
| 4x5 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| 5x5 | 0 (5) | ~ (0) | 0 (5) | 0 (5) |
| 5x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| 6x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| Size | () | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (5) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 80 (5) | 100 (5) |

Figure S1. Exact match against instance size for gemini-3.8-flash (low) on grid drawings (left) and binary images (right), Visual condition. Shaded bands are Wilson 95% intervals; colours encode the class.
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 50(4) | 100(4) |
| M | 50(4) | 75(4) |
| L | 50(4) | 50(4) |
| XL | 0(4) | 0(4) |
gemini-3-flash-preview (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 80(5) | ~0 | 60(5) | 100(5) |
| 3x4 | 40(5) | 40(5) | 0(5) | 100(5) |
| 4x4 | 20(5) | 40(5) | 0(5) | 20(5) |
| 4x5 | 0(5) | 0(5) | 0(5) | 0(5) |
| 5x5 | 0(5) | ~0 | 0(5) | 0(5) |
| 5x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| Size | χ (TC0) | #CC (L) |
|---|---|---|
| 6x6 | 80(5) | 100(5) |
| 8x8 | 100(5) | 100(5) |
| 10x10 | 100(5) | 100(5) |
| 12x12 | 100(5) | 100(5) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 50(4) | 100(4) |
| M | 25(4) | 50(4) |
| L | 25(4) | 50(4) |
| XL | 25(4) | 0(4) |
gemini-3.1-flash-lite (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 0(5) | ~0 | 0(5) | 60(5) |
| 3x4 | 0(5) | 0(5) | 0(5) | 40(5) |
| 4x4 | 0(5) | 0(5) | 0(5) | 0(5) |
| 4x5 | 0(5) | 0(5) | 0(5) | 0(5) |
| 5x5 | 0(5) | ~0 | 0(5) | 0(5) |
| 5x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| Size | χ (TC0) | #CC (L) |
|---|---|---|
| 6x6 | 100(5) | 100(5) |
| 8x8 | 80(5) | 100(5) |
| 10x10 | 80(5) | 100(5) |
| 12x12 | 60(5) | 60(5) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 75(4) | 0(4) |
| M | 75(4) | 25(4) |
| L | 50(4) | 0(4) |
| XL | 0(4) | 0(4) |
gemini-3.1-flash-lite (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 0(5) | - (0) | 0(5) | 100(5) |
| 3x4 | 20(5) | 40(5) | 0(5) | 20(5) |
| 4x4 | 0(5) | 0(5) | 0(5) | 20(5) |
| 4x5 | 0(5) | 20(5) | 0(5) | 0(5) |
| 5x5 | 0(5) | - (0) | 0(5) | 0(5) |
| 5x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 80(5) | 100(5) | ||
| 8x8 | 80(5) | 80(5) | ||
| 10x10 | 60(5) | 80(5) | ||
| 12x12 | 80(5) | 80(5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100(4) | 0(4) | ||
| M | 25(4) | 0(4) | ||
| L | 25(4) | 0(4) | ||
| XL | 0(4) | 0(4) |
gemini-3.5-flash (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100(5) | - (0) | 80(5) | 100(5) |
| 3x4 | 60(5) | 100(5) | 80(5) | 100(5) |
| 4x4 | 20(5) | 100(5) | 40(5) | 40(5) |
| 4x5 | 0(5) | 100(5) | 40(5) | 40(5) |
| 5x5 | 0(5) | - (0) | 0(5) | 0(5) |
| 5x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100(5) | 100(5) | ||
| 8x8 | 100(5) | 100(5) | ||
| 10x10 | 100(5) | 100(5) | ||
| 12x12 | 100(5) | 100(5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100(4) | 100(4) | ||
| M | 100(4) | 50(4) | ||
| L | 100(4) | 75(4) | ||
| XL | 100(4) | 25(4) |
gemini-3.5-flash (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100(5) | - (0) | 100(5) | 100(5) |
| 3x4 | 40(5) | 100(5) | 20(5) | 100(5) |
| 4x4 | 20(5) | 100(5) | 40(5) | 80(5) |
| 4x5 | 20(5) | 60(5) | 40(5) | 20(5) |
| 5x5 | 0(5) | - (0) | 0(5) | 0(5) |
| 5x6 | 0(5) | 40(5) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100(5) | 100(5) | ||
| 8x8 | 80(5) | 100(5) | ||
| 10x10 | 100(5) | 100(5) | ||
| 12x12 | 100(5) | 100(5) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 100(4) | 100(4) |
| M | 100(4) | 100(4) |
| L | 100(4) | 50(4) |
| XL | 100(4) | 25(4) |
gemini-3.7-flash (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100(5) | - (0) | 100(5) | 100(5) |
| 3x4 | 80(5) | 100(5) | 100(5) | 100(4) |
| 4x4 | 25(4) | 100(5) | 80(5) | 100(5) |
| 4x5 | 60(5) | 60(5) | 40(5) | 40(5) |
| 5x5 | 20(5) | - (0) | 0(5) | 0(5) |
| 5x6 | 0(5) | 0(3) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(5) | 0(5) | 0(5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100(5) | 100(5) | ||
| 8x8 | 100(5) | 100(5) | ||
| 10x10 | 100(5) | 100(5) | ||
| 12x12 | 100(5) | 100(5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100(4) | 100(4) | ||
| M | 100(4) | 100(3) | ||
| L | 100(4) | 33(3) | ||
| XL | 100(4) | 0(2) |
gemini-3.7-flash (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100(5) | - (0) | 80(5) | 100(5) |
| 3x4 | 40(5) | 100(5) | 60(5) | 100(5) |
| 4x4 | 100(4) | 100(5) | 80(5) | 40(5) |
| 4x5 | 40(5) | 60(5) | 60(5) | 25(4) |
| 5x5 | 0(5) | - (0) | 0(5) | 0(5) |
| 5x6 | 0(5) | 40(5) | 0(5) | 0(5) |
| 6x6 | 0(5) | 0(4) | 0(5) | 0(5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100(5) | 100(5) | ||
| 8x8 | 100(5) | 100(5) | ||
| 10x10 | 100(5) | 100(5) | ||
| 12x12 | 100(5) | 100(5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100(4) | 75(4) | ||
| M | 100(4) | 50(4) | ||
| L | 100(4) | 75(4) | ||
| XL | 75(4) | 25(4) |
gemini-3.6-flash (minimal), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 67(6) | - (0) | 50(6) | 100(6) |
| 3x4 | 10(10) | 90(10) | 10(10) | 90(10) |
| 4x4 | 10(10) | 30(10) | 0(10) | 30(10) |
| 4x5 | 0(10) | 20(10) | 0(10) | 0(10) |
| 5x5 | 0(10) | - (0) | 0(10) | 0(10) |
| 5x6 | 0(10) | 0(10) | 0(10) | 0(10) |
| 6x6 | 0(10) | 0(10) | 0(10) | 0(10) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100(10) | 100(10) | ||
| 8x8 | 100(10) | 100(10) | ||
| 10x10 | 100(10) | 100(10) | ||
| 12x12 | 100(10) | 90(10) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 62 (8) | 50 (8) |
| M | 88 (8) | 38 (8) |
| L | 50 (8) | 12 (8) |
| XL | 50 (8) | 12 (8) |
gemini-3. 6-flash (minimal), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 67 (6) | - (0) | 67 (6) | 100 (6) |
| 3x4 | 80 (10) | 100 (10) | 70 (10) | 100 (10) |
| 4x4 | 20 (10) | 60 (10) | 0 (10) | 20 (10) |
| 4x5 | 0 (10) | 20 (10) | 0 (10) | 0 (10) |
| 5x5 | 0 (10) | - (0) | 0 (10) | 0 (10) |
| 5x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100 (10) | 100 (10) | ||
| 8x8 | 90 (10) | 100 (10) | ||
| 10x10 | 80 (10) | 100 (10) | ||
| 12x12 | 80 (10) | 100 (10) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 88 (8) | 38 (8) | ||
| M | 88 (8) | 50 (8) | ||
| L | 62 (8) | 25 (8) | ||
| XL | 25 (8) | 12 (8) |
gemini-3. 6-flash (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 83 (6) | - (0) | 83 (6) | 100 (6) |
| 3x4 | 80 (10) | 90 (10) | 30 (10) | 90 (10) |
| 4x4 | 20 (10) | 100 (10) | 50 (10) | 60 (10) |
| 4x5 | 20 (10) | 10 (10) | 22 (9) | 30 (10) |
| 5x5 | 0 (10) | - (0) | 10 (10) | 0 (10) |
| 5x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100 (10) | 100 (10) | ||
| 8x8 | 100 (10) | 100 (10) | ||
| 10x10 | 100 (10) | 100 (10) | ||
| 12x12 | 100 (10) | 100 (10) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100 (8) | 75 (8) | ||
| M | 100 (8) | 100 (8) | ||
| L | 100 (8) | 38 (8) | ||
| XL | 75 (8) | 12 (8) |
gemini-3. 6-flash (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (6) | - (0) | 83 (6) | 100 (6) |
| 3x4 | 70 (10) | 90 (10) | 90 (10) | 80 (10) |
| 4x4 | 40 (10) | 100 (10) | 60 (10) | 30 (10) |
| 4x5 | 10 (10) | 60 (10) | 40 (10) | 20 (10) |
| 5x5 | 10 (10) | - (0) | 10 (10) | 0 (10) |
| 5x6 | 0 (10) | 20 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 30 (10) | 0 (10) | 0 (10) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100 (10) | 100 (10) | ||
| 8x8 | 100 (10) | 100 (10) | ||
| 10x10 | 100 (10) | 100 (10) | ||
| 12x12 | 90 (10) | 100 (10) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 75 (8) | 62 (8) |
| M | 100 (8) | 100 (8) |
| L | 88 (8) | 50 (8) |
| XL | 100 (8) | 38 (8) |
gemini-3.6-flash (high), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | - (0) | 100 (5) | 100 (5) |
| 3x4 | 100 (5) | 100 (5) | 100 (5) | 100 (5) |
| 4x4 | 80 (5) | 100 (5) | 100 (5) | 100 (5) |
| 4x5 | 40 (5) | 100 (5) | 40 (5) | 40 (5) |
| 5x5 | 20 (5) | - (0) | 20 (5) | 0 (5) |
| 5x6 | 20 (5) | 60 (5) | 0 (5) | 0 (5) |
| 6x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (5) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100 (4) | 100 (4) | ||
| M | 100 (4) | 100 (4) | ||
| L | 100 (4) | 100 (4) | ||
| XL | 100 (4) | 50 (4) |
gemini-3.6-flash (high), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | - (0) | 100 (5) | 100 (5) |
| 3x4 | 100 (5) | 100 (5) | 100 (5) | 100 (5) |
| 4x4 | 80 (5) | 100 (5) | 80 (5) | 100 (5) |
| 4x5 | 20 (5) | 100 (5) | 60 (5) | 40 (5) |
| 5x5 | 0 (5) | - (0) | 20 (5) | 0 (5) |
| 5x6 | 0 (5) | 60 (5) | 20 (5) | 0 (5) |
| 6x6 | 0 (5) | 40 (5) | 0 (5) | 0 (5) |
| Size | (TC⁰) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (4) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100 (4) | 100 (4) | ||
| M | 100 (4) | 100 (4) | ||
| L | 100 (4) | 75 (4) | ||
| XL | 100 (4) | 0 (4) |
gemini-3.8-flash (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (6) | - (0) | 100 (6) | 100 (6) |
| 3x4 | 90 (10) | 100 (10) | 100 (10) | 100 (10) |
| 4x4 | 60 (10) | 100 (10) | 60 (10) | 80 (10) |
| 4x5 | 40 (10) | 100 (10) | 60 (10) | 20 (10) |
| 5x5 | 0 (10) | - (0) | 0 (10) | 0 (10) |
| 5x6 | 0 (10) | 40 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 10 (10) | 0 (10) | 0 (10) |
| 7x7 | 0 (6) | - (0) | 0 (6) | - (0) |
| 8x8 | 0 (6) | 0 (6) | 0 (6) | - (0) |
| 9x9 | 0 (6) | - (0) | 0 (6) | - (0) |
| 10x10 | 0 (6) | 0 (6) | 0 (6) | - (0) |
| Size | (T C0) | #CC (L) |
|---|---|---|
| 6x6 | 100 (10) | 100 (10) |
| 8x8 | 100 (10) | 100 (10) |
| 10x10 | 100 (10) | 100 (10) |
| 12x12 | 100 (10) | 100 (10) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 100 (8) | 88 (8) |
| M | 100 (8) | 75 (8) |
| L | 100 (8) | 75 (8) |
| XL | 88 (8) | 50 (8) |
gemini-3.8-flash (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (6) | - (0) | 100 (6) | 100 (6) |
| 3x4 | 100 (10) | 100 (10) | 80 (10) | 100 (10) |
| 4x4 | 70 (10) | 100 (10) | 60 (10) | 50 (10) |
| 4x5 | 50 (10) | 90 (10) | 30 (10) | 30 (10) |
| 5x5 | 0 (10) | - (0) | 0 (10) | 10 (10) |
| 5x6 | 0 (10) | 10 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 7x7 | 0 (6) | - (0) | 0 (6) | - (0) |
| 8x8 | 0 (6) | 0 (6) | 0 (6) | - (0) |
| 9x9 | 0 (6) | - (0) | 0 (6) | - (0) |
| 10x10 | 0 (6) | 0 (6) | 0 (6) | - (0) |
| Size | (T C0) | #CC (L) |
|---|---|---|
| 6x6 | 100 (10) | 100 (10) |
| 8x8 | 100 (10) | 100 (10) |
| 10x10 | 100 (10) | 100 (10) |
| 12x12 | 100 (10) | 100 (10) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 100 (8) | 88 (8) |
| M | 100 (8) | 100 (8) |
| L | 88 (8) | 62 (8) |
| XL | 88 (8) | 29 (7) |
gemini-3.8-flash (medium), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (6) | - (0) | 100 (6) | 100 (6) |
| 3x4 | 100 (10) | 100 (10) | 100 (10) | 100 (10) |
| 4x4 | 100 (10) | 100 (10) | 89 (9) | 100 (10) |
| 4x5 | 88 (8) | 100 (10) | 78 (9) | 75 (8) |
| 5x5 | 30 (10) | - (0) | 11 (9) | 11 (9) |
| 5x6 | 11 (9) | 67 (9) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 33 (9) | 0 (10) | 0 (9) |
| Size | (T C0) | #CC (L) |
|---|---|---|
| 6x6 | 100 (10) | 100 (10) |
| 8x8 | 100 (10) | 100 (10) |
| 10x10 | 100 (10) | 100 (10) |
| 12x12 | 100 (10) | 100 (10) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 100 (8) | 88 (8) |
| M | 100 (8) | 100 (7) |
| L | 100 (8) | 88 (8) |
| XL | 100 (8) | 50 (6) |
gemini-3.8-flash (medium), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (6) | - (0) | 100 (6) | 100 (6) |
| 3x4 | 100 (10) | 100 (10) | 100 (10) | 100 (10) |
| 4x4 | 100 (9) | 100 (10) | 100 (10) | 100 (9) |
| 4x5 | 70 (10) | 100 (10) | 90 (10) | 50 (8) |
| 5x5 | 44 (9) | - (0) | 10 (10) | 0 (9) |
| 5x6 | 10 (10) | 80 (10) | 10 (10) | 0 (10) |
| 6x6 | 0 (10) | 33 (9) | 0 (10) | 0 (10) |
| Size | (TC ) | #CC (L) | ||
| 6x6 | 100 (10) | 100 (10) | ||
| 8x8 | 100 (10) | 100 (10) | ||
| 10x10 | 100 (10) | 100 (10) | ||
| 12x12 | 100 (10) | 100 (10) | ||
| Size | #EC (GapL) | #EC (#P) | ||
| S | 100 (8) | 100 (8) | ||
| M | 100 (8) | 100 (8) | ||
| L | 100 (8) | 100 (8) | ||
| XL | 88 (8) | 50 (8) |
gemini-3.8-flash (high), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | - (0) | 100 (5) | 100 (5) |
| 3x4 | 100 (5) | 100 (5) | 100 (5) | 100 (5) |
| 4x4 | 100 (5) | 100 (5) | 100 (3) | 100 (4) |
| 4x5 | 100 (4) | 100 (5) | 100 (3) | 100 (3) |
| 5x5 | 67 (3) | - (0) | 100 (2) | 0 (2) |
| 5x6 | 67 (3) | 100 (2) | 50 (2) | 0 (1) |
| 6x6 | 0 (2) | 0 (2) | 0 (3) | 0 (2) |
| 7x7 | 0 (3) | - (0) | 0 (5) | - (0) |
| 8x8 | 0 (4) | 0 (2) | 0 (4) | - (0) |
| 9x9 | 0 (4) | - (0) | 0 (3) | - (0) |
| 10x10 | 0 (4) | 0 (2) | 0 (6) | - (0) |
| Size | (TC ) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (4) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) | ||
| Size | #EC (GapL) | #EC (#P) | ||
| S | 100 (4) | 100 (4) | ||
| M | 100 (4) | 100 (2) | ||
| L | 100 (4) | 100 (3) | ||
| XL | 100 (3) | 50 (2) |
gemini-3.8-flash (high), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | - (0) | 100 (5) | 100 (5) |
| 3x4 | 100 (4) | 100 (5) | 100 (5) | 100 (5) |
| 4x4 | 100 (3) | 100 (5) | 100 (4) | 75 (4) |
| 4x5 | 100 (2) | 100 (5) | 100 (3) | 100 (2) |
| 5x5 | 100 (2) | - (0) | 67 (3) | 25 (4) |
| 5x6 | 33 (3) | 100 (4) | 0 (2) | 0 (2) |
| 6x6 | 0 (3) | 33 (3) | 33 (3) | 0 (1) |
| 7x7 | 0 (2) | - (0) | 0 (5) | - (0) |
| 8x8 | 0 (3) | 0 (3) | 0 (3) | - (0) |
| 9x9 | 0 (2) | - (0) | 0 (3) | - (0) |
| 10x10 | 0 (1) | 0 (1) | 0 (2) | - (0) |
| Size | (TC ) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (5) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) |
| Size | #EC→ (GapL) | #EC (#P) |
|---|---|---|
| S | 100 (4) | 100 (4) |
| M | 100 (4) | 100 (2) |
| L | 100 (3) | 100 (2) |
| XL | 100 (3) | 100 (4) |
Gemma 4 26B-A4B (thinking off), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 80 (5) | − (0) | 60 (5) | 100 (5) |
| 3x4 | 0 (5) | 40 (5) | 0 (5) | 40 (5) |
| 4x4 | 0 (5) | 20 (5) | 0 (5) | 0 (5) |
| 4x5 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| 5x5 | 0 (5) | − (0) | 0 (5) | 0 (5) |
| 5x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| 6x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| Size | χ (TC⁰) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 80 (5) | 80 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 60 (5) | 100 (5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 100 (4) | 75 (4) | ||
| M | 50 (4) | 50 (4) | ||
| L | 75 (4) | 50 (4) | ||
| XL | 0 (4) | 0 (4) |
Gemma 4 26B-A4B (thinking off), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | − (0) | 80 (5) | 100 (5) |
| 3x4 | 0 (5) | 100 (5) | 0 (5) | 100 (5) |
| 4x4 | 20 (5) | 20 (5) | 0 (5) | 20 (5) |
| 4x5 | 0 (5) | 20 (5) | 0 (5) | 0 (5) |
| 5x5 | 0 (5) | − (0) | 0 (5) | 0 (5) |
| 5x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| 6x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| Size | χ (TC⁰) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (5) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) | ||
| Size | #EC→ (GapL) | #EC (#P) | ||
| S | 75 (4) | 25 (4) | ||
| M | 100 (4) | 25 (4) | ||
| L | 50 (4) | 25 (4) | ||
| XL | 0 (4) | 0 (4) |
Gemma 4 31B (thinking off), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 50 (6) | − (0) | 33 (6) | 100 (6) |
| 3x4 | 10 (10) | 80 (10) | 0 (10) | 70 (10) |
| 4x4 | 10 (10) | 20 (10) | 0 (10) | 10 (10) |
| 4x5 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 5x5 | 0 (10) | − (0) | 0 (10) | 0 (10) |
| 5x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 7x7 | 0 (6) | − (0) | 0 (6) | − (0) |
| 8x8 | 0 (6) | 0 (6) | 0 (6) | − (0) |
| 9x9 | 0 (6) | − (0) | 0 (6) | − (0) |
| 10x10 | 0 (6) | 0 (6) | 0 (6) | − (0) |
| Size | (TC⁰) | #CC (L) |
|---|---|---|
| 6x6 | 90 (10) | 100 (10) |
| 8x8 | 90 (10) | 100 (10) |
| 10x10 | 100 (10) | 100 (10) |
| 12x12 | 80 (10) | 80 (10) |
| Size | #EC → (GapL) | #EC (#P) |
|---|---|---|
| S | 50 (8) | 50 (8) |
| M | 50 (8) | 75 (8) |
| L | 38 (8) | 25 (8) |
| XL | 0 (8) | 12 (8) |
Gemma 4 31B (thinking off), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (6) | − (0) | 33 (6) | 83 (6) |
| 3x4 | 0 (10) | 100 (10) | 10 (10) | 80 (10) |
| 4x4 | 10 (10) | 40 (10) | 0 (10) | 0 (10) |
| 4x5 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 5x5 | 0 (9) | − (0) | 0 (10) | 0 (10) |
| 5x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| 6x6 | 0 (10) | 0 (10) | 0 (10) | 0 (10) |
| Size | (TC⁰) | #CC (L) |
|---|---|---|
| 6x6 | 90 (10) | 100 (10) |
| 8x8 | 80 (10) | 100 (10) |
| 10x10 | 100 (10) | 100 (10) |
| 12x12 | 90 (10) | 100 (10) |
| Size | #EC → (GapL) | #EC (#P) |
|---|---|---|
| S | 38 (8) | 50 (8) |
| M | 25 (8) | 62 (8) |
| L | 12 (8) | 25 (8) |
| XL | 0 (8) | 12 (8) |
Gemma 4 31B (thinking on), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (1) | − (0) | 100 (1) | 100 (1) |
| 3x4 | 0 (1) | 100 (1) | 100 (1) | − (0) |
| 4x4 | 100 (1) | 100 (1) | 0 (1) | 100 (1) |
| 4x5 | 0 (1) | 0 (1) | 0 (1) | 0 (1) |
| 5x5 | 0 (1) | − (0) | − (0) | − (0) |
| Size | #EC → (GapL) | #EC (#P) |
|---|---|---|
| S | 100 (1) | 100 (1) |
| M | 100 (1) | 0 (1) |
| L | 100 (1) | 0 (1) |
| XL | 0 (1) | 0 (1) |
Gemma 4 31B (thinking on), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (1) | − (0) | 100 (1) | 100 (1) |
| 3x4 | 100 (1) | 100 (1) | 0 (1) | 100 (1) |
| 4x4 | 100 (1) | 100 (1) | 100 (1) | 100 (1) |
| 4x5 | 0 (1) | 100 (1) | 0 (1) | 0 (1) |
| 5x5 | − (0) | − (0) | − (0) | 0 (1) |
| Size | #EC → (GapL) | #EC (#P) |
|---|---|---|
| S | − (0) | 100 (1) |
| M | 100 (1) | 100 (1) |
| L | 100 (1) | 0 (1) |
| XL | 0 (1) | 0 (1) |
gemini-3.1-pro-preview (low), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | - (0) | 100 (5) | 100 (5) |
| 3x4 | 60 (5) | 100 (5) | 100 (5) | 80 (5) |
| 4x4 | 60 (5) | 80 (5) | 40 (5) | 80 (5) |
| 4x5 | 0 (5) | 80 (5) | 20 (5) | 40 (5) |
| 5x5 | 0 (5) | - (0) | 0 (5) | 0 (5) |
| 5x6 | 0 (5) | 20 (5) | 0 (5) | 0 (5) |
| 6x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| 7x7 | 0 (6) | - (0) | 0 (6) | - (0) |
| 8x8 | 0 (6) | 0 (6) | 0 (6) | - (0) |
| 9x9 | 0 (6) | - (0) | 0 (6) | - (0) |
| 10x10 | 0 (6) | 0 (6) | 0 (5) | - (0) |
| Size | (TC) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (5) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) | ||
| Size | #EC (GapL) | #EC (#P) | ||
| S | 100 (4) | 100 (4) | ||
| M | 75 (4) | 100 (4) | ||
| L | 75 (4) | 75 (4) | ||
| XL | 100 (4) | 0 (4) |
gemini-3.1-pro-preview (low), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (5) | - (0) | 100 (5) | 100 (5) |
| 3x4 | 60 (5) | 100 (5) | 100 (5) | 100 (5) |
| 4x4 | 20 (5) | 100 (5) | 20 (5) | 60 (5) |
| 4x5 | 0 (5) | 80 (5) | 0 (5) | 20 (5) |
| 5x5 | 0 (5) | - (0) | 0 (5) | 0 (5) |
| 5x6 | 0 (5) | 20 (5) | 0 (5) | 0 (5) |
| 6x6 | 0 (5) | 0 (5) | 0 (5) | 0 (5) |
| Size | (TC) | #CC (L) | ||
| 6x6 | 100 (5) | 100 (5) | ||
| 8x8 | 100 (5) | 100 (5) | ||
| 10x10 | 100 (5) | 100 (5) | ||
| 12x12 | 100 (5) | 100 (5) | ||
| Size | #EC (GapL) | #EC (#P) | ||
| S | 100 (4) | 100 (4) | ||
| M | 100 (4) | 100 (4) | ||
| L | 100 (4) | 75 (4) | ||
| XL | 100 (4) | 25 (4) |
gemini-3.1-pro-preview (high), Visual CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (3) | - (0) | 100 (3) | 100 (3) |
| 3x4 | 100 (3) | 100 (3) | 100 (3) | 100 (3) |
| 4x4 | 67 (3) | 100 (3) | 67 (3) | 100 (3) |
| 4x5 | 67 (3) | 100 (3) | 100 (3) | 67 (3) |
| 5x5 | 0 (3) | - (0) | 33 (3) | 0 (3) |
| 5x6 | 0 (2) | 67 (3) | 0 (3) | 0 (2) |
| 6x6 | 0 (3) | 33 (3) | 0 (3) | 0 (3) |
| Size | (TC) | #CC (L) | ||
| 6x6 | 100 (3) | 100 (3) | ||
| 8x8 | 100 (3) | 100 (3) | ||
| 10x10 | 100 (3) | 100 (3) | ||
| 12x12 | 100 (3) | 100 (3) | ||
| Size | #EC (GapL) | #EC (#P) | ||
| S | 100 (2) | 100 (2) | ||
| M | 100 (2) | 100 (2) | ||
| L | 100 (2) | 100 (2) | ||
| XL | 100 (1) | 100 (2) |
gemini-3.1-pro-preview (high), Text CoT. Exact match (%) with the number of instances in parentheses.
| Size | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 (3) | - (0) | 100 (3) | 100 (3) |
| 3x4 | 100 (3) | 100 (3) | 100 (3) | 100 (3) |
| 4x4 | 100 (3) | 100 (3) | 100 (3) | 100 (3) |
| 4x5 | 67 (3) | 100 (3) | 67 (3) | 50 (2) |
| 5x5 | 33 (3) | - (0) | 67 (3) | 0 (2) |
| 5x6 | 0 (2) | 50 (2) | 50 (2) | 0 (3) |
| 6x6 | 0 (2) | 67 (3) | 0 (3) | 0 (3) |
| Size | (TC ) | #CC (L) | ||
| 6x6 | 100 (3) | 100 (3) | ||
| 8x8 | 100 (3) | 100 (3) | ||
| 10x10 | 100 (3) | 100 (3) | ||
| 12x12 | 100 (3) | 100 (3) | ||
| Size | #EC (GapL) | #EC (#P) | ||
| S | 100 (2) | 100 (2) | ||
| M | 100 (2) | 100 (2) | ||
| L | 100 (2) | 100 (2) | ||
| XL | 100 (2) | 50 (2) |
D.6. Twin tests: all configurations, and the Text and Hint conditions
For gemini-3.8-flash (low): #ST 38% vs. #M 42% (b/c = 4/7, p = 0.55); #ST 38% vs. #Paths 39% (b/c = 4/5, p = 1.00); #PM 70% vs. #M 44% (b/c = 13/0, p = 0.00024); 100% vs. #CC 100% (b/c = 0/0, p = 1.00); #EC 97% vs. #EC 72% (b/c = 8/0, p = 0.0078). The one twin that runs the other way is #ST vs. #Paths: the path counts are small (median 268 against 540011 for spanning trees), so enumeration, whose cost is proportional to the answer, is feasible for the #P member and the determinant is not what the model computes for the GapL member. This is the magnitude confound the matched twins are designed to remove, and it is why we treat #ST/#M, #PM/#M and #EC /#EC as the primary tests. Over all 69 (configuration, twin) pairs with at least ten paired instances, the tractable member has the higher accuracy in 34, the two tie in 13, and the intractable member is higher in 22 (gemini-3-flash-preview (low): #ST vs. #Paths; gemini-3-flash-preview (low): vs. #CC; gemini-3-flash-preview (low): #EC vs. #EC; gemini-3.1-flash-lite (low): #ST vs. #Paths; gemini-3.1-flash-lite (low): vs. #CC; gemini-3.5-flash (low): #ST vs. #M). The exact McNemar test rejects equality at p < 0.05 in 12 pairs in the predicted direction and in 3 in the opposite direction. For gemini-3.8-flash (low) on the grid and Eulerian families, under Visual (372 calls) the odds of an exact answer fall by a factor 2.81 per decade of the answer, magnitude alone explains a deviance of 268 against 3 for the class alone, and adding the class to the magnitude model changes the deviance by 2.9 (p = 0.09; coefficient -0.56 for #P); the answer size at which accuracy crosses 50% is for the GapL tasks and for the #P tasks; under Text (371 calls) the odds of an exact answer fall by a factor 3.02 per decade of the answer, magnitude alone explains a deviance of 267 against 4 for the class alone, and adding the class to the magnitude model changes the deviance by 3.9 (p = 0.049; coefficient -0.65 for #P); the answer size at which accuracy crosses 50% is for the GapL tasks and for the #P tasks.
| Model | Twin pair | n | acc_A | acc_B | b/c | McNemar p |
|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 17 | 9 | 4/1 | 0.375 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 17 | 31 | 0/5 | 0.0625 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 8 | 0 | 2/0 | 0.5 | |
| same image: (TC0) vs #CC (L) | 20 | 95 | 100 | 0/1 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 38 | 56 | 1/4 | 0.375 | |
| Gemini 3.1 Flash-Lite (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 0 | 0 | 0/0 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 0 | 14 | 0/5 | 0.0625 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 0 | 0 | 0/0 | 1 | |
| same image: (TC0) vs #CC (L) | 20 | 80 | 90 | 1/3 | 0.625 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 50 | 6 | 7/0 | 0.0156 | |
| Gemini 3.5 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 26 | 34 | 1/4 | 0.375 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 26 | 40 | 0/5 | 0.0625 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 60 | 32 | 7/0 | 0.0156 | |
| same image: (TC0) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 100 | 62 | 6/0 | 0.0312 | |
| Gemini 3.7 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 34 | 41 | 47 | 3/5 | 0.727 |
| same graph: #ST (GapL) vs #Paths (#P) | 33 | 39 | 45 | 3/5 | 0.727 | |
| same graph: #PM (GapL) vs #M (#P) | 23 | 57 | 48 | 3/1 | 0.625 | |
| same image: (TC0) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 12 | 100 | 67 | 4/0 | 0.125 | |
| Gemini 3.6 Flash (minimal) | same graph: #ST (GapL) vs #M (#P) | 66 | 9 | 6 | 4/2 | 0.688 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 9 | 27 | 0/12 | 0.000488 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 28 | 2 | 13/0 | 0.000244 | |
| same image: (TC0) vs #CC (L) | 40 | 100 | 98 | 1/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 62 | 28 | 13/2 | 0.00739 | |
| Gemini 3.6 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 65 | 26 | 25 | 9/8 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 26 | 36 | 0/7 | 0.0156 | |
| same graph: #PM (GapL) vs #M (#P) | 49 | 41 | 20 | 11/1 | 0.00635 | |
| same image: (TC0) vs #CC (L) | 40 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 94 | 56 | 12/0 | 0.000488 | |
| Gemini 3.6 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 35 | 51 | 51 | 3/3 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 51 | 49 | 4/3 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 72 | 48 | 6/0 | 0.0312 | |
| same image: (TC0) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 100 | 88 | 2/0 | 0.5 | |
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 38 | 42 | 4/7 | 0.549 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 38 | 39 | 4/5 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 70 | 44 | 13/0 | 0.000244 | |
| same image: (TC0) vs #CC (L) | 40 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 97 | 72 | 8/0 | 0.00781 | |
| Gemini 3.8 Flash (medium) | same graph: #ST (GapL) vs #M (#P) | 60 | 58 | 52 | 4/0 | 0.125 |
| same graph: #ST (GapL) vs #Paths (#P) | 60 | 60 | 53 | 4/0 | 0.125 | |
| same graph: #PM (GapL) vs #M (#P) | 46 | 80 | 54 | 12/0 | 0.000488 | |
| same image: (TC0) vs #CC (L) | 40 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 29 | 100 | 83 | 5/0 | 0.0625 | |
| Gemini 3.8 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 20 | 90 | 90 | 0/0 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 21 | 86 | 81 | 1/0 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 14 | 93 | 86 | 1/0 | 1 | |
| same image: (TC0) vs #CC (L) | 19 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 11 | 100 | 91 | 1/0 | 1 | |
| Gemma 4 26B-A4B (no thinking) | same graph: #ST (GapL) vs #M (#P) | 35 | 11 | 9 | 2/1 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 11 | 20 | 0/3 | 0.25 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 12 | 0 | 3/0 | 0.25 | |
| same image: (TC0) vs #CC (L) | 20 | 85 | 95 | 0/2 | 0.5 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 56 | 44 | 2/0 | 0.5 | |
| Gemma 4 31B (no thinking) | same graph: #ST (GapL) vs #M (#P) | 66 | 8 | 3 | 4/1 | 0.375 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 8 | 21 | 1/10 | 0.0117 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 20 | 0 | 10/0 | 0.00195 | |
| same image: (TC0) vs #CC (L) | 40 | 90 | 95 | 1/3 | 0.625 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 34 | 41 | 1/3 | 0.625 | |
| Gemma 4 31B (thinking) | same graph: #ST (GapL) vs #M (#P) | 4 | 50 | 50 | 1/1 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 3 | 67 | 67 | 0/0 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 3 | 67 | 33 | 1/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 4 | 75 | 25 | 2/0 | 0.5 | |
| Gemini 3.1 Pro (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 31 | 37 | 1/3 | 0.625 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 31 | 43 | 0/4 | 0.125 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 56 | 32 | 7/1 | 0.0703 | |
| same image: (TC0) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 88 | 69 | 5/2 | 0.453 | |
| Gemini 3.1 Pro (high) | same graph: #ST (GapL) vs #M (#P) | 20 | 50 | 60 | 1/3 | 0.625 |
| same graph: #ST (GapL) vs #Paths (#P) | 19 | 53 | 58 | 1/2 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 15 | 80 | 53 | 4/0 | 0.125 | |
| same image: (TC0) vs #CC (L) | 12 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 7 | 100 | 100 | 0/0 | 1 |
Table S7. Paired twin tests, Visual condition, all configurations.
| Model | Twin pair | n | acc_A | acc_B | b/c | McNemar p |
|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 20 | 9 | 4/0 | 0.125 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 20 | 31 | 0/4 | 0.125 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 16 | 0 | 4/0 | 0.125 | |
| same image: (TCO) vs #CC (L) | 20 | 95 | 100 | 0/1 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 31 | 50 | 1/4 | 0.375 | |
| Gemini 3.1 Flash-Lite (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 3 | 0 | 1/0 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 3 | 20 | 1/7 | 0.0703 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 12 | 0 | 3/0 | 0.25 | |
| same image: (TCO) vs #CC (L) | 20 | 75 | 85 | 1/3 | 0.625 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 38 | 0 | 6/0 | 0.0312 | |
| Gemini 3.5 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 26 | 29 | 2/3 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 26 | 43 | 1/7 | 0.0703 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 60 | 20 | 11/1 | 0.00635 | |
| same image: (TCO) vs #CC (L) | 20 | 95 | 100 | 0/1 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 100 | 69 | 5/0 | 0.0625 | |
| Gemini 3.7 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 34 | 38 | 38 | 4/4 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 33 | 36 | 39 | 3/4 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 24 | 62 | 42 | 6/1 | 0.125 | |
| same image: (TCO) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 94 | 56 | 6/0 | 0.0312 | |
| Gemini 3.6 Flash (minimal) | same graph: #ST (GapL) vs #M (#P) | 66 | 21 | 17 | 6/3 | 0.508 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 21 | 27 | 1/5 | 0.219 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 36 | 14 | 11/0 | 0.000977 | |
| same image: (TCO) vs #CC (L) | 40 | 88 | 100 | 0/5 | 0.0625 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 66 | 31 | 13/2 | 0.00739 | |
| Gemini 3.6 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 29 | 38 | 5/11 | 0.21 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 29 | 29 | 6/6 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 60 | 38 | 14/3 | 0.0127 | |
| same image: (TCO) vs #CC (L) | 40 | 98 | 100 | 0/1 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 91 | 62 | 9/0 | 0.00391 | |
| Gemini 3.6 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 35 | 43 | 54 | 1/5 | 0.219 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 43 | 49 | 1/3 | 0.625 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 80 | 52 | 8/1 | 0.0391 | |
| same image: (TCO) vs #CC (L) | 19 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 100 | 69 | 5/0 | 0.0625 | |
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 42 | 35 | 8/3 | 0.227 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 42 | 38 | 7/4 | 0.549 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 60 | 34 | 13/0 | 0.000244 | |
| same image: (TCO) vs #CC (L) | 40 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 31 | 94 | 71 | 7/0 | 0.0156 | |
| Gemini 3.8 Flash (medium) | same graph: #ST (GapL) vs #M (#P) | 64 | 58 | 56 | 4/3 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 60 | 58 | 47 | 8/1 | 0.0391 | |
| same graph: #PM (GapL) vs #M (#P) | 49 | 84 | 61 | 11/0 | 0.000977 | |
| same image: (TCO) vs #CC (L) | 40 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 97 | 88 | 3/0 | 0.25 | |
| Gemini 3.8 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 19 | 84 | 89 | 0/1 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 14 | 93 | 71 | 3/0 | 0.25 | |
| same graph: #PM (GapL) vs #M (#P) | 16 | 94 | 81 | 2/0 | 0.5 | |
| same image: (TCO) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 11 | 100 | 100 | 0/0 | 1 | |
| Gemma 4 26B-A4B (no thinking) | same graph: #ST (GapL) vs #M (#P) | 35 | 17 | 11 | 2/0 | 0.5 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 17 | 31 | 0/5 | 0.0625 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 28 | 0 | 7/0 | 0.0156 | |
| same image: (TCO) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 56 | 19 | 7/1 | 0.0703 | |
| Gemma 4 31B (no thinking) | same graph: #ST (GapL) vs #M (#P) | 65 | 11 | 5 | 5/1 | 0.219 |
| same graph: #ST (GapL) vs #Paths (#P) | 65 | 11 | 20 | 2/8 | 0.109 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 28 | 2 | 13/0 | 0.000244 | |
| same image: (TCO) vs #CC (L) | 40 | 90 | 100 | 0/4 | 0.125 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 19 | 38 | 1/7 | 0.0703 | |
| Gemma 4 31B (thinking) | same graph: #ST (GapL) vs #M (#P) | 4 | 75 | 50 | 1/0 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 4 | 75 | 75 | 0/0 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 3 | 100 | 33 | 2/0 | 0.5 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 3 | 67 | 33 | 1/0 | 1 | |
| Gemini 3.1 Pro (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 26 | 31 | 0/2 | 0.5 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 26 | 40 | 0/5 | 0.0625 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 60 | 24 | 9/0 | 0.00391 | |
| same image: (TCO) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 100 | 75 | 4/0 | 0.125 | |
| Gemini 3.1 Pro (high) | same graph: #ST (GapL) vs #M (#P) | 19 | 63 | 74 | 1/3 | 0.625 |
| same graph: #ST (GapL) vs #Paths (#P) | 17 | 65 | 59 | 2/1 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 14 | 86 | 64 | 3/0 | 0.25 | |
| same image: (TCO) vs #CC (L) | 12 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 8 | 100 | 88 | 1/0 | 1 |
Table S8. Paired twin tests, Text condition.
| Model | Twin pair | n | acc_A | acc_B | b/c | McNemar p |
|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 35 | 46 | 37 | 4/1 | 0.375 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 46 | 46 | 2/2 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 72 | 32 | 10/0 | 0.00195 | |
| same image: (TC0) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 16 | 100 | 94 | 1/0 | 1 | |
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 65 | 45 | 42 | 7/5 | 0.774 |
| same graph: #ST (GapL) vs #Paths (#P) | 65 | 45 | 40 | 6/3 | 0.508 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 64 | 40 | 13/1 | 0.00183 | |
| same image: (TC0) vs #CC (L) | 40 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 32 | 100 | 94 | 2/0 | 0.5 | |
| Gemini 3.8 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 22 | 82 | 91 | 0/2 | 0.5 |
| same graph: #ST (GapL) vs #Paths (#P) | 19 | 84 | 84 | 1/1 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 13 | 100 | 85 | 2/0 | 0.5 | |
| same image: (TC0) vs #CC (L) | 20 | 100 | 100 | 0/0 | 1 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 14 | 100 | 93 | 1/0 | 1 | |
| Gemma 4 31B (thinking) | same graph: #ST (GapL) vs #M (#P) | 5 | 40 | 0 | 2/0 | 0.5 |
| same graph: #ST (GapL) vs #Paths (#P) | 3 | 67 | 100 | 0/1 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 3 | 67 | 0 | 2/0 | 0.5 | |
| same drawing arrows: #EC (GapL) vs #EC (#P) | 4 | 50 | 75 | 0/1 | 1 |
Table S9. Paired twin tests, Hint condition.
D.7. Token tables
For gemini-3.8-flash (low) the mean thinking plus output tokens per call are 1.4k (TC), 1.1k (L), 5.2k (GapL) and 6.1k (#P); restricted to correct answers they are 1.4k, 1.1k, 5.2k and 7.3k. At the high setting the same ordering holds with 8.8k, 3.4k, 25.2k and 29.8k.
| Model | TC | #CCL | #STGapL | #PMGapL | #ECGapL | #M#P | #Paths#P | #EC#P |
|---|---|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | 2.8k | 2.6k | 2.5k | 1.8k | 2.4k | 2.5k | 3.0k | 3.9k |
| Gemini 3.1 Flash-Lite (low) | 1.1k | 1.0k | 1.3k | 1.5k | 1.4k | 1.3k | 1.3k | 1.2k |
| Gemini 3.5 Flash (low) | 2.5k | 1.8k | 9.5k | 7.5k | 5.5k | 8.9k | 6.3k | 8.7k |
| Gemini 3.7 Flash (low) | 1.4k | 0.9k | 4.6k | 4.3k | 3.2k | 5.2k | 3.6k | 3.2k |
| Gemini 3.6 Flash (minimal) | 1.0k | 0.7k | 1.1k | 2.0k | 2.1k | 2.4k | 1.4k | 2.6k |
| Gemini 3.6 Flash (low) | 1.9k | 1.5k | 7.8k | 6.3k | 4.4k | 9.7k | 5.2k | 7.1k |
| Gemini 3.6 Flash (high) | 8.0k | 4.3k | 28.4k | 21.7k | 17.7k | 30.9k | 24.3k | 23.1k |
| Gemini 3.8 Flash (low) | 1.4k | 1.1k | 5.3k | 5.9k | 4.1k | 6.1k | 4.7k | 8.9k |
| Gemini 3.8 Flash (medium) | 2.2k | 1.6k | 13.9k | 12.3k | 7.1k | 14.8k | 13.7k | 15.1k |
| Gemini 3.8 Flash (high) | 8.8k | 3.4k | 28.6k | 25.0k | 19.3k | 31.7k | 29.8k | 25.9k |
| Gemma 4 26B-A4B (no thinking) | 1.4k | 1.0k | 8.5k | 5.7k | 7.9k | 5.5k | 6.0k | 6.2k |
| Gemma 4 31B (no thinking) | 0.9k | 0.8k | 2.1k | 1.8k | 2.7k | 2.0k | 2.1k | 1.8k |
| Gemma 4 31B (thinking) | – | – | 14.1k | 11.0k | 15.2k | 16.4k | 12.6k | 10.9k |
| Gemini 3.1 Pro (low) | 2.0k | 1.6k | 3.7k | 4.7k | 4.8k | 4.7k | 4.0k | 5.5k |
| Gemini 3.1 Pro (high) | 8.5k | 4.0k | 32.2k | 26.4k | 20.1k | 34.6k | 29.4k | 24.2k |
Table S10. Mean thinking + output tokens per call (thousands), Visual condition.
| Model | #CCL | #STGapL | #PMGapL | #EC→GapL | #M#P | #Paths#P | #EC#P | |
|---|---|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | 2.2k | 1.8k | 3.7k | 2.8k | 2.4k | 2.9k | 2.8k | 2.5k |
| Gemini 3.1 Flash-Lite (low) | 1.0k | 0.9k | 1.0k | 0.9k | 1.3k | 0.9k | 0.8k | 1.0k |
| Gemini 3.5 Flash (low) | 2.4k | 1.2k | 9.4k | 7.5k | 5.0k | 9.7k | 5.4k | 8.2k |
| Gemini 3.7 Flash (low) | 1.0k | 0.6k | 3.5k | 3.7k | 2.3k | 4.1k | 2.5k | 3.3k |
| Gemini 3.6 Flash (minimal) | 1.0k | 0.7k | 1.9k | 2.1k | 1.9k | 2.5k | 1.5k | 2.4k |
| Gemini 3.6 Flash (low) | 1.6k | 1.1k | 9.6k | 7.0k | 4.0k | 10.7k | 6.2k | 10.0k |
| Gemini 3.6 Flash (high) | 8.5k | 3.4k | 27.6k | 22.0k | 16.6k | 29.1k | 24.3k | 22.2k |
| Gemini 3.8 Flash (low) | 1.2k | 0.7k | 4.5k | 3.6k | 3.5k | 4.4k | 3.4k | 4.5k |
| Gemini 3.8 Flash (medium) | 1.9k | 1.0k | 16.1k | 12.0k | 5.6k | 13.8k | 13.6k | 12.7k |
| Gemini 3.8 Flash (high) | 10.3k | 2.3k | 28.0k | 23.3k | 16.8k | 30.8k | 28.7k | 26.6k |
| Gemma 4 26B-A4B (no thinking) | 1.7k | 1.1k | 13.3k | 12.4k | 11.3k | 8.1k | 7.6k | 11.5k |
| Gemma 4 31B (no thinking) | 1.1k | 0.9k | 2.9k | 3.4k | 2.8k | 3.2k | 3.8k | 1.6k |
| Gemma 4 31B (thinking) | – | – | 12.9k | 13.9k | 16.6k | 16.0k | 13.1k | 12.5k |
| Gemini 3.1 Pro (low) | 1.7k | 1.3k | 2.7k | 4.5k | 3.6k | 3.6k | 2.9k | 4.2k |
| Gemini 3.1 Pro (high) | 7.2k | 2.8k | 28.0k | 24.0k | 13.8k | 30.6k | 25.0k | 24.5k |
Table S11. Mean thinking + output tokens per call (thousands), Text condition.
| Model | #CCL | #STGapL | #PMGapL | #EC→GapL | #M#P | #Paths#P | #EC#P | |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (high) | 7.0k | 4.8k | 28.3k | 20.3k | 15.8k | 29.2k | 23.6k | 18.3k |
| Gemini 3.8 Flash (low) | 2.0k | 1.1k | 6.3k | 7.0k | 4.4k | 7.0k | 5.7k | 7.9k |
| Gemini 3.8 Flash (high) | 6.3k | 3.6k | 30.3k | 25.9k | 20.4k | 34.0k | 27.8k | 24.7k |
| Gemma 4 31B (thinking) | – | – | 14.4k | 14.1k | 16.7k | 16.1k | 11.6k | 16.2k |
Table S12. Mean thinking + output tokens per call (thousands), Hint condition.
D.8. Order-of-magnitude error
| Model | #CC | #ST | #PM | #EC→ | #M | #Paths | #EC | |
|---|---|---|---|---|---|---|---|---|
| Gemini 3 Flash (low) | 0.00 | 0.00 | 0.49 | 0.40 | 0.30 | 0.29 | 0.22 | 0.00 |
| Gemini 3.1 Flash-Lite (low) | 0.00 | 0.00 | 1.01 | 0.36 | 0.00 | 0.43 | 0.48 | 0.60 |
| Gemini 3.5 Flash (low) | 0.00 | 0.00 | 0.19 | 0.00 | 0.00 | 0.08 | 0.08 | 0.00 |
| Gemini 3.7 Flash (low) | 0.00 | 0.00 | 0.05 | 0.00 | 0.00 | 0.01 | 0.03 | 0.00 |
| Gemini 3.6 Flash (minimal) | 0.00 | 0.00 | 0.89 | 0.22 | 0.00 | 0.43 | 0.16 | 0.51 |
| Gemini 3.6 Flash (low) | 0.00 | 0.00 | 0.46 | 0.05 | 0.00 | 0.07 | 0.09 | 0.00 |
| Gemini 3.6 Flash (high) | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.01 | 0.00 |
| Gemini 3.8 Flash (low) | 0.00 | 0.00 | 0.14 | 0.00 | 0.00 | 0.06 | 0.06 | 0.00 |
| Gemini 3.8 Flash (medium) | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| Gemini 3.8 Flash (high) | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| Gemma 4 26B-A4B (no thinking) | 0.00 | 0.00 | 0.89 | 0.33 | 0.00 | 0.68 | 0.70 | 0.00 |
| Gemma 4 31B (no thinking) | 0.00 | 0.00 | 0.92 | 0.18 | 0.18 | 0.69 | 0.49 | 0.12 |
| Gemma 4 31B (thinking) | – | – | 0.01 | 0.00 | 0.00 | 0.00 | 0.00 | 0.30 |
| Gemini 3.1 Pro (low) | 0.00 | 0.00 | 0.60 | 0.00 | 0.00 | 0.14 | 0.08 | 0.00 |
| Gemini 3.1 Pro (high) | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
Table S13. Median over calls with a positive integer answer, Visual condition; k marks calls with no parsable answer.
D.9. Perception
Table S14. Transcription quality on the Visual, Hint and Route-only conditions: mean edge F1 (grids, Eulerian drawings) or black-cell F1 (binary images) and the fraction of exact transcriptions, by configuration and size.
| Model | Family / size | n | mean F1 | exact (%) |
|---|---|---|---|---|
| Gemini 3 Flash (low) | grid 3x3 | 15 | 1.000 | 100 |
| grid 3x4 | 20 | 1.000 | 100 | |
| grid 4x4 | 20 | 0.996 | 80 | |
| grid 4x5 | 20 | 0.996 | 80 | |
| grid 5x5 | 15 | 0.999 | 93 | |
| grid 5x6 | 20 | 0.986 | 15 | |
| grid 6x6 | 20 | 0.987 | 40 | |
| bin 6x6 | 10 | 1.000 | 100 |
continued on next page
| Model | Family / size | n | mean F1 | exact (%) |
|---|---|---|---|---|
| bin 8x8 | 10 | 1.000 | 100 | |
| bin 10x10 | 10 | 1.000 | 100 | |
| bin 12x12 | 10 | 1.000 | 100 | |
| euler S | 8 | 1.000 | 100 | |
| euler M | 8 | 1.000 | 100 | |
| euler L | 8 | 0.996 | 88 | |
| euler XL | 8 | 1.000 | 100 | |
| Gemini 3.1 Flash-Lite (low) | grid 3x3 | 15 | 0.963 | 53 |
| grid 3x4 | 20 | 0.915 | 45 | |
| grid 4x4 | 20 | 0.956 | 35 | |
| grid 4x5 | 20 | 0.961 | 35 | |
| grid 5x5 | 15 | 0.968 | 0 | |
| grid 5x6 | 20 | 0.917 | 5 | |
| grid 6x6 | 20 | 0.939 | 0 | |
| bin 6x6 | 10 | 1.000 | 100 | |
| bin 8x8 | 10 | 0.996 | 80 | |
| bin 10x10 | 10 | 0.881 | 40 | |
| bin 12x12 | 10 | 0.876 | 20 | |
| euler S | 8 | 0.988 | 88 | |
| euler M | 8 | 1.000 | 100 | |
| euler L | 8 | 1.000 | 100 | |
| euler XL | 8 | 0.995 | 75 | |
| Gemini 3.5 Flash (low) | grid 3x3 | 15 | 1.000 | 100 |
| grid 3x4 | 20 | 1.000 | 100 | |
| grid 4x4 | 20 | 1.000 | 100 | |
| grid 4x5 | 20 | 1.000 | 100 | |
| grid 5x5 | 15 | 1.000 | 100 | |
| grid 5x6 | 20 | 0.998 | 80 | |
| grid 6x6 | 20 | 0.994 | 50 | |
| bin 6x6 | 10 | 1.000 | 100 | |
| bin 8x8 | 10 | 1.000 | 100 | |
| bin 10x10 | 10 | 1.000 | 100 | |
| bin 12x12 | 10 | 1.000 | 100 | |
| euler S | 8 | 1.000 | 100 | |
| euler M | 8 | 1.000 | 100 | |
| euler L | 8 | 1.000 | 100 | |
| euler XL | 8 | 0.997 | 88 | |
| Gemini 3.7 Flash (low) | grid 3x3 | 15 | 1.000 | 100 |
| grid 3x4 | 19 | 1.000 | 100 | |
| grid 4x4 | 19 | 1.000 | 100 | |
| grid 4x5 | 20 | 1.000 | 100 | |
| grid 5x5 | 15 | 0.999 | 93 | |
| grid 5x6 | 18 | 0.999 | 89 | |
| grid 6x6 | 20 | 0.996 | 75 | |
| bin 6x6 | 10 | 1.000 | 100 | |
| bin 8x8 | 10 | 1.000 | 100 | |
| bin 10x10 | 10 | 1.000 | 100 | |
| bin 12x12 | 10 | 1.000 | 100 | |
| euler S | 8 | 1.000 | 100 | |
| euler M | 7 | 1.000 | 100 | |
| euler L | 7 | 1.000 | 100 | |
| euler XL | 6 | 1.000 | 100 | |
| Gemini 3.6 Flash (minimal) | grid 3x3 | 18 | 1.000 | 100 |
| grid 3x4 | 40 | 1.000 | 100 | |
| grid 4x4 | 40 | 0.999 | 98 | |
| grid 4x5 | 40 | 1.000 | 98 | |
| grid 5x5 | 30 | 1.000 | 97 | |
| grid 5x6 | 40 | 0.999 | 88 | |
| grid 6x6 | 40 | 0.996 | 58 | |
| bin 6x6 | 20 | 1.000 | 100 | |
| bin 8x8 | 20 | 1.000 | 100 | |
| bin 10x10 | 20 | 0.983 | 90 | |
| bin 12x12 | 20 | 0.969 | 85 | |
| euler S | 16 | 1.000 | 100 | |
| euler M | 16 | 1.000 | 100 | |
| euler L | 16 | 1.000 | 100 | |
| euler XL | 16 | 0.999 | 94 | |
| Gemini 3.6 Flash (low) | grid 3x3 | 18 | 1.000 | 100 |
| grid 3x4 | 40 | 1.000 | 100 | |
| grid 4x4 | 40 | 1.000 | 100 | |
| grid 4x5 | 39 | 1.000 | 100 | |
| grid 5x5 | 30 | 1.000 | 100 | |
| grid 5x6 | 40 | 1.000 | 98 |
continued on next page
| Model | Family / size | n | mean F1 | exact (%) |
|---|---|---|---|---|
| grid 6x6 | 40 | 0.998 | 82 | |
| bin 6x6 | 20 | 1.000 | 100 | |
| bin 8x8 | 20 | 1.000 | 100 | |
| bin 10x10 | 20 | 0.995 | 90 | |
| bin 12x12 | 20 | 1.000 | 100 | |
| euler S | 16 | 1.000 | 100 | |
| euler M | 16 | 1.000 | 100 | |
| euler L | 16 | 1.000 | 100 | |
| euler XL | 16 | 1.000 | 100 | |
| Gemini 3.6 Flash (high) | grid 3x3 | 30 | 1.000 | 100 |
| grid 3x4 | 40 | 1.000 | 100 | |
| grid 4x4 | 40 | 1.000 | 100 | |
| grid 4x5 | 40 | 1.000 | 100 | |
| grid 5x5 | 30 | 1.000 | 100 | |
| grid 5x6 | 40 | 1.000 | 98 | |
| grid 6x6 | 40 | 0.998 | 78 | |
| bin 6x6 | 20 | 1.000 | 100 | |
| bin 8x8 | 20 | 1.000 | 100 | |
| bin 10x10 | 20 | 1.000 | 100 | |
| bin 12x12 | 20 | 1.000 | 100 | |
| euler S | 16 | 1.000 | 100 | |
| euler M | 16 | 1.000 | 100 | |
| euler L | 16 | 1.000 | 100 | |
| euler XL | 16 | 1.000 | 100 | |
| Gemini 3.8 Flash (low) | grid 3x3 | 51 | 1.000 | 100 |
| grid 3x4 | 100 | 1.000 | 100 | |
| grid 4x4 | 99 | 1.000 | 99 | |
| grid 4x5 | 98 | 1.000 | 100 | |
| grid 5x5 | 75 | 1.000 | 97 | |
| grid 5x6 | 99 | 0.998 | 87 | |
| grid 6x6 | 100 | 0.990 | 50 | |
| grid 7x7 | 12 | 0.994 | 58 | |
| grid 8x8 | 18 | 0.996 | 50 | |
| grid 9x9 | 12 | 0.967 | 0 | |
| grid 10x10 | 18 | 0.982 | 6 | |
| bin 6x6 | 50 | 1.000 | 100 | |
| bin 8x8 | 50 | 1.000 | 100 | |
| bin 10x10 | 50 | 1.000 | 100 | |
| bin 12x12 | 50 | 1.000 | 100 | |
| euler S | 40 | 1.000 | 100 | |
| euler M | 40 | 1.000 | 100 | |
| euler L | 40 | 1.000 | 100 | |
| euler XL | 39 | 1.000 | 100 | |
| Gemini 3.8 Flash (medium) | grid 3x3 | 18 | 1.000 | 100 |
| grid 3x4 | 40 | 1.000 | 100 | |
| grid 4x4 | 39 | 0.999 | 97 | |
| grid 4x5 | 35 | 1.000 | 100 | |
| grid 5x5 | 24 | 1.000 | 100 | |
| grid 5x6 | 36 | 0.997 | 83 | |
| grid 6x6 | 38 | 0.990 | 50 | |
| bin 6x6 | 20 | 1.000 | 100 | |
| bin 8x8 | 20 | 1.000 | 100 | |
| bin 10x10 | 20 | 1.000 | 100 | |
| bin 12x12 | 20 | 1.000 | 100 | |
| euler S | 16 | 1.000 | 100 | |
| euler M | 15 | 1.000 | 100 | |
| euler L | 16 | 1.000 | 100 | |
| euler XL | 12 | 1.000 | 100 | |
| Gemini 3.8 Flash (high) | grid 3x3 | 30 | 1.000 | 100 |
| grid 3x4 | 38 | 1.000 | 100 | |
| grid 4x4 | 35 | 1.000 | 100 | |
| grid 4x5 | 29 | 1.000 | 100 | |
| grid 5x5 | 15 | 1.000 | 100 | |
| grid 5x6 | 20 | 0.998 | 85 | |
| grid 6x6 | 18 | 0.993 | 44 | |
| grid 7x7 | 8 | 0.993 | 62 | |
| grid 8x8 | 10 | 0.996 | 40 | |
| grid 9x9 | 7 | 0.979 | 0 | |
| grid 10x10 | 12 | 0.977 | 0 | |
| bin 6x6 | 20 | 1.000 | 100 | |
| bin 8x8 | 19 | 1.000 | 100 | |
| bin 10x10 | 20 | 1.000 | 100 | |
| bin 12x12 | 20 | 1.000 | 100 | |
| euler S | 16 | 1.000 | 100 |
continued on next page
| Model | Family / size | n | mean F1 | exact (%) |
|---|---|---|---|---|
| euler M | 14 | 1.000 | 100 | |
| euler L | 14 | 1.000 | 100 | |
| euler XL | 12 | 1.000 | 100 | |
| Gemma 4 26B-A4B (no thinking) | grid 3x3 | 11 | 1.000 | 100 |
| grid 3x4 | 14 | 0.973 | 36 | |
| grid 4x4 | 17 | 0.959 | 0 | |
| grid 4x5 | 14 | 0.963 | 0 | |
| grid 5x5 | 13 | 0.959 | 0 | |
| grid 5x6 | 17 | 0.957 | 0 | |
| grid 6x6 | 16 | 0.959 | 0 | |
| bin 6x6 | 10 | 1.000 | 100 | |
| bin 8x8 | 10 | 1.000 | 100 | |
| bin 10x10 | 10 | 1.000 | 100 | |
| bin 12x12 | 10 | 1.000 | 100 | |
| euler S | 7 | 1.000 | 100 | |
| euler M | 6 | 1.000 | 100 | |
| euler L | 8 | 0.997 | 88 | |
| euler XL | 6 | 0.964 | 17 | |
| Gemma 4 31B (no thinking) | grid 3x3 | 18 | 1.000 | 100 |
| grid 3x4 | 40 | 0.999 | 98 | |
| grid 4x4 | 39 | 0.988 | 54 | |
| grid 4x5 | 40 | 0.986 | 38 | |
| grid 5x5 | 30 | 0.985 | 43 | |
| grid 5x6 | 38 | 0.968 | 11 | |
| grid 6x6 | 40 | 0.978 | 15 | |
| grid 7x7 | 12 | 0.966 | 0 | |
| grid 8x8 | 18 | 0.967 | 0 | |
| grid 9x9 | 11 | 0.943 | 0 | |
| grid 10x10 | 17 | 0.883 | 0 | |
| bin 6x6 | 20 | 1.000 | 100 | |
| bin 8x8 | 20 | 1.000 | 100 | |
| bin 10x10 | 20 | 1.000 | 100 | |
| bin 12x12 | 20 | 0.988 | 80 | |
| euler S | 16 | 1.000 | 100 | |
| euler M | 16 | 1.000 | 100 | |
| euler L | 16 | 1.000 | 100 | |
| euler XL | 16 | 0.992 | 75 | |
| Gemma 4 31B (thinking) | grid 3x3 | 6 | 1.000 | 100 |
| grid 3x4 | 7 | 1.000 | 100 | |
| grid 4x4 | 8 | 1.000 | 100 | |
| grid 4x5 | 7 | 1.000 | 100 | |
| grid 5x5 | 3 | 1.000 | 100 | |
| euler S | 4 | 1.000 | 100 | |
| euler M | 4 | 1.000 | 100 | |
| euler L | 4 | 1.000 | 100 | |
| euler XL | 4 | 0.990 | 75 | |
| Gemini 3.1 Pro (low) | grid 3x3 | 15 | 1.000 | 100 |
| grid 3x4 | 20 | 1.000 | 100 | |
| grid 4x4 | 20 | 1.000 | 100 | |
| grid 4x5 | 20 | 0.999 | 95 | |
| grid 5x5 | 15 | 0.999 | 93 | |
| grid 5x6 | 20 | 0.997 | 75 | |
| grid 6x6 | 20 | 0.989 | 35 | |
| grid 7x7 | 12 | 0.984 | 25 | |
| grid 8x8 | 18 | 0.984 | 0 | |
| grid 9x9 | 12 | 0.979 | 0 | |
| grid 10x10 | 17 | 0.983 | 0 | |
| bin 6x6 | 10 | 1.000 | 100 | |
| bin 8x8 | 10 | 1.000 | 100 | |
| bin 10x10 | 10 | 1.000 | 100 | |
| bin 12x12 | 10 | 1.000 | 100 | |
| euler S | 8 | 1.000 | 100 | |
| euler M | 8 | 1.000 | 100 | |
| euler L | 8 | 1.000 | 100 | |
| euler XL | 8 | 1.000 | 100 | |
| Gemini 3.1 Pro (high) | grid 3x3 | 9 | 1.000 | 100 |
| grid 3x4 | 12 | 1.000 | 100 | |
| grid 4x4 | 12 | 1.000 | 100 | |
| grid 4x5 | 12 | 1.000 | 100 | |
| grid 5x5 | 9 | 0.997 | 78 | |
| grid 5x6 | 10 | 0.997 | 70 | |
| grid 6x6 | 12 | 0.992 | 42 | |
| bin 6x6 | 6 | 1.000 | 100 |
continued on next page
| Model | Family / size | n | mean F1 | exact (%) |
|---|---|---|---|---|
| bin 8x8 | 6 | 1.000 | 100 | |
| bin 10x10 | 6 | 1.000 | 100 | |
| bin 12x12 | 6 | 1.000 | 100 | |
| euler S | 4 | 1.000 | 100 | |
| euler M | 4 | 1.000 | 100 | |
| euler L | 4 | 1.000 | 100 | |
| euler XL | 3 | 1.000 | 100 |
D.10. CAR self-declared class
| Model | TC | #CC L | #ST GapL | #PM GapL | #EC GapL | #M #P | #Paths #P | #EC #P |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (low) | 100 | 100 | 100 | 63 | 100 | 100 | 100 | 100 |
| Gemini 3.8 Flash (low) | 100 | 100 | 100 | 98 | 100 | 100 | 100 | 66 |
| Gemma 4 31B (no thinking) | 100 | 100 | 100 | 95 | 100 | 100 | 100 | 91 |
| Gemma 4 31B (thinking) | 100 | 100 | 100 | 0 | 100 | 100 | 100 | 100 |
| Gemini 3.1 Pro (low) | 100 | 100 | 100 | 57 | 100 | 100 | 100 | 100 |
Table S15. Fraction of CAR programs whose # CLASS line is consistent with the task (poly-* for the TC , L and GapL tasks, sharpP-* for the #P tasks).
D.11. Extra-large grids
On the core benchmark the code-producing conditions are within a few points of one another: on gemini-3.6-flash (low) (202 instances) CAR 95% at 1.9k tokens, Code 94% at 1.6k tokens; on gemini-3.8-flash (low) (392 instances) CAR 91% at 1.5k tokens, Code 93% at 1.7k tokens, Perceive+Code 93% at 1.5k tokens; with the image replaced by text (392 instances) TextCAR 98% against Text→Code 96%; on Gemma 4 31B (thinking off) (202 instances) CAR 65% at 1.3k tokens, Code 69% at 0.9k tokens, Perceive+Code 64% at 1.1k tokens; on Gemma 4 31B (thinking on) (17 instances) CAR 94% at 7.6k tokens, Code 94% at 8.1k tokens; on gemini-3.1-pro-preview (low) (202 instances) CAR 88% at 2.4k tokens, Code 86% at 2.5k tokens, Perceive+Code 91% at 2.2k tokens. On the 7×7 to 10×10 grids (answers 10⁵ to 10³⁷; instances shared by all conditions of a configuration) the solved counts are: gemini-3.6-flash (low): Code 9/60, CAR 15/60, Text→Code 53/60, TextCAR 51/60. gemini-3.8-flash (low) (60 instances per condition): 7×7: Visual 0/12, Text 0/12, Code 5/12, Perceive+Code 8/12, CAR 9/12, Text→Code 12/12, TextCAR 12/12; 8×8: Visual 0/18, Text 0/18, Code 1/18, Perceive+Code 5/18, CAR 5/18, Text→Code 17/18, TextCAR 14/18; 9×9: Visual 0/12, Text 0/12, Code 0/12, Perceive+Code 1/12, CAR 0/12, Text→Code 11/12, TextCAR 11/12; 10×10: Visual 0/18, Text 0/18, Code 0/18, Perceive+Code 0/18, CAR 0/18, Text→Code 17/18, TextCAR 17/18; in total Visual 0/60, Text 0/60, Code 6/60, Perceive+Code 14/60, CAR 14/60, Text→Code 57/60, TextCAR 54/60. Gemma 4 31B (thinking off): Visual 0/60, Code 0/60, CAR 0/60, TextCAR 51/60. gemini-3.1-pro-preview (low): Visual 0/59, Code 2/59, CAR 2/59, TextCAR 59/59.
Table S39 reports, for gemini-3.8-flash (low) on the 24 extra-large grids, how often the transcription is exact and how many of the 60 pairs the program then solves. Cutting the image into crops does not help: Zoom-1 transcribes 13/24 grids exactly and solves 31/60 pairs; Zoom-2 transcribes 1/24 grids exactly and solves 2/60 pairs; Zoom-3 transcribes 7/24 grids exactly and solves 14/60 pairs, against 14/60 for CAR from the whole image. The errors are not a matter of resolution. In the whole-image reading 38 of 1384 horizontal edges are missed against 6 of 1393 vertical ones (with 4+3 spurious edges); a horizontal segment whose two row-neighbours are also present is missed 3.8% of the time, other horizontal segments 1.3%, and the corresponding vertical segments 0.8%. Inside the Zoom-2 and Zoom-3 crops the same interior horizontal segments are missed 13.1% of the time (274/2087) and the vertical ones 0.09% (2/2127): zooming in makes the failure worse, not better. Asking for a column-by-column reading keeps the asymmetry (81 horizontal against 15 vertical edges missed), whereas rotating the image by moves it to the edges that are now horizontal on the page (101 of the original vertical edges missed against 27 of the horizontal ones). The failure follows the orientation of the line on the page, not the reading order: it is a property of the visual front end. The two readings are complementary: their union misses 0 of the 2777 true edges and adds 37 spurious ones, so every residual error is a disagreement between the two views. Checking each disputed pair with a crop of the two circles (8.6 checks per grid, 66 tokens each) answers 207/207 of them correctly and makes the transcription exact on 22/24 grids; the programs then solve 43/60 pairs with Text CAR ( 10/12, 14/18, 7/12, 12/18) and 49/60 with Text→Code, against 14/60 from a one-shot reading and 54/60 from the ground-truth text. The same pipeline, unchanged, transfers to other configurations (Table S19): gemini-3.6-flash (low) transcribes 18/24 grids exactly after verification (11/24 one-shot) and solves 40/60 pairs with Text CAR against 15/60 for one-shot CAR and 51/60 from the ground-truth text; gemini-3.1-pro-preview (low) transcribes 15/24 grids exactly after verification (7/24 one-shot) and solves 36/60 pairs with Text CAR against 2/60 for one-shot CAR and 60/60 from the ground-truth text.

Figure S2. Scaling to large grids: exact match against for Visual, Code, Perceive+Code, CAR, Two-view CAR and the text-input code conditions on #ST and #M (#PM at even ), gemini-3.8-flash (low). The shaded region marks the to extension.
| Model | Condition | 7x7 #ST GapL | 7x7 #M #P | 8x8 #ST GapL | 8x8 #PM GapL | 8x8 #M #P | 9x9 #ST GapL | 9x9 #M #P | 10x10 #ST GapL | 10x10 #PM GapL | 10x10 #M #P | tokens |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (low) | Visual→Code | 17 (6) | 67 (6) | 17 (6) | 17 (6) | 0 (6) | 17 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 4.2k |
| Text→Code | 100 (6) | 83 (6) | 83 (6) | 67 (6) | 100 (6) | 67 (6) | 100 (6) | 83 (6) | 100 (6) | 100 (6) | 3.1k | |
| CAR | 100 (6) | 67 (6) | 33 (6) | 33 (6) | 0 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 3.6k | |
| Text CAR | 100 (6) | 100 (6) | 100 (6) | 50 (6) | 100 (6) | 83 (6) | 83 (6) | 100 (6) | 67 (6) | 67 (6) | 2.7k | |
| Gemini 3.8 Flash (low) | Visual CoT | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 5.6k |
| Text CoT | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 4.4k | |
| Visual→Code | 33 (6) | 50 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 4.7k | |
| Text→Code | 100 (6) | 100 (6) | 83 (6) | 100 (6) | 100 (6) | 100 (6) | 83 (6) | 100 (6) | 83 (6) | 100 (6) | 2.2k | |
| Perceive+Code | 83 (6) | 50 (6) | 17 (6) | 33 (6) | 33 (6) | 0 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 3.9k | |
| CAR | 83 (6) | 67 (6) | 17 (6) | 50 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 3.6k | |
| Text CAR | 100 (6) | 100 (6) | 100 (6) | 33 (6) | 100 (6) | 100 (6) | 83 (6) | 100 (6) | 83 (6) | 100 (6) | 2.5k | |
| Gemini 3.8 Flash (high) | Visual CoT | 0 (3) | 0 (5) | 0 (4) | 0 (2) | 0 (4) | 0 (4) | 0 (3) | 0 (4) | 0 (2) | 0 (6) | 40.8k |
| Text CoT | 0 (2) | 0 (5) | 0 (3) | 0 (3) | 0 (3) | 0 (2) | 0 (3) | 0 (1) | 0 (1) | 0 (2) | 45.9k | |
| Gemma 4 31B (no thinking) | Visual CoT | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 3.5k |
| Visual→Code | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 3.5k | |
| CAR | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 2.5k | |
| Text CAR | 100 (6) | 67 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 83 (6) | 100 (6) | 33 (6) | 67 (6) | 3.3k | |
| Gemini 3.1 Pro (low) | Visual CoT | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (5) | 4.5k |
| Visual→Code | 0 (6) | 17 (6) | 0 (6) | 0 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 4.5k | |
| CAR | 17 (6) | 17 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 0 (6) | 4.1k | |
| Text CAR | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 100 (6) | 3.5k |
Table S16. Exact match (%) with instance counts on the to grids, all configurations and conditions run on them.
D.12. Where the transcription fails: orientation and continuity
The errors are not a matter of resolution. In the whole-image reading 38 of 1384 horizontal edges are missed against 6 of 1393 vertical ones (with 4+3 spurious edges); a horizontal segment whose two row-neighbours are also present is missed 3.8% of the time, other horizontal segments 1.3%, and the corresponding vertical segments 0.8%. Inside the Zoom-2 and Zoom-3 crops the same interior horizontal segments are missed 13.1% of the time (274/2087) and the vertical ones 0.09% (2/2127): zooming in makes the failure worse, not better. Asking for a column-by-column reading keeps the asymmetry (81 horizontal against 15 vertical edges missed), whereas rotating the image by 90° moves it to the edges that are now horizontal on the page (101 of the original vertical edges missed against 27 of the horizontal ones). The failure follows the orientation of the line on the page, not the reading order: it is a property of the visual front end. The two readings are complementary: their union misses 0 of the 2777 true edges and adds 37 spurious ones, so every residual error is a disagreement between the two views. Checking each disputed pair with a crop of the two circles (8.6 checks per grid, 66 tokens each) answers 207/207 of them correctly and makes the transcription exact on 22/24 grids; the programs then solve 43/60 pairs with Text CAR ( 10/12, 14/18, 7/12, 12/18) and 49/60 with Text→Code, against 14/60 from a one-shot reading and 54/60 from the ground-truth text.
| Reading | exact grids | missed H | missed V | spurious H | spurious V |
|---|---|---|---|---|---|
| upright, row by row (Zoom-1) | 13/24 | 38/1384 | 6/1393 | 4 | 3 |
| upright, column by column | 9/24 | 81/1384 | 15/1393 | 1 | 4 |
| rotated 90°, row by row | 2/24 | 27/1384 | 101/1393 | 24 | 8 |
| union of upright and rotated | 12/24 | 0/1384 | 0/1393 | 26 | 11 |
| two views + verification | 22/24 | 0 missed | 2 spurious | ||
Table S17. Whole-image transcriptions of the 24 extra-large grids by gemini-3.8-flash (low) under different readings: grids transcribed exactly, true horizontal (H) and vertical (V) edges missed, spurious edges added. Rotated counts refer to the original orientation of the edge (an edge that is horizontal in the drawing is vertical on the rotated page). The last row is the two-view procedure with disputed-pair verification. Counts are over edges, and the edges of one grid are not independent; call- and image-level tests are in Table S38.

Figure S3. The two extra-large grids on which the upright reading (left) and the rotated reading (right) of gemini-3.8-flash (low) miss the most edges. Missed edges come in runs along a line that continues straight through several circles, horizontal on the page for the upright reading and vertical in the drawing (hence horizontal on the rotated page) for the rotated reading; the two readings almost never miss the same edge, which is what the two-view procedure exploits.
| Reading | segment | missed | rate |
|---|---|---|---|
| whole image | horizontal, inside a run | 30/783 | 3.8% |
| whole image | horizontal, other | 8/601 | 1.3% |
| whole image | vertical, inside a run | 6/787 | 0.8% |
| whole image | vertical, other | 0/606 | 0.0% |
| Zoom-2/3 crops | horizontal, inside a run | 274/2087 | 13.1% |
| Zoom-2/3 crops | horizontal, other | 25/1554 | 1.6% |
| Zoom-2/3 crops | vertical, inside a run | 2/2127 | 0.1% |
| Zoom-2/3 crops | vertical, other | 0/1541 | 0.0% |
Table S18. Miss rate of true edges by orientation and context, for the upright whole-image reading and inside the Zoom-2/3 crops (edges whose two circles are fully inside the crop). A segment is inside a run when the two neighbouring segments along the same line are also present, i.e. the line continues straight through both of its endpoints.
| Configuration | grids transcribed exactly | F1 | checks per grid | pairs solved | |||||
|---|---|---|---|---|---|---|---|---|---|
| one shot | two views | + verification | CAR one shot | Two-view CAR | Two-view Code | GT text CAR | |||
| gemini-3.8-flash (low) | 13/24 | 12/24 | 22/24 | 1.000 | 8.6 | 14/60 | 43/60 | 49/60 | 54/60 |
| gemini-3.6-flash (low) | 11/24 | 6/24 | 18/24 | 0.998 | 11.2 | 15/60 | 40/60 | 39/60 | 51/60 |
| gemini-3.1-pro-preview (low) | 7/24 | 1/24 | 15/24 | 0.997 | 8.7 | 2/60 | 36/60 | 35/60 | 60/60 |
Table S19. The two-view pipeline on every configuration it was run on (7×7 to 10×10 grids, 24 grids, 60 (instance, task) pairs). Grids transcribed exactly by the one-shot upright reading, by the union of the upright and rotated readings, and after verification of the disputed pairs; mean edge F1 after verification; verification calls per grid; pairs solved by one-shot CAR (transcription embedded in the program), by Text CAR and Text→Code on the verified list, and by Text CAR on the ground-truth edge list.
D.13. Algorithm choice by instance size
With gemini-3.6-flash (low), Code reaches 94% exact against 55% for Visual on the same 202 instances; 54% of its programs for #ST, #PM, #EC→ compute a determinant or Pfaffian and 22% of its programs for the #P tasks use dynamic programming, the rest enumerate; 3% of programs time out at 60s (5 of the 6 time-outs on #P tasks). With gemini-3.8-flash (low), Code reaches 93% exact against 63% for Visual on the same 392 instances; 62% of its programs for #ST, #PM, #EC→ compute a determinant or Pfaffian and 27% of its programs for the #P tasks use dynamic programming, the rest enumerate; 0% of programs time out at 60s (0 of the 0 time-outs on #P tasks); with text input (Text→Code) the figures are 96%, 64% algebraic and 32% DP, so the algorithm choice is not a perception artefact. With Gemma 4 31B (thinking off), Code reaches 67% exact against 33% for Visual on the same 392 instances; 67% of its programs for #ST, #PM, #EC→ compute a determinant or Pfaffian and 33% of its programs for the #P tasks use dynamic programming, the rest enumerate; 0% of programs time out at 60s (0 of the 0 time-outs on #P tasks). With gemini-3.1-pro-preview (low), Code reaches 86% exact against 58% for Visual on the same 202 instances; 62% of its programs for #ST, #PM, #EC→ compute a determinant or Pfaffian and 27% of its programs for the #P tasks use dynamic programming, the rest enumerate; 0% of programs time out at 60s (0 of the 0 time-outs on #P tasks). For gemini-3.8-flash (low) the share of Code programs that use a dynamic program for #M rises with the instance: 0/6 at 3×3, 1/10 at 3×4, 4/10 at 4×4, 9/10 at 4×5, 10/10 at 5×6 and 10/10 at 6×6, and every program from 7×7 on is a dynamic program (Text→Code: 0/6, 2/10, then 10/10 from 4×4 on). For #ST the programs compute the Kirchhoff determinant at every size (6/6 at 3×3, 4/6 at 10×10), whereas for #PM the Kasteleyn determinant, which needs a planar orientation, is almost never written below 8×8 (0/10 at 6×6) and appears only on the largest grids (3/6 at 10×10); #Paths programs enumerate by depth-first search at every size (1/10 use a DP at 6×6), which is harmless because path counts stay small.
| Condition | Task | method | 3×3 | 3×4 | 4×4 | 4×5 | 5×5 | 5×6 | 6×6 | 7×7 | 8×8 | 9×9 | 10×10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Code | #ST | det. | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 67 |
| Code | #PM | det. | - | 0 | 0 | 0 | - | 0 | 0 | - | 17 | - | 50 |
| Code | #M | DP | 0 | 10 | 40 | 90 | 90 | 100 | 100 | 100 | 100 | 100 | 100 |
| Code | #Paths | DP | 0 | 0 | 0 | 0 | 0 | 0 | 10 | - | - | - | - |
| Text→Code | #ST | det. | 83 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| Text→Code | #PM | det. | - | 0 | 0 | 0 | - | 0 | 10 | - | 67 | - | 83 |
| Text→Code | #M | DP | 0 | 20 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| Text→Code | #Paths | DP | 0 | 0 | 0 | 0 | 0 | 0 | 10 | - | - | - | - |
| CAR | #ST | det. | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| CAR | #PM | det. | - | 10 | 0 | 20 | - | 10 | 40 | - | 67 | - | 83 |
| CAR | #M | DP | 17 | 90 | 80 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| CAR | #Paths | DP | 17 | 30 | 20 | 20 | 0 | 0 | 10 | - | - | - | - |
Table S20. Share (%) of generated programs that use the polynomial algebraic method (det.: Kirchhoff or Kasteleyn determinant, for #ST and #PM) or a memoised/frontier dynamic program (DP, for #M and #Paths), by instance size, for gemini-3.8-flash (low); 6–10 programs per cell.
D.14. Where the errors of the code conditions come from
For gemini-3.8-flash (low) on all grid instances including the large ones, CAR: 101 wrong programs out of 506, of which 53 compute the right answer for a wrongly transcribed graph, 9 compute a wrong answer for the right graph, 13 do both and 26 embed no explicit edge list; Code: 101 wrong programs out of 506, of which 37 compute the right answer for a wrongly transcribed graph, 3 compute a wrong answer for the right graph, 10 do both and 51 embed no explicit edge list; Perceive+Code: 71 wrong programs out of 308, of which 32 compute the right answer for a wrongly transcribed graph, 6 compute a wrong answer for the right graph, 12 do both and 21 embed no explicit edge list. With text input every error is an algorithm error (Text CAR 11 of 12, Text→Code 17 of 17), as it must be. The extractor is conservative: a program whose embedded list disagrees with the truth while its answer is correct is counted as a mismatch, and this happens in 11 of 296 correct Text CAR programs, which bounds the rate at which the “transcription” label could be an artefact of extraction.
| Model | Condition | programs | wrong | transcription | algorithm | both | unscorable | mismatch on correct |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (low) | Visual→Code | 190 | 62 | 11 | 10 | 7 | 34 | 1/128 |
| Text→Code | 60 | 7 | 0 | 6 | 0 | 1 | 0/53 | |
| CAR | 190 | 54 | 18 | 4 | 4 | 28 | 3/136 | |
| Text CAR | 60 | 9 | 1 | 8 | 0 | 0 | 0/51 | |
| Gemini 3.8 Flash (low) | Visual→Code | 506 | 101 | 37 | 3 | 10 | 51 | 6/405 |
| Text→Code | 308 | 17 | 0 | 17 | 0 | 0 | 0/291 | |
| Hint→Code | 130 | 16 | 6 | 5 | 1 | 4 | 0/114 | |
| Perceive+Code | 308 | 71 | 32 | 6 | 12 | 21 | 2/237 | |
| CAR | 506 | 101 | 53 | 9 | 13 | 26 | 40/405 | |
| Gemma 4 31B (no thinking) | Text CAR | 308 | 12 | 0 | 11 | 1 | 0 | 11/296 |
| Visual→Code | 308 | 178 | 49 | 1 | 5 | 123 | 2/130 | |
| Hint→Code | 130 | 65 | 26 | 5 | 6 | 28 | 0/65 | |
| Perceive+Code | 130 | 70 | 49 | 0 | 7 | 14 | 3/60 | |
| CAR | 506 | 315 | 137 | 7 | 23 | 148 | 0/191 | |
| Gemini 3.1 Pro (low) | Text CAR | 60 | 9 | 0 | 7 | 0 | 2 | 0/51 |
| Visual→Code | 190 | 86 | 54 | 0 | 6 | 26 | 1/104 | |
| Perceive+Code | 130 | 19 | 12 | 1 | 0 | 6 | 0/111 | |
| CAR | 190 | 83 | 59 | 0 | 4 | 20 | 1/107 | |
| Text CAR | 60 | 0 | 0 | 0 | 0 | 0 | 0/60 |
Table S21. Attribution of wrong programs on grid instances (all sizes, including the extra-large grids and the held-out tasks). For every program we recover the edge list it embeds and recompute the exact answer for that graph with our reference solvers. “transcription”: the program’s answer is correct for the graph it transcribed, which differs from the truth; “algorithm”: the transcription is exact and the computation is wrong; “both”: neither; “unscorable”: the program embeds no explicit edge list (adjacency dictionaries, prose transcriptions). The last column counts correct programs whose recovered list nevertheless differs from the truth, an upper bound on extraction artefacts.
D.15. CAR on the primary model: per size and held-out tasks
On gemini-3.8-flash (low), Perceive+Code, which keeps the transcription step but drops the classification and routing sentences, reaches 93% on the 392 instances shared with CAR (91%), with an algebraic rate of 66% and a DP rate of 23% against 72% and 41% for CAR; plain Code is at 93%. Text CAR reaches 98% against 91% for CAR on the same 392 instances, so replacing the image by the exact edge list changes the result by +8 points: what separates the conditions is the input the program is run on, not the routing sentences. gemini-3.8-flash (low) (198 instances per condition): CAR 90% overall: 88% #IS, 88% #Dom, 94% #ShortestPaths (DP in 81% of programs); Visual 56% overall: 62% #IS, 15% #Dom, 91% #ShortestPaths; Code 90% overall: 89% #IS, 86% #Dom, 94% #ShortestPaths (DP in 65% of programs). Gemma 4 31B (thinking off) (198 instances per condition): CAR 43% overall: 48% #IS, 36% #Dom, 44% #ShortestPaths (DP in 88% of programs).
| Condition | #CC | #ST | #PM | #EC→ | #M | #Paths | #EC | tokens | |
|---|---|---|---|---|---|---|---|---|---|
| Visual CoT | 100 | 100 | 38 | 70 | 97 | 42 | 39 | 72 | 4.8k |
| Text CoT | 100 | 100 | 42 | 60 | 94 | 35 | 38 | 71 | 3.4k |
| Visual+Hint | 100 | 100 | 45 | 64 | 100 | 41 | 41 | 94 | 5.4k |
| Route, no code | 100 | 100 | 54 | 68 | 94 | 40 | 49 | 69 | 5.0k |
| Visual→Code | 100 | 100 | 92 | 88 | 97 | 83 | 92 | 100 | 1.7k |
| Text→Code | 98 | 100 | 91 | 98 | 94 | 91 | 98 | 100 | 0.9k |
| Hint→Code | 100 | 100 | 86 | 84 | 81 | 89 | 91 | 81 | 1.8k |
| Perceive+Code | 100 | 100 | 88 | 90 | 91 | 88 | 94 | 100 | 1.5k |
| CAR | 95 | 100 | 86 | 76 | 100 | 86 | 92 | 100 | 1.5k |
| Text CAR | 100 | 100 | 98 | 98 | 100 | 98 | 95 | 100 | 1.2k |
Table S22. gemini-3.8-flash (low): exact match per task and mean tokens for the direct, hinted, code and CAR conditions on the full benchmark.
| Model | Condition | #IS#P-c | #Dom#P-c | #ShortestPathsFP | DP/poly route (%) | tokens |
|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual CoT | 62 (66) | 15 (66) | 91 (66) | – | 4.6k |
| Visual→Code | 89 (66) | 86 (66) | 94 (66) | 65 | 1.8k | |
| CAR | 88 (66) | 88 (66) | 94 (66) | 81 | 1.6k | |
| Gemma 4 31B (no thinking) | CAR | 48 (66) | 36 (66) | 44 (66) | 88 | 1.9k |
Table S23. Held-out tasks on the grid drawings (never used while designing the CAR prompt): exact match (%) with instance counts, the fraction of programs that use a dynamic program or polynomial routine, and mean tokens per call.
D.16. CAR and ablations on other models
gemini-3.6-flash (low). Exact match (%) per task and mean tokens per call for every condition run on this configuration (core benchmark only).
| Condition | χ | #CC | #ST | #PM | #EC→ | #M | #Paths | #EC | tokens |
|---|---|---|---|---|---|---|---|---|---|
| Visual CoT | 100 | 100 | 26 | 40 | 94 | 25 | 36 | 56 | 5.9k |
| Text CoT | 98 | 100 | 29 | 60 | 91 | 38 | 29 | 62 | 6.8k |
| Visual→Code | 100 | 100 | 86 | 100 | 94 | 86 | 97 | 100 | 1.6k |
| CAR | 100 | 100 | 94 | 92 | 94 | 86 | 100 | 94 | 1.9k |
gemini-3.8-flash (low). Exact match (%) per task and mean tokens per call for every condition run on this configuration (core benchmark only).
| Condition | χ | #CC | #ST | #PM | #EC→ | #M | #Paths | #EC | tokens |
|---|---|---|---|---|---|---|---|---|---|
| Visual CoT | 100 | 100 | 38 | 70 | 97 | 42 | 39 | 72 | 4.8k |
| Text CoT | 100 | 100 | 42 | 60 | 94 | 35 | 38 | 71 | 3.4k |
| Visual+Hint | 100 | 100 | 45 | 64 | 100 | 41 | 41 | 94 | 5.4k |
| Route, no code | 100 | 100 | 54 | 68 | 94 | 40 | 49 | 69 | 5.0k |
| Visual→Code | 100 | 100 | 92 | 88 | 97 | 83 | 92 | 100 | 1.7k |
| Text→Code | 98 | 100 | 91 | 98 | 94 | 91 | 98 | 100 | 0.9k |
| Hint→Code | 100 | 100 | 86 | 84 | 81 | 89 | 91 | 81 | 1.8k |
| Perceive+Code | 100 | 100 | 88 | 90 | 91 | 88 | 94 | 100 | 1.5k |
| CAR | 95 | 100 | 86 | 76 | 100 | 86 | 92 | 100 | 1.5k |
| Text CAR | 100 | 100 | 98 | 98 | 100 | 98 | 95 | 100 | 1.2k |
Gemma 4 31B (thinking off). Exact match (%) per task and mean tokens per call for every condition run on this configuration (core benchmark only).
| Condition | χ | #CC | #ST | #PM | #EC→ | #M | #Paths | #EC | tokens |
|---|---|---|---|---|---|---|---|---|---|
| Visual CoT | 90 | 95 | 8 | 20 | 34 | 3 | 21 | 41 | 1.8k |
| Text CoT | 90 | 100 | 11 | 28 | 19 | 5 | 20 | 38 | 2.7k |
| Visual→Code | 100 | 98 | 48 | 54 | 91 | 61 | 47 | 81 | 0.9k |
| Hint→Code | 100 | 100 | 49 | 44 | 75 | 51 | 54 | 62 | 1.0k |
| Perceive+Code | 100 | 100 | 49 | 48 | 94 | 46 | 43 | 94 | 1.1k |
| CAR | 100 | 100 | 45 | 40 | 88 | 44 | 41 | 88 | 1.2k |
Gemma 4 31B (thinking on). Exact match (%) per task and mean tokens per call for every condition run on this configuration (core benchmark only).
| Condition | #ST | #PM | #EC→ | #M | #Paths | #EC | tokens |
|---|---|---|---|---|---|---|---|
| Visual CoT | 40 | 67 | 75 | 50 | 67 | 25 | 13.5k |
| Text CoT | 75 | 100 | 67 | 50 | 60 | 50 | 14.0k |
| Visual+Hint | 40 | 67 | 50 | 0 | 100 | 75 | 15.0k |
| Visual→Code | 100 | 100 | 75 | 100 | 100 | 100 | 8.0k |
| CAR | 100 | 100 | 75 | 100 | 80 | 100 | 7.3k |
gemini-3.1-pro-preview (low). Exact match (%) per task and mean tokens per call for every condition run on this configuration (core benchmark only).
| Condition | χ | #CC | #ST | #PM | #EC→ | #M | #Paths | #EC | tokens |
|---|---|---|---|---|---|---|---|---|---|
| Visual CoT | 100 | 100 | 31 | 56 | 88 | 37 | 43 | 69 | 3.9k |
| Text CoT | 100 | 100 | 26 | 60 | 100 | 31 | 40 | 75 | 3.1k |
| Visual→Code | 100 | 100 | 77 | 80 | 100 | 83 | 74 | 100 | 2.5k |
| Perceive+Code | 100 | 100 | 83 | 84 | 100 | 83 | 91 | 100 | 2.2k |
| CAR | 100 | 100 | 86 | 72 | 100 | 86 | 77 | 100 | 2.4k |
D.17. Across model generations
On the 194 instances shared by all generations (gemini-3-flash-preview (low), gemini-3.1-flash-lite (low), gemini-3.5-flash (low), gemini-3.7-flash (low), gemini-3.8-flash (low)), the TC⁰ average goes from 95% to 100%; the L average goes from 100% to 100%; the GapL average goes from 19% to 62%; the #P average goes from 26% to 47%. The answer magnitude at which exact match crosses 50% (Visual, pooled over the GapL and #P tasks of the grid and Eulerian families) is gemini-3-flash-preview (low) 10¹.⁰, gemini-3.1-flash-lite (low) 10⁰.⁴, gemini-3.5-flash (low) 10².⁵, gemini-3.7-flash (low) 10³.², gemini-3.8-flash (low) 10³.². Gemma 4 on its 23 shared instances: Gemma 4 26B-A4B (thinking off) −/−/25/18; Gemma 4 31B (thinking off) −/−/50/27; Gemma 4 31B (thinking on) −/−/58/45 (TC⁰/L/GapL/#P).
Gemini Flash generations (low) and Gemma 4; 22 shared inst.

Figure S4. Class-average exact match (Visual) across model generations and sizes. Each line is a complexity class.
E. Generated code: classifier and examples
Algorithm-family classifier. Programs are labelled by a two-pass rule-based classifier (codeclass.py, released with the code). Pass 1 inspects only executable code: comments and string literals are blanked out with the Python tokenizer, so that a model's commentary about methods it does not use cannot trigger a label. It looks for structural evidence of linear algebra (identifiers or calls such as det, slogdet, linalg, Fraction, Laplacian/Kirchhoff/Bareiss/Pfaffian/Kasteleyn/cofactor, Gaussian elimination or pivoting, the construction M[u] [v] = 1 or = -1, NumPy/SymPy), of dynamic programming (dp, memo, lru_cache/cache, profile, frontier, transfer, states, layer, table, or a for mask, cnt in cur.items() transfer loop), and of explicit enumeration (recursive dfs/backtrack/search functions, visited/used bookkeeping, itertools, bitmask recursion). On the tractable tasks (#ST, #PM, #EC→) algebraic evidence takes precedence over dp; on the #P tasks dp takes precedence over algebraic; enumeration evidence alone gives backtracking. Pass 2 is consulted only when pass 1 finds nothing (typically a hand-written elimination with anonymous loop variables): it applies the same key sets to comments and docstrings, ignoring every sentence that contains a contrast word (unlike, not, instead, rather than, cannot, #P, ...). #CC programs are labelled traversal; programs are local formula if they reference bit-quads or and traversal otherwise; the default label is backtracking. Memoised bitmask recursion counts as . We validated the labeller by hand on three stratified samples of 60 programs each, drawn across configurations, conditions and tasks. The first sample was used to design the rules and ended at 58/60 agreement; a second sample held out from rule design gave 55/60, with all five disagreements on the held-out tasks (#ShortestPaths and #Dom), which led to a per-task rule for #ShortestPaths and an all-subsets-enumeration signal; a third, fresh sample labelled with the final rules gave 60/60. On that third sample a first version of the labeller that matched keywords anywhere in the program, comments included, disagreed with the hand labels on 11 of 60 programs, mostly bitmask enumerations labelled DP and memoised DPs labelled algebraic because a comment mentioned Kasteleyn. A recurring pattern is that a program states a polynomial method (Kasteleyn, BEST, a frontier DP) and implements memoised bitmask recursion or plain enumeration, which is why we report the implemented algorithm, not the stated one. The raw logs also store an algo field written by the earlier keyword classifier (v1); every share in the paper uses the validated classifier, which re-labels each program.
CAR program for #ST (matrix-tree theorem). gemini-3.8-flash (low), instance grid_3x3_0, ground truth 28, program output 28.
CLASS: poly-algebraic
METHOD: Kirchhoff's Matrix Tree Theorem with exact Gaussian elimination
Step 1 (Perceive):
Graph vertices: 0 through 8 arranged in a 3x3 grid.
Transcribed edges:
- Horizontal: (0, 1), (1, 2), (4, 5), (6, 7), (7, 8)
- Vertical: (0, 3), (1, 4), (2, 5), (3, 6), (5, 8)
Step 2 (Classify):
Counting the number of spanning trees in an undirected graph can be solved in polynomial
time using Kirchhoff's Matrix Tree Theorem. The number of spanning trees equals any cofactor
of the Laplacian matrix of the graph, which can be computed via exact fraction-based
Gaussian elimination.
from fractions import Fraction
def count_spanning_trees(): edges = [ (0, 1), (1, 2), (0, 3), (1, 4), (2, 5), (4, 5), (3, 6), (5, 8), (6, 7), (7, 8) ] n = 9
Construct Laplacian matrix
L = [[Fraction(0) for _ in range(n)] for _ in range(n)]
for u, v in edges:
L[u][u] += 1
L[v][v] += 1
L[u][v] -= 1
L[v][u] -= 1
Delete the last row and column to get an (n-1) x (n-1) submatrix
m = n - 1
M = [[L[i][j] for j in range(m)] for i in range(m)]
Compute determinant via Gaussian elimination
det = Fraction(1)
for i in range(m):
# Pivot selection
pivot = i
while pivot < m and M[pivot][i] == 0:
pivot += 1
if pivot == m:
return 0
if pivot != i:
M[i], M[pivot] = M[pivot], M[i]
det = -det
det += M[i][i] pivot_val = M[i][i] for r in range(i + 1, m): factor = M[r][i] / pivot_val for c in range(i, m): M[r][c] -= factor * M[i][c] return int(round(det))
if name == "main": print(count_spanning_trees())
CAR program for #M (frontier dynamic program). gemini-3.8-flash (low), instance grid_7x7_0, ground truth 2098779756141, program output 2098779756141.
CLASS: sharpP-general
METHOD: Frontier transfer-matrix dynamic programming
Step 1: Perceive
The graph is a 7x7 grid graph with some missing edges.
Vertices are labeled 0 to 48: row r in 0..6, col c in 0..6 -> v = 7*r + c.
Let's carefully inspect the horizontal and vertical edges:
Horizontal edges:
Row 0: (0,1), (1,2), (2,3), (3,4), (4,5), (5,6) -> ALL PRESENT
Row 1: (7,8), (8,9), (9,10), (10,11), (11,12), (12,13) -> ALL PRESENT
Row 2: (14,15), (15,16), (16,17), (17,18), (18,19), (19,20) -> ALL PRESENT
Row 3: (21,22), (22,23), (23,24), (24,25), (25,26), (26,27) -> ALL PRESENT
Row 4:
(28,29) - present
(29,30) - present
(30,31) - present
(31,32) - MISSING (gap between 31 and 32)
(32,33) - present
(33,34) - MISSING (gap between 33 and 34)
Row 5:
(35,36) - present
(36,37) - present
(37,38) - present
(38,39) - present
(39,40) - present
(40,41) - MISSING (gap between 40 and 41)
Row 6: (42,43), (43,44), (44,45), (45,46), (46,47), (47,48) -> ALL PRESENT
Vertical edges:
Col 0:
(0,7) - present
(7,14) - present
(14,21) - MISSING (gap between 14 and 21)
(21,28) - present
(28,35) - MISSING (gap between 28 and 35)
(35,42) - present
Col 1:
(1,8) - present
(8,15) - present
(15,22) - present
(22,29) - present
(29,36) - present
(36,43) - present
Col 2:
(2,9) - present
(9,16) - present
(16,23) - present
(23,30) - present
(30,37) - MISSING (gap between 30 and 37)
(37,44) - present
Col 3:
(3,10) - present
(10,17) - present
(17,24) - present
(24,31) - present
(31,38) - MISSING (gap between 31 and 38)
(38,45) - present
Col 4:
(4,11) - present
(11,18) - MISSING (gap between 11 and 18)
(18,25) - present
(25,32) - present
(32,39) - present
(39,46) - present
Col 5:
(5,12) - present
(12,19) - present
(19,26) - present
... [92 more lines]
CAR program for #EC→ (BEST theorem). gemini-3.8-flash (low), instance euler_S_0, ground truth 1, program output 1.
CLASS: poly-algebraic
METHOD: BEST theorem and Directed Matrix-Tree Theorem
Step 1: Perceive
Graph vertices: 0, 1, 2, 3, 4, 5, 6
Directed edges:
0 -> 3
1 -> 4
2 -> 0, 2 -> 5
3 -> 1, 3 -> 2
4 -> 3
5 -> 6
6 -> 2
Step 2: Classify
The problem asks for the number of directed Eulerian circuits (distinct up to cyclic shift).
By the BEST Theorem (de Bruijn, van Aardenne-Ehrenfest, Smith, Tutte),
for an Eulerian directed graph G, the number of Eulerian circuits is:
ec(G) = t_w(G) + \prod_{v \in V} (d^+(v) - 1)!
where t_w(G) is the number of spanning arborescences directed towards any vertex w.
By the Directed Matrix-Tree Theorem, t_w(G) is the determinant of any principal minor
of the Laplacian matrix L = D_out - A.
This admits an exact polynomial-time algorithm using integer determinant computation (Bareiss algorithm).
def determinant_bareiss(mat): n = len(mat) M = [row[:] for row in mat] sign = 1 prev = 1 for k in range(n - 1): if M[k][k] == 0: swap_row = -1 for i in range(k + 1, n): if M[i][k] != 0: swap_row = i break if swap_row == -1: return 0 M[k], M[swap_row] = M[swap_row], M[k] sign = -sign
diag_k = M[k][k] for i in range(k + 1, n): for j in range(k + 1, n): val = M[i][j] * diag_k - M[i][k] * M[k][j] M[i][j] = val // prev prev = diag_k
return sign * M[n - 1][n - 1]
def main(): n = 7 edges = [ (0, 3), (1, 4), (2, 0), (2, 5), (3, 1), (3, 2), (4, 3), (5, 6), (6, 2) ]
out_degree = [0] * n adj = [[0] * n for _ in range(n)] for u, v in edges: adj[u][v] += 1 out_degree[u] += 1 ... [24 more lines]
Code-condition program for #M (enumeration). gemini-3.8-flash (low), instance grid_3x3_0, ground truth 89, program output 89.
def count_matchings(): # Edges identified from the image: # (0, 1), (1, 2) # (0, 3) # (1, 4) # (2, 5) # (3, 6) # (4, 5) # (5, 8) # (6, 7), (7, 8) edges = [ (0, 1), (1, 2), (0, 3), (1, 4), (2, 5), (3, 6), (4, 5), (5, 8), (6, 7), (7, 8) ]
total_matchings = 0
def backtrack(edge_idx, used_vertices): nonlocal total_matchings if edge_idx == len(edges): total_matchings += 1 return
Option 1: Do not include the current edge
backtrack(edge_idx + 1, used_vertices)
Option 2: Include the current edge (if endpoints are free)
u, v = edges[edge_idx]
if u not in used_vertices and v not in used_vertices:
used_vertices.add(u)
used_vertices.add(v)
backtrack(edge_idx + 1, used_vertices)
used_vertices.remove(u)
used_vertices.remove(v)
backtrack(0, set()) print(total_matchings)
if name == "main": count_matchings()
Code-condition program for #ST (enumeration instead of a determinant). gemini-3.1-pro-preview (low), instance grid_3x3_1, ground truth 32, program output 32.
import itertools
edges = [ (0, 1), (1, 2), (3, 4), (4, 5), (6, 7), (7, 8), (0, 3), (3, 6), (2, 5), (5, 8) ]
vertices = set(range(9)) spanning_trees = 0 for tree_edges in itertools.combinations(edges, 8): # Check if the edges form a connected graph adj = {v: [] for v in vertices} for u, v in tree_edges: adj[u].append(v) adj[v].append(u)
BFS or DFS to check connectivity
visited = set()
def dfs(node):
visited.add(node)
for neighbor in adj[node]:
if neighbor not in visited:
dfs(neighbor)
dfs(0) if len(visited) == 9: spanning_trees += 1
print(spanning_trees)
F. Failure cases
Computational error with exact transcription. gemini-3.8-flash (low), grid_5x5_9, #ST: edge F1 = 1.000, ground truth 36844560, answer 111867180. Tail of the response:
To determine the exact number of spanning trees for the given graph, we first extract the set of vertices and edges.
1. Graph Description
The graph is a subgraph of the square grid graph (with vertices numbered to in row-major order: vertex corresponds to row and column ).
By carefully inspecting the grid:
- Missing horizontal edges:
- is absent.
- is absent.
- Missing vertical edges:
- is absent.
All other grid edges are present:
-
Horizontal edges:
-
Row 0: , , ,
-
Row 1: , , ,
-
Row 2: , , ,
-
Row 3: , ,
-
Row 4: , ,
-
Vertical edges:
-
Col 0: , , ,
-
Col 1: , , ,
-
Col 2: , ,
-
Col 3: , , ,
-
Col 4: , , ,
Total number of vertices: . Total number of edges: .
2. Spanning Tree Calculation
Using Kirchhoff's Matrix Tree Theorem, the number of spanning trees is the determinant of any cofactor of the graph Laplacian . Evaluating the cofactor matrix determinant yields:
{"edges": [[0, 1], [1, 2], [2, 3], [3, 4], [5, 6], [6, 7], [7, 8], [8, 9], [10, 11], [11, 12], [12, 13], [13, 14], [16, 17], [17, 18], [18, 19], [20, 21], [21, 22], [23, 24], [0, 5], [5, 10], [10, 15], [15, 20], [1, 6], [6, 11], [11, 16], [16, 21], [7, 12], [12, 17], [17, 22], [3, 8], [8, 13], [13, 18], [18, 23], [4, 9], [9, 14], [14, 19], [19, 24]], "answer": 111867180}
Perceptual error. gemini-3.1-flash-lite (low), grid_5x6_2, #PM: edge F1 = 0.000, ground truth 474, answer 1088. Tail of the response:
...
- So vertex 22 is only connected to 16 and 23.
- Vertex 21 is connected to 15, 20, 27.
- Vertex 28 is connected to 27, 29.
This is a grid graph with 30 vertices. The number of perfect matchings in a grid graph can be calculated using the Kasteleyn formula or by decomposing the graph. Given the specific missing edges (21-22 and 22-28), we can calculate the number of perfect matchings.
Let be the graph. The number of perfect matchings is the permanent of the adjacency matrix, or can be solved via dynamic programming (broken profile DP).
For a 5x6 grid, the number of perfect matchings is 12988.
With the missing edges (21-22 and 22-28), the graph is disconnected from the standard grid.
Actually, vertex 22 has degree 2 (connected to 16 and 23). In any perfect matching, 22 must be matched with either 16 or 23.
Case 1: 22 is matched with 16. Then 23 must be matched with 17 (since 23 is only connected to 17 and 29, and 29 is connected to 28).
Case 2: 22 is matched with 23. Then 16 must be matched with 10 or 15 or 17.
Using computational methods for this specific graph structure:
The graph has 30 vertices.
The number of perfect matchings is 1088.
{"edges": [], "answer": 1088}
Time-out of an enumerating program. Gemma 4 31B (thinking off), grid_10x10_1, #PM: ground truth 1998138121 (10 digits); the program below did not finish in 60s.
import collections
def solve(): # The graph is a 10x10 grid with some edges removed. # Vertices are 0-99. # Row-major order: vertex = r * 10 + c
adj = collections.defaultdict(list)
Horizontal edges
for r in range(10):
for c in range(9):
u, v = r * 10 + c, r * 10 + c + 1
# Check image for horizontal edges
# Row 0: all present
# Row 1: all present
# Row 2: all present
# Row 3: all present
# Row 4: all present
# Row 5: 50-51, 51-52, 52-53, 53-54, 54-55, 55-56, 56-57 (missing), 57-58, 58-59
# Row 6: all present
# Row 7: all present
# Row 8: all present
# Row 9: all present
Looking closer at the image:
# Row 0: 0-1, 1-2, 2-3, 3-4, 4-5, 5-6, 6-7, 7-8, 8-9 (All)
# Row 1: 10-11, 11-12, 12-13, 13-14, 14-15, 15-16, 16-17, 17-18, 18-19 (All)
# Row 2: 20-21, 21-22, 22-23, 23-24, 24-25, 25-26, 26-27, 27-28, 28-29 (All)
# Row 3: 30-31, 31-32, 32-33, 33-34, 34-35, 35-36, 36-37, 37-38, 38-39 (All)
# Row 4: 40-41, 41-42, 42-43, 43-44, 44-45, 45-46, 46-47, 47-48, 48-49 (All)
# Row 5: 50-51, 51-52, 52-53, 53-54, 54-55, 55-56, 56-57 (MISSING), 57-58, 58-59
# Row 6: 60-61, 61-62, 62-63, 63-64, 64-65, 65-66, 66-67, 67-68, 68-69 (All)
# Row 7: 70-71, 71-72, 72-73, 73-74, 74-75, 75-76, 76-77, 77-78, 78-79 (All)
# Row 8: 80-81, 81-82, 82-83, 83-84, 84-85, 85-86, 86-87, 87-88, 88-89 (All)
# Row 9: 90-91, 91-92, 92-93, 93-94, 94-95, 95-96, 96-97, 97-98, 98-99 (All)
if r == 5 and c == 6: continue adj[u].append(v) adj[v].append(u)
Vertical edges
for r in range(9):
for c in range(10):
... [212 more lines]
CAR failure. Gemma 4 31B (thinking off), euler_S_5, #EC: stated class sharpP-general, method Backtracking Search (DFS); ground truth 120; the program printed 240.
Step 1 (Perceive):
Vertices: {0, 1, 2, 3, 4, 5, 6}
Edges:
(0, 1), (0, 2), (0, 3), (0, 4)
(1, 4)
(2, 3), (2, 5), (2, 6)
(3, 4), (3, 6)
(4, 6)
(5, 6)
Step 2 (Classify):
The problem asks for the number of Eulerian circuits in an undirected graph.
First, check if an Eulerian circuit exists: all vertices must have even degree.
deg(0) = 4
deg(1) = 2
deg(2) = 4
deg(3) = 4
deg(4) = 4
deg(5) = 2
deg(6) = 4
All degrees are even, so Eulerian circuits exist.
Counting Eulerian circuits in undirected graphs is #P-complete.
Since the graph is small (11 edges), we can use a backtracking search (DFS)
to find all Eulerian circuits starting from a fixed vertex (e.g., 0).
We then divide by 2 to account for direction (reversal) and
the starting point is fixed, so we don't divide by the number of vertices.
Note: The problem defines circuits that differ only by rotation or reversal as one.
Fixing the start vertex to 0 and dividing by 2 handles this.
CLASS: sharpP-general
METHOD: Backtracking Search (DFS)
import collections
def solve():
Adjacency list
adj = collections.defaultdict(list) edges = [ (0, 1), (0, 2), (0, 3), (0, 4), (1, 4), (2, 3), (2, 5), (2, 6), (3, 4), (3, 6), (4, 6), (5, 6) ]
The image description says (4,6) and (5,6) and (2,6) and (3,6)
Let's re-verify edges from image:
0: 1, 2, 3, 4
1: 0, 4
2: 0, 3, 5, 6
3: 0, 2, 4, 6
4: 0, 1, 3, 6
5: 2, 6
6: 2, 3, 4, 5
Re-listing edges based on visual check:
(0,1), (0,2), (0,3), (0,4) -> 4 edges
(1,4) -> 1 edge
(2,3), (2,5), (2,6) -> 3 edges
... [84 more lines]
G. Compute, cost and reproducibility
API and settings. All calls go through the public Gemini API (generateContent) with temperature 0, the thinking level set per configuration (thinkingLevel MINIMAL/LOW/MEDIUM/HIGH; Gemma: thinking off/on), maxOutputTokens 32,768 (65,536 at HIGH), a 180s request time-out and up to seven retries with exponential back-off on transient errors. Images are PNG at 96 dpi. Generated programs run in a sandbox with CPython 3 and a 60s wall-clock limit; the standard library plus NumPy/SymPy/SciPy/NetworkX are importable, and we record which programs import a non-standard library even though the prompts ask for the standard library only.
Volume. 13,886 scored calls (one per instance, task, condition and configuration; 484 calls failed after retries and were re-issued) between 2026-10-02 and 2026-10-03 (UTC). Token counts are those reported by the API; cost is estimated from the public list prices in force at the time (input / output incl. thinking, USD per million tokens); Gemma models are free of charge through the API.
| Model | calls | prompt tokens | output + thinking tokens | price (in/out) | est. cost (USD) |
|---|---|---|---|---|---|
| gemini-3.8-flash | 5,260 | 5.26M | 32.25M | 0.75 / 3.75 | 124.88 |
| gemini-3.6-flash | 2,816 | 2.65M | 20.55M | 0.50 / 3.00 | 62.96 |
| gemma-4-31b-it | 2,325 | 1.14M | 5.13M | 0.00 / 0.00 | 0.00 |
| gemini-3.1-pro-preview | 1,476 | 1.63M | 9.07M | 2.00 / 12.00 | 112.06 |
| gemma-4-26b-a4b-it | 404 | 0.14M | 2.86M | 0.00 / 0.00 | 0.00 |
| gemini-3.1-flash-lite | 404 | 0.31M | 0.45M | 0.10 / 0.40 | 0.21 |
| gemini-3-flash-preview | 404 | 0.31M | 1.09M | 0.50 / 3.00 | 3.42 |
| gemini-3.5-flash | 404 | 0.31M | 2.70M | 0.30 / 2.50 | 6.83 |
| gemini-3.7-flash | 393 | 0.30M | 1.25M | 0.60 / 3.50 | 4.56 |
| Total | 13,886 | 12.05M | 75.33M | 314.93 |
Reproducibility. The generator, the prompts, the runner, the analysis scripts, the benchmark JSON with all ground truths and the raw per-call records (including full responses and generated programs) will be released. Ground truth is computed by two independent methods per task (§4); the release includes the verification log.
H. Expanded Seeds and Rendering-Style Robustness
To test sample-size stability and rendering-style invariance, we generated 529 additional (instance, task) pairs from fresh seeds (bringing each grid size 3×4 to 6×6 and each binary image size 6×6 to 12×12 from 10 to 25 instances per size, and each Eulerian size bucket from 8 to 16 pairs, for 921 pooled pairs across 320 unique instances; 3×3 grids have only 6 non-isomorphic valid instances) and evaluated eight (model, condition) cells (4232 API calls). In addition, we re-rendered all 106 core grid and binary instances under four alternate visual styles (1 px thin lines with smaller vertex circles, 8 px thick lines, 90° transposed orientation, and 60% resolution on a gray background; 1312 styled pairs) and evaluated gemini-3.8-flash (low) under Visual CoT and Visual→Code (2624 API calls, total spend of this extension $130).
| Family | v2 instances | v3 new instances | pooled | (instance, task) pairs v2 / v3 / pooled |
|---|---|---|---|---|
| Grid drawings (3×3 to 6×6) | 66 | 90 | 156 | |
| Binary images (6×6 to 12×12) | 40 | 60 | 100 | |
| Eulerian twin pairs (S/M/L/XL) | 32 | 32 | 64 | |
| Total | 138 | 182 | 320 | 392 / 529 / 921 |
Table S24. Instance and pair counts in the core slice, the seed expansion, and the pooled benchmark.
| Model | Twin pair | v2 alone (10 per size) | pooled v2 + v3 seeds | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| n | acc_A | acc_B | p | n | acc_A | acc_B | b/c | McNemar p | ||
| Visual CoT | ||||||||||
| Gemini 3.6 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 65 | 26 | 25 | 1 | 155 | 23 | 24 | 16/18 | 0.864 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 26 | 36 | 0.0156 | 156 | 22 | 29 | 5/15 | 0.0414 | |
| same graph: #PM (GapL) vs #M (#P) | 49 | 41 | 20 | 0.00635 | 124 | 42 | 24 | 26/4 | < 10⁻⁴ | |
| same image: χ (TC0) vs #CC (L) | 40 | 100 | 100 | 1 | 100 | 100 | 99 | 1/0 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 94 | 56 | 0.000488 | 64 | 95 | 58 | 24/0 | < 10⁻⁴ | |
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 38 | 42 | 0.549 | 156 | 39 | 39 | 14/14 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 38 | 39 | 1 | 156 | 39 | 36 | 13/8 | 0.383 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 70 | 44 | 0.000244 | 125 | 66 | 44 | 29/2 | < 10⁻⁴ | |
| same image: χ (TC0) vs #CC (L) | 40 | 100 | 100 | 1 | 100 | 100 | 100 | 0/0 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 97 | 72 | 0.00781 | 64 | 98 | 70 | 18/0 | < 10⁻⁴ | |
| Gemini 3.1 Pro (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 31 | 37 | 0.625 | 125 | 24 | 24 | 8/8 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 31 | 43 | 0.125 | 125 | 24 | 33 | 3/14 | 0.0127 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 56 | 32 | 0.0703 | 100 | 48 | 25 | 24/1 | < 10⁻⁴ | |
| same image: χ (TC0) vs #CC (L) | 20 | 100 | 100 | 1 | 80 | 100 | 100 | 0/0 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 16 | 88 | 69 | 0.453 | 48 | 92 | 73 | 12/3 | 0.0352 | |
| Text CoT | ||||||||||
| Gemini 3.6 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 29 | 38 | 0.21 | 156 | 24 | 29 | 14/22 | 0.243 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 29 | 29 | 1 | 156 | 24 | 28 | 10/16 | 0.327 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 60 | 38 | 0.0127 | 125 | 58 | 32 | 37/4 | < 10⁻⁴ | |
| same image: χ (TC0) vs #CC (L) | 40 | 98 | 100 | 1 | 100 | 99 | 100 | 0/1 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 91 | 62 | 0.00391 | 64 | 91 | 69 | 15/1 | 0.000519 | |
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 42 | 35 | 0.227 | 156 | 40 | 29 | 23/6 | 0.00232 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 42 | 38 | 0.549 | 156 | 40 | 31 | 23/10 | 0.0351 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 60 | 34 | 0.000244 | 125 | 58 | 31 | 35/2 | < 10⁻⁴ | |
| same image: χ (TC0) vs #CC (L) | 40 | 100 | 100 | 1 | 100 | 100 | 100 | 0/0 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 31 | 94 | 71 | 0.0156 | 63 | 92 | 73 | 14/2 | 0.00418 | |
| Gemini 3.1 Pro (low) | same graph: #ST (GapL) vs #M (#P) | 35 | 26 | 31 | 0.5 | 125 | 24 | 23 | 7/6 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 26 | 40 | 0.0625 | 125 | 24 | 31 | 5/14 | 0.0636 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 60 | 24 | 0.00391 | 100 | 53 | 24 | 30/1 | < 10⁻⁴ | |
| same image: χ (TC0) vs #CC (L) | 20 | 100 | 100 | 1 | 80 | 100 | 100 | 0/0 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 16 | 100 | 75 | 0.125 | 48 | 98 | 71 | 13/0 | 0.000244 | |
| Visual→Code | ||||||||||
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 92 | 83 | 0.0703 | 156 | 90 | 85 | 14/6 | 0.115 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 92 | 92 | 1 | 156 | 90 | 92 | 7/10 | 0.629 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 88 | 78 | 0.125 | 125 | 84 | 82 | 11/9 | 0.824 | |
| same image: χ (TC0) vs #CC (L) | 40 | 100 | 100 | 1 | 100 | 100 | 100 | 0/0 | 1 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 97 | 100 | 1 | 64 | 98 | 98 | 1/1 | 1 | |
| CAR | ||||||||||
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 86 | 86 | 1 | 156 | 89 | 89 | 8/8 | 1 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 86 | 92 | 0.289 | 156 | 89 | 88 | 10/9 | 1 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 76 | 82 | 0.453 | 125 | 82 | 88 | 4/12 | 0.0768 | |
| same image: χ (TC0) vs #CC (L) | 40 | 95 | 100 | 0.5 | 100 | 95 | 99 | 1/5 | 0.219 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 100 | 100 | 1 | 64 | 100 | 100 | 0/0 | 1 | |
Table S25. Paired same-image twin tests comparing the 10-per-size core slice against the 25-per-size pooled benchmark ( pairs).
| Model | Condition | data | n | odds / decade | class coef. | LR p(class) | m_{50} GapL | m_{50} #P |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | CAR | v2 | 312 | 0.71 | +0.42 | 0.291 | 10^{12.0} | 10^{8.7} |
| pooled | 721 | 0.75 | +0.07 | 0.795 | 10^{13.8} | 10^{9.6} | ||
| Gemini 3.8 Flash (low) | Visual→Code | v2 | 312 | 0.72 | -0.58 | 0.197 | 10^{17.9} | 10^{8.0} |
| pooled | 721 | 0.73 | -0.17 | 0.522 | 10^{15.2} | 10^{8.5} | ||
| Gemini 3.6 Flash (low) | Text CoT | v2 | 312 | 0.43 | -0.41 | 0.172 | 10^{2.9} | 10^{2.4} |
| pooled | 721 | 0.38 | -0.33 | 0.103 | 10^{2.6} | 10^{2.3} | ||
| Gemini 3.8 Flash (low) | Text CoT | v2 | 311 | 0.34 | -0.70 | 0.0367 | 10^{3.5} | 10^{2.7} |
| pooled | 720 | 0.41 | -0.79 | < 10⁻⁴ | 10^{3.5} | 10^{2.5} | ||
| Gemini 3.1 Pro (low) | Text CoT | v2 | 162 | 0.09 | +0.30 | 0.617 | 10^{2.3} | 10^{2.5} |
| pooled | 571 | 0.22 | -0.21 | 0.437 | 10^{2.4} | 10^{2.3} | ||
| Gemini 3.6 Flash (low) | Visual CoT | v2 | 311 | 0.30 | +0.07 | 0.83 | 10^{2.1} | 10^{2.2} |
| pooled | 720 | 0.33 | -0.08 | 0.711 | 10^{2.2} | 10^{2.1} | ||
| Gemini 3.8 Flash (low) | Visual CoT | v2 | 312 | 0.36 | -0.62 | 0.0621 | 10^{3.6} | 10^{3.0} |
| pooled | 721 | 0.42 | -0.75 | 0.000245 | 10^{3.8} | 10^{2.9} | ||
| Gemini 3.1 Pro (low) | Visual CoT | v2 | 162 | 0.26 | +0.31 | 0.526 | 10^{2.5} | 10^{2.7} |
| pooled | 571 | 0.25 | +0.17 | 0.515 | 10^{2.3} | 10^{2.4} |
Table S26. Logistic regression of exact match on and complexity class (GapL vs. #P) on the core vs. pooled samples.
| Model / condition | Style | n | exact (%) | grids | images | transcr. exact (%) | mean F1 | McNemar b/c, p (answer) | McNemar b/c, p (transcription) |
|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low), Visual→Code | original | 328 | 92 | 89 | 100 | – | – | – | |
| thin (1 px, small nodes) | 328 | 98 | 97 | 100 | – | 5/25, 0.000325 | – | ||
| thick (8 px / 4 px) | 328 | 93 | 91 | 99 | – | 11/14, 0.69 | – | ||
| transposed / rotated 90° | 328 | 91 | 89 | 100 | – | 14/13, 1 | – | ||
| 60% size, gray background | 328 | 93 | 91 | 100 | – | 13/17, 0.585 | – | ||
| Gemini 3.8 Flash (low), Visual CoT | original | 328 | 59 | 46 | 100 | 91 | 0.998 | ||
| thin (1 px, small nodes) | 328 | 62 | 50 | 100 | 98 | 1.000 | 10/19, 0.136 | 5/26, 0.000192 | |
| thick (8 px / 4 px) | 328 | 60 | 48 | 100 | 92 | 0.998 | 9/13, 0.523 | 7/11, 0.481 | |
| transposed / rotated 90° | 328 | 59 | 46 | 100 | 94 | 0.999 | 16/16, 1 | 12/22, 0.121 | |
| 60% size, gray background | 328 | 59 | 46 | 100 | 92 | 0.999 | 13/13, 1 | 16/18, 0.864 |
Table S27. Rendering-style robustness across five visual styles on the core grid and binary instances (n = 328 pairs per style).
| Gemini 3.8 Flash (low), Visual→Code | #CC | #ST | #PM | #M | #Paths | |
|---|---|---|---|---|---|---|
| L | GapL | GapL | #P | #P | ||
| original | 100 (40) | 100 (40) | 92 (66) | 88 (50) | 83 (66) | 92 (66) |
| thin (1 px, small nodes) | 100 (40) | 100 (40) | 92 (66) | 98 (50) | 100 (66) | 98 (66) |
| thick (8 px / 4 px) | 98 (40) | 100 (40) | 88 (66) | 90 (50) | 91 (66) | 94 (66) |
| transposed / rotated 90° | 100 (40) | 100 (40) | 88 (66) | 86 (50) | 86 (66) | 94 (66) |
| 60% size, gray background | 100 (40) | 100 (40) | 92 (66) | 86 (50) | 91 (66) | 92 (66) |
| Gemini 3.8 Flash (low), Visual CoT | #CC | #ST | #PM | #M | #Paths | |
| L | GapL | GapL | #P | #P | ||
| original | 100 (40) | 100 (40) | 38 (66) | 70 (50) | 42 (66) | 39 (66) |
| thin (1 px, small nodes) | 100 (40) | 100 (40) | 50 (66) | 68 (50) | 42 (66) | 42 (66) |
| thick (8 px / 4 px) | 100 (40) | 100 (40) | 42 (66) | 66 (50) | 44 (66) | 42 (66) |
| transposed / rotated 90° | 100 (40) | 100 (40) | 44 (66) | 60 (50) | 42 (66) | 41 (66) |
| 60% size, gray background | 100 (40) | 100 (40) | 50 (66) | 62 (50) | 36 (66) | 39 (66) |
Table S28. Per-task exact match (%) across the five rendering styles.
| Model / condition | Style | calls | exact transcr. | missed H / total (%) | missed V / total (%) | extra H | extra V |
|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low), Visual CoT | original | 248 | 219 | 58/3997 (1.5) | 0/3802 (0.0) | 0 | 0 |
| thin (1 px, small nodes) | 247 | 239 | 4/3981 (0.1) | 3/3791 (0.1) | 0 | 2 | |
| thick (8 px / 4 px) | 248 | 223 | 57/3997 (1.4) | 1/3802 (0.0) | 0 | 0 | |
| transposed / rotated 90° | 246 | 228 | 26/3748 (0.7) | 0/3941 (0.0) | 1 | 0 | |
| 60% size, gray background | 248 | 221 | 49/3997 (1.2) | 1/3802 (0.0) | 0 | 0 |
Table S29. Edge-orientation miss rates across the five rendering styles on the core grid drawings. Under the 90° transposed style, the 3,941 originally horizontal edges drop from 56 misses to 0 (b/c = 56/0, McNemar p = 2.8×10⁻¹⁷), while the 3,748 originally vertical edges rise from 0 misses to 26 (b/c = 0/26, p = 3.0×10⁻⁸). These tests treat every edge as an observation although the edges of one image are read in one call; Table S38 repeats them with the call and the image as units.
| Gemini 3.8 Flash (low), Visual CoT | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 [61,100] (6) | – | 100 [61,100] (6) | 100 [61,100] (6) |
| 3x4 | 96 [80,99] (25) | 100 [87,100] (25) | 100 [87,100] (25) | 100 [87,100] (25) |
| 4x4 | 68 [48,83] (25) | 92 [75,98] (25) | 60 [41,77] (25) | 68 [48,83] (25) |
| 4x5 | 48 [30,66] (25) | 88 [70,96] (25) | 60 [41,77] (25) | 32 [17,52] (25) |
| 5x5 | 4 [1,20] (25) | – | 0 [0,13] (25) | 0 [0,13] (25) |
| 5x6 | 4 [1,20] (25) | 36 [20,55] (25) | 0 [0,13] (25) | 0 [0,13] (25) |
| 6x6 | 0 [0,13] (25) | 12 [4,30] (25) | 0 [0,13] (25) | 0 [0,13] (25) |
| Gemini 3.8 Flash (low), Visual CoT | (TC⁰) | #CC (L) | ||
| 6x6 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 8x8 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 10x10 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 12x12 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| Gemini 3.8 Flash (low), Visual CoT | #EC → (GapL) | #EC (#P) | ||
| S | 100 [81,100] (16) | 94 [72,99] (16) | ||
| M | 100 [81,100] (16) | 69 [44,86] (16) | ||
| L | 100 [81,100] (16) | 75 [50,90] (16) | ||
| XL | 94 [72,99] (16) | 44 [23,67] (16) | ||
| Gemini 3.8 Flash (low), Text CoT | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
|---|---|---|---|---|
| 3x3 | 100 [61,100] (6) | – | 100 [61,100] (6) | 100 [61,100] (6) |
| 3x4 | 92 [75,98] (25) | 100 [87,100] (25) | 72 [52,86] (25) | 100 [87,100] (25) |
| 4x4 | 68 [48,83] (25) | 96 [80,99] (25) | 56 [37,73] (25) | 40 [23,59] (25) |
| 4x5 | 56 [37,73] (25) | 84 [65,94] (25) | 28 [14,48] (25) | 24 [12,43] (25) |
| 5x5 | 8 [2,25] (25) | – | 0 [0,13] (25) | 8 [2,25] (25) |
| 5x6 | 0 [0,13] (25) | 8 [2,25] (25) | 0 [0,13] (25) | 0 [0,13] (25) |
| 6x6 | 0 [0,13] (25) | 0 [0,13] (25) | 0 [0,13] (25) | 0 [0,13] (25) |
| Gemini 3.8 Flash (low), Text CoT | (TC) | #CC (L) | ||
| 6x6 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 8x8 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 10x10 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 12x12 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| Gemini 3.8 Flash (low), Text CoT | #EC (GapL) | #EC (#P) | ||
| S | 94 [72,99] (16) | 88 [64,96] (16) | ||
| M | 100 [81,100] (16) | 81 [57,93] (16) | ||
| L | 94 [72,99] (16) | 75 [50,90] (16) | ||
| XL | 81 [57,93] (16) | 47 [25,70] (15) | ||
| Gemini 3.6 Flash (low), Visual CoT | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
| 3x3 | 83 [44,97] (6) | – | 83 [44,97] (6) | 100 [61,100] (6) |
| 3x4 | 76 [57,88] (25) | 96 [80,99] (25) | 60 [41,77] (25) | 96 [80,99] (25) |
| 4x4 | 24 [12,43] (25) | 76 [57,88] (25) | 48 [30,66] (25) | 44 [27,63] (25) |
| 4x5 | 20 [9,39] (25) | 32 [17,52] (25) | 12 [4,31] (24) | 16 [6,35] (25) |
| 5x5 | 0 [0,13] (25) | – | 8 [2,25] (25) | 0 [0,13] (25) |
| 5x6 | 0 [0,13] (25) | 4 [1,20] (25) | 0 [0,13] (25) | 0 [0,13] (25) |
| 6x6 | 0 [0,13] (25) | 0 [0,13] (25) | 0 [0,13] (25) | 0 [0,13] (25) |
| Gemini 3.6 Flash (low), Visual CoT | (TC) | #CC (L) | ||
| 6x6 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 8x8 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| 10x10 | 100 [87,100] (25) | 96 [80,99] (25) | ||
| 12x12 | 100 [87,100] (25) | 100 [87,100] (25) | ||
| Gemini 3.6 Flash (low), Visual CoT | #EC (GapL) | #EC (#P) | ||
| S | 100 [81,100] (16) | 75 [50,90] (16) | ||
| M | 94 [72,99] (16) | 81 [57,93] (16) | ||
| L | 100 [81,100] (16) | 56 [33,77] (16) | ||
| XL | 88 [64,96] (16) | 19 [7,43] (16) | ||
| Gemini 3.1 Pro (low), Visual CoT | #ST (GapL) | #PM (GapL) | #M (#P) | #Paths (#P) |
| 3x3 | 100 [57,100] (5) | – | 100 [57,100] (5) | 100 [57,100] (5) |
| 3x4 | 70 [48,85] (20) | 100 [84,100] (20) | 95 [76,99] (20) | 95 [76,99] (20) |
| 4x4 | 50 [30,70] (20) | 75 [53,89] (20) | 25 [11,47] (20) | 65 [43,82] (20) |
| 4x5 | 5 [1,24] (20) | 60 [39,78] (20) | 5 [1,24] (20) | 20 [8,42] (20) |
| 5x5 | 0 [0,16] (20) | – | 0 [0,16] (20) | 0 [0,16] (20) |
| 5x6 | 0 [0,16] (20) | 5 [1,24] (20) | 0 [0,16] (20) | 0 [0,16] (20) |
| 6x6 | 0 [0,16] (20) | 0 [0,16] (20) | 0 [0,16] (20) | 0 [0,16] (20) |
| Gemini 3.1 Pro (low), Visual CoT | (TC) | #CC (L) | ||
| 6x6 | 100 [84,100] (20) | 100 [84,100] (20) | ||
| 8x8 | 100 [84,100] (20) | 100 [84,100] (20) | ||
| 10x10 | 100 [84,100] (20) | 100 [84,100] (20) | ||
| 12x12 | 100 [84,100] (20) | 100 [84,100] (20) | ||
| Gemini 3.1 Pro (low), Visual CoT | #EC (GapL) | #EC (#P) | ||
| S | 100 [76,100] (12) | 100 [76,100] (12) | ||
| M | 92 [65,99] (12) | 83 [55,95] (12) | ||
| L | 92 [65,99] (12) | 83 [55,95] (12) | ||
| XL | 83 [55,95] (12) | 25 [9,53] (12) |
Table S30. Per-size exact match (%) with Wilson 95% intervals on the pooled 25-per-size benchmark.
| Model | Condition | Task | v2 acc (k/n) | v3 seeds acc (k/n) | Fisher p | pooled acc [95% CI] |
|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | CAR | 95 (38/40) | 95 (57/60) | 1.00 | 95 [89,98] (100) | |
| #CC | 100 (40/40) | 98 (59/60) | 1.00 | 99 [95,100] (100) | ||
| #ST | 86 (57/66) | 91 (82/90) | 0.44 | 89 [83,93] (156) | ||
| #PM | 76 (38/50) | 85 (64/75) | 0.24 | 82 [74,87] (125) | ||
| #EC | 100 (32/32) | 100 (32/32) | 1.00 | 100 [94,100] (64) |
| #M | 86 (57/66) | 91 (82/90) | 0.44 | 89 [83,93] (156) | |
|---|---|---|---|---|---|
| #Paths | 92 (61/66) | 86 (77/90) | 0.21 | 88 [82,93] (156) | |
| #EC | 100 (32/32) | 100 (32/32) | 1.00 | 100 [94,100] (64) | |
| class TC | 95 (38/40) | 95 (57/60) | 1.00 | 95 [89,98] (100) | |
| class L | 100 (40/40) | 98 (59/60) | 1.00 | 99 [95,100] (100) | |
| class GapL | 86 (127/148) | 90 (178/197) | 0.23 | 88 [85,91] (345) | |
| class #P | 91 (150/164) | 90 (191/212) | 0.72 | 91 [87,93] (376) | |
| Gemini 3.8 Flash (low) | Visual→Code | 100 (40/40) | 100 (60/60) | 1.00 | |
| #CC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| #ST | 92 (61/66) | 88 (79/90) | 0.43 | ||
| #PM | 88 (44/50) | 81 (61/75) | 0.46 | ||
| #EC | 97 (31/32) | 100 (32/32) | 1.00 | ||
| #M | 83 (55/66) | 86 (77/90) | 0.82 | ||
| #Paths | 92 (61/66) | 91 (82/90) | 1.00 | ||
| #EC | 100 (32/32) | 97 (31/32) | 1.00 | ||
| class TC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| class L | 100 (40/40) | 100 (60/60) | 1.00 | ||
| class GapL | 92 (136/148) | 87 (172/197) | 0.22 | ||
| class #P | 90 (148/164) | 90 (190/212) | 0.87 | ||
| Gemini 3.6 Flash (low) | Text CoT | 98 (39/40) | 100 (60/60) | 0.40 | |
| #CC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| #ST | 29 (19/66) | 21 (19/90) | 0.35 | ||
| #PM | 60 (30/50) | 57 (43/75) | 0.85 | ||
| #EC | 91 (29/32) | 91 (29/32) | 1.00 | ||
| #M | 38 (25/66) | 23 (21/90) | 0.05 | ||
| #Paths | 29 (19/66) | 28 (25/90) | 1.00 | ||
| #EC | 62 (20/32) | 75 (24/32) | 0.42 | ||
| class TC | 98 (39/40) | 100 (60/60) | 0.40 | ||
| class L | 100 (40/40) | 100 (60/60) | 1.00 | ||
| class GapL | 53 (78/148) | 46 (91/197) | 0.23 | ||
| class #P | 39 (64/164) | 33 (70/212) | 0.23 | ||
| Gemini 3.8 Flash (low) | Text CoT | 100 (40/40) | 100 (60/60) | 1.00 | |
| #CC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| #ST | 42 (28/66) | 38 (34/90) | 0.62 | ||
| #PM | 60 (30/50) | 56 (42/75) | 0.71 | ||
| #EC | 94 (30/32) | 91 (29/32) | 1.00 | ||
| #M | 35 (23/66) | 24 (22/90) | 0.21 | ||
| #Paths | 38 (25/66) | 27 (24/90) | 0.16 | ||
| #EC | 71 (22/31) | 75 (24/32) | 0.78 | ||
| class TC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| class L | 100 (40/40) | 100 (60/60) | 1.00 | ||
| class GapL | 59 (88/148) | 53 (105/197) | 0.27 | ||
| class #P | 43 (70/163) | 33 (70/212) | 0.05 | ||
| Gemini 3.1 Pro (low) | Text CoT | 100 (20/20) | 100 (60/60) | 1.00 | |
| #CC | 100 (20/20) | 100 (60/60) | 1.00 | ||
| #ST | 26 (9/35) | 23 (21/90) | 0.82 | ||
| #PM | 60 (15/25) | 51 (38/75) | 0.49 | ||
| #EC | 100 (16/16) | 97 (31/32) | 1.00 | ||
| #M | 31 (11/35) | 20 (18/90) | 0.24 | ||
| #Paths | 40 (14/35) | 28 (25/90) | 0.20 | ||
| #EC | 75 (12/16) | 69 (22/32) | 0.75 | ||
| class TC | 100 (20/20) | 100 (60/60) | 1.00 | ||
| class L | 100 (20/20) | 100 (60/60) | 1.00 | ||
| class GapL | 53 (40/76) | 46 (90/197) | 0.34 | ||
| class #P | 43 (37/86) | 31 (65/212) | 0.04 | ||
| Gemini 3.6 Flash (low) | Visual CoT | 100 (40/40) | 100 (60/60) | 1.00 | |
| #CC | 100 (40/40) | 98 (59/60) | 1.00 | ||
| #ST | 26 (17/66) | 20 (18/90) | 0.44 | ||
| #PM | 40 (20/50) | 43 (32/75) | 0.85 | ||
| #EC | 94 (30/32) | 97 (31/32) | 1.00 | ||
| #M | 25 (16/65) | 23 (21/90) | 0.85 | ||
| #Paths | 36 (24/66) | 23 (21/90) | 0.11 | ||
| #EC | 56 (18/32) | 59 (19/32) | 1.00 | ||
| class TC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| class L | 100 (40/40) | 98 (59/60) | 1.00 | ||
| class GapL | 45 (67/148) | 41 (81/197) | 0.44 | ||
| class #P | 36 (58/163) | 29 (61/212) | 0.18 | ||
| Gemini 3.8 Flash (low) | Visual CoT | 100 (40/40) | 100 (60/60) | 1.00 | |
| #CC | 100 (40/40) | 100 (60/60) | 1.00 | ||
| #ST | 38 (25/66) | 40 (36/90) | 0.87 | ||
| #PM | 70 (35/50) | 63 (47/75) | 0.45 | ||
| #EC | 97 (31/32) | 100 (32/32) | 1.00 | ||
| #M | 42 (28/66) | 37 (33/90) | 0.51 | ||
| #Paths | 39 (26/66) | 33 (30/90) | 0.50 | ||
| #EC | 72 (23/32) | 69 (22/32) | 1.00 |
| class TC0 | 100 (40/40) | 100 (60/60) | 1.00 | 100 [96,100] (100) | ||
|---|---|---|---|---|---|---|
| class L | 100 (40/40) | 100 (60/60) | 1.00 | 100 [96,100] (100) | ||
| class GapL | 61 (91/148) | 58 (115/197) | 0.58 | 60 [54,65] (345) | ||
| class #P | 47 (77/164) | 40 (85/212) | 0.21 | 43 [38,48] (376) | ||
| Gemini 3.1 Pro (low) | Visual CoT | χ | 100 (20/20) | 100 (60/60) | 1.00 | 100 [95,100] (80) |
| #CC | 100 (20/20) | 100 (60/60) | 1.00 | 100 [95,100] (80) | ||
| #ST | 31 (11/35) | 21 (19/90) | 0.25 | 24 [17,32] (125) | ||
| #PM | 56 (14/25) | 45 (34/75) | 0.37 | 48 [38,58] (100) | ||
| #EC→ | 88 (14/16) | 94 (30/32) | 0.59 | 92 [80,97] (48) | ||
| #M | 37 (13/35) | 19 (17/90) | 0.04 | 24 [17,32] (125) | ||
| #Paths | 43 (15/35) | 29 (26/90) | 0.14 | 33 [25,41] (125) | ||
| #EC | 69 (11/16) | 75 (24/32) | 0.74 | 73 [59,83] (48) | ||
| class TC0 | 100 (20/20) | 100 (60/60) | 1.00 | 100 [95,100] (80) | ||
| class L | 100 (20/20) | 100 (60/60) | 1.00 | 100 [95,100] (80) | ||
| class GapL | 51 (39/76) | 42 (83/197) | 0.18 | 45 [39,51] (273) | ||
| class #P | 45 (39/86) | 32 (67/212) | 0.03 | 36 [30,41] (298) |
Table S31. Task-by-task replication check between the core slice and the fresh seed slice with two-sided Fisher exact p-values and pooled Wilson 95% intervals.
I. Sensitivity analyses and provenance
This appendix collects sensitivity analyses and provenance notes. Every number is recomputed from the raw result files by our analysis scripts, which also write the tables below, Fig. S5 and panel (b) of Fig. 1; apart from a seven-call check of the resolved model versions, none of them issues model calls. Core denotes the 10-per-size slice of the benchmark, pooled the 25-per-size benchmark that adds the fresh-seed slice of §H, and XL the 24 extra-large grids (7×7 to 10×10, 60 pairs). Unless stated otherwise the configuration is gemini-3.8-flash (low). Intervals on paired differences are percentile cluster-bootstrap intervals over images (B = 2000), p-values for paired binary outcomes are exact McNemar tests, and families of tests are adjusted by Holm [25] and by Benjamini–Hochberg [3].
Call counts and provenance. The core-slice result files hold 15,169 lines, of which 14,685 are successful records; 14,678 remain after dropping the aborted gm26_high configuration, a rule our loader applies throughout. The seed-expansion and style files hold 6,874 lines, 18 of them failures, hence 6,856 records. The core-slice and seed-expansion results therefore rest on 21,534 unique scored calls. The compute table of §G counts the 13,886 of these records that lie outside the three held-out tasks; the other 792 are the held-out calls. A pilot file of 281 calls served prompt development and enters no table. We keep a per-file manifest of the result files (sizes, hashes, time stamps, per-model counts). The runner did not log the modelVersion and responseId fields of the API response, so the resolved version behind each public model id during the runs (2 to 4 October 2026, PDT) cannot be recovered from the logs. Queried on 5 October 2026 (PDT) with the same request shape, the API returned a modelVersion equal to the requested id for gemini-3.8-flash (after one 503 retry), gemini-3.6-flash and gemini-3.1-pro-preview, and the model-listing endpoint reported the version strings 3.0, 3.6-flash-07-2026 and 3.1-pro-preview-01-2026; the runner now logs both fields.
Magnitude regression without the extra-large grids. A core fit that includes the 60 extra-large pairs (n = 372 under Visual) mixes the scaling suite into the benchmark proper, so we report both. Table S32 repeats the logistic fit of exact match on log₁₀(answer) and class with and without them, on the core and on the pooled sample, for the two other Gemini models fitted and for the code conditions of the primary model. Dropping the extra-large pairs moves the core class coefficient from −0.56 (p = 0.09) to −0.62 (p = 0.062) under Visual and from −0.65 (p = 0.049) to −0.70 (p = 0.037) under Text, and the m₅₀ gap from 0.5 to 0.6 and from 0.7 to 0.8 decades. On the pooled sample the class term is estimated with a smaller standard error (β = −0.75 ± 0.21, LR p = 2.4 × 10⁻⁴ under Visual; −0.79 ± 0.20, p = 8.1 × 10⁻⁵ under Text) and the gap is 1.0 decade in both conditions, with bootstrap intervals [0.4, 1.5] (Visual) and [0.5, 1.6] (Text) against [−0.1, 1.4] and [0.0, 1.6] on the core. For gemini-3.6-flash and gemini-3.1-pro-preview the class term is not detectable (p ≥ 0.10), and for the code conditions both terms are small because accuracy is near the ceiling. The per-configuration m₅₀ values of Table S4 here and of Table 4 never included the extra-large pairs.
| Data | Cond. | n | odds/decade | (SE) | LR p | GapL | #P | |||
|---|---|---|---|---|---|---|---|---|---|---|
| core, no XL | Visual | 312 | 0.36 | -0.62 (0.33) | 0.062 | 0.6 | ||||
| Text | 311 | 0.34 | -0.70 (0.34) | 0.037 | 0.8 | |||||
| core + XL | Visual | 372 | 0.36 | -0.56 (0.33) | 0.09 | 0.5 | ||||
| Text | 371 | 0.33 | -0.65 (0.33) | 0.049 | 0.7 | |||||
| pooled, no XL | Visual | 721 | 0.42 | -0.75 (0.21) | 1.0 | |||||
| Text | 720 | 0.41 | -0.79 (0.20) | 1.0 | ||||||
| pooled + XL | Visual | 781 | 0.42 | -0.72 (0.21) | 0.9 | |||||
| Text | 780 | 0.41 | -0.77 (0.20) | 1.0 | ||||||
| Gemini 3.6 Flash (low), pooled | Visual | 720 | 0.33 | -0.08 (0.21) | 0.71 | 0.1 | ||||
| Gemini 3.6 Flash (low), pooled | Text | 721 | 0.38 | -0.33 (0.20) | 0.10 | 0.3 | ||||
| Gemini 3.1 Pro (low), pooled | Visual | 571 | 0.25 | +0.17 (0.26) | 0.52 | -0.1 | ||||
| Gemini 3.1 Pro (low), pooled | Text | 571 | 0.22 | -0.21 (0.26) | 0.44 | 0.1 | ||||
| Gemini 3.8 Flash (low), pooled | Visual→Code | 721 | 0.73 | -0.17 (0.27) | 0.52 | 6.7 | ||||
| Gemini 3.8 Flash (low), pooled | CAR | 721 | 0.75 | +0.07 (0.26) | 0.79 | 4.3 |
Table S32. Logistic regression of exact match on and complexity class (#P against GapL), with and without the 60 extra-large pairs, on the core and pooled samples and for other configurations and conditions. odds/decade: multiplicative change in the odds per decade of the answer; : class coefficient with its standard error; LR : likelihood-ratio test of the class term; : answer magnitude at which the fitted probability crosses one half, per class; : their difference in decades.
Fig. S5 plots the two pooled fits of Section 6.1; panel (b) of Fig. 1 repeats its Visual half.

Figure S5. Exact match against the magnitude of the true answer, gemini-3.8-flash (low), Visual (left, ) and Text (right, ), grid and Eulerian families of the pooled sample, extra-large grids excluded. Points: binned rates (Wilson intervals); curves: per-class logistic fits; dashed: . Panel (b) of Fig. 1 shows the Visual half.
Table S33 adds instance covariates to the pooled fit and removes one task at a time. The class term survives , , density and family as regressors (LR under Visual), but it rests on two of the six tasks: without #ST or without #Paths the coefficient changes sign and loses significance ( and 0.36 under Visual; 0.049 and 0.81 under Text), whereas removing #PM or #M makes it larger. Within the grid family alone it remains ( under Visual), within the Eulerian family alone it does not (). Class is nested within task, so a fit with task effects cannot estimate it at all. The pattern says that the class term depends on the joint presence of #ST, whose large answers anchor the magnitude slope, and #Paths, whose small answers predict more success than the models achieve; it does not establish a class effect separate from the tasks that represent each class.
| Term | Visual (n=721) | Text (n=720) | ||
|---|---|---|---|---|
| (SE) | p | (SE) | p | |
| -0.48 (0.08) | -0.36 (0.09) | |||
| #P class | -1.54 (0.27) | -1.84 (0.28) | ||
| n (standardised) | +1.22 (1.76) | 0.49 | +6.48 (2.07) | 0.0018 |
| m (standardised) | -3.39 (1.67) | 0.042 | -9.87 (2.09) | |
| density (standardised) | +0.10 (0.38) | 0.80 | -0.60 (0.28) | 0.033 |
| Eulerian family | -0.54 (0.53) | 0.30 | +1.57 (0.58) | 0.0071 |
| class, LR test in full model | LR = 36.7 | LR = 49.2 | ||
| magnitude, LR test in full model | LR = 39.8 | LR = 16.3 | ||
| class, without #ST | +0.23 (0.26) | 0.37 | +0.52 (0.26) | 0.049 |
| class, without #PM | -1.96 (0.31) | -2.14 (0.31) | ||
| class, without #EC→ | -0.66 (0.21) | 0.0014 | -0.79 (0.21) | |
| class, without #M | -1.65 (0.25) | -1.35 (0.23) | ||
| class, without #Paths | +0.23 (0.25) | 0.36 | +0.06 (0.25) | 0.81 |
| class, without #EC | -0.77 (0.22) | -0.94 (0.21) | ||
| class, grid family only | -0.68 (0.22) | 0.0017 | -0.91 (0.22) | |
| class, Eulerian family only | -1.29 (1.17) | 0.23 | +0.92 (0.82) | 0.25 |
Table S33. Pooled magnitude regression, gemini-3.8-flash (low): coefficients of the full model with instance covariates (n, m and edge density standardised; family indicator), likelihood-ratio tests of the class and magnitude terms in the full model, and the class coefficient of the two-regressor model after leaving out one task or one family.
Table S34 looks inside the images. Among same-graph twin pairs of which exactly one member is solved, the fraction in which the solved member is the #P one is tested against one half (two-sided binomial), by the gap between the two answers. When the two answers lie within a decade of each other the split is even under Visual (14 of 30 discordant pairs favour the #P member) and favours the GapL member under Text (7 of 31); once the #P answer is at least a decade larger the GapL member wins almost always (2 of 47 under Visual, 3 of 51 under Text); and when the #P answer is at least a decade smaller the GapL member is still solved more often (13 of 21 under Visual, p = 0.38; 23 of 33 under Text, p = 0.035). The first two facts are the magnitude effect seen within an image; the third is the #Paths pattern of the previous paragraph.
| gap (#P) − (GapL) | Visual | Text | ||||||
|---|---|---|---|---|---|---|---|---|
| pairs | disc. | #P right | p | pairs | disc. | #P right | p | |
| < -1 | 206 | 21 | 8 | 0.38 | 206 | 33 | 10 | 0.035 |
| [-1, 0) | 62 | 21 | 10 | 1.00 | 62 | 17 | 4 | 0.049 |
| [0, 1) | 69 | 9 | 4 | 1.00 | 69 | 14 | 3 | 0.057 |
| [1, 2) | 42 | 10 | 0 | 0.002 | 42 | 12 | 0 | |
| [2, 4) | 72 | 25 | 2 | 71 | 37 | 3 | ||
| [4, ∞) | 50 | 12 | 0 | 50 | 2 | 0 | 0.50 | |
| all | 501 | 98 | 24 | 500 | 115 | 20 | ||
Table S34. Discordant same-graph twin pairs (exactly one member solved) by the gap , pooled sample, gemini-3.8-flash (low). disc.: discordant pairs; #P right: pairs in which the solved member is the #P one; p: two-sided binomial test against one half.
Twin tests with multiple-comparison control. Table S35 lists the paired tests on the pooled sample for every configuration and condition run on it, with bootstrap intervals and Holm-adjusted p-values within the table. Of the 24 tests in Table 3, 5 are significant at 0.05 before and 2 after Holm correction; of the 153 core tests with at least ten pairs (Tables S7, S8 and S9), 32, 4 after Holm and 14 at BH ; of the 40 pooled tests, 16, 10 and 13; on the fresh-seed slice alone (40 tests) 10, 6 and 10. Every comparison that survives Holm is #PM against #M or #EC→ against #EC. No #ST comparison survives Holm in any sample; the four that pass BH point in both directions (#ST behind #Paths on gemini-3.6-flash at minimal thinking and on gemini-3.1-pro-preview, ahead of #M under Text for the primary model on the pooled sample and on its fresh-seed half).
| Model | Cond. | Twin pair | n | acc_A | acc_B | Δ [95% CI] | b/c | p | Holm p |
|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (low) | Text | same graph: #ST (GapL) vs #M (#P) | 156 | 24 | 29 | -5 [-13, +3] | 14/22 | 0.24 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 156 | 24 | 28 | -4 [-10, +2] | 10/16 | 0.33 | 1.00 | ||
| same graph: #PM (GapL) vs #M (#P) | 125 | 58 | 32 | +26 [+18, +35] | 37/4 | ||||
| same image: vs #CC (L) | 100 | 99 | 100 | -1 [-3, +0] | 0/1 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 64 | 91 | 69 | +22 [+11, +33] | 15/1 | 0.016 | |||
| Gemini 3.6 Flash (low) | Visual | same graph: #ST (GapL) vs #M (#P) | 155 | 23 | 24 | -1 [-9, +6] | 16/18 | 0.86 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 156 | 22 | 29 | -6 [-12, -1] | 5/15 | 0.041 | 1.00 | ||
| same graph: #PM (GapL) vs #M (#P) | 124 | 42 | 24 | +18 [+10, +26] | 26/4 | 0.002 | |||
| same image: vs #CC (L) | 100 | 100 | 99 | +1 [+0, +3] | 1/0 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 64 | 95 | 58 | +38 [+27, +50] | 24/0 | ||||
| Gemini 3.8 Flash (low) | CAR | same graph: #ST (GapL) vs #M (#P) | 156 | 89 | 89 | +0 [-5, +5] | 8/8 | 1.00 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 156 | 89 | 88 | +1 [-5, +6] | 10/9 | 1.00 | 1.00 | ||
| same graph: #PM (GapL) vs #M (#P) | 125 | 82 | 88 | -6 [-13, -1] | 4/12 | 0.077 | 1.00 | ||
| same image: vs #CC (L) | 100 | 95 | 99 | -4 [-9, +1] | 1/5 | 0.22 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 64 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | ||
| Gemini 3.8 Flash (low) | Visual→Code | same graph: #ST (GapL) vs #M (#P) | 156 | 90 | 85 | +5 [-1, +11] | 14/6 | 0.12 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 156 | 90 | 92 | -2 [-7, +3] | 7/10 | 0.63 | 1.00 | ||
| same graph: #PM (GapL) vs #M (#P) | 125 | 84 | 82 | +2 [-6, +9] | 11/9 | 0.82 | 1.00 | ||
| same image: vs #CC (L) | 100 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 64 | 98 | 98 | +0 [-5, +5] | 1/1 | 1.00 | 1.00 | ||
| Gemini 3.8 Flash (low) | Text | same graph: #ST (GapL) vs #M (#P) | 156 | 40 | 29 | +11 [+4, +17] | 23/6 | 0.0023 | 0.069 |
| same graph: #ST (GapL) vs #Paths (#P) | 156 | 40 | 31 | +8 [+1, +15] | 23/10 | 0.035 | 0.95 | ||
| same graph: #PM (GapL) vs #M (#P) | 125 | 58 | 31 | +26 [+18, +34] | 35/2 | ||||
| same image: vs #CC (L) | 100 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 63 | 92 | 73 | +19 [+8, +32] | 14/2 | 0.0042 | 0.12 | ||
| Gemini 3.8 Flash (low) | Visual | same graph: #ST (GapL) vs #M (#P) | 156 | 39 | 39 | +0 [-6, +6] | 14/14 | 1.00 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 156 | 39 | 36 | +3 [-3, +9] | 13/8 | 0.38 | 1.00 | ||
| same graph: #PM (GapL) vs #M (#P) | 125 | 66 | 44 | +22 [+14, +30] | 29/2 | ||||
| same image: vs #CC (L) | 100 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 64 | 98 | 70 | +28 [+17, +39] | 18/0 | ||||
| Gemini 3.1 Pro (low) | Text | same graph: #ST (GapL) vs #M (#P) | 125 | 24 | 23 | +1 [-5, +6] | 7/6 | 1.00 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 125 | 24 | 31 | -7 [-14, -1] | 5/14 | 0.064 | 1.00 | ||
| same graph: #PM (GapL) vs #M (#P) | 100 | 53 | 24 | +29 [+20, +38] | 30/1 | ||||
| same image: vs #CC (L) | 80 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 48 | 98 | 71 | +27 [+15, +40] | 13/0 | 0.0078 | |||
| Gemini 3.1 Pro (low) | Visual | same graph: #ST (GapL) vs #M (#P) | 125 | 24 | 24 | +0 [-6, +6] | 8/8 | 1.00 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 125 | 24 | 33 | -9 [-15, -2] | 3/14 | 0.013 | 0.36 | ||
| same graph: #PM (GapL) vs #M (#P) | 100 | 48 | 25 | +23 [+15, +32] | 24/1 | ||||
| same image: vs #CC (L) | 80 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | ||
| same drawing arrows: #EC (GapL) vs #EC (#P) | 48 | 92 | 73 | +19 [+4, +33] | 12/3 | 0.035 | 0.95 |
Table S35. Paired twin tests on the pooled 25-per-size sample, every configuration and condition run on it. acc_A/acc_B: exact match on the lower-class/higher-class member; [95% CI]: paired difference in points with a cluster-bootstrap interval over images; b/c: pairs solved only by A / only by B; p: exact McNemar; Holm p: adjusted over the 40 tests of this table.
CAR against Code, paired. Table S36 gives the paired comparison of CAR with Visual→Code, and of Text CAR with Text→Code, on the same instances for every configuration on which both were run. On the benchmark proper no Visual comparison on a Gemini model reaches significance, and the pooled estimate for the primary model is -0.7 points [-2.6, +1.3] over 921 pairs. The two significant differences go in opposite directions: Text CAR is ahead of Text→Code by +2.8 points [+0.3, +5.4], and CAR is behind Code on gamma-4-31b-it without thinking by -5.6 points [-10.4, -1.1]. On the extra-large grids CAR is ahead of Code by +13.3 points [+1.5, +27.9] (p = 0.039) for the primary model; Perceive+Code, which has the transcription step but not the routing sentences, reaches the same 14/60, so the step rather than the routing is the plausible cause.
| Data | Model | Pair | n | acc_A | acc_B | Δ [95% CI] | b/c | p |
|---|---|---|---|---|---|---|---|---|
| core | Gemini 3.6 Flash (low) | CAR vs Visual→Code | 202 | 94.6 | 94.1 | +0.5 [-4.0, +4.6] | 10/9 | 1.00 |
| core | Gemini 3.8 Flash (low) | CAR vs Visual→Code | 392 | 90.6 | 92.9 | -2.3 [-5.6, +0.8] | 13/22 | 0.18 |
| core | Gemini 3.8 Flash (low) | Text CAR vs Text→Code | 392 | 98.5 | 95.7 | +2.8 [+0.3, +5.4] | 16/5 | 0.027 |
| core | Gemma 4 31B (no thinking) | CAR vs Visual→Code | 392 | 61.7 | 67.3 | -5.6 [-10.4, -1.1] | 18/40 | 0.0054 |
| core | Gemma 4 31B (thinking) | CAR vs Visual→Code | 17 | 94.1 | 94.1 | +0.0 [-17.6, +16.7] | 1/1 | 1.00 |
| core | Gemini 3.1 Pro (low) | CAR vs Visual→Code | 202 | 87.6 | 86.1 | +1.5 [-2.0, +5.9] | 7/4 | 0.55 |
| pooled | Gemini 3.6 Flash (low) | CAR vs Visual→Code | 202 | 94.6 | 94.1 | +0.5 [-4.0, +4.9] | 10/9 | 1.00 |
| pooled | Gemini 3.8 Flash (low) | CAR vs Visual→Code | 921 | 91.2 | 91.9 | -0.7 [-2.6, +1.3] | 40/46 | 0.59 |
| pooled | Gemini 3.8 Flash (low) | Text CAR vs Text→Code | 392 | 98.5 | 95.7 | +2.8 [+0.5, +5.3] | 16/5 | 0.027 |
| pooled | Gemma 4 31B (no thinking) | CAR vs Visual→Code | 392 | 61.7 | 67.3 | -5.6 [-10.0, -1.3] | 18/40 | 0.0054 |
| pooled | Gemma 4 31B (thinking) | CAR vs Visual→Code | 17 | 94.1 | 94.1 | +0.0 [-16.7, +16.7] | 1/1 | 1.00 |
| pooled | Gemini 3.1 Pro (low) | CAR vs Visual→Code | 202 | 87.6 | 86.1 | +1.5 [-2.0, +5.9] | 7/4 | 0.55 |
| XL grids | Gemini 3.6 Flash (low) | CAR vs Visual→Code | 60 | 25.0 | 15.0 | +10.0 [-1.6, +22.0] | 10/4 | 0.18 |
| XL grids | Gemini 3.6 Flash (low) | Text CAR vs Text→Code | 60 | 85.0 | 88.3 | -3.3 [-15.0, +8.8] | 5/7 | 0.77 |
| XL grids | Gemini 3.8 Flash (low) | CAR vs Visual→Code | 60 | 23.3 | 10.0 | +13.3 [+1.5, +27.9] | 10/2 | 0.039 |
| XL grids | Gemini 3.8 Flash (low) | Text CAR vs Text→Code | 60 | 90.0 | 95.0 | -5.0 [-11.5, +1.8] | 2/5 | 0.45 |
| XL grids | Gemma 4 31B (no thinking) | CAR vs Visual→Code | 60 | 0.0 | 0.0 | +0.0 [+0.0, +0.0] | 0/0 | 1.00 |
| XL grids | Gemini 3.1 Pro (low) | CAR vs Visual→Code | 60 | 3.3 | 3.3 | +0.0 [-6.8, +8.8] | 2/2 | 1.00 |
Table S36. Paired comparison of CAR with the plain code condition on the same instances (acc_A: CAR; acc_B: Code), with cluster-bootstrap intervals over images, discordant counts b/c (solved only by CAR / only by Code) and exact McNemar p-values.
Transcription against computation, re-solved offline. For every program-writing call on a grid instance we extract the edge list the program embeds (the syntactic extractor of §E), compare it with the drawn graph G, and re-solve the task on the embedded graph with the reference solver. Table S37 cross-tabulates transcription exactness with answer correctness on the pooled, core and extra-large grids; for Visual chain of thought the transcription is the one the model writes before counting, scored as in Table 2, and the corresponding pooled counts are 256 exact-and-right, 261 exact-and-wrong, 1 inexact-and-right and 71 inexact-and-wrong over 589 scorable calls. Three facts follow. A CAR program whose embedded graph matches the drawing is right in 99% of pooled scorable calls; when the embedded graph is wrong, the printed answer is exactly the reference answer for in 43 of the 94 cases in which the comparison is possible, and in the others the extracted list is not the graph the program used or the algorithm is wrong as well, which the extractor cannot tell apart. On the extra-large grids all 28 wrong CAR programs embed a wrong graph, 22 of them printing the right answer for it, and none of the 10 exact transcriptions is followed by a wrong answer. For Visual chain of thought the split is the opposite: 79% of the pooled errors follow an exact transcription and is 50%. The decomposition has limits. The extractor leaves 80 of 593 pooled CAR programs and 127 of 593 Code programs unscored (no literal edge list, for instance an adjacency built in a loop), and it flags 44 CAR programs as mismatched although they print the right answer, so mismatch rates are upper bounds. The transcription is produced inside a task-specific call rather than once per image; in the 153 pooled images with at least two scorable CAR transcriptions they are identical across tasks in 95 and differ in the others. Experiment A (next paragraph) collected one task-independent transcription per image; the syntactic extractor exists only for the grid drawings, not for the binary images or the Eulerian drawings.
| Data | Cond. | records | no prog. | unscor. | , right | , wrong | , right | , wrong | exec= | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| pooled | Visual→Code | 593 | 0 | 127 | 409 | 7 | 8 | 42 | 98% | 16% | 39/50 |
| pooled | Perceive+Code | 248 | 0 | 11 | 214 | 3 | 1 | 19 | 99% | 5% | 17/20 |
| pooled | CAR | 593 | 0 | 80 | 414 | 5 | 44 | 50 | 99% | 47% | 43/94 |
| pooled | Text CAR | 248 | 0 | 0 | 233 | 5 | 9 | 1 | 98% | 90% | 0/10 |
| pooled | Text→Code | 248 | 0 | 0 | 234 | 14 | 0 | 0 | 94% | 0% | 0/0 |
| core | Visual→Code | 248 | 0 | 53 | 171 | 0 | 4 | 20 | 100% | 17% | 19/24 |
| core | Perceive+Code | 248 | 0 | 11 | 214 | 3 | 1 | 19 | 99% | 5% | 17/20 |
| core | CAR | 248 | 0 | 32 | 170 | 3 | 18 | 25 | 98% | 42% | 22/43 |
| core | Text CAR | 248 | 0 | 0 | 233 | 5 | 9 | 1 | 98% | 90% | 0/10 |
| core | Text→Code | 248 | 0 | 0 | 234 | 14 | 0 | 0 | 94% | 0% | 0/0 |
| XL grids | Visual→Code | 60 | 0 | 42 | 3 | 1 | 1 | 13 | 75% | 7% | 8/14 |
| XL grids | Perceive+Code | 60 | 0 | 21 | 10 | 3 | 1 | 25 | 77% | 4% | 15/26 |
| XL grids | CAR | 60 | 0 | 22 | 10 | 0 | 0 | 28 | 100% | 0% | 22/28 |
| XL grids | Text CAR | 60 | 0 | 0 | 52 | 6 | 2 | 0 | 90% | 100% | 0/2 |
| XL grids | Text→Code | 60 | 0 | 0 | 57 | 3 | 0 | 0 | 95% | 0% | 0/0 |
Table S37. Transcription exactness against answer correctness for the program-writing conditions on grid instances, gemini-3.8-flash (low). records: calls; no prog.: calls without a program; unscor.: programs without an extractable edge list; the four middle columns split the scorable calls by whether the embedded graph equals the drawn graph and whether the answer is right; the two conditional probabilities follow; exec= : among the calls with and a comparable answer, those whose printed answer equals the reference answer for .
Orientation, tested on calls and images. The edge-level counts of Tables S17 and S29 treat every edge as an observation, but the edges of one grid are read in one call and are not independent. Table S38 repeats the comparison with the call and the image as units, pairing the upright reading with the transposed reading of the same image in the five-style replication of §H (246 paired calls on 66 images) and, on the extra-large grids, the one upright and the one rotated whole-image reading of each grid. The direction of the effect is the same at every level: originally horizontal edges are missed only by the upright reading (27 calls on 11 images against none; over calls, over images) and originally vertical edges only by the transposed reading (17 calls on 8 images; and 0.0078). Overall exactness does not differ between the two readings on the core grids (27 against 18 inexact calls, ), and on the extra-large grids the rotated reading is worse (an edge missed on 22 of 24 grids against 9, ; exact on 2 grids against 13). The second view helps because its misses are independent of the first view's, not because the rotated page is read better.
| Data | Event | unit | upright | transposed | b/c, p |
|---|---|---|---|---|---|
| core grids (v3 styles), 246 calls on 66 images | originally horizontal edge missed | call | 27 | 0 | 27/0, |
| image (any call) | 11 | 0 | 11/0, | ||
| core grids (v3 styles), 246 calls on 66 images | originally vertical edge missed | call | 0 | 17 | 0/17, |
| image (any call) | 0 | 8 | 0/8, 0.0078 | ||
| core grids (v3 styles), 246 calls on 66 images | transcription not exact | call | 27 | 18 | 21/12, 0.16 |
| image (any call) | 11 | 8 | 7/4, 0.55 | ||
| XL grids, one call per grid (24 grids) | horizontal edge missed | grid | 8 | 9 | 5/6, 1.00 |
| XL grids, one call per grid (24 grids) | vertical edge missed | grid | 4 | 22 | 0/18, |
| XL grids, one call per grid (24 grids) | any edge missed | grid | 9 | 22 | 0/13, |
Table S38. Orientation of missed edges with the call, the image or the grid as the unit. Core grids: upright against transposed rendering of the same image, gemini-3.8-flash (low), five-style replication; XL grids: one upright and one rotated whole-image reading per grid. b/c: units with the event under the upright reading only / under the transposed reading only; p: exact McNemar.
Budget slope. Across the 14 configurations of 9 models for which Table S4 reports an , a least-squares fit of on of the mean thinking plus output tokens per call has slope 3.54 (SE 0.65; 95% CI [2.1, 5.0]; ; ); leaving out one configuration at a time keeps the slope between 2.8 and 3.8, and within a family it is 5.6 for gemini-3.8-flash and 2.4 for gemini-3.6-flash (three thinking levels each). The slope is consistent with a procedure whose cost grows with the answer; it does not identify the procedure, and the points are not independent draws, several coming from the same family.
Extra-large grids: full tables. Tables S39 and S40 give the full extra-large-grid results that the main paper summarises.
| Transcription | 7×7 | 8×8 | 9×9 | 10×10 | F1 | tokens | Solved by | 7×7 | 8×8 | 9×9 | 10×10 | total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| one shot, embedded in the program (Visual→Code) | – | – | – | – | – | – | – | 5/12 | 1/18 | 0/12 | 0/18 | 6/60 |
| one shot, embedded in the program (CAR) | – | – | – | – | – | – | – | 9/12 | 5/18 | 0/12 | 0/18 | 14/60 |
| Zoom-1 (1 crop) | 5/6 | 5/6 | 1/6 | 2/6 | 0.991 | 4.6k | Text CAR | 10/12 | 14/18 | 2/12 | 5/18 | 31/60 |
| Text→Code | 8/12 | 11/18 | 1/12 | 5/18 | 25/60 | |||||||
| Zoom-2 (4 crops) | 0/6 | 0/6 | 1/6 | 0/6 | 0.973 | 8.3k | Text CAR | 0/12 | 0/18 | 2/12 | 0/18 | 2/60 |
| Text→Code | 0/12 | 0/18 | 2/12 | 0/18 | 2/60 | |||||||
| Zoom-3 (9 crops) | 2/6 | 4/6 | 1/6 | 0/6 | 0.992 | 14.8k | Text CAR | 3/12 | 9/18 | 2/12 | 0/18 | 14/60 |
| Text→Code | 4/12 | 10/18 | 2/12 | 0/18 | 16/60 | |||||||
| two views, no verification | 6/6 | 3/6 | 0/6 | 0/6 | 0.991 | 9.6k | Text CAR | 9/12 | 8/18 | 0/12 | 0/18 | 17/60 |
| Text→Code | 11/12 | 9/18 | 0/12 | 0/18 | 20/60 | |||||||
| two views + verification | 6/6 | 6/6 | 6/6 | 4/6 | 1.000 | 10.1k | Text CAR | 10/12 | 14/18 | 7/12 | 12/18 | 43/60 |
| Text→Code | 11/12 | 15/18 | 11/12 | 12/18 | 49/60 | |||||||
| ground-truth edge list (reference) | – | – | – | – | 1.000 | 0 | Text CAR | 12/12 | 14/18 | 11/12 | 17/18 | 54/60 |
| – | – | – | – | 1.000 | 0 | Text→Code | 12/12 | 17/18 | 11/12 | 17/18 | 57/60 |
Table S39. Transcription at scale on the 7×7 to 10×10 grids, gemini-3.8-flash (low). Left: grids transcribed exactly (count per size), mean edge F1 and transcription tokens; right: (instance, task) pairs solved when the transcribed list is handed to TextCAR or Text→Code. First rows: whole-image code conditions (transcription embedded in the program); last rows: ground-truth text input as the ceiling. Zoom-k and Two-view are defined in §T.
| Condition | gemini-3.8-flash (low) | 3.6-flash | Gemma | 3.1-pro | ||||
|---|---|---|---|---|---|---|---|---|
| 7×7 | 8×8 | 9×9 | 10×10 | all | (low) | 31B (off) | (low) | |
| Visual CoT | 0/12 | 0/18 | 0/12 | 0/18 | 0/60 | – | 0/60 | 0/59 |
| Text CoT | 0/12 | 0/18 | 0/12 | 0/18 | 0/60 | – | – | – |
| Code | 5/12 | 1/18 | 0/12 | 0/18 | 6/60 | 9/60 | 0/60 | 2/59 |
| Perceive+Code | 8/12 | 5/18 | 1/12 | 0/18 | 14/60 | – | – | – |
| CAR | 9/12 | 5/18 | 0/12 | 0/18 | 14/60 | 15/60 | 0/60 | 2/59 |
| Two-view + Text CAR | 10/12 | 14/18 | 7/12 | 12/18 | 43/60 | 40/60 | – | 36/60 |
| Two-view + Text→Code | 11/12 | 15/18 | 11/12 | 12/18 | 49/60 | 39/60 | – | 35/60 |
| Text→Code (GT list) | 12/12 | 17/18 | 11/12 | 17/18 | 57/60 | 53/60 | – | – |
| TextCAR (GT list) | 12/12 | 14/18 | 11/12 | 17/18 | 54/60 | 51/60 | 51/60 | 59/59 |
Table S40. Extra-large grids (7×7 to 10×10; 24 grids, 60 (instance, task) pairs, answers 10⁵ to 10³⁷): pairs solved exactly, by size for the primary configuration and in total for the others. CoT: chain of thought; GT list: ground-truth edge list as text input; –: not run; in the 3.1-pro column the one-shot and GT-list rows use the 59 pairs on which all of them returned (one Visual call got HTTP 503 on every retry), and the two-view rows all 60. Per-task accuracies with instance counts in Table S16.
Task-independent shared transcription (Experiment A). To separate reading from counting without the syntactic extractor’s gaps, we ran one task-independent transcription call per unique pooled image (384 images: 156 grid drawings, 100 binary images, 64 directed and 64 undirected Eulerian drawings) on gemini-3.8-flash (low) with no task mentioned in the prompt, then solved all 921 pooled (instance, task) pairs from the transcribed structure both with the reference solver () and with the model under the Text-condition prompt (Transcribe → Text; analysis plan fixed before the run). Every API call of Experiments A and B logs modelVersion (gemini-3.8-flash (1741)) and responseId. Table S41 gives the image-level transcription quality: 378 of 384 parsed images (98%) are transcribed with zero structural error (), missing 11 of 9003 edges or black cells overall. Table S42 decomposes every pair into structural perception error (), answer-relevant perception error (), and downstream computation error (). Across the 921 evaluated pairs, the shared transcription is structurally exact on 897 pairs (97%) and answer-exact () on 897 (97%); 1 errors come from perception alone (), 389 from computation alone (), 23 from both (), and 0 exhibit error cancellation ( yet ). Conditional on an answer-exact transcription (), the model’s downstream computation error rate is 43% overall (28% on polynomial tasks vs. 66% on #P-complete tasks). Table S43 compares the two-call Transcribe → Text pipeline against the single-call Visual and Text conditions on the same instances.
| Images | N | parsed | exact | mean F1 | missed | extra | non-lattice | exact pairs: shared / Visual | p |
|---|---|---|---|---|---|---|---|---|---|
| grid drawings | 156 | 156 | 150 (96%) | 0.9993 | 11/5021 | 0 | 0 | 569/521 of 593 | < 10⁻⁴ |
| binary images | 100 | 100 | 100 (100%) | 1.0000 | 0/1962 | 0 | – | 200/200 of 200 | 1 |
| directed Eulerian | 64 | 64 | 64 (100%) | 1.0000 | 0/1010 | 0 | – | 64/64 of 64 | 1 |
| undirected Eulerian | 64 | 64 | 64 (100%) | 1.0000 | 0/1010 | 0 | – | 64/64 of 64 | 1 |
| all images | 384 | 384 | 378 (98%) | 0.9997 | 11/9003 | 0 | 0 | 897/849 of 921 | < 10⁻⁴ |
Table S41. Task-independent transcription quality per unique image across the pooled benchmark (Experiment A, gemini-3.8-flash low). Exact pairs compare the shared image transcription against the per-task Visual-condition transcription on the same pairs.
| Task | pairs | excl. | neither | perc. only | comp. only | both | cancel | Transcribe→Text | Visual | Text | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #ST | 156 | 0 | 150 | 150 | 59 | 0 | 91 | 6 | 0 | 38% | 39% | 40% |
| #PM | 125 | 0 | 119 | 119 | 64 | 1 | 55 | 5 | 0 | 51% | 66% | 58% |
| #EC→ | 64 | 0 | 64 | 64 | 61 | 0 | 3 | 0 | 0 | 95% | 98% | 92% |
| χ | 100 | 0 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 100% | 100% | 100% |
| #CC | 100 | 0 | 100 | 100 | 100 | 0 | 0 | 0 | 0 | 100% | 100% | 100% |
| #M | 156 | 0 | 150 | 150 | 35 | 0 | 115 | 6 | 0 | 22% | 39% | 29% |
| #Paths | 156 | 0 | 150 | 150 | 43 | 0 | 107 | 6 | 0 | 28% | 36% | 31% |
| #EC | 64 | 0 | 64 | 64 | 46 | 0 | 18 | 0 | 0 | 72% | 70% | 73% |
| polynomial | 545 | 0 | 533 | 533 | 384 | 1 | 149 | 11 | 0 | 70% | 74% | 72% |
| #P-complete | 376 | 0 | 364 | 364 | 124 | 0 | 240 | 12 | 0 | 33% | 43% | 37% |
| all pairs | 921 | 0 | 897 | 897 | 508 | 1 | 389 | 23 | 0 | 55% | 62% | 58% |
Table S42. Decomposition of every pooled (instance, task) pair under the shared task-independent transcription (Experiment A, gemini-3.8-flash low). : structurally exact transcription; : reference solver gets the true answer on ; perc. only: , ; comp. only: , ; both: , ; cancel: and .
| Pairs | Comparison | n | acc. A | acc. B | diff | b/c | p | 95% CI |
|---|---|---|---|---|---|---|---|---|
| all pairs | Transcribe→Text vs. Visual | 921 | 55.2 | 61.7 | -6.5 | 28/88 | [-8.8, -4.3] | |
| all pairs | Transcribe→Text vs. Text | 920 | 55.2 | 57.9 | -2.7 | 41/66 | 0.0199 | [-4.9, -0.4] |
| all pairs | Visual vs. Text | 920 | 61.7 | 57.9 | +3.8 | 77/42 | 0.00171 | [+1.6, +6.0] |
| polynomial | Transcribe→Text vs. Visual | 545 | 70.5 | 74.5 | -4.0 | 16/38 | 0.00384 | [-6.5, -1.7] |
| polynomial | Transcribe→Text vs. Text | 545 | 70.5 | 72.1 | -1.7 | 21/30 | 0.262 | [-4.3, +0.9] |
| polynomial | Visual vs. Text | 545 | 74.5 | 72.1 | +2.4 | 37/24 | 0.124 | [-0.4, +5.2] |
| #P-complete | Transcribe→Text vs. Visual | 376 | 33.0 | 43.1 | -10.1 | 12/50 | [-14.6, -5.9] | |
| #P-complete | Transcribe→Text vs. Text | 375 | 33.1 | 37.3 | -4.3 | 20/36 | 0.044 | [-8.4, -0.5] |
| #P-complete | Visual vs. Text | 375 | 43.2 | 37.3 | +5.9 | 40/18 | 0.00535 | [+1.9, +10.1] |
Table S43. Paired comparisons between the two-call Transcribe → Text pipeline, single-call Visual CoT, and single-call Text CoT on the pooled benchmark, with cluster-bootstrap 95% intervals over images and exact McNemar p-values.
Equal-budget upright-twice controls on the extra-large grids (Experiment B, first run). To test whether the two-view gain on the 24 extra-large grids ( to , 60 pairs) comes from taking two readings or specifically from rotating the second view by , we ran two equal-structure controls that replace the upright-plus-rotated pair with two upright readings of each grid, followed by the identical disputed-edge crop verifier and the identical Text CAR and Text→Code solvers (analysis plan fixed before the run): (i) upright×2 with independent sampling (), and (ii) upright×2 with repeated greedy decoding (). Table S44 and Table S45 report the results. The two upright readings miss the same horizontal edges in both passes (10 edges missed by both readings at and 12 at , against 0 for upright plus rotated) and flag far fewer disputed edges for the crop verifier (2.6 and 1.5 per grid vs. 8.6). After verification, upright×2 is exact on 15/24 grids at and 13/24 at , against 22/24 for upright plus rotated ( points, [-50.0, -8.3], for ; points, [-58.3, -12.5], for ), solving 35/60 and 31/60 pairs under Text CAR (33/60 and 28/60 under Text→Code) against 43/60 and 49/60 for two-view. This first run compared calls made on different days (two-view on 2026-10-03, controls on 2026-10-06, UTC), which confounds the comparison with the day; §J reruns all three arms in one session, and the main paper reports that rerun. Table S46 summarises the call, token and dollar accounting for Experiment A and the first run of Experiment B ($15.73 across 1,815 calls).
| Scheme | reads exact | Jaccard | disp./grid | both miss | agree wrong | verifier | exact | mean F1 | miss/extra | Text CAR | Text→Code | calls | USD |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| two-view (upright + rot. 90°, T=0) | 13/2 | 0.934 | 8.6 | 0 | 2 | 207/207 | 22/24 | 0.9997 | 0/2 | 43/60 | 49/60 | 375 | 2.16 |
| upright×2, independent (T=1) | 11/8 | 0.980 | 2.6 | 10 | 6 | 63/63 | 15/24 | 0.9974 | 10/6 | 35/60 | 33/60 | 231 | 1.97 |
| upright×2, repeated (T=0) | 9/8 | 0.988 | 1.5 | 12 | 7 | 37/37 | 13/24 | 0.9968 | 12/7 | 31/60 | 28/60 | 205 | 1.85 |
Table S44. Two-view (upright + rotated 90°) against equal-structure upright×2 controls ( and ) on the 24 extra-large grids ( to , 60 pairs), gemini-3.8-flash (low).
| Control | Quantity | n | control | two-view | diff (pts) | b/c | p | 95% CI |
|---|---|---|---|---|---|---|---|---|
| upright×2, independent (T=1) | exact transcription (24 grids) | 24 | 15 | 22 | −29.2 | 1/8 | 0.0391 | [-50.0, −8.3] |
| upright×2, independent (T=1) | Text CAR solved (60 pairs) | 60 | 35 | 43 | −13.3 | 9/17 | 0.169 | [-37.7, +10.9] |
| upright×2, independent (T=1) | Text→Code solved (60 pairs) | 60 | 33 | 49 | −26.7 | 6/22 | 0.00372 | [-51.6, −1.7] |
| upright×2, repeated (T=0) | exact transcription (24 grids) | 24 | 13 | 22 | −37.5 | 1/10 | 0.0117 | [-58.3, −12.5] |
| upright×2, repeated (T=0) | Text CAR solved (60 pairs) | 60 | 31 | 43 | −20.0 | 6/18 | 0.0227 | [-41.3, +1.5] |
| upright×2, repeated (T=0) | Text→Code solved (60 pairs) | 60 | 28 | 49 | −35.0 | 5/26 | 0.000192 | [-59.6, −10.0] |
Table S45. Paired differences between each upright×2 control and the upright-plus-rotated two-view pipeline on the extra-large grids, with cluster-bootstrap 95% intervals over grids and exact McNemar p-values.
| Phase | calls | ok | input tokens | output tokens (incl. thinking) | USD |
|---|---|---|---|---|---|
| A: transcription (one call per image) | 391 | 384 | 460,183 | 422,075 | 1.93 |
| A: task on G as text | 976 | 921 | 261,654 | 2,609,202 | 9.98 |
| B: upright readings | 105 | 96 | 118,272 | 380,464 | 1.52 |
| B: disputed-pair verification | 100 | 100 | 118,026 | 6,428 | 0.11 |
| B: solving from the verified list | 243 | 240 | 279,720 | 528,022 | 2.19 |
| total | 1815 | 1741 | 1,237,855 | 3,946,191 | 15.73 |
Table S46. API call, token and list-price cost summary for Experiment A and the first run of Experiment B (gemini-3.8-flash low).
Twin tests of Table 3. Table S47 lists the 24 paired tests that Table 3 summarises, with their intervals and raw and Holm-adjusted p-values.
| Model | Twin pair | n | acc_A | acc_B | Δ [95% CI] | b/c | p | Holm p |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | same graph: #ST (GapL) vs #M (#P) | 66 | 38 | 42 | −5 [−14, +5] | 4/7 | 0.55 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 38 | 39 | −2 [−11, +8] | 4/5 | 1.00 | 1.00 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 70 | 44 | +26 [+14, +38] | 13/0 | 0.0059 | ||
| same image: χ (TC⁰) vs #CC (L) | 40 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 97 | 72 | +25 [+12, +41] | 8/0 | 0.0078 | 0.17 | |
| Gemini 3.8 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 20 | 90 | 90 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 21 | 86 | 81 | +5 [+0, +14] | 1/0 | 1.00 | 1.00 | |
| same graph: #PM (GapL) vs #M (#P) | 14 | 93 | 86 | +7 [+0, +21] | 1/0 | 1.00 | 1.00 | |
| same image: χ (TC⁰) vs #CC (L) | 19 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 11 | 100 | 91 | +9 [+0, +27] | 1/0 | 1.00 | 1.00 | |
| Gemini 3.6 Flash (high) | same graph: #ST (GapL) vs #M (#P) | 35 | 51 | 51 | +0 [−14, +14] | 3/3 | 1.00 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 35 | 51 | 49 | +3 [−11, +17] | 4/3 | 1.00 | 1.00 | |
| same graph: #PM (GapL) vs #M (#P) | 25 | 72 | 48 | +24 [+8, +40] | 6/0 | 0.031 | 0.62 | |
| same image: χ (TC⁰) vs #CC (L) | 20 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 16 | 100 | 88 | +12 [+0, +31] | 2/0 | 0.50 | 1.00 | |
| Gemini 3.1 Pro (high) | same graph: #ST (GapL) vs #M (#P) | 20 | 50 | 60 | −10 [−30, +10] | 1/3 | 0.62 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 19 | 53 | 58 | −5 [−21, +11] | 1/2 | 1.00 | 1.00 | |
| same graph: #PM (GapL) vs #M (#P) | 15 | 80 | 53 | +27 [+7, +47] | 4/0 | 0.12 | 1.00 | |
| same image: χ (TC⁰) vs #CC (L) | 12 | 100 | 100 | +0 [+0, +0] | 0/0 | 1.00 | 1.00 | |
| Gemma 4 31B (no thinking) | same graph: #ST (GapL) vs #M (#P) | 66 | 8 | 3 | +5 [−2, +11] | 4/1 | 0.38 | 1.00 |
| same graph: #ST (GapL) vs #Paths (#P) | 66 | 8 | 21 | −14 [−23, −5] | 1/10 | 0.012 | 0.25 | |
| same graph: #PM (GapL) vs #M (#P) | 50 | 20 | 0 | +20 [+10, +32] | 10/0 | 0.002 | 0.045 | |
| same image: χ (TC⁰) vs #CC (L) | 40 | 90 | 95 | −5 [−15, +5] | 1/3 | 0.62 | 1.00 | |
| same drawing ± arrows: #EC → (GapL) vs #EC (#P) | 32 | 34 | 41 | −6 [−19, +6] | 1/3 | 0.62 | 1.00 |
Table S47. Paired same-image twin tests of Table 3 (core slice, Visual, five configurations). acc_A/acc_B: exact match on the lower-class/higher-class member; Δ [95% CI]: paired difference in points with a cluster-bootstrap interval over images; b/c: pairs solved only by A / only by B; p: exact McNemar; Holm p: adjusted over the 24 tests of this table.
Remaining scope limits. Evaluating a model family from another provider, running the full set of conditions on more than 24 extra-large grids for every configuration (§K extends the two-view comparison to fresh grids, and §L the one-shot conditions for four configurations), and isolating stroke width from vertex-circle radius and font size in the thin-line rendering remain for future work.
J. Same-session rerun of Experiment B
Why a rerun. The first run of Experiment B (§I) compared arms whose calls were made on different days: every two-view call on 2026-10-03 (01:32 to 02:22 UTC) and every control call on 2026-10-06 (06:18 to 08:31 UTC). Identical requests do not give identical outcomes across such a gap, and the changes have a direction. Among the pooled pairs whose task-independent transcription reproduces the input exactly (for graphs, in the generator's edge order), the Text prompt sent in Experiment A on 2026-10-06 is byte-identical to the one sent for the Text condition between 2026-10-02 and 2026-10-04, both at temperature 0. Exactness differs on 98 of these 797 pairs (12.3%): 35 are right only on the later date and 63 only on the earlier one (exact McNemar ). The flips come from grid pairs (78 of 534; 25 vs. 53, ) and Eulerian pairs (20 of 63; 10 vs. 10); binary images never flip (0 of 200). A comparison of arms run on different days is therefore confounded with the day.
Design. We reran all three arms of Experiment B on the same 24 grids and 60 pairs, interleaved in one session, with the analysis plan fixed before the first call. Every arm uses fresh calls; nothing is reused from earlier logs. The two-view arm reads the upright image with the row-wise prompt and the image rotated by , both at ; B1 reads the upright image twice with the same row-wise prompt at , and B3 twice at , so the upright reading of the two-view arm and both B3 readings are byte-identical requests. Reads are queued grid by grid in a random order, with the six reading calls of a grid in a random order; the verification and solve jobs of the three arms are shuffled and merged round-robin; failed calls (mostly HTTP 503) are retried in later passes. The crop verifier, the merge rule and the Text CAR and Text→Code solvers are those of the first run. A fourth set of calls sends the two solve prompts built from the ground-truth edge list, twice; these are the prompts any arm sends when its transcription is exact, so they give the solver ceiling and the same-session test-retest rate of byte-identical requests.
Results. The calls ran from 2026-10-07 07:56 UTC to 19:09 UTC (11.2 hours, 1047 responses, every one reporting the model version gemini-3.8-flash;T = 1T = 0T = 1T = 0T = 1T = 0p = 0.0227T = 1T = 0p = 0.000977p = 0.125180^{\circ}$ or mirrored second reading, the rerun shows that a rotated view catches misses which a repeated upright reading shares; it does not show that orthogonality itself is required. §K adds that control on fresh grids.
Test-retest. Sending each ground-truth solve prompt twice in this session changes exactness on 7 of 60 Text CAR pairs (3 vs. 4, ) and on 13 of 60 Text→Code pairs (4 vs. 9, ), 20 of 120 repetitions in all (16.7%). The three byte-identical upright readings at (the first reading of two-view and both B3 readings) never return identical text and give the same cleaned edge set on 11 of 24 grids, disagreeing on 4.2 lattice pairs per grid on average. Differences of a few pairs between two single runs, such as the two runs of the two-view pipeline (43/60 and 49/60 pairs in the first run, 50/60 and 42/60 here, with Text CAR and Text→Code), are of the size of this run-to-run variation.
| Scheme | reads exact | Jaccard | disp./grid | both miss | agree wrong | verifier | exact | mean F1 | miss/extra | Text CAR | Text→Code | calls | USD |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| two-view (upright + rot. 90°, T=0) | 10/2 | 0.931 | 9.0 | 3 | 2 | 216/216 | 21/24 | 0.9994 | 3/2 | 50/60 | 42/60 | 384 | 2.16 |
| upright×2, sampled (T=1) | 9/10 | 0.989 | 1.5 | 11 | 6 | 35/35 | 13/24 | 0.9974 | 11/6 | 30/60 | 26/60 | 203 | 1.89 |
| upright×2, repeated (T=0) | 11/12 | 0.981 | 2.2 | 26 | 5 | 52/52 | 15/24 | 0.9946 | 26/5 | 38/60 | 31/60 | 220 | 1.98 |
Table S48. Same-session rerun of Experiment B on the 24 extra-large grids (60 pairs), gemini-3.8-flash (low), all arms interleaved. reads exact: single readings transcribed exactly (reading 1/reading 2); Jaccard: mean similarity of the two cleaned readings; disp/grid: disputed lattice pairs per grid; both miss: true edges missed by both readings; agree wrong: non-edges reported by both; verifier: correct crop answers; exact: grids transcribed exactly after verification; miss/extra: final missing and extra edges; calls and list-price USD per arm.
| Control | Quantity | n | control | two-view | diff (pts) | b/c | p | 95% CI |
|---|---|---|---|---|---|---|---|---|
| upright×2, sampled (T=1) | exact transcription (24 grids) | 24 | 13 | 21 | −33.3 | 0/8 | 0.00781 | [-54.2, -16.7] |
| upright×2, sampled (T=1) | Text CAR solved (60 pairs) | 60 | 30 | 50 | −33.3 | 0/20 | < 10⁻⁴ | [-52.5, -15.0] |
| upright×2, sampled (T=1) | Text→Code solved (60 pairs) | 60 | 26 | 42 | −26.7 | 5/21 | 0.00249 | [-46.7, -5.5] |
| upright×2, repeated (T=0) | exact transcription (24 grids) | 24 | 15 | 21 | −25.0 | 2/8 | 0.109 | [-50.0, +0.0] |
| upright×2, repeated (T=0) | Text CAR solved (60 pairs) | 60 | 38 | 50 | −20.0 | 6/18 | 0.0227 | [-44.4, +4.8] |
| upright×2, repeated (T=0) | Text→Code solved (60 pairs) | 60 | 31 | 42 | −18.3 | 9/20 | 0.0614 | [-40.7, +4.8] |
Table S49. Same-session rerun: paired differences (control minus two-view, in points) with exact McNemar p-values and 95% bootstrap intervals clustered by grid (B = 2000).
| Scheme | reading 1 miss H/V | reading 2 miss H/V | both miss H/V | final miss H/V | final extra H/V | unresolved |
|---|---|---|---|---|---|---|
| two-view (upright + rot. 90°, T=0) | 40/15 | 36/109 | 2/1 | 2/1 | 2/0 | 0 |
| upright×2, sampled (T=1) | 11/7 | 15/17 | 7/4 | 7/4 | 4/2 | 0 |
| upright×2, repeated (T=0) | 32/4 | 59/4 | 26/0 | 26/0 | 3/2 | 0 |
Table S50. Same-session rerun: missed and extra edges by their orientation in the upright image (H horizontal, V vertical). Reading 2 of two-view is the image rotated by 90°.
| Prompt (same bytes twice) | n | rep. 1 exact | rep. 2 exact | flips b/c | p | different answer |
|---|---|---|---|---|---|---|
| Text CAR on the true structure | 60 | 56 | 57 | 3/4 | 1 | 7 |
| Text→Code on the true structure | 60 | 50 | 55 | 4/9 | 0.267 | 14 |
Table S51. Same-session test-retest: each solve prompt built from the ground-truth edge list, sent twice as byte-identical requests at temperature 0. flips b/c: pairs exact only in repetition 1 / only in repetition 2.
K. Two-view reading on fresh grids
Why. Experiment B and its rerun (§J) use the 24 extra-large development grids, on which the two-view pipeline was built, and their only controls read the upright image twice. They cannot tell whether the gain needs the second view turned by 90°, so that the edges horizontal in one picture are vertical in the other, or only a second view rendered differently from the first. We therefore ran two experiments on grids generated after the pipeline was fixed. B6 made the orientation question primary: upright plus 90° against upright plus 180°. B7, four times larger, made the comparison behind the main-text claim primary: each rotated second view against a repeated upright reading. For both, the plan, the runner and the grid file were hash-recorded before the first call and the analysis script before any result record was read (the logs then held 23 and 75 records, unread); both scripts were run unchanged, and both experiments are reported in full.
Freeze times. Each plan was hash-frozen before its first call. Each analysis script was frozen before any record content was read, in most experiments shortly after the batch had started, when the logs held the counts in Table S52 (only line counts and progress counters were seen, as the freeze files record; R9 was frozen before its first call).
| Exp. | plan frozen | first call | analysis frozen | records at freeze | last call |
|---|---|---|---|---|---|
| B6 | 10-07 20:59:51 | 21:00:00 | 10-07 21:11 | 23 | 10-07 22:47 |
| C503 | 10-07 20:59:51 | 21:00:00 | 10-07 21:11 | 1 | 10-08 21:30 |
| F6 | 10-07 22:43:58 | 23:00:00 | 10-07 23:22 | 11 | 10-09 07:59 |
| T6 | 10-07 23:06:04 | 23:09:30 | 10-08 00:45 | 308 | 10-09 11:46 |
| B7 | 10-07 23:28:10 | 23:28:19 | 10-07 23:35 | 75 | 10-08 03:41 |
| X8 | 10-08 18:11:44 | 18:11:53 | 10-08 18:28 | 183 | 10-09 07:37 |
| D8 | 10-08 19:01:45 | 19:01:47 | 10-08 19:31 | 823 | 10-09 17:51 |
| G9 | 10-09 09:00:34 | 09:01:35 | 10-09 09:12 | 745 | 10-10 05:07 |
| QW | 10-09 22:43:04 | 22:44:31 | 10-09 22:45 | 33 | 10-10 12:19 |
| R9 | 10-11 10:23:39 | 10:24:04 | 10-11 10:23 | 0 | 10-11 11:15 |
Times UTC (2026); first call on the plan-freeze date.
Table S52. Freeze and call times of the pre-registered experiments: B6 and B7 (this appendix), X8 (§L), D8 (§M), T6 (§N), C503 and F6 (§O), G9 (§P), QW (§Q) and R9 (§S). Plan and analysis freeze times come from the freeze files, first and last call from the result logs; records at freeze: the count stated in the freeze file where it gives one, otherwise the records written by then.
Grids, arms and analysis. The fresh grids come from a copy of the development-grid generator with the same acceptance rules, renderer and doubly computed ground truth, and new seeds; an edge set identical to an earlier grid is rejected (none was). B6 has 24 grids, 6 per size from 7×7 to 10×10 (60 pairs, the layout of the development set), and B7 has 96, 24 per size (240 pairs: #ST and #M on every grid, #PM on the grids with an even number of vertices). Every call goes to gemini-3.8-flash at the low thinking level. The arms are two-view as before (upright, then rotated 90° clockwise with the rotated-image prompt); upright plus 180°, whose second picture shows the labels upside down while every segment keeps its orientation, with a prompt that differs from the 90° one only in the sentence describing the rotation; and the upright reading twice at T = 0 (B3 of §J). B6 also repeats the T = 1 control (B1); every other reading is at T = 0, so the four upright T = 0 readings of a grid are byte-identical requests. The crop verifier, the merge rule and the two solvers are those of §J, and the two solve prompts are also sent once on the true edge list (the ceiling). Reads are queued grid by grid in random order, with each grid's reading calls in random order; the verification and solve jobs of the arms are shuffled and merged round-robin; failed calls are retried in later passes. The unit is the grid for transcriptions and the pair for solves; tests are exact two-sided McNemar tests, and intervals are percentile bootstraps over grids. In B6 the primary test is 90° against 180° on final exact transcriptions, with Holm over the four transcription-level comparisons. In B7 the two co-primary tests are 90° against the repeat and 180° against the repeat on final exact transcriptions, with Holm over the two at family-wise level 0.05; 90° against 180° and the six solve-level comparisons (Holm over the six) are secondary. Counts pooled over B6 and B7 are descriptive only, since B6 had been seen when B7 was planned.
Results of B7. The calls ran from 2026-10-07 23:28 UTC to 2026-10-08 03:41 UTC (4.2 hours, 4589 responses, every one reporting the model version gemini-3.8-flash; $29.81 at list prices), and every planned call returned. The only deviation was a correction, made before the analysis was frozen, to the order in which the plan text wrote B6's discordant counts; no rule changed. After verification the 90° and 180° arms are each exact on 86 of 96 grids and the repeat on 57 (Table S53). Both co-primary tests are significant (Table S54): for 90° against the repeat b/c = 30/1, a difference of +30.2 points [+20.8, +39.6] and Holm p = 6.0×10⁻⁸; for 180° against the repeat b/c = 32/3, +30.2 points [+19.8, +40.6] and Holm p = 4.2×10⁻⁷. The two rotations tie (b/c = 6/6, p = 1, interval [-7.3, +7.3]). The solves keep this order: Text CAR solves 195, 203 and 133 of 240 pairs and Text→Code 190, 194 and 128, against a ceiling of 222 and 211; both rotated arms beat the repeat with either solver (Holm p < 10⁻⁴) and do not differ from each other (Holm p = 0.699 and 0.724). No arm solves a pair from an inexact transcription; on the pairs whose transcription is exact, Text CAR solves 195/215, 203/217 and 133/143.
The verifier answers every disputed pair correctly in every arm (968/968, 852/852 and 273/273), so, as in §J, the arms differ in what reaches it. On their own the rotated readings are worse than a second upright one (exact on 8 and 20 grids against 45), but they disagree with the upright reading on 10.1 and 8.9 lattice pairs per grid against 2.8 for the repeat, and the true edges missed by both readings, which the verifier never sees, number 7 and 23 against 113. Single readings miss the edges that are horizontal in their own picture (Table S55): upright readings miss 2.8% of the horizontal and 0.8% of the vertical edges, 90° readings 9.0% of the vertical edges (horizontal in that picture) and 2.9% of the horizontal ones, and 180° readings 8.6% and 3.4%. A 180° view thus errs on the same lattice direction as the upright one, and 23 of the 23 edges both of them miss are horizontal; it still errs on different edges often enough to end exact on as many grids. The gain sits on the two largest sizes (Table S56): at and the repeat is exact on 7 and 7 of 24 grids, the arm on 19 and 19 and the arm on 18 and 22. The four byte-identical upright readings of a grid return identical text on 0 grids and the same cleaned edge set on 26 of 96, disagreeing on 4.7 lattice pairs per grid on average.
Results of B6. The calls ran from 2026-10-07 21:00 UTC to 22:47 UTC (1.8 hours, 1335 responses, model version gemini-3.8-flash in every one; $9.32 at list prices). The only deviation was a higher spending stop for the verification and solve phases, set while the readings were running; grids, arms, prompts and analysis did not change. After verification the 90° arm is exact on 21/24 grids, the 180° arm on 22/24, and the repeats on 17/24 (T = 1) and 17/24 (T = 0) (Table S58). The primary test is null (b/c = 2/3, p = 1; Table S59). Against the T = 0 repeat both rotated arms point the way B7 later confirmed but do not reach significance on 24 grids (b/c = 5/1 and 6/1, Holm p = 0.656 and 0.5). Both readings miss 3 and 1 true edges in the rotated arms against 14 and 15 in the repeats, single readings miss edges by orientation as in B7 (Table S60), and the ceiling is 55/60 with Text CAR and 49/60 with Text→Code.
Reading. Over the 120 fresh grids of both experiments (Table S57; descriptive), the and arms are exact on 107 and 108 grids and the T = 0 repeat on 74. On grids the pipeline was never tuned on, a second reading rendered differently from the first catches most of what one reading misses, whereas a repeated reading misses many of the same edges again; turning the second view by rather than changes how many edges both readings miss, not how many grids end exact. This sharpens the development-grid result of §J, whose controls could not separate the second view from its orientation.
| Scheme | reads exact | Jaccard | disp./grid | both miss | agree wrong | verifier | exact | mean F1 | miss/extra | Text CAR | Text→Code | calls | USD |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| upright + rot. 90° | 47/8 | 0.924 | 10.1 | 7 | 4 | 968/968 | 86/96 | 0.9996 | 7/4 | 195/240 | 190/240 | 1640 | 9.01 |
| upright + rot. 180° | 44/20 | 0.931 | 8.9 | 23 | 2 | 852/852 | 86/96 | 0.9990 | 23/2 | 203/240 | 194/240 | 1524 | 8.59 |
| upright×2 (repeat) | 38/45 | 0.979 | 2.8 | 113 | 7 | 273/273 | 57/96 | 0.9951 | 113/7 | 133/240 | 128/240 | 945 | 7.82 |
| true structure (ceiling) | - | - | - | - | - | - | - | - | - | 222/240 | 211/240 | - | 4.39 |
Table S53. B7 on 96 fresh extra-large grids (7×7 to 10×10, 24 per size, 240 pairs), gemini-3.8-flash (low), all arms interleaved in one session. reads exact: single readings transcribed exactly (reading 1/reading 2); Jaccard: mean similarity of the two cleaned readings; disp./grid: disputed lattice pairs per grid; both miss: true edges missed by both readings; agree wrong: non-edges reported by both; verifier: correct crop answers; exact: grids transcribed exactly after verification; mean F1: final edge F1; miss/extra: final missing and extra edges; Text CAR and Text→Code: pairs solved from the final transcription; calls and list-price USD per arm. True structure: the two solve prompts on the ground-truth edge list (ceiling).
| Comparison | Quantity | role | n | first | second | diff (pts) | b/c | p | Holm p | 95% CI |
|---|---|---|---|---|---|---|---|---|---|---|
| rot. 90° vs repeat | exact transcription (96 grids) | primary | 96 | 86 | 57 | +30.2 | 30/1 | < | < | [+20.8, +39.6] |
| rot. 90° vs repeat | Text CAR solved (240 pairs) | secondary | 240 | 195 | 133 | +25.8 | 74/12 | < | < | [+16.3, +35.9] |
| rot. 90° vs repeat | Text→Code solved (240 pairs) | secondary | 240 | 190 | 128 | +25.8 | 77/15 | < | < | [+16.7, +35.3] |
| rot. 180° vs repeat | exact transcription (96 grids) | primary | 96 | 86 | 57 | +30.2 | 32/3 | < | < | [+19.8, +40.6] |
| rot. 180° vs repeat | Text CAR solved (240 pairs) | secondary | 240 | 203 | 133 | +29.2 | 88/18 | < | < | [+18.2, +40.7] |
| rot. 180° vs repeat | Text→Code solved (240 pairs) | secondary | 240 | 194 | 128 | +27.5 | 87/21 | < | < | [+16.9, +38.5] |
| rot. 90° vs rot. 180° | exact transcription (96 grids) | secondary | 96 | 86 | 86 | +0.0 | 6/6 | 1 | - | [-7.3, +7.3] |
| rot. 90° vs rot. 180° | Text CAR solved (240 pairs) | secondary | 240 | 195 | 203 | -3.3 | 24/32 | 0.35 | 0.699 | [-11.2, +4.9] |
| rot. 90° vs rot. 180° | Text→Code solved (240 pairs) | secondary | 240 | 190 | 194 | -1.7 | 34/38 | 0.724 | 0.724 | [-10.6, +7.5] |
Table S54. B7: paired comparisons. first/second: count for the first/second arm; diff: first minus second, in points; b/c: grids or pairs right only for the first / only for the second arm; exact two-sided McNemar p, printed as when smaller (exact values for the primary tests are in the text); Holm over the two primary tests and, separately, over the six solve-level tests; 95% percentile bootstrap intervals over grids (B = 4000).
| Single reading | readings | exact | missed H / true H | missed V / true V | extra H/V |
|---|---|---|---|---|---|
| upright T=0 | 384 | 174 | 635/22376 | 181/22304 | 29/38 |
| rot. 90° | 96 | 8 | 162/5594 | 500/5576 | 92/51 |
| rot. 180° | 96 | 20 | 483/5594 | 190/5576 | 21/23 |
Table S55. B7: single-reading errors by edge orientation in grid coordinates (H horizontal, V vertical in the upright image), summed over grids. upright T=0: the four byte-identical upright readings of every grid; rot. and rot. : the second readings of the two rotated arms.
| Scheme | 7×7 | 8×8 | 9×9 | 10×10 | all |
|---|---|---|---|---|---|
| upright + rot. 90° | 24/24 | 24/24 | 19/24 | 19/24 | 86/96 |
| upright + rot. 180° | 23/24 | 23/24 | 18/24 | 22/24 | 86/96 |
| upright×2 (repeat) | 21/24 | 22/24 | 7/24 | 7/24 | 57/96 |
Table S56. B7: grids transcribed exactly after verification, by size.
| Exact transcriptions (descriptive) | B6 | B7 | B6+B7 |
|---|---|---|---|
| upright + rot. 90° | 21/24 | 86/96 | 107/120 |
| upright + rot. 180° | 22/24 | 86/96 | 108/120 |
| upright×2 (repeat) | 17/24 | 57/96 | 74/120 |
| rot. 90° vs repeat: b/c | 5/1 | 30/1 | 35/2 |
| rot. 180° vs repeat: b/c | 6/1 | 32/3 | 38/4 |
| rot. 90° vs rot. 180°: b/c | 2/3 | 6/6 | 8/9 |
Table S57. Fresh grids of B6 and B7 together (descriptive; B6 had been seen when B7 was planned): exact transcriptions after verification for the three arms both experiments ran, and discordant counts b/c (first arm right only / second arm right only).
| Scheme | reads exact | Jaccard | disp./grid | both miss | agree wrong | verifier | exact | mean F1 | miss/extra | Text CAR | Text→Code | calls | USD |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| upright + rot. 90° (T=0) | 12/3 | 0.925 | 9.3 | 3 | 1 | 224/224 | 21/24 | 0.9994 | 3/1 | 47/60 | 49/60 | 392 | 2.12 |
| upright + rot. 180° (T=0) | 9/5 | 0.931 | 9.1 | 1 | 1 | 218/218 | 22/24 | 0.9997 | 1/1 | 55/60 | 45/60 | 386 | 2.16 |
| upright×2, sampled (T=1) | 11/11 | 0.984 | 2.2 | 14 | 1 | 52/52 | 17/24 | 0.9974 | 14/1 | 42/60 | 38/60 | 220 | 1.99 |
| upright×2, repeated (T=0) | 12/11 | 0.985 | 2.0 | 15 | 2 | 49/49 | 17/24 | 0.9971 | 15/2 | 41/60 | 37/60 | 217 | 1.93 |
| true structure (ceiling) | – | – | – | – | – | – | – | – | – | 55/60 | 49/60 | – | 1.12 |
Table S58. B6 on 24 fresh extra-large grids (6 per size, 60 pairs), gemini-3.8-flash (low), all arms interleaved in one session; columns as in Table S53. The T = 1 repeat is the B1 control of §J.
| Comparison | Quantity | n | first | second | diff (pts) | b/c | p | Holm p | 95% CI |
|---|---|---|---|---|---|---|---|---|---|
| rot. 90° vs rot. 180° | exact transcription (24 grids) | 24 | 21 | 22 | -4.2 | 2/3 | 1 | 1 | [-20.8, +12.5] |
| rot. 90° vs rot. 180° | Text CAR solved (60 pairs) | 60 | 47 | 55 | -13.3 | 5/13 | 0.0963 | - | [-32.8, +6.6] |
| rot. 90° vs rot. 180° | Text→Code solved (60 pairs) | 60 | 49 | 45 | +6.7 | 13/9 | 0.523 | - | [-13.6, +26.7] |
| rot. 90° vs T=0 repeat | exact transcription (24 grids) | 24 | 21 | 17 | +16.7 | 5/1 | 0.219 | 0.656 | [+0.0, +37.5] |
| rot. 90° vs T=0 repeat | Text CAR solved (60 pairs) | 60 | 47 | 41 | +10.0 | 14/8 | 0.286 | - | [-11.7, +31.3] |
| rot. 90° vs T=0 repeat | Text→Code solved (60 pairs) | 60 | 49 | 37 | +20.0 | 16/4 | 0.0118 | - | [+0.0, +39.0] |
| rot. 90° vs T=1 repeat | exact transcription (24 grids) | 24 | 21 | 17 | +16.7 | 6/2 | 0.289 | 0.656 | [-4.2, +37.5] |
| rot. 90° vs T=1 repeat | Text CAR solved (60 pairs) | 60 | 47 | 42 | +8.3 | 16/11 | 0.442 | - | [-16.1, +34.9] |
| rot. 90° vs T=1 repeat | Text→Code solved (60 pairs) | 60 | 49 | 38 | +18.3 | 17/6 | 0.0347 | - | [-1.9, +39.1] |
| rot. 180° vs T=0 repeat | exact transcription (24 grids) | 24 | 22 | 17 | +20.8 | 6/1 | 0.125 | 0.5 | [+0.0, +41.7] |
| rot. 180° vs T=0 repeat | Text CAR solved (60 pairs) | 60 | 55 | 41 | +23.3 | 16/2 | 0.00131 | - | [+5.1, +42.9] |
| rot. 180° vs T=0 repeat | Text→Code solved (60 pairs) | 60 | 45 | 37 | +13.3 | 17/9 | 0.169 | - | [-8.5, +35.7] |
Table S59. B6: paired comparisons; the primary test is rot. 90° against rot. 180° on exact transcriptions. Columns as in Table S54; Holm over the four transcription-level tests; 95% percentile bootstrap intervals over grids (B = 2000).
| Single reading | readings | exact | missed H / true H | missed V / true V | extra H/V |
|---|---|---|---|---|---|
| upright T=0 | 96 | 44 | 140/5616 | 31/5520 | 10/8 |
| upright T=1 | 48 | 22 | 58/2808 | 16/2760 | 6/2 |
| rot. 90° | 24 | 3 | 30/1404 | 127/1380 | 14/11 |
| rot. 180° | 24 | 5 | 124/1404 | 31/1380 | 5/6 |
Table S60. B6: single-reading errors by edge orientation, as in Table S55; upright T=1: the two readings of the T = 1 repeat.
L. One-shot conditions on fresh extra-large grids
Why. The extra-large results of Section 7.2 (Table S16) come from the 24 development grids and their 60 pairs, the grids on which the two-view pipeline was also built: chain of thought solves none of the pairs, programs written from the exact text solve almost all of them, and from pixels the explicit transcription step of Perceive+Code and CAR solves more pairs than
Visual→Code. B7 (§K) generated 96 fresh grids and measured on them the two-view pipeline and the solver ceiling, but no one-shot condition. X8 runs the seven one-shot conditions of Table S16 on the same 240 pairs. This replicates the extra-large rows on four times as many grids and turns the comparison between the two-view pipeline and a one-shot condition into a paired one, on grids that neither was tuned on. As for B6 and B7, the plan, the runner and the grid file were hash-recorded before the first call, and the analysis script before any result record was read (the logs then held 183 records, unread).
Grids, conditions and analysis. X8 uses the B7 grids unchanged: 96 grids, 24 per size from to , with #ST and #M asked on every grid and #PM on the grids with an even number of vertices, each shown as its upright B7 image. The conditions are Visual CoT, Text CoT, Visual→Code, Perceive+Code, CAR, Text→Code and Text CAR, with the prompts, scoring and code runner of the main experiments unchanged; the image is attached in the four conditions that read pixels. Four configurations run every condition: gemini-3.8-flash at the low thinking level, the primary model, and gemini-3.6-flash (low), gemini-3.1-pro-preview (low) and gemma-4-31b-it (no thinking) as secondary models. We left out the high thinking level of gemini-3.8-flash because many of its extra-large calls in the main runs never returned. The 1,680 calls of a configuration are queued with the seven conditions shuffled and merged round-robin, so that all conditions advance together in one session, and failed calls are retried in later passes. The Text→Code and Text CAR requests of gemini-3.8-flash are byte-identical to the two ceiling requests of B7, which send the same prompts on the true edge list (we checked this on all pairs before launch), so they also measure test-retest across sessions.
The unit is the pair for answers and the grid for transcriptions; paired tests are exact two-sided McNemar tests, and intervals are percentile bootstraps over grids (B = 4000). The two co-primary tests, on gemini-3.8-flash with Holm over the two at family-wise level 0.05, are the two-view pipeline of B7 (Text CAR on the verified two-view transcription) against one-shot CAR from pixels (H1), and one-shot CAR against Visual→Code (H2), which isolates the explicit transcription step. H1 compares calls from two sessions, B7's and X8's, so a drift between sessions of the kind described in §J cannot be excluded; H2 compares calls from one session. Each test uses the pairs on which both arms have a record and is repeated with a missing record scored as not exact. The secondary analyses of gemini-3.8-flash are the exact counts by size and by task for all seven conditions; seven more paired comparisons with Holm over the seven (Perceive+Code against Visual→Code, CAR against Perceive+Code, Text→Code against Visual→Code, Text CAR against CAR, Text CAR against Text→Code, and the two-view pipeline against Text CAR and against Perceive+Code); the exact answers from pixels at and ; where the errors of the pixel conditions come from, decomposed as in Table S21 (the edge list embedded in a program, or the final edge list of a Visual CoT response, against the true one, and among wrong-graph programs those whose answer is the exact count of their own graph); the algorithm families of the programs; the retest against B7's ceiling; and a comparison of each condition on the fresh grids with the development grids (Fisher exact test, descriptive only). For each secondary model we report the counts, the decomposition and three paired comparisons, CAR against Visual→Code, Perceive+Code against Visual→Code and Text CAR against CAR, with Holm over the three.
Results. The calls ran from 2026-10-08 18:11 UTC to 2026-10-09 07:37 UTC (13.4 hours, 6720 responses, model versions gemini-3.1-pro-preview, gemini-3.6-flash, gemini-3.8-flash, gemma-4-31b-it); after the retries no call is without a response, and the list price was $126.20. The fresh grids reproduce the pattern of the extra-large rows of Table S16 (Table S61). Chain of thought solves none of the 240 pairs in any configuration, from pixels or from text. From the exact text gemini-3.8-flash solves 216 pairs with Text→Code and 224 with Text CAR, and gemini-3.1-pro-preview 238 and 240. From pixels gemini-3.8-flash solves 66 with Visual→Code, 55 with Perceive+Code and 53 with CAR.
H1 is supported: the two-view pipeline of B7 is exact on 195 pairs and one-shot CAR on 53 (b/c = 147/5, Holm p = ; Table S63). This test crosses sessions, so the retest matters: the Text CAR and Text→Code requests of X8, byte-identical to the two ceiling requests of B7, are exact on 224 and 216 pairs against 222 and 211 in the B7 session (p = 0.851 and 0.56; Table S65, top), so where the two sessions can be compared they agree. H2 is not supported: one-shot CAR is exact on 53 pairs and Visual→Code on 66 (b/c = 21/34, Holm p = 0.105). On the fresh grids a single explicit transcription step does not beat writing the program directly, and the point estimate goes the other way. No record is missing, so the sensitivity rows repeat the primary ones.
Among the secondary comparisons of gemini-3.8-flash, Perceive+Code does not differ from Visual→Code (b/c = 18/29, Holm p = 0.432), nor CAR from Perceive+Code (22/24, Holm p = 0.883). Giving the program the exact text instead of the picture raises the exact pairs from 66 to 216 (154/4, Holm p = ), and for CAR from 53 to 224 (177/6, Holm p = ). The two-view pipeline recovers most of this gap but not all of it: Text CAR on the true edge list is exact on 41 pairs on which the pipeline is not, and the pipeline on 12 the other way round (Holm p = 0.000327). The decomposition
(Table S64) places the errors from pixels in the reading. Visual CoT ends with the exact edge list in 75 of 240 responses and answers none of them exactly. Among the programs with a wrong embedded edge list whose own graph we could count, 42 of 62 (Visual→Code), 71 of 96 (Perceive+Code) and 71 of 85 (CAR) return the exact count of the graph they wrote down. Only 95 of the 240 Visual→Code programs embed an edge list the extractor can read, so the decomposition covers part of the responses.
The secondary models repeat the pattern. gemini-3.6-flash solves 41, 34 and 43 pairs from pixels (Visual→Code, Perceive+Code, CAR) and 212 and 209 from text. gemini-3.1-pro-preview at low thinking reads the fresh grids worst of the three Gemini models, 13, 12 and 14 pairs from pixels, while it solves 240 of 240 with TextCAR. gemma-4-31b-it without thinking solves no pair from pixels and 202 with TextCAR. For gemini-3.6-flash and gemini-3.1-pro-preview, neither CAR nor Perceive+Code differs from Visual→Code (Holm and 0.698; 1 and 1). Against the development grids (Table S65, bottom; descriptive), one cell differs: Visual→Code of gemini-3.8-flash is exact on 6 of 60 development pairs and on 66 of 240 fresh ones (Fisher ), while CAR and Perceive+Code score as on the development grids (Fisher and 1). The advantage of the explicit transcription step over Visual→Code that Section 7.2 reports on the development grids thus appears to come from a low Visual→Code score there, and it does not carry over to the fresh grids.
| Model | Condition | 7×7 | 8×8 | 9×9 | 10×10 | all | 95% CI (%) | tokens |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 5.4k |
| Text CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 4.2k | |
| Visual→Code | 21/48 | 43/72 | 2/48 | 0/72 | 66/240 | [20, 35] | 4.6k | |
| Perceive+Code | 20/48 | 33/72 | 2/48 | 0/72 | 55/240 | [16, 30] | 3.7k | |
| CAR | 18/48 | 32/72 | 3/48 | 0/72 | 53/240 | [16, 29] | 3.3k | |
| Text→Code | 45/48 | 66/72 | 42/48 | 63/72 | 216/240 | [86, 94] | 2.1k | |
| Text CAR | 46/48 | 65/72 | 45/48 | 68/72 | 224/240 | [90, 96] | 2.3k | |
| Gemini 3.6 Flash (low) | Visual CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 6.9k |
| Text CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 4.4k | |
| Visual→Code | 20/48 | 20/72 | 1/48 | 0/72 | 41/240 | [12, 23] | 3.8k | |
| Perceive+Code | 12/48 | 20/72 | 2/48 | 0/72 | 34/240 | [9, 20] | 3.7k | |
| CAR | 21/48 | 18/72 | 4/48 | 0/72 | 43/240 | [12, 24] | 3.5k | |
| Text→Code | 45/48 | 65/72 | 42/48 | 60/72 | 212/240 | [85, 92] | 3.0k | |
| Text CAR | 43/48 | 63/72 | 43/48 | 60/72 | 209/240 | [83, 91] | 2.6k | |
| Gemini 3.1 Pro (low) | Visual CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 5.0k |
| Text CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 1.7k | |
| Visual→Code | 12/48 | 0/72 | 1/48 | 0/72 | 13/240 | [2, 10] | 4.6k | |
| Perceive+Code | 10/48 | 2/72 | 0/48 | 0/72 | 12/240 | [2, 9] | 4.0k | |
| CAR | 10/48 | 4/72 | 0/48 | 0/72 | 14/240 | [2, 10] | 4.2k | |
| Text→Code | 48/48 | 71/72 | 48/48 | 71/72 | 238/240 | [98, 100] | 3.5k | |
| Text CAR | 48/48 | 72/72 | 48/48 | 72/72 | 240/240 | [100, 100] | 3.6k | |
| Gemma 4 31B (no thinking) | Visual CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 3.2k |
| Text CoT | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 5.1k | |
| Visual→Code | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 3.0k | |
| Perceive+Code | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 3.0k | |
| CAR | 0/48 | 0/72 | 0/48 | 0/72 | 0/240 | [0, 0] | 2.5k | |
| Text→Code | 29/48 | 39/72 | 13/48 | 30/72 | 111/240 | [40, 52] | 2.5k | |
| Text CAR | 42/48 | 62/72 | 44/48 | 54/72 | 202/240 | [80, 88] | 3.7k | |
| B7 two-view + Text CAR | 45/48 | 63/72 | 35/48 | 52/72 | 195/240 | [74, 88] | - | |
| B7 true structure + Text CAR | 46/48 | 65/72 | 47/48 | 64/72 | 222/240 | [89, 96] | - | |
| B7 true structure + Text→Code | 41/48 | 65/72 | 43/48 | 62/72 | 211/240 | [84, 92] | - |
Table S61. X8: exact answers on the 240 pairs of the 96 fresh extra-large grids by grid size, for the seven one-shot conditions and four configurations; the calls of each configuration ran interleaved in one session. 95% CI: percentile bootstrap over grids (); tokens: mean output tokens per call (thoughts plus answer). The last three rows are B7 on the same pairs, from its own session: the two-view pipeline, and the two solve prompts on the true edge list (the ceiling).
| Model | Condition | #ST | #M | #PM | all |
|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual CoT | 0/96 | 0/96 | 0/48 | 0/240 |
| Text CoT | 0/96 | 0/96 | 0/48 | 0/240 | |
| Visual→Code | 19/96 | 30/96 | 17/48 | 66/240 | |
| Perceive+Code | 14/96 | 22/96 | 19/48 | 55/240 | |
| CAR | 24/96 | 19/96 | 10/48 | 53/240 | |
| Text→Code | 85/96 | 87/96 | 44/48 | 216/240 | |
| Text CAR | 96/96 | 91/96 | 37/48 | 224/240 | |
| Gemini 3.6 Flash (low) | Visual CoT | 0/96 | 0/96 | 0/48 | 0/240 |
| Text CoT | 0/96 | 0/96 | 0/48 | 0/240 | |
| Visual→Code | 12/96 | 19/96 | 10/48 | 41/240 | |
| Perceive+Code | 10/96 | 13/96 | 11/48 | 34/240 | |
| CAR | 22/96 | 15/96 | 6/48 | 43/240 | |
| Text→Code | 78/96 | 88/96 | 46/48 | 212/240 | |
| Text CAR | 86/96 | 84/96 | 39/48 | 209/240 | |
| Gemini 3.1 Pro (low) | Visual CoT | 0/96 | 0/96 | 0/48 | 0/240 |
| Text CoT | 0/96 | 0/96 | 0/48 | 0/240 | |
| Visual→Code | 6/96 | 7/96 | 0/48 | 13/240 | |
| Perceive+Code | 3/96 | 8/96 | 1/48 | 12/240 | |
| CAR | 9/96 | 4/96 | 1/48 | 14/240 | |
| Text→Code | 96/96 | 96/96 | 46/48 | 238/240 | |
| Text CAR | 96/96 | 96/96 | 48/48 | 240/240 | |
| Gemma 4 31B (no thinking) | Visual CoT | 0/96 | 0/96 | 0/48 | 0/240 |
| Text CoT | 0/96 | 0/96 | 0/48 | 0/240 | |
| Visual→Code | 0/96 | 0/96 | 0/48 | 0/240 | |
| Perceive+Code | 0/96 | 0/96 | 0/48 | 0/240 | |
| CAR | 0/96 | 0/96 | 0/48 | 0/240 | |
| Text→Code | 37/96 | 59/96 | 15/48 | 111/240 | |
| Text CAR | 95/96 | 79/96 | 28/48 | 202/240 | |
| B7 two-view + Text CAR | 85/96 | 76/96 | 34/48 | 195/240 | |
| B7 true structure + Text CAR | 96/96 | 87/96 | 39/48 | 222/240 | |
| B7 true structure + Text→Code | 82/96 | 87/96 | 42/48 | 211/240 |
Table S62. X8: exact answers by task (#ST and #M on all 96 grids, #PM on the grids with an even number of vertices); rows as in Table S61.
| Comparison (pairs) | role | n | first | second | diff (pts) | b/c | p | Holm p | 95% CI |
|---|---|---|---|---|---|---|---|---|---|
| two-view (B7) Text CAR vs CAR | primary | 240 | 195 | 53 | +59.2 | 147/5 | < | < | [+50.6, +67.8] |
| two-view (B7) Text CAR vs CAR | sensitivity | 240 | 195 | 53 | +59.2 | 147/5 | < | - | [+50.4, +67.2] |
| CAR vs Visual→Code | primary | 240 | 53 | 66 | -5.4 | 21/34 | 0.105 | 0.105 | [-11.5, +0.4] |
| CAR vs Visual→Code | sensitivity | 240 | 53 | 66 | -5.4 | 21/34 | 0.105 | - | [-11.5, +0.4] |
| Perceive+Code vs Visual→Code | secondary | 240 | 55 | 66 | -4.6 | 18/29 | 0.144 | 0.432 | [-10.6, +1.7] |
| CAR vs Perceive+Code | secondary | 240 | 53 | 55 | -0.8 | 22/24 | 0.883 | 0.883 | [-5.4, +3.8] |
| Text→Code vs Visual→Code | secondary | 240 | 216 | 66 | +62.5 | 15/44 | < | < | [+54.4, +70.6] |
| Text CAR vs CAR | secondary | 240 | 224 | 53 | +71.2 | 177/6 | < | < | [+63.2, +78.6] |
| Text CAR vs Text→Code | secondary | 240 | 224 | 216 | +3.3 | 24/16 | 0.268 | 0.536 | [-1.3, +8.7] |
| two-view (B7) Text CAR vs Text CAR | secondary | 240 | 195 | 224 | -12.1 | 12/41 | < | 0.000327 | [-19.4, -5.0] |
| two-view (B7) Text CAR vs Perceive+Code | secondary | 240 | 195 | 55 | +58.3 | 146/6 | < | < | [+50.0, +67.1] |
| CAR (Gemini 3.6 Flash (low)) vs Visual→Code (Gemini 3.6 Flash (low)) | secondary | 240 | 43 | 41 | +0.8 | 24/22 | 0.883 | 0.883 | [-4.2, +6.2] |
| Perceive+Code (Gemini 3.6 Flash (low)) vs Visual→Code (Gemini 3.6 Flash (low)) | secondary | 240 | 34 | 41 | -2.9 | 17/24 | 0.349 | 0.698 | [-8.5, +2.9] |
| Text CAR (Gemini 3.6 Flash (low)) vs CAR (Gemini 3.6 Flash (low)) | secondary | 240 | 209 | 43 | +69.2 | 173/7 | < | < | [+61.7, +76.3] |
| CAR (Gemini 3.1 Pro (low)) vs Visual→Code (Gemini 3.1 Pro (low)) | secondary | 240 | 14 | 13 | +0.4 | 8/7 | 1 | 1 | [-3.5, +4.5] |
| Perceive+Code (Gemini 3.1 Pro (low)) vs Visual→Code (Gemini 3.1 Pro (low)) | secondary | 240 | 12 | 13 | -0.4 | 4/5 | 1 | 1 | [-3.4, +2.5] |
| Text CAR (Gemini 3.1 Pro (low)) vs CAR (Gemini 3.1 Pro (low)) | secondary | 240 | 240 | 14 | +94.2 | 226/0 | < | < | [+90.0, +97.6] |
| CAR (Gemma 4 31B (no thinking)) vs Visual→Code (Gemma 4 31B (no thinking)) | secondary | 240 | 0 | 0 | +0.0 | 0/0 | 1 | 1 | [+0.0, +0.0] |
| Perceive+Code (Gemma 4 31B (no thinking)) vs Visual→Code (Gemma 4 31B (no thinking)) | secondary | 240 | 0 | 0 | +0.0 | 0/0 | 1 | 1 | [+0.0, +0.0] |
| Text CAR (Gemma 4 31B (no thinking)) vs CAR (Gemma 4 31B (no thinking)) | secondary | 240 | 202 | 0 | +84.2 | 202/0 | < | < | [+79.6, +88.7] |
| Text CAR vs true structure (B7) Text CAR | descriptive | 240 | 224 | 222 | +0.8 | 15/13 | 0.851 | - | [-3.8, +5.7] |
| Text→Code vs true structure (B7) Text→Code | descriptive | 240 | 216 | 211 | +2.1 | 26/21 | 0.56 | - | [-2.9, +7.3] |
Table S63. X8: paired comparisons on pairs. diff: first minus second, in points; b/c: pairs right only for the first / only for the second arm; exact two-sided McNemar p, printed as < when smaller; 95% percentile bootstrap intervals over grids (B = 4000). role: primary, Holm over the two; sensitivity, the same test with a missing record scored as not exact; secondary, Holm over the seven listed in the text for gemini-3.8-flash and over the three within each other configuration; descriptive, no correction. Arms without a model name are gemini-3.8-flash (low); two-view (B7) and true structure (B7) come from the B7 session.
| Model | Condition | records | no list | scorable | T=1, A=1 | T=1, A=0 | T=0, A=1 | T=0, A=0 | A = #(Ĝ) − T=0 |
|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual CoT | 240 | 0 | 240 | 0 | 75 | 0 | 165 | – |
| Visual→Code | 240 | 145 | 95 | 27 | 6 | 3 | 59 | 42/62 | |
| Perceive+Code | 240 | 88 | 152 | 39 | 17 | 0 | 96 | 71/96 | |
| CAR | 240 | 121 | 119 | 28 | 6 | 2 | 83 | 71/85 | |
| Text→Code | 240 | 0 | 240 | 216 | 24 | 0 | 0 | 0/0 | |
| Text CAR | 240 | 0 | 240 | 217 | 16 | 7 | 0 | 0/7 | |
| Gemini 3.6 Flash (low) | Visual CoT | 240 | 0 | 240 | 0 | 69 | 0 | 171 | – |
| Visual→Code | 240 | 132 | 108 | 20 | 12 | 3 | 73 | 42/76 | |
| Perceive+Code | 240 | 93 | 147 | 19 | 16 | 4 | 108 | 54/112 | |
| CAR | 240 | 144 | 96 | 24 | 1 | 5 | 66 | 54/71 | |
| Text→Code | 240 | 1 | 239 | 212 | 22 | 0 | 5 | 5/5 | |
| Text CAR | 240 | 3 | 237 | 209 | 19 | 0 | 9 | 6/9 | |
| Gemini 3.1 Pro (low) | Visual CoT | 240 | 0 | 240 | 0 | 17 | 0 | 223 | – |
| Visual→Code | 240 | 63 | 177 | 12 | 2 | 0 | 163 | 141/163 | |
| Perceive+Code | 240 | 38 | 202 | 12 | 6 | 0 | 184 | 117/184 | |
| CAR | 240 | 59 | 181 | 11 | 0 | 0 | 170 | 148/170 | |
| Text→Code | 240 | 0 | 240 | 237 | 2 | 1 | 0 | 0/1 | |
| Text CAR | 240 | 0 | 240 | 238 | 0 | 2 | 0 | 0/2 | |
| Gemma 4 31B (no thinking) | Visual CoT | 240 | 5 | 235 | 0 | 0 | 0 | 235 | – |
| Visual→Code | 240 | 215 | 25 | 0 | 0 | 0 | 25 | 8/25 | |
| Perceive+Code | 240 | 194 | 46 | 0 | 0 | 0 | 46 | 14/46 | |
| CAR | 240 | 210 | 30 | 0 | 0 | 0 | 30 | 20/30 | |
| Text→Code | 240 | 16 | 224 | 111 | 113 | 0 | 0 | 0/0 | |
| Text CAR | 240 | 0 | 240 | 202 | 38 | 0 | 0 | 0/0 |
Table S64. X8: where the errors come from. records: responses with a record; no list: responses without a program or without an extractable edge list (not scored); T: the edge list embedded in the program, or the final edge list of a Visual CoT response, equals the true one; A: the answer is exact; last column: among scorable programs with T = 0 whose own graph could be counted, those whose answer is the exact count of that graph. The Text→Code and Text CAR rows are descriptive.
| Descriptive comparison | n | first | second | b/c | p |
|---|---|---|---|---|---|
| Text CAR (X8) vs true structure (B7) Text CAR | 240 | 224 | 222 | 15/13 | 0.851 |
| Text→Code (X8) vs true structure (B7) Text→Code | 240 | 216 | 211 | 26/21 | 0.56 |
| Gemini 3.6 Flash (low), CAR: 24 development vs 96 fresh grids | 60 / 240 | 15 | 43 | – | 0.272 |
| Gemini 3.6 Flash (low), Visual→Code: 24 development vs 96 fresh grids | 60 / 240 | 9 | 41 | – | 0.847 |
| Gemini 3.6 Flash (low), Text CAR: 24 development vs 96 fresh grids | 60 / 240 | 51 | 209 | – | 0.673 |
| Gemini 3.6 Flash (low), Text→Code: 24 development vs 96 fresh grids | 60 / 240 | 53 | 212 | – | 1 |
| Gemini 3.8 Flash (low), CAR: 24 development vs 96 fresh grids | 60 / 240 | 14 | 53 | – | 0.863 |
| Gemini 3.8 Flash (low), Visual→Code: 24 development vs 96 fresh grids | 60 / 240 | 6 | 66 | – | 0.00383 |
| Gemini 3.8 Flash (low), Perceive+Code: 24 development vs 96 fresh grids | 60 / 240 | 14 | 55 | – | 1 |
| Gemini 3.8 Flash (low), Text CAR: 24 development vs 96 fresh grids | 60 / 240 | 54 | 224 | – | 0.406 |
| Gemini 3.8 Flash (low), Text→Code: 24 development vs 96 fresh grids | 60 / 240 | 57 | 216 | – | 0.315 |
| Gemini 3.8 Flash (low), Text CoT: 24 development vs 96 fresh grids | 60 / 240 | 0 | 0 | – | 1 |
| Gemini 3.8 Flash (low), Visual CoT: 24 development vs 96 fresh grids | 60 / 240 | 0 | 0 | – | 1 |
| Gemma 4 31B (no thinking), CAR: 24 development vs 96 fresh grids | 60 / 240 | 0 | 0 | – | 1 |
| Gemma 4 31B (no thinking), Visual→Code: 24 development vs 96 fresh grids | 60 / 240 | 0 | 0 | – | 1 |
| Gemma 4 31B (no thinking), Text CAR: 24 development vs 96 fresh grids | 60 / 240 | 51 | 202 | – | 1 |
| Gemma 4 31B (no thinking), Visual CoT: 24 development vs 96 fresh grids | 60 / 240 | 0 | 0 | – | 1 |
| Gemini 3.1 Pro (low), CAR: 24 development vs 96 fresh grids | 60 / 240 | 2 | 14 | – | 0.747 |
| Gemini 3.1 Pro (low), Visual→Code: 24 development vs 96 fresh grids | 60 / 240 | 2 | 13 | – | 0.743 |
| Gemini 3.1 Pro (low), Text CAR: 24 development vs 96 fresh grids | 60 / 240 | 60 | 240 | – | 1 |
| Gemini 3.1 Pro (low), Visual CoT: 24 development vs 96 fresh grids | 59 / 240 | 0 | 0 | – | 1 |
Table S65. X8: descriptive comparisons. Top: the Text CAR and Text→Code requests of gemini-3.8-flash in X8 against the byte-identical ceiling requests of B7, sent in a different session (b/c and p as in Table S63). Bottom: exact answers on the 24 development grids (60 pairs, main runs) against the fresh grids (X8) for each configuration and condition run on both, with a two-sided Fisher exact test; not confirmatory.
M. Degraded renderings of the core images
Why. Section 5 reports that transcription of our schematic inputs is mostly exact, and the limitations in Section 8 add that the images are clean and synthetic. D8 asks two questions about the same drawings rendered less cleanly. First, how far does exact transcription survive compression, blur, a slanted capture, a hand-drawn wobble of the strokes, half resolution and a photo-like combination of these? Second, when perception is made harder on purpose, does the attribution statistic of Table 2, the share of wrong answers that come with an exact transcription, move errors toward perception, as it should if it attributes them correctly? D8 tests degraded renderings of the same synthetic drawings; it does not test natural images, hand-drawn diagrams or other model families. The plan, the runner, the image generator and the hash of every image were recorded before the first call, and the analysis script before any result record was read (the logs then held 823 records, unread).
Images and arms. The population is the 170 core images of the benchmark (66 grid drawings, 40 binary images and 64 Eulerian drawings, two per graph) and their 392 (image, task) pairs; the extra-large grids are not included. There are twelve arms (Figure S6). Clean sends the original files, the bytes every earlier run sent, and clean, repeated sends the same requests a second time. The ten degraded arms are JPEG at quality 30 and 10; Gaussian blur with of 1.5 and 3 pixels; perspective, in which each corner moves inward by up to 6% or 12% of the side and the drawing is mapped onto that quadrilateral, as when a printout is photographed at a slant; elastic, a smooth random displacement of at most 3 or 6 pixels that makes the strokes wobble as if drawn by hand; half resolution, a box average; and photo-like, which chains a 4% perspective, a 2-pixel elastic displacement, a blur with , a linear fall-off of the illumination, a colour cast, Gaussian noise ( on the 0 to 255 scale) and JPEG at quality 55. Sizes are in pixels of the source image, whose long side is 381 to 741 pixels. Each degraded image is a deterministic function of its source and a seed, and the runner checks every file against its recorded hash before a run. The prompts are the same in every arm, so the arms differ only in the image bytes; under the elastic and perspective arms the segments are slightly curved or projectively distorted while the prompts still call them straight, which we keep on purpose.
Calls and analysis. gemini-3.8-flash at the low thinking level, the primary model, gets three kinds of call in every arm: the task-independent transcription prompt of Experiment A (§I), once per image, and Visual CoT and Visual→Code, once per pair. gemini-3.1-pro-preview (low) and gemini-3.6-flash (low) get the transcription and Visual CoT calls, and gemma-4-31b-it (no thinking) the transcription call, 26,976 calls in all. Prompts, scoring and code runner are those of the earlier runs. Before launch we checked, without sending anything, that the clean transcription requests are byte-identical to those of Experiment A, that the clean Visual CoT and Visual→Code requests are byte-identical to those of the main runs, that every repeated request is byte-identical to its clean request, and that every degraded request differs from its clean request only in the image bytes. For each configuration and kind the items are shuffled once and the twelve arms of an item are sent in a shuffled order within minutes of each other, so every arm, the clean control included, is measured in the same session; failed calls are retried in later passes.
The unit is the image for transcriptions and the pair for answers, and the outcome is an exact transcription or answer (an unparsable response counts as not exact). Each arm is compared with clean by an exact two-sided McNemar test, and the effect is the difference in exact rate (arm minus clean) with Newcombe's hybrid-score interval for paired proportions and a percentile bootstrap interval over the 138 clusters (a grid, a binary image, or an Eulerian graph with its two drawings; B = 4000). The primary analysis is the transcription of gemini-3.8-flash, clean against each of the ten degraded arms on the 170 images, with Holm over the ten at family-wise level 0.05. An arm whose Holm-adjusted p is 0.05 or more is described as showing no detectable change, always together with the lower end of its interval, never as showing no change. As sensitivity analyses each test is repeated with a missing record scored as not exact, and at the level of clusters, a cluster counting as exact in an arm when all its images are (Holm over the ten in each). Clean against its repeat is the negative control, outside every Holm family: it measures how far a byte-identical request moves within one session, and we also count the keys whose two stored responses are identical.
The secondary analyses of gemini-3.8-flash are: transcription errors per arm by family and size (mean F1; missed, extra and off-lattice edges of grids, with missed edges split into horizontal and vertical as rates of the 1,051 horizontal and 1,004 vertical drawn edges, an unparsed grid transcription missing all of its edges; wrong cells of binary images); Visual CoT and Visual→Code answers, each degraded arm against clean with Holm over the ten for each kind; attribution under degradation, that is, per arm the two-by-two table of an exact transcription inside the Visual CoT response by an exact answer, the probability of an exact answer given an exact transcription, and the share of wrong answers that come with an exact transcription, each compared with clean by a cluster bootstrap, together with the Spearman correlation over the ten arms between the change in exact transcription and the change in that share; the exact rate of the transcription inside Visual CoT next to that of the separate transcription call; the decomposition of Visual→Code as in §L, scored on grid programs only, because the edge-list extractor of Table S21 reads grid programs (binary-image and Eulerian programs are counted but not scored); the stronger level of each degradation against the milder one; and the clean calls against byte-identical requests of earlier sessions (Experiment A for transcriptions, the main runs for answers). The last two are descriptive. The two other Gemini models get the transcription and Visual CoT tests, with Holm over the ten for each, and the descriptive analyses;
gamma-4-31b-it gets the transcription tests.
Results. The calls ran from 2026-10-08 19:01 UTC to 2026-10-09 17:51 UTC (22.8 hours, 26976 responses, model versions gemini-3.1-pro-preview, gemini-3.6-flash, gemini-3.8-flash, gamma-4-31b-it); no key is without a response, and the list price was \sigma = 3$, with 125 exact transcriptions against 139 under clean (Holm p = 0.0434).
The answers of Visual CoT move within the noise of the session (Table S69). Under clean gemini-3.8-flash answers 257 of the 392 pairs exactly and 244 in the byte-identical repeat (b/c = 28/15, p = 0.066). The degraded arms give 238 to 254, and only elastic with 3 pixels passes Holm (30/11, Holm p = 0.0432), by a margin of the same order as the difference between the clean calls and their repeat. Neither gemini-3.1-pro-preview nor gemini-3.6-flash changes detectably in Visual CoT under any arm. Visual→Code is more sensitive: from 364 exact answers under clean it falls to 309 under JPEG at quality 30 (64/9, Holm p = ) and to 330 under the photo-like arm (44/10, Holm p = ). The decomposition puts these losses on the reading (Table S73): under JPEG at quality 30, 65 scorable grid programs embed a wrong edge list and return a wrong answer, against 18 under clean, and 62 of the 66 wrong-graph programs we could check return the exact count of their own graph.
The attribution statistic moves the way it should when perception is made harder (Table S70). For gemini-3.8-flash, the share of wrong Visual CoT answers that come with an exact transcription is 85% under clean, 51% under JPEG at quality 30 (change -35 points, [-47, -22]) and 62% under the photo-like arm (-24, [-35, -12]). Over the ten arms the change in this share follows the change in exact transcription (Spearman , p = 0.000623; gemini-3.6-flash: , p = 0.0146). For gemini-3.1-pro-preview it does not ( , p = 0.686), but neither its transcriptions nor its answers change detectably, so there is little for the share to follow. In short, for the three Gemini models the transcription of these drawings shows no detectable loss under blur, slanted capture, wobbly strokes and half resolution; heavy JPEG compression is the one degradation that costs the primary model exact transcriptions and, through them, programs; and where transcription gets worse, the attribution statistic of Table 2 moves the errors toward perception.

clean

JPEG q=30

JPEG q=10

blur

blur

half resolution

perspective 6%

perspective 12%

elastic 3 px

elastic 6 px
photo-like
Figure S6. D8: one core drawing in the clean arm and the ten degraded arms (the first grid in sorted order, fixed before any result was read). Clean, repeated sends the clean bytes again and has no image of its own. The half-resolution image is shown at the same size as the others.
| Arm | exact | diff (pts) | Newcombe 95% CI | bootstrap 95% CI | b/c | p | Holm p |
|---|---|---|---|---|---|---|---|
| clean | 167/170 | ||||||
| clean, repeated | 170/170 | +1.8 | [-0.7, +5.1] | [+0.0, +4.1] | 0/3 | 0.25 | - |
| JPEG q=30 | 153/170 | -8.2 | [-13.5, -4.0] | [-12.8, -4.1] | 15/1 | 0.000519 | 0.00519 |
| JPEG q=10 | 160/170 | -4.1 | [-8.7, -0.2] | [-8.1, -0.6] | 9/2 | 0.0654 | 0.589 |
| blur σ=1.5 | 165/170 | -1.2 | [-4.8, +2.1] | [-4.1, +1.7] | 4/2 | 0.688 | 1 |
| blur σ=3 | 167/170 | +0.0 | [-3.5, +3.5] | [-2.9, +2.9] | 3/3 | 1 | 1 |
| perspective 6% | 167/170 | +0.0 | [-3.5, +3.5] | [-2.9, +2.9] | 3/3 | 1 | 1 |
| perspective 12% | 163/170 | -2.4 | [-6.7, +1.6] | [-6.1, +1.2] | 7/3 | 0.344 | 1 |
| elastic 3 px | 169/170 | +1.2 | [-1.7, +4.5] | [-1.2, +3.6] | 1/3 | 0.625 | 1 |
| elastic 6 px | 170/170 | +1.8 | [-0.7, +5.1] | [+0.0, +4.0] | 0/3 | 0.25 | 1 |
| half resolution | 165/170 | -1.2 | [-4.8, +2.1] | [-4.2, +1.7] | 4/2 | 0.688 | 1 |
| photo-like | 160/170 | -4.1 | [-8.7, -0.2] | [-7.9, -0.6] | 9/2 | 0.0654 | 0.589 |
Table S66. D8, primary analysis: exact transcriptions of the 170 core images by gemini-3.8-flash (low), each arm against clean in the same session. diff: arm minus clean, in points; Newcombe: hybrid-score 95% interval for paired proportions; bootstrap: 95% percentile interval over the 138 clusters (B = 4000); b/c: images exact only under clean / only under the arm; exact two-sided McNemar p, printed as < 10⁻⁴ when smaller; Holm over the ten degraded arms. clean, repeated: the byte-identical repeat of the clean request, the negative control (no Holm family).
| Model | Arm | n | b/c (missing = wrong) | Holm p | clusters | b/c | p | Holm p |
|---|---|---|---|---|---|---|---|---|
| 3.8 Flash | JPEG q=30 | 170 | 15/1 | 0.00519 | 138 | 15/1 | 0.000519 | 0.00519 |
| JPEG q=10 | 170 | 9/2 | 0.589 | 138 | 9/2 | 0.0654 | 0.589 | |
| blur σ=1.5 | 170 | 4/2 | 1 | 138 | 4/2 | 0.688 | 1 | |
| blur σ=3 | 170 | 3/3 | 1 | 138 | 3/3 | 1 | 1 | |
| perspective 6% | 170 | 3/3 | 1 | 138 | 3/3 | 1 | 1 | |
| perspective 12% | 170 | 7/3 | 1 | 138 | 7/3 | 0.344 | 1 | |
| elastic 3 px | 170 | 1/3 | 1 | 138 | 1/3 | 0.625 | 1 | |
| elastic 6 px | 170 | 0/3 | 1 | 138 | 0/3 | 0.25 | 1 | |
| half resolution | 170 | 4/2 | 1 | 138 | 4/2 | 0.688 | 1 | |
| photo-like | 170 | 9/2 | 0.589 | 138 | 9/2 | 0.0654 | 0.589 | |
| 3.1 Pro | JPEG q=30 | 170 | 6/2 | 1 | 138 | 6/2 | 0.289 | 1 |
| JPEG q=10 | 170 | 7/5 | 1 | 138 | 7/5 | 0.774 | 1 | |
| blur σ=1.5 | 170 | 1/7 | 0.703 | 138 | 1/7 | 0.0703 | 0.703 | |
| blur σ=3 | 170 | 7/6 | 1 | 138 | 7/6 | 1 | 1 | |
| perspective 6% | 170 | 0/1 | 1 | 138 | 0/1 | 1 | 1 | |
| perspective 12% | 170 | 7/4 | 1 | 138 | 7/4 | 0.549 | 1 | |
| elastic 3 px | 170 | 4/1 | 1 | 138 | 4/1 | 0.375 | 1 | |
| elastic 6 px | 170 | 3/3 | 1 | 138 | 3/3 | 1 | 1 | |
| half resolution | 170 | 5/5 | 1 | 138 | 5/5 | 1 | 1 | |
| photo-like | 170 | 10/6 | 1 | 138 | 10/6 | 0.454 | 1 | |
| 3.6 Flash | JPEG q=30 | 170 | 2/2 | 1 | 138 | 2/2 | 1 | 1 |
| JPEG q=10 | 170 | 5/2 | 1 | 138 | 5/2 | 0.453 | 1 | |
| blur σ=1.5 | 170 | 2/2 | 1 | 138 | 2/2 | 1 | 1 | |
| blur σ=3 | 170 | 2/2 | 1 | 138 | 2/2 | 1 | 1 | |
| perspective 6% | 170 | 1/1 | 1 | 138 | 1/1 | 1 | 1 | |
| perspective 12% | 170 | 7/1 | 0.703 | 138 | 7/1 | 0.0703 | 0.703 | |
| elastic 3 px | 170 | 2/2 | 1 | 138 | 2/2 | 1 | 1 | |
| elastic 6 px | 170 | 3/1 | 1 | 138 | 3/1 | 0.625 | 1 | |
| half resolution | 170 | 1/2 | 1 | 138 | 1/2 | 1 | 1 | |
| photo-like | 170 | 3/2 | 1 | 138 | 3/2 | 1 | 1 | |
| Gemma 4 31B | JPEG q=30 | 170 | 9/7 | 1 | 138 | 7/7 | 1 | 1 |
| JPEG q=10 | 170 | 13/7 | 1 | 138 | 12/6 | 0.238 | 1 | |
| blur σ=1.5 | 170 | 10/9 | 1 | 138 | 8/8 | 1 | 1 | |
| blur σ=3 | 170 | 18/4 | 0.0434 | 138 | 17/4 | 0.0072 | 0.072 | |
| perspective 6% | 170 | 10/12 | 1 | 138 | 10/12 | 0.832 | 1 | |
| perspective 12% | 170 | 16/14 | 1 | 138 | 15/13 | 0.851 | 1 | |
| elastic 3 px | 170 | 4/10 | 1 | 138 | 2/9 | 0.0654 | 0.589 | |
| elastic 6 px | 170 | 7/7 | 1 | 138 | 5/6 | 1 | 1 | |
| half resolution | 170 | 14/5 | 0.572 | 138 | 12/5 | 0.143 | 1 | |
| photo-like | 170 | 12/11 | 1 | 138 | 11/10 | 1 | 1 |
Table S67. D8, sensitivity of the transcription tests for every configuration: with a missing record scored as not exact (left), and at the level of the 138 clusters, a cluster counting as exact in an arm when all its images are (right); Holm over the ten degraded arms in each.
| Arm | 3.8 Flash | Holm | 3.1 Pro | Holm | 3.6 Flash | Holm | Gemma 4 31B | Holm |
|---|---|---|---|---|---|---|---|---|
| clean | 167/170 | - | 161/170 | - | 168/170 | - | 139/170 | - |
| clean, repeated | 170/170 | 159/170 | 168/170 | 139/170 | ||||
| JPEG | 153/170 | 0.00519 | 157/170 | 1 | 168/170 | 1 | 137/170 | 1 |
| JPEG | 160/170 | 0.589 | 159/170 | 1 | 165/170 | 1 | 133/170 | 1 |
| blur | 165/170 | 1 | 167/170 | 0.703 | 168/170 | 1 | 138/170 | 1 |
| blur | 167/170 | 1 | 160/170 | 1 | 168/170 | 1 | 125/170 | 0.0434 |
| perspective 6% | 167/170 | 1 | 162/170 | 1 | 168/170 | 1 | 141/170 | 1 |
| perspective 12% | 163/170 | 1 | 158/170 | 1 | 162/170 | 0.703 | 137/170 | 1 |
| elastic 3 px | 169/170 | 1 | 158/170 | 1 | 168/170 | 1 | 145/170 | 1 |
| elastic 6 px | 170/170 | 1 | 161/170 | 1 | 166/170 | 1 | 139/170 | 1 |
| half resolution | 165/170 | 1 | 161/170 | 1 | 169/170 | 1 | 130/170 | 0.572 |
| photo-like | 160/170 | 0.589 | 157/170 | 1 | 167/170 | 1 | 138/170 | 1 |
Table S68. D8: exact transcriptions per arm for the four configurations, with the Holm-adjusted against clean over the ten degraded arms of each configuration; : unadjusted of the repeat against clean (negative control).
| Arm | 3.8 Flash Visual CoT | Holm | 3.8 Flash Visual→Code | Holm | 3.1 Pro Visual CoT | Holm | 3.6 Flash Visual CoT | Holm |
|---|---|---|---|---|---|---|---|---|
| clean | 257/392 | - | 364/392 | - | 214/392 | - | 210/392 | - |
| clean, repeated | 244/392 | 361/392 | 223/392 | 214/392 | ||||
| JPEG | 242/392 | 0.122 | 309/392 | 222/392 | 1 | 202/392 | 1 | |
| JPEG | 247/392 | 0.61 | 346/392 | 0.106 | 221/392 | 1 | 211/392 | 1 |
| blur | 246/392 | 0.704 | 357/392 | 1 | 217/392 | 1 | 207/392 | 1 |
| blur | 246/392 | 0.704 | 360/392 | 1 | 210/392 | 1 | 196/392 | 0.595 |
| perspective 6% | 248/392 | 0.704 | 367/392 | 1 | 221/392 | 1 | 215/392 | 1 |
| perspective 12% | 250/392 | 0.721 | 370/392 | 1 | 220/392 | 1 | 208/392 | 1 |
| elastic 3 px | 238/392 | 0.0432 | 365/392 | 1 | 226/392 | 0.73 | 199/392 | 1 |
| elastic 6 px | 244/392 | 0.426 | 372/392 | 1 | 224/392 | 1 | 207/392 | 1 |
| half resolution | 254/392 | 0.755 | 364/392 | 1 | 217/392 | 1 | 207/392 | 1 |
| photo-like | 246/392 | 0.704 | 330/392 | 221/392 | 1 | 208/392 | 1 |
Table S69. D8: exact answers on the 392 pairs per arm, Visual CoT for the three Gemini models and Visual→Code for gemini-3.8-flash, with Holm over the ten degraded arms in each column; as in Table S68.
| Model | Arm | n | T=1, A=1 | T=1, A=0 | T=0, A=1 | T=0, A=0 | P(A|T=1) | errors with T=1 (%) | vs clean (pts) |
|---|---|---|---|---|---|---|---|---|---|
| 3.8 Flash | clean | 392 | 257 | 115 | 0 | 20 | 69 | 85 | - |
| clean, repeated | 392 | 244 | 118 | 0 | 30 | 67 | 80 | -5 [-13, +3] | |
| JPEG q=30 | 392 | 242 | 76 | 0 | 74 | 76 | 51 | -35 [-47, -22] | |
| JPEG q=10 | 392 | 247 | 113 | 0 | 32 | 69 | 78 | -7 [-15, +1] | |
| blur σ=1.5 | 392 | 246 | 114 | 0 | 32 | 68 | 78 | -7 [-17, +2] | |
| blur σ=3 | 392 | 246 | 117 | 0 | 29 | 68 | 80 | -5 [-17, +7] | |
| perspective 6% | 392 | 247 | 127 | 1 | 17 | 66 | 88 | +3 [-5, +12] | |
| perspective 12% | 392 | 243 | 123 | 7 | 19 | 66 | 87 | +1 [-7, +9] | |
| elastic 3 px | 392 | 237 | 138 | 1 | 16 | 63 | 90 | +4 [-4, +13] | |
| elastic 6 px | 392 | 244 | 141 | 0 | 7 | 63 | 95 | +10 [+1, +20] | |
| half resolution | 392 | 254 | 114 | 0 | 24 | 69 | 83 | -3 [-11, +6] | |
| photo-like | 392 | 244 | 90 | 2 | 56 | 73 | 62 | -24 [-35, -12] | |
| 3.1 Pro | clean | 392 | 214 | 119 | 0 | 59 | 64 | 67 | - |
| clean, repeated | 392 | 223 | 112 | 0 | 57 | 67 | 66 | -1 [-4, +3] | |
| JPEG q=30 | 392 | 221 | 124 | 1 | 46 | 64 | 73 | +6 [-5, +18] | |
| JPEG q=10 | 392 | 221 | 124 | 0 | 47 | 64 | 73 | +6 [-3, +15] | |
| blur σ=1.5 | 392 | 216 | 153 | 1 | 22 | 59 | 87 | +21 [+9, +32] | |
| blur σ=3 | 392 | 210 | 155 | 0 | 27 | 58 | 85 | +18 [+6, +30] | |
| perspective 6% | 392 | 219 | 123 | 2 | 48 | 64 | 72 | +5 [-6, +16] | |
| perspective 12% | 392 | 214 | 114 | 6 | 58 | 65 | 66 | -1 [-11, +10] | |
| elastic 3 px | 392 | 226 | 107 | 0 | 59 | 68 | 64 | -2 [-11, +7] | |
| elastic 6 px | 392 | 224 | 114 | 0 | 54 | 66 | 68 | +1 [-8, +10] | |
| half resolution | 392 | 216 | 125 | 1 | 50 | 63 | 71 | +5 [-3, +13] | |
| photo-like | 392 | 219 | 130 | 2 | 41 | 63 | 76 | +9 [-2, +21] | |
| 3.6 Flash | clean | 392 | 210 | 173 | 0 | 9 | 55 | 95 | - |
| clean, repeated | 392 | 211 | 171 | 3 | 7 | 55 | 96 | +1 [-2, +4] | |
| JPEG q=30 | 392 | 201 | 183 | 1 | 7 | 52 | 96 | +1 [-5, +6] | |
| JPEG q=10 | 392 | 208 | 158 | 3 | 23 | 57 | 87 | -8 [-18, +1] | |
| blur σ=1.5 | 392 | 205 | 180 | 2 | 5 | 53 | 97 | +2 [-2, +7] | |
| blur σ=3 | 392 | 194 | 186 | 2 | 10 | 51 | 95 | -0 [-7, +6] | |
| perspective 6% | 392 | 214 | 167 | 1 | 10 | 56 | 94 | -1 [-6, +4] | |
| perspective 12% | 392 | 197 | 167 | 11 | 17 | 54 | 91 | -4 [-10, +1] | |
| elastic 3 px | 392 | 198 | 178 | 1 | 15 | 53 | 92 | -3 [-6, +0] | |
| elastic 6 px | 392 | 206 | 176 | 1 | 9 | 54 | 95 | +0 [-4, +4] | |
| half resolution | 392 | 206 | 181 | 1 | 4 | 53 | 98 | +3 [-1, +6] | |
| photo-like | 392 | 207 | 167 | 1 | 17 | 55 | 91 | -4 [-12, +3] |
Table S70. D8: attribution under degradation (Visual CoT). T: the transcription inside the response is exact; A: the answer is exact; P(A|T=1) in %; errors with T=1: the share of wrong answers that come with an exact transcription, the statistic of Table 2; vs clean: its change against clean in points, with a 95% percentile bootstrap interval over clusters (B = 4000).
| Arm | 3.8 Flash: in Visual CoT (pairs) | transcription call (images) | 3.1 Pro: in Visual CoT (pairs) | transcription call (images) | 3.6 Flash: in Visual CoT (pairs) | transcription call (images) |
|---|---|---|---|---|---|---|
| clean | 372/392 | 167/170 | 333/392 | 161/170 | 383/392 | 168/170 |
| clean, repeated | 362/392 | 170/170 | 335/392 | 159/170 | 382/392 | 168/170 |
| JPEG q=30 | 318/392 | 153/170 | 345/392 | 157/170 | 384/392 | 168/170 |
| JPEG q=10 | 360/392 | 160/170 | 345/392 | 159/170 | 366/392 | 165/170 |
| blur σ=1.5 | 360/392 | 165/170 | 369/392 | 167/170 | 385/392 | 168/170 |
| blur σ=3 | 363/392 | 167/170 | 365/392 | 160/170 | 380/392 | 168/170 |
| perspective 6% | 374/392 | 167/170 | 342/392 | 162/170 | 381/392 | 168/170 |
| perspective 12% | 366/392 | 163/170 | 328/392 | 158/170 | 364/392 | 162/170 |
| elastic 3 px | 375/392 | 169/170 | 333/392 | 158/170 | 376/392 | 168/170 |
| elastic 6 px | 385/392 | 170/170 | 338/392 | 161/170 | 382/392 | 166/170 |
| half resolution | 368/392 | 165/170 | 341/392 | 161/170 | 387/392 | 169/170 |
| photo-like | 334/392 | 160/170 | 349/392 | 157/170 | 374/392 | 167/170 |
Table S71. D8: exact transcription inside the Visual CoT response (pairs) next to the separate transcription call (images), per arm and configuration.
| Model | Arm | grid | binary | Euler undir. | Euler dir. | F1 | missed H (%) | missed V (%) | extra edges | non-lattice | wrong cells | un parsed |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.8 Flash | clean | 63/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.5 | 0.0 | 0 | 0 | 0 | 0 |
| clean, repeated | 66/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | |
| JPEG q=30 | 50/66 | 39/40 | 32/32 | 32/32 | 0.996 | 4.2 | 0.1 | 0 | 0 | 4 | 0 | |
| JPEG q=10 | 56/66 | 40/40 | 32/32 | 32/32 | 0.999 | 1.4 | 0.1 | 0 | 0 | 0 | 0 | |
| blur σ=1.5 | 61/66 | 40/40 | 32/32 | 32/32 | 0.999 | 1.0 | 0.0 | 0 | 0 | 0 | 0 | |
| blur σ=3 | 63/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.3 | 0.0 | 0 | 0 | 0 | 0 | |
| perspective 6% | 64/66 | 39/40 | 32/32 | 32/32 | 1.000 | 0.3 | 0.0 | 0 | 0 | 2 | 0 | |
| perspective 12% | 62/66 | 37/40 | 32/32 | 32/32 | 0.995 | 0.4 | 0.1 | 0 | 0 | 24 | 0 | |
| elastic 3 px | 65/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.1 | 0.0 | 0 | 0 | 0 | 0 | |
| elastic 6 px | 66/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.0 | 0.0 | 0 | 0 | 0 | 0 | |
| half resolution | 61/66 | 40/40 | 32/32 | 32/32 | 0.999 | 1.5 | 0.0 | 0 | 0 | 0 | 0 | |
| photo-like | 57/66 | 39/40 | 32/32 | 32/32 | 0.998 | 2.2 | 0.0 | 0 | 0 | 8 | 0 | |
| 3.1 Pro | clean | 57/66 | 40/40 | 32/32 | 32/32 | 0.999 | 0.2 | 0.0 | 12 | 0 | 0 | 0 |
| clean, repeated | 56/66 | 40/40 | 32/32 | 31/32 | 0.999 | 0.2 | 0.1 | 12 | 0 | 0 | 0 | |
| JPEG q=30 | 56/66 | 39/40 | 32/32 | 30/32 | 0.998 | 0.4 | 0.3 | 7 | 0 | 6 | 0 | |
| JPEG q=10 | 57/66 | 39/40 | 32/32 | 31/32 | 0.999 | 0.1 | 0.3 | 13 | 0 | 1 | 0 | |
| blur σ=1.5 | 63/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.1 | 0.0 | 2 | 0 | 0 | 0 | |
| blur σ=3 | 59/66 | 38/40 | 32/32 | 31/32 | 0.999 | 0.8 | 0.1 | 1 | 0 | 4 | 0 | |
| perspective 6% | 58/66 | 40/40 | 32/32 | 32/32 | 0.999 | 0.2 | 0.0 | 9 | 0 | 0 | 0 | |
| perspective 12% | 59/66 | 36/40 | 32/32 | 31/32 | 0.997 | 0.1 | 0.0 | 8 | 0 | 17 | 0 | |
| elastic 3 px | 55/66 | 40/40 | 32/32 | 31/32 | 0.999 | 0.3 | 0.0 | 16 | 0 | 0 | 0 | |
| elastic 6 px | 57/66 | 40/40 | 32/32 | 32/32 | 0.999 | 0.2 | 0.1 | 10 | 0 | 0 | 0 | |
| half resolution | 59/66 | 40/40 | 32/32 | 30/32 | 0.999 | 0.1 | 0.1 | 9 | 0 | 0 | 0 | |
| photo-like | 56/66 | 38/40 | 32/32 | 31/32 | 0.998 | 1.4 | 0.7 | 1 | 0 | 2 | 0 | |
| 3.6 Flash | clean | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.0 | 0.1 | 1 | 0 | 0 | 0 |
| clean, repeated | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.0 | 0.0 | 2 | 0 | 0 | 0 | |
| JPEG q=30 | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.1 | 0.0 | 2 | 0 | 0 | 0 | |
| JPEG q=10 | 62/66 | 39/40 | 32/32 | 32/32 | 0.999 | 0.0 | 0.1 | 4 | 0 | 8 | 0 | |
| blur σ=1.5 | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.0 | 0.1 | 1 | 0 | 0 | 0 | |
| blur σ=3 | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.2 | 0.0 | 0 | 0 | 0 | 0 | |
| perspective 6% | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.1 | 0.1 | 0 | 0 | 0 | 0 | |
| perspective 12% | 63/66 | 35/40 | 32/32 | 32/32 | 0.995 | 0.1 | 0.1 | 1 | 0 | 32 | 0 | |
| elastic 3 px | 64/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.1 | 0.0 | 1 | 0 | 0 | 0 | |
| elastic 6 px | 62/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.2 | 0.1 | 1 | 0 | 0 | 0 | |
| half resolution | 65/66 | 40/40 | 32/32 | 32/32 | 1.000 | 0.1 | 0.0 | 0 | 0 | 0 | 0 | |
| photo-like | 64/66 | 40/40 | 32/32 | 31/32 | 1.000 | 0.2 | 0.0 | 2 | 0 | 0 | 0 | |
| Gemma 4 31B | clean | 41/66 | 40/40 | 30/32 | 28/32 | 0.995 | 0.0 | 0.0 | 58 | 0 | 0 | 0 |
| clean, repeated | 41/66 | 40/40 | 30/32 | 28/32 | 0.995 | 0.0 | 0.0 | 58 | 0 | 0 | 0 | |
| JPEG q=30 | 42/66 | 38/40 | 30/32 | 27/32 | 0.995 | 0.2 | 0.2 | 46 | 0 | 2 | 0 | |
| JPEG q=10 | 40/66 | 37/40 | 32/32 | 24/32 | 0.992 | 0.2 | 0.1 | 62 | 0 | 6 | 0 | |
| blur σ=1.5 | 42/66 | 36/40 | 31/32 | 29/32 | 0.996 | 0.0 | 0.1 | 49 | 0 | 4 | 0 | |
| blur σ=3 | 40/66 | 34/40 | 31/32 | 20/32 | 0.990 | 0.0 | 0.3 | 61 | 0 | 9 | 0 | |
| perspective 6% | 45/66 | 33/40 | 32/32 | 31/32 | 0.995 | 0.2 | 0.3 | 33 | 0 | 14 | 0 | |
| perspective 12% | 50/66 | 27/40 | 32/32 | 28/32 | 0.988 | 0.0 | 0.3 | 25 | 0 | 70 | 0 | |
| elastic 3 px | 47/66 | 39/40 | 31/32 | 28/32 | 0.997 | 0.0 | 0.0 | 41 | 0 | 1 | 0 | |
| elastic 6 px | 43/66 | 37/40 | 31/32 | 28/32 | 0.996 | 0.0 | 0.3 | 39 | 0 | 3 | 0 | |
| half resolution | 39/66 | 35/40 | 30/32 | 26/32 | 0.994 | 0.0 | 0.0 | 58 | 0 | 6 | 0 | |
| photo-like | 46/66 | 34/40 | 30/32 | 28/32 | 0.995 | 0.0 | 0.3 | 34 | 0 | 9 | 0 |
Table S72. D8: transcription errors per arm and configuration. Exact transcriptions per family (Eulerian drawings split into undirected and directed); mean F1 over parsed responses; missed horizontal and vertical grid edges as rates of the 1,051 / 1,004 drawn edges (an un parsed grid transcription misses all of its edges); extra edges (grids and Eulerian graphs) and off-lattice edges (grids), summed over images; wrong cells of binary images, summed; un parsed responses.
| Arm | programs | binary/Euler (not scored) | grid, no list | scorable | among | ||||
|---|---|---|---|---|---|---|---|---|---|
| clean | 392 | 144 | 42 | 206 | 182 | 2 | 4 | 18 | 18/22 |
| clean, repeated | 392 | 144 | 44 | 204 | 179 | 3 | 1 | 21 | 19/22 |
| JPEG | 392 | 144 | 42 | 206 | 138 | 2 | 1 | 65 | 62/66 |
| JPEG | 392 | 144 | 43 | 205 | 170 | 1 | 2 | 32 | 30/34 |
| blur | 392 | 144 | 45 | 203 | 175 | 1 | 2 | 25 | 22/27 |
| blur | 392 | 144 | 58 | 190 | 167 | 3 | 2 | 18 | 16/20 |
| perspective 6% | 392 | 144 | 46 | 202 | 185 | 0 | 1 | 16 | 15/17 |
| perspective 12% | 392 | 144 | 40 | 208 | 188 | 4 | 3 | 13 | 11/16 |
| elastic 3 px | 392 | 144 | 43 | 205 | 180 | 5 | 4 | 16 | 14/20 |
| elastic 6 px | 392 | 144 | 45 | 203 | 186 | 7 | 2 | 8 | 7/10 |
| half resolution | 392 | 144 | 52 | 196 | 177 | 2 | 0 | 17 | 17/17 |
| photo-like | 392 | 144 | 45 | 203 | 153 | 3 | 3 | 44 | 43/47 |
Table S73. D8: where the errors of Visual→Code come from (gemini-3.8-flash), per arm. programs: responses with a record; binary/Euler: programs on binary images and Eulerian drawings, counted but not scored; grid, no list: grid responses without a program or without an extractable edge list; : the edge list embedded in the program equals the true one; : the answer is exact; last column: among programs with whose own graph could be counted, those whose answer is the exact count of that graph.
| Descriptive comparison | first | second | identical text | |||
|---|---|---|---|---|---|---|
| 3.8 Flash Transcription: clean vs repeated clean | 170 | 167 | 170 | 0/3 | 0.25 | 30/170 |
| 3.8 Flash Visual CoT: clean vs repeated clean | 392 | 257 | 244 | 28/15 | 0.066 | 20/392 |
| 3.8 Flash Visual→Code: clean vs repeated clean | 392 | 364 | 361 | 19/16 | 0.736 | 2/392 |
| 3.1 Pro Transcription: clean vs repeated clean | 170 | 161 | 159 | 2/0 | 0.5 | 100/170 |
| 3.1 Pro Visual CoT: clean vs repeated clean | 392 | 214 | 223 | 10/19 | 0.136 | 134/392 |
| 3.6 Flash Transcription: clean vs repeated clean | 170 | 168 | 168 | 1/1 | 1 | 16/170 |
| 3.6 Flash Visual CoT: clean vs repeated clean | 392 | 210 | 214 | 20/24 | 0.652 | 2/392 |
| Gemma 4 31B Transcription: clean vs repeated clean | 170 | 139 | 139 | 0/0 | 1 | 170/170 |
| 3.8 Flash Transcription: Exp A vs D8 clean | 170 | 167 | 167 | 1/1 | 1 | – |
| 3.8 Flash Visual CoT: p2_v2 vs D8 clean | 392 | 248 | 257 | 16/25 | 0.211 | – |
| 3.8 Flash Visual→Code: p2_v2 vs D8 clean | 392 | 364 | 364 | 17/17 | 1 | – |
| 3.1 Pro Visual CoT: p2_v2 vs D8 clean | 202 | 118 | 115 | 9/6 | 0.607 | – |
| 3.6 Flash Visual CoT: p2_v2 vs D8 clean | 391 | 205 | 210 | 21/26 | 0.56 | – |
| 3.8 Flash Transcription: JPEG vs JPEG | 170 | 153 | 160 | 4/11 | 0.118 | – |
| 3.8 Flash Transcription: blur vs blur | 170 | 165 | 167 | 2/4 | 0.688 | – |
| 3.8 Flash Transcription: perspective 6% vs perspective 12% | 170 | 167 | 163 | 6/2 | 0.289 | – |
| 3.8 Flash Transcription: elastic 3 px vs elastic 6 px | 170 | 169 | 170 | 0/1 | 1 | – |
| 3.1 Pro Transcription: JPEG vs JPEG | 170 | 157 | 159 | 6/8 | 0.791 | – |
| 3.1 Pro Transcription: blur vs blur | 170 | 167 | 160 | 10/3 | 0.0923 | – |
| 3.1 Pro Transcription: perspective 6% vs perspective 12% | 170 | 162 | 158 | 7/3 | 0.344 | – |
| 3.1 Pro Transcription: elastic 3 px vs elastic 6 px | 170 | 158 | 161 | 4/7 | 0.549 | – |
| 3.6 Flash Transcription: JPEG vs JPEG | 170 | 168 | 165 | 3/0 | 0.25 | – |
| 3.6 Flash Transcription: blur vs blur | 170 | 168 | 168 | 2/2 | 1 | – |
| 3.6 Flash Transcription: perspective 6% vs perspective 12% | 170 | 168 | 162 | 8/2 | 0.109 | – |
| 3.6 Flash Transcription: elastic 3 px vs elastic 6 px | 170 | 168 | 166 | 4/2 | 0.688 | – |
| Gemma 4 31B Transcription: JPEG vs JPEG | 170 | 137 | 133 | 11/7 | 0.481 | – |
| Gemma 4 31B Transcription: blur vs blur | 170 | 138 | 125 | 21/8 | 0.0241 | – |
| Gemma 4 31B Transcription: perspective 6% vs perspective 12% | 170 | 141 | 137 | 14/10 | 0.541 | – |
| Gemma 4 31B Transcription: elastic 3 px vs elastic 6 px | 170 | 145 | 139 | 10/4 | 0.18 | – |
Table S74. D8: descriptive comparisons, no correction. Top: clean against its byte-identical repeat in the same session, per configuration and kind, with the number of keys whose two stored responses are identical. Middle: the D8 clean calls against byte-identical requests sent in earlier sessions (Experiment A for transcriptions, the main runs for Visual CoT and Visual→Code; counts the units with a record in both). Bottom: the milder against the stronger level of each degradation (transcription). : units right only in the first / only in the second; exact two-sided McNemar .
| Model | Kind | ok keys | thoughts (clean) | thoughts (degraded) | USD | UTC span | model version |
|---|---|---|---|---|---|---|---|
| 3.8 Flash | Transcription | 2040 | 793 | 853 | 10.74 | 2026-10-08 19:01 UTC to 2026-10-09 04:10 UTC | gemini-3.8-flash |
| 3.8 Flash | Visual CoT | 4704 | 4323 | 4329 | 93.54 | 2026-10-08 19:02 UTC to 2026-10-09 17:51 UTC | gemini-3.8-flash |
| 3.8 Flash | Visual→Code | 4704 | 1039 | 1177 | 35.74 | 2026-10-08 19:04 UTC to 2026-10-09 17:48 UTC | gemini-3.8-flash |
| 3.1 Pro | Transcription | 2040 | 782 | 695 | 28.80 | 2026-10-08 19:01 UTC to 2026-10-09 00:19 UTC | gemini-3.1-pro-preview |
| 3.1 Pro | Visual CoT | 4704 | 3851 | 3977 | 262.36 | 2026-10-08 19:03 UTC to 2026-10-09 05:36 UTC | gemini-3.1-pro-preview |
| 3.6 Flash | Transcription | 2040 | 924 | 968 | 9.37 | 2026-10-08 19:01 UTC to 2026-10-09 00:17 UTC | gemini-3.6-flash |
| 3.6 Flash | Visual CoT | 4704 | 5585 | 5259 | 87.73 | 2026-10-08 19:02 UTC to 2026-10-09 05:43 UTC | gemini-3.6-flash |
| Gemma 4 31B | Transcription | 2040 | 0 | 0 | 0.00 | 2026-10-08 19:01 UTC to 22:33 UTC | gemma-4-31b-it |
Table S75. D8: calls with a record, mean thought tokens under clean and averaged over the ten degraded arms, list-price USD, time span and reported model version, per configuration and kind.
N. Magnitude-matched twins on eight thinking configurations
Why. Section 6.2 reports that, fitted per class, the of the GapL tasks moves further with thinking than that of the #P tasks on all three ladders (last column of Table S4). That comparison is confounded: in the benchmark the two classes have different answer sizes, and the top rungs have fewer instances. T6 removes the confound by design. Each twin is one picture and one edge list that carries a #ST task (GapL) and a #M task (#P) whose answers lie within 0.25 decades of each other, so the two classes are compared at the same magnitude, on the same image and under the same configuration. Part B adds two controls: a copy control, in which the prompt states the correct answer and asks the model to copy it, and an explicit-algorithm control, in which the prompt prescribes the standard algorithm for the task and asks the model to carry it out by hand. The plan, the generator, the twin file, the image manifest and the runner were hash-recorded before the first call, and the analysis script before any result record was read (the log then held 308 records, unread).
Twins. A candidate twin starts from the full grid and deletes random edges one at a time, keeping the graph connected with minimum degree at least 2 (the rule of the benchmark grids), until the number of spanning trees falls more than 0.25 decades below the number of matchings or no edge can be deleted. Every state visited on the way with at least two deleted edges and the two counts within 0.25 decades of each other is eligible, and one of them is picked uniformly at random. From these candidates we selected 80 twins by the mean of their two answers, ten in each of eight strata, [2, 3), [3, 4), ..., [8, 9) and [9, 10.5). They lie on grids from to (ten , fifteen , ten and five of each of nine other sizes), have 15 to 57 edges and answers of 3 to 11 digits, and the gap between their two answers has mean +0.012 and range -0.245 to +0.240. Every ground truth was computed by independent routes that had to agree: #ST by integer Bareiss elimination on the Laplacian with vertex 0 and, separately, vertex removed; #M by the row-major profile dynamic program of the benchmark on the grid and on its transpose, and by memoised edge recursion when . No twin has the edge set of a benchmark or extra-large grid, and the images come from the renderer of every benchmark grid. The copy control also uses the 60 extra-large instances of Table S16 (24 grids from to , answers of 5 to 38 digits).
Configurations and conditions. T6 uses eight configurations on three ladders: gemini-3.8-flash at the low, medium and high thinking levels, gemini-3.6-flash at minimal, low and high, and gemini-3.1-pro-preview at low and high. Every request goes through the client of the main runs unchanged (temperature 0, at most 65,536 output tokens at the high level and 32,768 otherwise); only the client-side retry settings differ (up to 12 attempts per call and a 900-second read timeout). Part A asks both tasks of every twin in the Visual and Text conditions with the prompts of the main experiments (§C), 2,560 calls. Part B has 1,140 calls. The copy control runs on gemini-3.8-flash (low), gemini-3.6-flash (minimal) and gemini-3.1-pro-preview (low), on both tasks of every twin and on the 60 extra-large instances; its prompt is the edge list and the task of the Text prompt, then the copy instruction with {gt} replaced by the true answer, then the answer-format line. The explicit-algorithm control runs on the three gemini-3.8-flash rungs, on both tasks of every twin; its prompt is the edge list and the task of the Text prompt, then the method text of the task with {c} replaced by the number of grid columns, then the same answer-format line. The added texts, verbatim, are below.
Copy instruction:
The correct answer to this task is {gt}. Do not recompute it: copy this number exactly as your answer.
Method text for #ST:
Method (use exactly this one). By Kirchhoff's matrix-tree theorem the answer is det(M), where M is the Laplacian L = D - A of the graph (D = diagonal matrix of vertex degrees, A = adjacency matrix) with row 0 and column 0 deleted: an N x N integer matrix with N = n-1, whose row and column i belong to vertex i (i = 1, ..., N). Compute det(M) exactly by fraction-free Gaussian elimination (the Bareiss algorithm): set p = 1; for k = 1, ..., N-1, replace M[i][j] by (M[k][k] * M[i][j] - M[i][k] * M[k][j]) / p for every i > k and j > k (the division is always exact), then set p = M[k][k]. For this matrix every pivot M[k][k] is a positive integer, so no row swaps are needed. At the end det(M) = M[N][N]. Carry out every step by hand in your response with exact integers, writing out the remaining matrix after each elimination step. Do not write or run code.
Method text for #M:
Method (use exactly this one). Process the vertices v = 0, 1, ..., n-1 in row-major order with a dynamic program over a frontier. A state is the set of vertices among v, v+1, ..., v+(C)-1 that are already covered by a chosen edge, and a table maps each state to its number of partial matchings. Start with the empty state and count 1. At vertex v, for each state: if v is already covered, keep the state; otherwise there are up to three options: leave v uncovered; add the edge (v, v+1) if v+1 is in the same row, that edge exists and v+1 is not covered; add the edge (v, v+(C)) if that edge exists (v+(C) becomes covered). Then drop v from the window, move to v+1, and add up the counts of states that become equal. The answer is the sum of all counts after vertex n-1. Carry out every step by hand in your response with exact integers, writing out the table after each vertex. Do not write or run code.
Answer-format line that ends both:
End your response with exactly one line containing a JSON object of the form {"answer": "<integer>}. The answer must be an exact integer.
A unit is all tasks of one image under one configuration and condition. The 1,280 Part A units go first, in a seeded random order, and the 552 Part B units after them; one worker sends the tasks of a unit back to back, so the two members of a twin are asked minutes apart under the same configuration. Failed calls are retried in later passes, at most ten. Scoring is that of the main runs: the last JSON object of the response, with exact integer equality; a Visual response also gets the F1 of its edge list against the true one, and a response cut at the output limit without a parsable answer counts as not exact.
Analysis. A unit of the primary analysis is a twin under one configuration and condition; it is complete when both of its calls returned, and discordant when exactly one of its two answers is exact. H1 asks whether configurations that think more resolve the discordant twins in favour of the GapL member more often, with Visual and Text as co-primary tests and Holm over the two at family-wise level 0.05. Among the discordant units of a condition let z = 1 when the #ST answer is the exact one. We fit the logistic regression z ~ ladder + (x_c - 3) + d_i, where the ladder enters as three intercepts, x_c is log_{10} of the mean output tokens (thoughts plus answer) of configuration c over its Part A records in that condition, and d_i is the gap of twin i; H1 states that the coefficient \beta_x of x_c is positive. The one-sided p comes from a bootstrap over twins (B = 4000, all records of a twin resampled together), p = (1 + #{\beta_x^* \leq 0})/(B_{ok} + 1) with B_{ok} the replicates whose fit succeeded, together with a 95% percentile interval. A replicate counts as failed and is dropped when its Newton fit has not converged after 50 iterations, has a coefficient above 15 in absolute value or has a rank-deficient design; the count is reported, and above 5% of B the test is flagged as fragile. H1 is not testable in a condition with fewer than 30 discordant units, a failed point fit or a rank-deficient design. The plan wrote x_c uncentred. Before any record was read we centred it at log_{10} of 1,000 tokens, which leaves \beta_x, the likelihood and the fitted shares unchanged but keeps the ladder intercepts small, so that the coefficient rule no longer drops replicates only because the intercepts are logits at zero tokens (on planted fixtures, up to 165 of 4,000 replicates were dropped uncentred and none centred). The uncentred fit, as written in the plan, is reported as a sensitivity analysis.
The secondary analyses, all reported, are: (1) the class effect at matched magnitude in each of the 16 configuration and condition cells, as the exact rates of the two members over complete units with an exact two-sided McNemar test and Holm over the 16 cells, and pooled per condition as the share of discordant units in which the #ST member is exact, with a bootstrap interval over twins and a two-sided bootstrap test of a share of one half; (2) the rise in exact rate from the lowest to the highest rung of each ladder for each class and the difference of the two rises, with bootstrap intervals over twins, and a descriptive m_{50} per configuration, condition and class; (3) an out-of-sample check of the magnitude analysis: for every configuration and condition, the two logistic models of exact match on log_{10} answer, without and with a #P indicator, are fitted unchanged on the main-run records of that cell (grid and Eulerian families, extra-large grids included) and predict the T6 Part A records of the same cell, and we report calibration, AUC and log-loss per cell and pooled, with a bootstrap interval for the pooled difference in log-loss between the two models, which says whether the class coefficient of the main runs carries over to matched twins; (4) paired output tokens of the two members, by a two-sided Wilcoxon signed-rank test on ; (5) the pooled share of (1) and the H1 fit restricted to the Visual units whose two transcriptions are both exact, descriptive; (6) the accounting of returned calls, failures, model versions, time span and cost.
Part B is descriptive: (7) exact copies per configuration and digit-count bin, with every miss listed; (8) the method prompt against the Text prompt of Part A on the same twin tasks and gemini-3.8-flash rungs, with an exact two-sided McNemar test, the responses cut at the output limit, and the median output tokens and wall time; (9) accuracy against the work of the prescribed algorithm, which we count by running it on every twin (Bareiss entry updates with for #ST, dynamic-program transitions for #M), as exact rates by half-decade bins of work, output tokens per unit of work, and logistic fits of exact match on answer, on work and on both, with bootstrap intervals over twins.
Results. The calls ran from 2026-10-07 23:09–2026-10-09 11:46 UTC (36.6 hours, model versions gemini-3.1-pro-preview, gemini-3.6-flash, gemini-3.8-flash); 3699 of the 3700 calls returned (Table S89), and the list price was \hat{\beta}_x = -0.61p = 0.908p = 0.88$), with no failed bootstrap fit, and the uncentred fit of the plan gives the same coefficients. At matched magnitude and on the same image, configurations that think more do not resolve the discordant twins in favour of the GapL member more often; the fitted #ST share is lower at the top rung than at the bottom rung of every ladder (Table S77).
At matched magnitude the #P member is somewhat harder (Table S78). Pooled over configurations, the #ST member is the exact one in 60% of the discordant Visual units (73 against 49; 95% interval [50, 69]%, ) and in 60% of the discordant Text units (86 against 58; [51, 69]%, ). Of the 16 cells only gemini-3.8-flash at low thinking in Text survives Holm (, Holm ). The GapL member does not gain more from thinking than the #P member (Table S79): the difference of the two rises is negative on every ladder and condition except 3.1-pro in Text, and its interval excludes zero only on the 3.8-flash ladder in Text, where the #M member rises more (-18 points, [-34, -3]). The per-class comparison of Table S4 that motivated T6 is therefore better explained by the different answer sizes of the two classes in the benchmark than by a class-specific gain from thinking. Restricted to the Visual units whose two transcriptions are both exact, the pooled share is 59% (62 against 43, ) and ([-1.97, +0.51]), close to the full sample, and the two members of a twin get similar numbers of output tokens (Wilcoxon in Visual and 0.708 in Text; Table S83).
The magnitude analysis carries over out of sample (Tables S81 and S82). Fitted on the main-run records only, the magnitude model ranks the T6 records with AUC 0.92 pooled over both conditions and calibration slope 0.99; its calibration intercept of 1.56 means that the twins are solved more often than main-run instances of the same magnitude. Adding the #P indicator changes the out-of-sample log-loss per record by -0.008 in Visual ([-0.016, -0.001]) and -0.014 in Text ([-0.021, -0.007]), negative meaning that the class term helps, so the class coefficient of the main runs carries over to matched twins, at the small size reported in §6.1.
In Part B every copy-control response is exact (Table S84): 160 of 160 twin tasks and 60 of 60 extra-large instances for each of the three configurations, in every digit-count bin, so Table S85 has no row. Writing a long integer down is therefore not what limits the models on these tasks. Prescribing the standard algorithm does not help (Table S86). For #ST, Bareiss elimination carried out by hand is exact about as often as the Text prompt on every rung (high thinking: 69 against 69 of 79). For #M the prescribed dynamic program is worse than the Text prompt at medium thinking (31 against 47 of 80, , ) and at high thinking (54 against 66, ), and more of its responses are cut at the output limit (18 and 17, against 9 and 0 under the Text prompt). Tables S87 and S88 give accuracy against the work of the prescribed algorithm.
| Condition | role | complete units | discordant | ST is the exact one | 95% CI | one-sided | Holm | failed fits | H1 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Visual | co-primary | 640 | 122 | 73/122 | -0.61 | [-1.88, +0.38] | 0.908 | 1 | 0/4000 | not supported |
| Text | co-primary | 639 | 144 | 86/144 | -0.51 | [-1.60, +0.35] | 0.88 | 1 | 0/4000 | not supported |
| Visual, uncentred (plan text) | sensitivity | 640 | 122 | 73/122 | -0.61 | [-1.88, +0.38] | 0.908 | 1 | 1/4000 | not supported |
| Text, uncentred (plan text) | sensitivity | 639 | 144 | 86/144 | -0.51 | [-1.60, +0.35] | 0.88 | 1 | 0/4000 | not supported |
| Visual, both transcriptions exact | descriptive | 543 | 105 | 62/105 | -0.57 | [-1.97, +0.51] | 0.878 | - | 1/4000 | - |
Table S76. T6, H1: per condition, the complete and discordant units (exactly one of the two answers exact), how often the #ST member is the exact one, and the token coefficient of with its 95% percentile interval and one-sided from the bootstrap over twins (); Holm over the two co-primary conditions; failed fits: dropped replicates. Sensitivity rows: uncentred, as in the plan. Descriptive row: the Visual units whose two transcriptions are both exact.
| Condition | Ladder | lowest rung | fitted ST share (%) | 95% CI | highest rung | fitted ST share (%) | 95% CI |
|---|---|---|---|---|---|---|---|
| Visual | 3.8 Flash | Gemini 3.8 Flash (low) | 77 | [65, 89] | Gemini 3.8 Flash (high) | 69 | [52, 84] |
| Visual | 3.6 Flash | Gemini 3.6 Flash (minimal) | 47 | [19, 84] | Gemini 3.6 Flash (high) | 29 | [12, 46] |
| Visual | 3.1 Pro | Gemini 3.1 Pro (low) | 72 | [53, 89] | Gemini 3.1 Pro (high) | 61 | [42, 79] |
| Text | 3.8 Flash | Gemini 3.8 Flash (low) | 80 | [67, 92] | Gemini 3.8 Flash (high) | 72 | [56, 86] |
| Text | 3.6 Flash | Gemini 3.6 Flash (minimal) | 53 | [30, 79] | Gemini 3.6 Flash (high) | 38 | [22, 55] |
| Text | 3.1 Pro | Gemini 3.1 Pro (low) | 66 | [45, 86] | Gemini 3.1 Pro (high) | 55 | [37, 71] |
Table S77. T6: fitted share (%) of discordant units in which the #ST member is exact, at the lowest and the highest rung of each ladder, from the H1 fit at , with 95% bootstrap intervals over twins.
| Configuration | Cond. | complete units | ST exact (%) | #M exact (%) | b/c | p | Holm p | ST share of discordant (%) |
|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual | 80 | 45 | 31 | 16/5 | 0.0266 | 0.399 | 76 |
| Gemini 3.8 Flash (medium) | Visual | 80 | 59 | 46 | 14/4 | 0.0309 | 0.432 | 78 |
| Gemini 3.8 Flash (high) | Visual | 80 | 79 | 72 | 11/6 | 0.332 | 1 | 65 |
| Gemini 3.6 Flash (minimal) | Visual | 80 | 1 | 4 | 1/3 | 0.625 | 1 | 25 |
| Gemini 3.6 Flash (low) | Visual | 80 | 18 | 22 | 2/6 | 0.289 | 1 | 25 |
| Gemini 3.6 Flash (high) | Visual | 80 | 35 | 42 | 8/14 | 0.286 | 1 | 36 |
| Gemini 3.1 Pro (low) | Visual | 80 | 26 | 16 | 10/2 | 0.0386 | 0.501 | 83 |
| Gemini 3.1 Pro (high) | Visual | 80 | 55 | 52 | 11/9 | 0.824 | 1 | 55 |
| pooled (Visual) | Visual | 640 | 40 | 36 | 73/49 | 0.0555 | – | 60 [50, 69] |
| Gemini 3.8 Flash (low) | Text | 80 | 41 | 19 | 22/4 | 0.000534 | 0.00854 | 85 |
| Gemini 3.8 Flash (medium) | Text | 80 | 68 | 59 | 9/2 | 0.0654 | 0.785 | 82 |
| Gemini 3.8 Flash (high) | Text | 79 | 87 | 84 | 9/6 | 0.607 | 1 | 60 |
| Gemini 3.6 Flash (minimal) | Text | 80 | 10 | 9 | 6/5 | 1 | 1 | 55 |
| Gemini 3.6 Flash (low) | Text | 80 | 24 | 26 | 9/11 | 0.824 | 1 | 45 |
| Gemini 3.6 Flash (high) | Text | 80 | 35 | 42 | 8/14 | 0.286 | 1 | 36 |
| Gemini 3.1 Pro (low) | Text | 80 | 21 | 20 | 7/6 | 1 | 1 | 54 |
| Gemini 3.1 Pro (high) | Text | 80 | 56 | 49 | 16/10 | 0.327 | 1 | 62 |
| pooled (Text) | Text | 639 | 43 | 38 | 86/58 | 0.037 | – | 60 [51, 69] |
Table S78. T6, secondary analysis (1): the class effect at matched magnitude in each configuration and condition. Exact rates over complete units; b/c: units with only the #ST / only the #M answer exact; exact two-sided McNemar p; Holm over the 16 cells; last column: b/(b + c). Pooled rows: all configurations of a condition, with the two-sided bootstrap p for a share of one half and a 95% interval for the share (over twins, ).
| Ladder | Cond. | rates over | ST lowest→highest (%) | ST rise | #M lowest→highest (%) | #M rise | ST rise – #M rise | 95% CI |
|---|---|---|---|---|---|---|---|---|
| 3.8 Flash | Visual | returned | 45→79 | +34 | 31→72 | +41 | -8 | [-22, +6] |
| 3.8 Flash | Visual | missing = wrong | 45→79 | +34 | 31→72 | +41 | -8 | [-22, +6] |
| 3.8 Flash | Text | returned | 41→87 | +46 | 19→82 | +64 | -18 | [-34, -3] |
| 3.8 Flash | Text | missing = wrong | 41→86 | +45 | 19→82 | +64 | -19 | [-34, -4] |
| 3.6 Flash | Visual | returned | 1→35 | +34 | 4→42 | +39 | -5 | [-18, +8] |
| 3.6 Flash | Visual | missing = wrong | 1→35 | +34 | 4→42 | +39 | -5 | [-18, +8] |
| 3.6 Flash | Text | returned | 10→35 | +25 | 9→42 | +34 | -9 | [-21, +5] |
| 3.6 Flash | Text | missing = wrong | 10→35 | +25 | 9→42 | +34 | -9 | [-21, +5] |
| 3.1 Pro | Visual | returned | 26→55 | +29 | 16→52 | +36 | -8 | [-21, +6] |
| 3.1 Pro | Visual | missing = wrong | 26→55 | +29 | 16→52 | +36 | -8 | [-21, +6] |
| 3.1 Pro | Text | returned | 21→56 | +35 | 20→49 | +29 | +6 | [-10, +21] |
| 3.1 Pro | Text | missing = wrong | 21→56 | +35 | 20→49 | +29 | +6 | [-10, +21] |
Table S79. T6, secondary analysis (2): exact rate at the lowest and the highest rung of each ladder per class, the two rises and their difference (#ST rise minus #M rise, in points) with a 95% bootstrap interval over twins. returned: rates over the twins with a record; missing = wrong; over all 80 twins, a missing record scored as not exact.
| Configuration | Visual #ST | Visual #M | Text #ST | Text #M |
|---|---|---|---|---|
| Gemini 3.8 Flash (low) | 5.6 | 4.6 | 5.4 | 3.5 |
| Gemini 3.8 Flash (medium) | 6.8 | 5.8 | 7.4 | 6.7 |
| Gemini 3.8 Flash (high) | 9.4 | 8.0 | 10.3 | 8.7 |
| Gemini 3.6 Flash (minimal) | < 2 | < 2 | 2.7 | 2.6 |
| Gemini 3.6 Flash (low) | 3.4 | 3.8 | 3.5 | 4.1 |
| Gemini 3.6 Flash (high) | 4.8 | 5.5 | 4.9 | 5.5 |
| Gemini 3.1 Pro (low) | 4.2 | 3.3 | 3.8 | 3.7 |
| Gemini 3.1 Pro (high) | 6.5 | 6.3 | 6.6 | 6.0 |
Table S80. T6: descriptive per configuration, condition and task, from a logistic fit of exact match on answer (at least 15 records, neither all exact nor all wrong, negative slope); values outside [2, 10.5], the range of the strata, are printed as bounds; -: no fit.
| Configuration | Cond. | n | AUC mag. | AUC +class | cal. slope mag. | cal. int. mag. | cal. slope +class | cal. int. +class | log-loss mag. | log-loss +class | 95% CI | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual | 160 | 0.85 | 0.87 | 0.76 | 1.46 | 0.80 | 1.49 | 0.678 | 0.647 | -0.032 | - |
| Gemini 3.8 Flash (low) | Text | 160 | 0.87 | 0.90 | 0.80 | 1.28 | 0.90 | 1.40 | 0.536 | 0.491 | -0.045 | - |
| Gemini 3.8 Flash (medium) | Visual | 160 | 0.90 | 0.90 | 1.21 | 1.84 | 1.15 | 1.55 | 0.564 | 0.513 | -0.050 | - |
| Gemini 3.8 Flash (medium) | Text | 160 | 0.94 | 0.93 | 2.01 | 3.71 | 1.69 | 2.93 | 0.627 | 0.578 | -0.049 | - |
| Gemini 3.8 Flash (high) | Visual | 160 | 0.82 | 0.82 | 1.01 | 1.33 | 0.96 | 1.38 | 0.551 | 0.560 | +0.009 | - |
| Gemini 3.8 Flash (high) | Text | 159 | 0.88 | 0.88 | 1.51 | 2.69 | 1.48 | 2.66 | 0.620 | 0.612 | -0.008 | - |
| Gemini 3.6 Flash (minimal) | Visual | 160 | 0.88 | 0.91 | 0.59 | -0.23 | 0.61 | -0.07 | 0.105 | 0.105 | -0.000 | - |
| Gemini 3.6 Flash (minimal) | Text | 160 | 0.91 | 0.91 | 1.05 | 1.53 | 1.05 | 1.53 | 0.240 | 0.239 | -0.001 | - |
| Gemini 3.6 Flash (low) | Visual | 160 | 0.93 | 0.93 | 1.09 | 1.92 | 1.09 | 1.93 | 0.384 | 0.385 | +0.001 | - |
| Gemini 3.6 Flash (low) | Text | 160 | 0.86 | 0.86 | 0.97 | 1.03 | 0.97 | 0.95 | 0.447 | 0.445 | -0.003 | - |
| Gemini 3.6 Flash (high) | Visual | 160 | 0.90 | 0.89 | 1.19 | 1.34 | 1.10 | 1.08 | 0.451 | 0.458 | +0.007 | - |
| Gemini 3.6 Flash (high) | Text | 160 | 0.89 | 0.88 | 0.94 | 1.40 | 0.88 | 1.18 | 0.537 | 0.538 | +0.001 | - |
| Gemini 3.1 Pro (low) | Visual | 160 | 0.92 | 0.91 | 0.87 | 1.35 | 0.81 | 1.29 | 0.394 | 0.410 | +0.016 | - |
| Gemini 3.1 Pro (low) | Text | 160 | 0.96 | 0.95 | 0.79 | 2.38 | 0.77 | 2.37 | 0.460 | 0.470 | +0.009 | - |
| Gemini 3.1 Pro (high) | Visual | 160 | 0.90 | 0.89 | 1.11 | 2.05 | 1.11 | 2.00 | 0.640 | 0.626 | -0.014 | - |
| Gemini 3.1 Pro (high) | Text | 160 | 0.86 | 0.86 | 1.17 | 0.93 | 1.11 | 0.78 | 0.523 | 0.510 | -0.014 | - |
| pooled | Visual | 1280 | 0.92 | 0.92 | 0.97 | 1.52 | 0.96 | 1.45 | 0.471 | 0.463 | -0.008 | [-0.016, -0.001] |
| pooled | Text | 1279 | 0.92 | 0.92 | 1.00 | 1.59 | 0.99 | 1.50 | 0.499 | 0.485 | -0.014 | [-0.021, -0.007] |
| pooled | both | 2559 | 0.92 | 0.92 | 0.99 | 1.56 | 0.97 | 1.47 | 0.485 | 0.474 | -0.011 | [-0.016, -0.005] |
Table S81. T6, secondary analysis (3): the two logistic models of the magnitude analysis, fitted on the main-run records of each configuration and condition, predicting the T6 Part A records of the same cell. mag.: exact match on answer; +class: with the #P indicator; calibration slope and intercept from a regression of the outcome on the frozen linear predictor; log-loss per record; : +class minus mag., negative when the class term helps, with a 95% bootstrap interval over twins for the pooled rows.
| Cond. | stratum ( answer) | n | observed exact (%) | predicted, mag. (%) | predicted, +class (%) |
|---|---|---|---|---|---|
| Visual | [2,3) | 160 | 78 | 60 | 60 |
| Visual | [3,4) | 160 | 71 | 43 | 44 |
| Visual | [4,5) | 160 | 56 | 31 | 32 |
| Visual | [5,6) | 160 | 32 | 16 | 17 |
| Visual | [6,7) | 160 | 29 | 10 | 11 |
| Visual | [7,8) | 160 | 21 | 8 | 9 |
| Visual | [8,9) | 160 | 11 | 4 | 4 |
| Visual | [9,10.5) | 160 | 4 | 2 | 2 |
| Text | [2,3) | 160 | 85 | 61 | 61 |
| Text | [3,4) | 160 | 68 | 43 | 44 |
| Text | [4,5) | 160 | 62 | 32 | 33 |
| Text | [5,6) | 160 | 38 | 18 | 20 |
| Text | [6,7) | 160 | 24 | 12 | 13 |
| Text | [7,8) | 160 | 25 | 10 | 11 |
| Text | [8,9) | 160 | 17 | 5 | 5 |
| Text | [9,10.5) | 159 | 6 | 2 | 2 |
Table S82. T6: observed exact rate and the rates predicted by the two models of Table S81, per stratum of answer, pooled over configurations.
| Configuration | Cond. | complete units | median | Wilcoxon | |
|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | Visual | 80 | +0.197 | 0.000463 | |
| Gemini 3.8 Flash (medium) | Visual | 80 | -0.001 | 0.274 | |
| Gemini 3.8 Flash (high) | Visual | 80 | -0.013 | 0.106 | |
| Gemini 3.6 Flash (minimal) | Visual | 80 | -0.070 | ||
| Gemini 3.6 Flash (low) | Visual | 80 | -0.003 | 0.481 | |
| Gemini 3.6 Flash (high) | Visual | 80 | -0.012 | 0.256 | |
| Gemini 3.1 Pro (low) | Visual | 80 | +0.127 | ||
| Gemini 3.1 Pro (high) | Visual | 80 | -0.001 | 0.645 | |
| pooled | Visual | 640 | -0.000 | 0.132 | |
| Gemini 3.8 Flash (low) | Text | 80 | +0.096 | 0.0538 | |
| Gemini 3.8 Flash (medium) | Text | 80 | -0.002 | 0.659 | |
| Gemini 3.8 Flash (high) | Text | 79 | -0.048 | 0.00031 | |
| Gemini 3.6 Flash (minimal) | Text | 80 | -0.063 | 0.0369 | |
| Gemini 3.6 Flash (low) | Text | 80 | -0.054 | 0.625 | |
| Gemini 3.6 Flash (high) | Text | 80 | -0.030 | 0.00211 | |
| Gemini 3.1 Pro (low) | Text | 80 | +0.141 | ||
| Gemini 3.1 Pro (high) | Text | 80 | -0.014 | 0.0365 | |
| pooled | Text | 639 | -0.014 | 0.708 |
Table S83. T6, secondary analysis (4): paired output tokens of the two members of a twin over complete units, as the median of with a two-sided Wilcoxon signed-rank , per cell and pooled per condition.
| Configuration | 3-5 digits | 6-8 digits | 9-11 digits | all |
|---|---|---|---|---|
| Gemini 3.8 Flash (low) | 59/59 | 61/61 | 40/40 | 160/160 |
| Gemini 3.6 Flash (minimal) | 59/59 | 61/61 | 40/40 | 160/160 |
| Gemini 3.1 Pro (low) | 59/59 | 61/61 | 40/40 | 160/160 |
| Configuration | 5-10 digits | 13-20 digits | 21-30 digits | 31-38 digits | all |
|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | 12/12 | 18/18 | 23/23 | 7/7 | 60/60 |
| Gemini 3.6 Flash (minimal) | 12/12 | 18/18 | 23/23 | 7/7 | 60/60 |
| Gemini 3.1 Pro (low) | 12/12 | 18/18 | 23/23 | 7/7 | 60/60 |
Table S84. T6, copy control: exact copies of the stated answer by digit count, on the twin tasks (top) and on the 60 extra-large instances (bottom).
| Set | Configuration | instance | task | true digits | returned digits | finish |
|---|---|---|---|---|---|---|
| none |
Table S85. T6: every copy-control response whose answer is not the stated number, with the true and returned digit counts and the finish reason; -: no parsable answer.
| Configuration | Task | pairs | Algo exact (%) | Text exact (%) | b/c | p | MAX_TOKENS A/T | median tokens A/T | median s A/T |
|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.8 Flash (low) | #ST | 80 | 36 | 41 | 8/12 | 0.503 | 0/0 | 3896/3978 | 37/35 |
| Gemini 3.8 Flash (low) | #M | 80 | 19 | 19 | 7/7 | 1 | 0/0 | 3613/2982 | 28/33 |
| Gemini 3.8 Flash (medium) | #ST | 80 | 70 | 68 | 9/7 | 0.804 | 11/9 | 21606/22573 | 154/164 |
| Gemini 3.8 Flash (medium) | #M | 80 | 39 | 59 | 3/19 | 0.000855 | 18/9 | 22295/17650 | 141/149 |
| Gemini 3.8 Flash (high) | #ST | 79 | 87 | 87 | 7/7 | 1 | 4/2 | 42587/35547 | 307/247 |
| Gemini 3.8 Flash (high) | #M | 80 | 68 | 82 | 1/13 | 0.00183 | 17/0 | 55246/41018 | 313/257 |
Table S86. T6, explicit-algorithm control: the method prompt (Algo, A) against the Text prompt of Part A (T) on the same twin tasks, over twins with both records. b/c: twins exact only under Algo / only under Text; exact two-sided McNemar p; MAX_TOKENS: responses cut at the output limit; median output tokens and median wall time in seconds.
| Cond. | Configuration | [2.5, 3.0) | [3.0, 3.5) | [3.5, 4.0) | [4.0, 4.5) | tokens/work |
|---|---|---|---|---|---|---|
| Algo | Gemini 3.8 Flash (low) | 12/15 (0) | 9/15 (0) | 8/30 (0) | 0/20 (0) | 1.5 |
| Algo | Gemini 3.8 Flash (medium) | 15/15 (0) | 14/15 (0) | 24/30 (5) | 3/20 (6) | 4.5 |
| Algo | Gemini 3.8 Flash (high) | 14/15 (1) | 14/15 (1) | 28/30 (0) | 13/20 (2) | 8.3 |
| Text | Gemini 3.8 Flash (low) | 13/15 (0) | 13/15 (0) | 5/30 (0) | 2/20 (0) | 1.2 |
| Text | Gemini 3.8 Flash (medium) | 15/15 (0) | 15/15 (0) | 22/30 (4) | 2/20 (5) | 4.6 |
| Text | Gemini 3.8 Flash (high) | 15/15 (0) | 14/15 (0) | 28/30 (0) | 12/19 (2) | 7.2 |
| Cond. | Configuration | [2.0, 2.5) | [2.5, 3.0) | [3.0, 3.5) | [3.5, 4.0) | tokens/work |
| Algo | Gemini 3.8 Flash (low) | 11/16 (0) | 2/23 (0) | 2/37 (0) | 0/4 (0) | 3.6 |
| Algo | Gemini 3.8 Flash (medium) | 13/16 (0) | 13/23 (5) | 5/37 (13) | 0/4 (0) | 26.4 |
| Algo | Gemini 3.8 Flash (high) | 16/16 (0) | 22/23 (3) | 15/37 (13) | 1/4 (1) | 55.6 |
| Text | Gemini 3.8 Flash (low) | 7/16 (0) | 8/23 (0) | 0/37 (0) | 0/4 (0) | 3.0 |
| Text | Gemini 3.8 Flash (medium) | 16/16 (0) | 18/23 (3) | 12/37 (5) | 1/4 (1) | 23.5 |
| Text | Gemini 3.8 Flash (high) | 16/16 (0) | 22/23 (0) | 27/37 (0) | 1/4 (0) | 43.3 |
Table S87. T6: exact answers against the work of the prescribed algorithm, in half-decade bins of work, under the method prompt (Algo) and the Text prompt: Bareiss entry updates for #ST (top) and dynamic-program transitions for #M (bottom). Cells: exact/returned, with the responses cut at the output limit in parentheses; tokens/work: median output tokens per unit of work.
| Task | Configuration | Cond. | n | exact | ans. | work | both: ans. | both: work |
|---|---|---|---|---|---|---|---|---|
| #ST | Gemini 3.8 Flash (low) | Algo | 80 | 29 | -0.86 [-1.39, -0.58] | -3.10 [-4.28, -1.99] | -2.00 [-3.64, -0.20] | +4.17 [-3.17, +9.53] |
| #ST | Gemini 3.8 Flash (low) | Text | 80 | 33 | -0.95 [-1.74, -0.62] | -3.66 [-4.28, -2.26] | -0.71 [-3.73, +0.21] | -0.93 [-4.23, +9.17] |
| #ST | Gemini 3.8 Flash (medium) | Algo | 80 | 56 | -1.14 [-1.86, -0.72] | - | -2.38 [-3.87, -0.73] | +5.81 [-1.55, +10.55] |
| #ST | Gemini 3.8 Flash (medium) | Text | 80 | 54 | -1.62 [-2.02, -1.19] | - | - | - |
| #ST | Gemini 3.8 Flash (high) | Algo | 80 | 69 | -0.44 [-1.00, -0.12] | -1.88 [-3.22, -0.39] | -0.96 [-2.31, +0.37] | +2.40 [-3.36, +7.93] |
| #ST | Gemini 3.8 Flash (high) | Text | 79 | 69 | -0.59 [-1.23, -0.26] | -3.09 [-3.37, -1.07] | - | - |
| #M | Gemini 3.8 Flash (low) | Algo | 80 | 15 | -1.21 [-3.55, -0.68] | -4.99 [-6.13, -3.01] | -0.66 [-4.18, +0.23] | -2.43 [-5.97, +4.47] |
| #M | Gemini 3.8 Flash (low) | Text | 80 | 15 | -1.34 [-2.38, -0.94] | -3.62 [-5.54, -2.34] | -3.82 [-6.90, -2.02] | +7.99 [+2.45, +14.04] |
| #M | Gemini 3.8 Flash (medium) | Algo | 80 | 31 | -0.80 [-1.31, -0.53] | -3.79 [-5.15, -2.53] | -0.72 [-1.67, -0.10] | -0.47 [-3.65, +3.02] |
| #M | Gemini 3.8 Flash (medium) | Text | 80 | 47 | -1.57 [-2.17, -1.15] | -4.85 [-4.91, -3.07] | -2.86 [-4.66, -1.99] | +7.15 [+1.91, +13.71] |
| #M | Gemini 3.8 Flash (high) | Algo | 80 | 54 | -1.07 [-1.81, -0.70] | - | -1.19 [-2.49, -0.56] | +0.82 [-2.51, +5.45] |
| #M | Gemini 3.8 Flash (high) | Text | 80 | 66 | -1.34 [-1.71, -0.85] | - | -1.89 [-3.71, -1.01] | +4.04 [-0.30, +11.60] |
Table S88. T6: logistic fits of exact match on answer (ans.), on work (work) and on both, per task, configuration and condition; slopes with 95% bootstrap intervals over twins; exact: exact answers out of n.
| Part | Set | Cond. | Configuration | returned |
|---|---|---|---|---|
| A | twins | Text | Gemini 3.6 Flash (high) | 160/160 |
| A | twins | Text | Gemini 3.6 Flash (low) | 160/160 |
| A | twins | Text | Gemini 3.6 Flash (minimal) | 160/160 |
| A | twins | Text | Gemini 3.8 Flash (high) | 159/160 |
| A | twins | Text | Gemini 3.8 Flash (low) | 160/160 |
| A | twins | Text | Gemini 3.8 Flash (medium) | 160/160 |
| A | twins | Text | Gemini 3.1 Pro (high) | 160/160 |
| A | twins | Text | Gemini 3.1 Pro (low) | 160/160 |
| A | twins | Visual | Gemini 3.6 Flash (high) | 160/160 |
| A | twins | Visual | Gemini 3.6 Flash (low) | 160/160 |
| A | twins | Visual | Gemini 3.6 Flash (minimal) | 160/160 |
| A | twins | Visual | Gemini 3.8 Flash (high) | 160/160 |
| A | twins | Visual | Gemini 3.8 Flash (low) | 160/160 |
| A | twins | Visual | Gemini 3.8 Flash (medium) | 160/160 |
| A | twins | Visual | Gemini 3.1 Pro (high) | 160/160 |
| A | twins | Visual | Gemini 3.1 Pro (low) | 160/160 |
| B | twins | Algo | Gemini 3.8 Flash (high) | 160/160 |
| B | twins | Algo | Gemini 3.8 Flash (low) | 160/160 |
| B | twins | Algo | Gemini 3.8 Flash (medium) | 160/160 |
| B | twins | Copy | Gemini 3.6 Flash (minimal) | 160/160 |
| B | twins | Copy | Gemini 3.8 Flash (low) | 160/160 |
| B | twins | Copy | Gemini 3.1 Pro (low) | 160/160 |
| B | xl | Copy | Gemini 3.6 Flash (minimal) | 60/60 |
| B | xl | Copy | Gemini 3.8 Flash (low) | 60/60 |
| B | xl | Copy | Gemini 3.1 Pro (low) | 60/60 |
Table S89. T6: returned calls out of requested, per part, set, condition and configuration.
O. Reruns of the calls that never returned
Why. Some calls of the main runs never returned a response (§D, “Calls that never returned”). Most of them are calls of gemini-3.8-flash: 46 Visual, 44 Text and 38 Hint calls at high thinking and 15 Visual calls at medium thinking. These losses are skewed toward large answers, so the of the high rung depends on how they are scored. C503 reruns these 143 calls. F6 closes the other gaps in the paper's configurations: the 105 other calls that never returned, among them 58 of the 120 extra-large Visual and Text calls of gemini-3.8-flash at high thinking and 9 calls of gemini-3.1-pro-preview at high thinking, and the 168 core calls that gemini-3.1-pro-preview at high thinking was never asked: it ran on a 118-instance subset of the core benchmark per condition, while the other high-thinking configurations ran a 202-instance subset that contains it.
Calls. Each request is rebuilt from the same benchmark files by the prompt builder of the main runs, so the prompt text and the image bytes are those of the original call; before sending anything the runners check that every image and benchmark file predates the original runs. Requests go through the client of the main runs with the original generation settings. Only client-side settings differ: up to 12 attempts per call, a 900-second read timeout (400 seconds originally), and up to ten passes over the calls still without a response, five minutes apart (ten minutes after a pass without any success). Each rerun also re-issues returned calls as a drift control, drawn at random without looking at their old outcome. For C503 these are 36 high-thinking Visual calls of gemini-3.8-flash, as many per (family, task, size) stratum as were lost there where enough returned calls exist; for F6, 84 calls of gemini-3.1-pro-preview (high), one per (condition, family, task, size) stratum that holds new calls, and 46 extra-large calls of gemini-3.8-flash (high), as many per (condition, size) as were lost there where enough exist. A drift rerun is compared with its old record and never merged.
Quantities. Both analyses were pre-registered with the reruns and hash-frozen before any rerun record was read (the C503 and F6 logs then held 1 and 11 records, unread). For every rerun group they report the calls returned out of requested, the time span, the model versions and the cost. A drift control compares the old and the new record of each re-issued call: exactness flips in both directions with an exact two-sided McNemar test, identical answers, identical prompt token counts and, for Visual calls, exact transcriptions. The merged estimates add the rerun records of the lost or new calls to the returned records of the main runs and come in three versions: (i) returned calls only, as in the paper; (ii) merged; (iii) merged, with the calls still without a response scored as wrong. C503 recomputes the (all, GapL, #P) of gemini-3.8-flash at high thinking in Visual and Text and at medium thinking in Visual, the budget slope across configurations and the slopes within the 3.8-flash and 3.6-flash ladders, and the high-thinking Hint exact rate. F6 recomputes the exact rate and per class of gemini-3.1-pro-preview (high) on the 202-instance subset, with the rise of the per-class along the 3.1-pro ladder and the budget slope; the extra-large results of gemini-3.8-flash (high) in the layout of Table S16; and the exact rate and of every other configuration with lost calls. If C503 has finished when the F6 analysis runs, F6 also reports versions merged with both reruns, separately, so that the contribution of each rerun stays visible. Every quantity is reported whatever it shows.
Results. All 143 lost calls and all 36 drift calls of C503 returned (Table S90), from 2026-10-07 21:00 to 2026-10-08 21:30 UTC; every response reports gemini-3.8-flash, and the list price was p = 1.00m_{50}10^{6.1}10^{7.2}, #P 10^{5.3}10^{7.1}10^{6.4}10^{6.9}m_{50}10^{4.5}$ (Table S91). The budget slope becomes 3.27 decades per tenfold tokens (95% CI [2.1, 4.4]; returned only 3.54) and the slope within the 3.8-flash ladder 3.9 (returned only 5.6; Table S92). The high-thinking Hint exact rate goes from 143/164 to 161/202. No call is still lost, so versions (ii) and (iii) coincide. The rerun came several days after the original calls, and the drift control is the only check on that gap.
F6 asked for 273 calls besides its drift controls and got a response for 260 of them (Table S93), from 2026-10-07 23:00 to 2026-10-09 07:59 UTC (33.0 hours, model versions gemini-3.1-pro-preview, gemini-3.6-flash, gemini-3.8-flash, gemma-4-31b-it, list price $95.32). The 11 rerun calls that requested gemini-3.7-flash
(3 Text, 8 Visual) came back with model version gemini-3.8-flash; they enter only the merged g37_low rows. The 13 calls still without a response are all calls of gemma-4-31b-it at high thinking that hit the 900-second read timeout in every pass; version (ii) leaves them out and version (iii) scores them as wrong. The drift controls find no change (Table S94): for gemini-3.1-pro-preview (high), 30 old and 31 new Visual answers are exact (, ), and 31 old and 31 new Text answers (); on the extra-large grids no answer of gemini-3.8-flash (high) is exact in either session. With the new calls added, gemini-3.1-pro-preview at high thinking answers 145 of 202 Visual and 155 of 202 Text instances of the 202-instance subset exactly, with in Visual and in Text, against and on the 118-instance subset of the paper (Table S95). On the extra-large grids gemini-3.8-flash at high thinking stays at 0 of 60 in Visual and 0 of 60 in Text with the rerun merged (Table S96). The budget slope across configurations is 3.51 decades per tenfold tokens with the F6 reruns merged (95% CI [2.1, 4.9]; returned only 3.54) and 3.24 with both reruns merged ([2.1, 4.4], , ); within the ladders it is 3.9 for 3.8-flash, 2.4 for 3.6-flash and 1.9 for 3.1-pro with both reruns (Table S97). Table S98 gives every other configuration with lost calls in all versions.
| Rerun group (3.8-flash) | requested | returned | exact | GapL | #P | median log₁₀ answer (ret./req.) | USD |
|---|---|---|---|---|---|---|---|
| high, Visual (lost) | 46 | 46 | 23/46 | 6/15 | 16/30 | 3.8/3.8 | 7.44 |
| high, Visual (drift control) | 36 | 36 | 21/36 | 8/12 | 12/23 | 4.0/4.0 | 5.36 |
| high, Text (lost) | 44 | 44 | 26/44 | 12/18 | 14/26 | 4.3/4.3 | 6.69 |
| medium, Visual (lost) | 15 | 15 | 8/15 | 3/5 | 5/10 | 3.1/3.1 | 1.22 |
| high, Visual+Hint (lost) | 38 | 38 | 18/38 | 9/14 | 9/24 | 4.0/4.0 | 6.02 |
Table S90. C503: rerun groups of gemini-3.8-flash, with the calls requested and returned, the exact answers among the returned calls, overall and per class, the median log₁₀ answer of the returned and of the requested calls, and list-price USD. The drift control re-issues returned calls.
| 3.8-flash | version | n | log₁₀ m₅₀ | GapL | #P | tokens (k) |
|---|---|---|---|---|---|---|
| high, Visual | returned only (paper) | 117 | 7.1 | 8.4 | 5.9 | 27.4 |
| merged with the rerun | 162 | 6.1 | 7.2 | 5.3 | 31.9 | |
| merged, still lost = wrong | 162 | 6.1 | 7.2 | 5.3 | 31.9 | |
| high, Text | returned only (paper) | 118 | 6.9 | 8.0 | 6.1 | 26.4 |
| merged with the rerun | 162 | 6.4 | 7.5 | 5.6 | 30.2 | |
| merged, still lost = wrong | 162 | 6.4 | 7.5 | 5.6 | 30.2 | |
| medium, Visual | returned only (paper) | 297 | 4.5 | 5.9 | 3.7 | 13.2 |
| merged with the rerun | 312 | 4.5 | 5.9 | 3.7 | 13.6 | |
| merged, still lost = wrong | 312 | 4.5 | 5.9 | 3.7 | 13.6 |
Table S91. C503: log₁₀ m₅₀ of gemini-3.8-flash (all, GapL, #P) at high thinking in Visual and Text and at medium thinking in Visual, in three versions: returned calls only (the paper), merged with the rerun, and merged with the calls still without a response scored as wrong. n: instances in the fit; tokens: mean thinking + output tokens per call (thousands).
| version | slope | 95% CI | p | R² | leave-one-out | 3.8-flash | 3.6-flash |
|---|---|---|---|---|---|---|---|
| returned only (paper) | 3.5 | [2.1, 5.0] | 1.5 × 10⁻⁴ | 0.71 | 2.8–3.8 | 5.6 | 2.4 |
| merged with the rerun | 3.3 | [2.1, 4.4] | 4.5 × 10⁻⁵ | 0.76 | 2.8–3.5 | 3.9 | 2.4 |
| merged, still lost = wrong | 3.3 | [2.1, 4.4] | 4.5 × 10⁻⁵ | 0.76 | 2.8–3.5 | 3.9 | 2.4 |
Table S92. C503: the budget slope (decades of m₅₀ per tenfold increase in tokens, Visual, across configurations) with its 95% CI, p, R² and the range of the leave-one-out slopes, and the slopes within the 3.8-flash and 3.6-flash ladders, in the three versions. Configurations without rerun calls keep their returned records; version (iii) uses the token means of version (ii).
| group / configuration / condition | requested | returned | exact | USD |
|---|---|---|---|---|
| lost / g36_high / text | 1 | 1 | 1/1 | 0.04 |
| lost / g36_low / visual | 1 | 1 | 0/1 | 0.05 |
| lost / g37_low / text | 3 | 3 | 2/3 | 0.08 |
| lost / g37_low / visual | 8 | 8 | 5/8 | 0.23 |
| lost / g38_high / text | 35 | 35 | 0/35 | 6.41 |
| lost / g38_high / visual | 23 | 23 | 0/23 | 3.88 |
| lost / g38_low / hint | 1 | 1 | 1/1 | 0.05 |
| lost / g38_low / text | 1 | 1 | 0/1 | 0.06 |
| lost / g38_med / text | 7 | 7 | 2/7 | 0.64 |
| lost / gm31_high / car | 4 | 0 | – | 0.00 |
| lost / gm31_high / code | 7 | 0 | – | 0.00 |
| lost / gm31_high / hint | 1 | 0 | – | 0.00 |
| lost / gm31_high / text | 1 | 1 | 0/1 | 0.00 |
| lost / gm31_high / visual | 1 | 0 | – | 0.00 |
| lost / gm31_min / text | 1 | 1 | 0/1 | 0.00 |
| lost / pro_high / text | 6 | 6 | 2/6 | 2.53 |
| lost / pro_high / visual | 3 | 3 | 1/3 | 1.00 |
| lost / pro_low / visual | 1 | 1 | 0/1 | 0.06 |
| ph_drift / pro_high / text | 42 | 42 | 31/42 | 11.44 |
| ph_drift / pro_high / visual | 42 | 42 | 31/42 | 13.49 |
| ph_new / pro_high / text | 84 | 84 | 66/84 | 21.83 |
| ph_new / pro_high / visual | 84 | 84 | 60/84 | 26.29 |
| xl_drift / g38_high / text | 23 | 23 | 0/23 | 3.80 |
| xl_drift / g38_high / visual | 23 | 23 | 0/23 | 3.44 |
Table S93. F6: calls requested and returned per group, configuration and condition, the exact answers among the returned calls, and list-price USD. lost: calls of the main runs that never returned; ph_new: core calls that gemini-3.1-pro-preview (high) was never asked; ph_drift and xl_drift: drift controls. Configurations: g38, g37, g36: gemini-3.8-flash, gemini-3.7-flash, gemini-3.6-flash; pro: gemini-3.1-pro-preview; gm31: gemma-4-31b-it; min, med: minimal and medium thinking.
| drift control | n | exact old | exact new | b / c | p | same answer | same prompt tokens | transcr. exact old / new |
|---|---|---|---|---|---|---|---|---|
| pro_high Visual | 42 | 30 | 31 | 1 / 2 | 1.00 | 30 | 42 | 39 / 38 |
| pro_high Text | 42 | 31 | 31 | 2 / 2 | 1.00 | 31 | 42 | – |
| g38_high XL Visual | 23 | 0 | 0 | 0 / 0 | 1.00 | 2 | 23 | 6 / 5 |
| g38_high XL Text | 23 | 0 | 0 | 0 / 0 | 1.00 | 4 | 23 | – |
Table S94. F6, drift controls: the old record from the main runs against the rerun of the same request. b / c: right to wrong / wrong to right; exact two-sided McNemar p; same answer: calls whose two answers are identical; same prompt tokens: calls whose two prompt token counts are identical; transcription exact, old / new: Visual calls only. Configuration codes as in Table S93; XL: extra-large grids.
| 3.1-pro high | version | core exact | GapL | #P | n (fit) | GapL | #P | rise GapL | rise #P | |
|---|---|---|---|---|---|---|---|---|---|---|
| Visual | returned only (paper) | 84/115 | 29/42 | 31/49 | 91 | 4.3 | 4.5 | 4.1 | 2.0 | 1.5 |
| merged with F6 | 145/202 | 52/76 | 53/86 | 162 | 4.1 | 4.5 | 3.9 | 2.0 | 1.3 | |
| merged, still lost = wrong | 145/202 | 52/76 | 53/86 | 162 | 4.1 | 4.5 | 3.9 | 2.0 | 1.3 | |
| merged with F6 and C503 | 145/202 | 52/76 | 53/86 | 162 | 4.1 | 4.5 | 3.9 | 2.0 | 1.3 | |
| merged with F6 and C503, still lost = wrong | 145/202 | 52/76 | 53/86 | 162 | 4.1 | 4.5 | 3.9 | 2.0 | 1.3 | |
| Text | returned only (paper) | 87/112 | 32/41 | 31/47 | 88 | 5.1 | 5.8 | 4.7 | 3.5 | 2.2 |
| merged with F6 | 155/202 | 58/76 | 57/86 | 162 | 5.0 | 5.8 | 4.6 | 3.5 | 2.1 | |
| merged, still lost = wrong | 155/202 | 58/76 | 57/86 | 162 | 5.0 | 5.8 | 4.6 | 3.5 | 2.1 | |
| merged with F6 and C503 | 155/202 | 58/76 | 57/86 | 162 | 5.0 | 5.8 | 4.6 | 3.5 | 2.1 | |
| merged with F6 and C503, still lost = wrong | 155/202 | 58/76 | 57/86 | 162 | 5.0 | 5.8 | 4.6 | 3.5 | 2.1 |
Table S95. F6: gemini-3.1-pro-preview (high), Visual and Text: exact answers on the core benchmark overall and per class, and (all, GapL, #P) with the instances in the fit; rise: per-class at high minus low thinking. Version (i), the paper, is the 118-instance subset per condition with returned calls only; the merged versions use the 202-instance subset. If C503 had finished, the table also shows the versions merged with both reruns.
| 3.8-flash high | version | 7x7 #ST | 7x7 #M | 8x8 #ST | 8x8 #PM | 8x8 #M | 9x9 #ST | 9x9 #M | 10x10 #ST | 10x10 #PM | 10x10 #M |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Visual CoT | returned only (paper) | 0/3 | 0/5 | 0/4 | 0/2 | 0/4 | 0/4 | 0/3 | 0/4 | 0/2 | 0/6 |
| merged with F6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| merged, still lost = wrong | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| merged with F6 and C503 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| merged with F6 and C503, still lost = wrong | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| Text CoT | returned only (paper) | 0/2 | 0/5 | 0/3 | 0/3 | 0/3 | 0/2 | 0/3 | 0/1 | 0/1 | 0/2 |
| merged with F6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| merged, still lost = wrong | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| merged with F6 and C503 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | |
| merged with F6 and C503, still lost = wrong | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 | 0/6 |
Table S96. F6: gemini-3.8-flash (high) on the extra-large grids, exact answers per size and task in the layout of Table S16, for Visual CoT and Text CoT, in the three versions and, if C503 had finished, merged with both reruns.
| version | slope | 95% CI | p | R² | leave-one-out | 3.8-flash | 3.6-flash | 3.1-pro |
|---|---|---|---|---|---|---|---|---|
| returned only (paper) | 3.5 | [2.1, 5.0] | 1.5 × 10⁻⁴ | 0.71 | 2.8–3.8 | 5.6 | 2.4 | 2.1 |
| merged with F6 | 3.5 | [2.1, 4.9] | 1.7 × 10⁻⁴ | 0.71 | 2.8–3.8 | 5.6 | 2.4 | 1.9 |
| merged, still lost = wrong | 3.5 | [2.1, 4.9] | 1.7 × 10⁻⁴ | 0.71 | 2.8–3.8 | 5.6 | 2.4 | 1.9 |
| merged with F6 and C503 | 3.2 | [2.1, 4.4] | 5.1 × 10⁻⁵ | 0.76 | 2.8–3.5 | 3.9 | 2.4 | 1.9 |
| merged with F6 and C503, still lost = wrong | 3.2 | [2.1, 4.4] | 5.1 × 10⁻⁵ | 0.76 | 2.8–3.5 | 3.9 | 2.4 | 1.9 |
Table S97. F6: the budget slope across configurations and the slopes within the three ladders, as in Table S92, in the three F6 versions and, if C503 had finished, merged with both reruns.
| configuration | lost keys returned | version | core exact | XL exact | held-out exact | log₁₀ m₅₀ |
|---|---|---|---|---|---|---|
| g36_high text | 1/1 | returned only (paper) | 137/201 | — | — | 3.7 |
| merged with F6 | 138/202 | — | — | 3.7 | ||
| merged, still lost = wrong | 138/202 | — | — | 3.7 | ||
| merged with F6 and C503 | 138/202 | — | — | 3.7 | ||
| g36_low visual | 1/1 | merged with F6 and C503, still lost = wrong | 138/202 | — | — | 3.7 |
| returned only (paper) | 205/391 | — | — | 2.2 | ||
| merged with F6 | 205/392 | — | — | 2.2 | ||
| merged, still lost = wrong | 205/392 | — | — | 2.2 | ||
| g37_low text | 3/3 | merged with F6 and C503 | 205/392 | — | — | 2.2 |
| merged with F6 and C503, still lost = wrong | 205/392 | — | — | 2.2 | ||
| returned only (paper) | 119/199 | — | — | 2.9 | ||
| merged with F6 | 121/202 | — | — | 2.9 | ||
| g37_low visual | 8/8 | merged, still lost = wrong | 121/202 | — | — | 2.9 |
| merged with F6 and C503 | 121/202 | — | — | 2.9 | ||
| merged with F6 and C503, still lost = wrong | 121/202 | — | — | 2.9 | ||
| returned only (paper) | 123/194 | — | — | 3.2 | ||
| g38_low hint | 1/1 | merged with F6 | 128/202 | — | — | 3.2 |
| merged, still lost = wrong | 128/202 | — | — | 3.2 | ||
| merged with F6 and C503 | 128/202 | — | — | 3.2 | ||
| merged with F6 and C503, still lost = wrong | 128/202 | — | — | 3.2 | ||
| g38_low text | 1/1 | returned only (paper) | 257/391 | — | — | 3.5 |
| merged with F6 | 258/392 | — | — | 3.6 | ||
| merged, still lost = wrong | 258/392 | — | — | 3.6 | ||
| merged with F6 and C503 | 258/392 | — | — | 3.6 | ||
| g38_low text | 1/1 | returned only (paper) | 238/391 | 0/60 | — | 3.0 |
| merged with F6 | 238/392 | 0/60 | — | 3.0 | ||
| merged, still lost = wrong | 238/392 | 0/60 | — | 3.0 | ||
| merged with F6 and C503 | 238/392 | 0/60 | — | 3.0 | ||
| g38_med text | 7/7 | merged with F6 and C503, still lost = wrong | 238/392 | 0/60 | — | 3.0 |
| returned only (paper) | 283/385 | — | — | 4.6 | ||
| merged with F6 | 285/392 | — | — | 4.5 | ||
| merged, still lost = wrong | 285/392 | — | — | 4.5 | ||
| gm31_high car | 0/4 | merged with F6 and C503, still lost = wrong | 285/392 | — | — | 4.5 |
| returned only (paper) | 23/25 | — | — | — | ||
| merged with F6 | 23/25 | — | — | — | ||
| merged, still lost = wrong | 23/29 | — | — | — | ||
| gm31_high code | 0/7 | merged with F6 and C503, still lost = wrong | 23/29 | — | — | — |
| returned only (paper) | 18/19 | — | — | — | ||
| merged with F6 | 18/19 | — | — | — | ||
| merged, still lost = wrong | 18/26 | — | — | — | ||
| gm31_high hint | 0/1 | merged with F6 and C503, still lost = wrong | 18/26 | — | — | — |
| returned only (paper) | 12/24 | — | — | — | ||
| merged with F6 | 12/24 | — | — | — | ||
| merged, still lost = wrong | 12/25 | — | — | — | ||
| gm31_high text | 1/1 | merged with F6 and C503, still lost = wrong | 12/24 | — | — | — |
| returned only (paper) | 12/25 | — | — | — | ||
| merged with F6 | 15/23 | — | — | — | ||
| merged, still lost = wrong | 15/24 | — | — | — | ||
| gm31_high visual | 0/1 | merged with F6 and C503 | 15/24 | — | — | — |
| merged with F6 and C503, still lost = wrong | 15/24 | — | — | — | ||
| returned only (paper) | 12/23 | — | — | — | ||
| merged with F6 | 12/23 | — | — | — | ||
| gm31_min text | 1/1 | merged with F6 and C503, still lost = wrong | 12/24 | — | — | — |
| returned only (paper) | 131/391 | — | — | 0.7 | ||
| merged with F6 | 131/392 | — | — | 0.7 | ||
| merged, still lost = wrong | 131/392 | — | — | 0.7 | ||
| pro_low visual | 1/1 | merged with F6 and C503 | 131/392 | — | — | 0.7 |
| merged with F6 and C503, still lost = wrong | 131/392 | — | — | 0.7 | ||
| returned only (paper) | 118/202 | 0/59 | — | 2.6 | ||
| merged with F6 | 118/202 | 0/60 | — | 2.6 | ||
| merged, still lost = wrong | 118/202 | 0/60 | — | 2.6 | ||
| merged with F6 and C503 | 118/202 | 0/60 | — | 2.6 | ||
| merged with F6 and C503, still lost = wrong | 118/202 | 0/60 | — | 2.6 |
Table S98. F6: every other configuration and condition with lost calls: the lost calls returned by the rerun, the exact answers on the core, extra-large and held-out instances, and log₁₀ m₅₀, in the three versions and, if C503 had finished, merged with both reruns. Configuration codes as in Table S93.
P. Self-hosted Gemma 4 with controlled thinking budgets
Why. First, in the main runs the only non-Gemini family was Gemma 4 with thinking off or minimal: through the public API, Gemma 4 with thinking enabled hit 900-second read timeouts and had to be dropped on 26B-A4B-it and on 31B-it (the remaining 13 unreturned calls of F6 in §0). Self-hosting removes the API latency limit and lets us evaluate the full Gemma 4 family with thinking on. Second, Section 6.2's budget slope rests on the API's coarse thinking levels (minimal, low, medium, high), where the provider changes internal settings alongside the token count; vLLM's thinking_token_budget ends the thought channel at an exact token count , so the budget is the only thing that varies across arms. Third, evaluating open-weight checkpoints pinned to a fixed commit makes the runs reproducible by any reader. The plan, task bundle (tasks_g9.jsonl), runner (run_g9.py) and analysis script (analyze_g9.py) were hash-frozen before the first model finished and before any record content was read.
Models, tasks and serving. We self-host four of the five open-weight instruction-tuned checkpoints of the Gemma 4 family [22] in bfloat16 under vLLM 0.31.0 (vllm/vllm-openai, --reasoning-parser gemma4, --max-model-len 32768): dense gemma-4-31B-it, mixture-of-experts gemma-4-26B-A4B-it, dense gemma-4-12B-it, and gemma-4-E4B-it. For each model we evaluate the 921 pooled core instance-task pairs (the 392 core pairs of the benchmark proper plus the 529 fresh-seed pairs of §H) and the 160 tasks of the 80 magnitude-matched T6 twins (§N), under the Visual and Text conditions (with the verbatim prompts of §C) and four thinking-on budgets: thinking_token_budget (with max_tokens = so 2,048 tokens remain for the visible JSON answer after the thought channel closes) and free (no thinking budget cap, max_tokens = 30000). Requests set chat_template_kwargs = {"enable_thinking": true} and use the checkpoints' generation parameters (temperature = 1.0, top_p = 0.95, top_k = 64) with a deterministic per-key seed, giving tasks per model and 34,592 calls across the 4 models.
Serving ran on A100-40GB VMs (a2-highgpu-2g and a2-highgpu-4g). Three serving-only adjustments were logged in the plan before any record content was read, with the vLLM image digest, flags, runner, decoding parameters and per-key seeds unchanged: (i) gemma-4-12B-it moved from tensor parallel 1 to tensor parallel 2 on 2×A100-40GB after 1,956 records once E4B-it finished and freed the second GPU, relieving KV-cache pressure; (ii) gemma-4-31B-it ran at tensor parallel 4 on 4×A100-40GB so that 62 GB of bfloat16 weights left sufficient KV cache; and (iii) to clear KV-cache queues on the long 8192 and free generations, 12B-it and 31B-it each received a second replica VM, with their remaining keys dealt round-robin in the runner's seeded order and merged by key before running the unchanged frozen analyze_g9.py (12B-it: 6,083+2,565 = 8,648 keys; 31B-it: 5,254+3,394 = 8,648 keys, with two spot preemptions on the second replica automatically resumed by a watchdog; 26B-A4B-it and E4B-it finished on single VMs without preemption). All 34,592 calls returned an ok record (0 missing keys across all four models, so the returned-only primary version and the missing-as-wrong sensitivity version coincide identically).
Hypotheses and analysis. The frozen script scores the visible content after the thought channel with the main runs' scorer and tests three pre-registered families across the 8 (model, condition) cells, each Holm-adjusted over its 8 tests at family-wise :
-
H1 (Magnitude law with thinking on, free budget, core counting tasks): on the 721 pooled grid and Eulerian counting instances (GapL and #P tasks with truth > 0) at free budget, we fit logit(exact) and test (one-sided Wald), reporting the odds multiplier odds/dec. = .
-
H2 (Controlled thinking budget shifts the curve, budgets 512, 2048, 8192): on the same core counting tasks across the three capped budgets ( per cell), we fit logit(exact) and test (one-sided Wald). We also estimate per budget and the OLS slope of per decade of budget across , with instance-clustered bootstrap 95% CIs ().
-
H3 (Same-image magnitude-matched twins, free budget): on the 80 T6 twins (#ST in GapL vs. #M in #P, answers within 0.25 decades), we run a one-sided exact McNemar test on the discordant twins (: #ST right, #M wrong vs. c: #ST wrong, #M right, testing ).
Descriptive quantities (no multiplicity family) are exact-match accuracy by model, condition, budget and task group; visual transcription exactness and mean F1; budget compliance (reasoning_tokens ), completion truncation (finish_reason = length), and median reasoning and completion tokens; and the equal-magnitude class term from logit(exact) at free budget (two-sided Wald).
Results. Table S99 reports H1, H2, H3, per budget and the budget slope; Table S100 gives accuracy by task group and visual transcription quality; Table S101 gives realized token medians, budget compliance, truncation rates and the equal-magnitude class term.
H1 (Magnitude law). H1 is supported in 7 of the 8 cells after Holm correction (Table S99). Across those seven cells lies between and (all Holm ), with odds/dec. between 0.18 and 0.30 (0.30 and 0.23 on 31B-it
Visual and Text; 0.18 and 0.19 on 26B-A4B-it; 0.23 and 0.22 on 12B-it; 0.18 on E4B-it Text). The single exception is gamma-4-E4B-it Visual (, Holm ): as Table S100 shows, E4B-it transcribes only 2.0%-2.6% of core images exactly across budgets (mean F1 0.786–0.817), against 34.5%-40.3% on 31B-it, 27.6%-35.5% on 26B-A4B-it and 25.7%-33.3% on 12B-it, so grid accuracy on E4B-it Visual is near zero at every magnitude; once the ground-truth graph is given as text in E4B-it Text, the magnitude law holds strongly (, Holm ).
H2 (Controlled thinking budget shifts ). H2 is supported in the same 7 of 8 cells after Holm correction (Table S99), with between 1.18 and 1.98 (all Holm ) and only perception-bottlenecked E4B-it Visual null (, Holm ). Across the four budgets , core accuracy rises monotonically in every non-bottlenecked cell (Table S100): from 24.5% to 38.1% on 31B-it Visual (27.7% to 47.1% in Text), from 14.7% to 28.1% on 26B-A4B-it Visual (13.7% to 43.2% in Text), from 14.9% to 28.6% on 12B-it Visual (14.8% to 36.7% in Text), and from 14.0% to 25.6% on E4B-it Text. Correspondingly, climbs from 0.04 at to 1.15 at free on 31B-it Visual (OLS slope across the three capped budgets: 0.79 decades of per tenfold budget, 95% CI [0.55, 1.06]) and from 0.43 to 1.84 on 31B-it Text (slope 0.88, CI [0.70, 1.12]); the slopes are 1.03 [0.18, 2.73] and 0.62 [0.38, 0.90] on 26B-A4B-it, 1.07 [0.51, 2.07] and 1.28 [0.88, 1.79] on 12B-it, and 0.49 [0.22, 0.82] on E4B-it Text. Thus when only the thinking token cap is varied on open-weight models, a tenfold increase in thinking budget still buys roughly 0.5 to 1.3 decades of answer magnitude.
H3 (Matched twins) and descriptive checks. H3 is supported in 0 of 8 cells (Table S99): on the 80 magnitude-matched T6 twins at free budget, few pairs with 3- to 11-digit answers are solved by chain of thought (up to 10.0% on 31B-it Text, Table S100), and the discordant counts are 1/5 and 0/8 on 31B-it, 1/1 and 2/3 on 26B-A4B-it, 1/2 and 1/1 on 12B-it, and 0/0 on E4B-it (all Holm where testable). Table S101 confirms that vLLM's thinking.token_budget enforces the caps tightly: across all 24 capped cells (), median realized reasoning tokens are 510 at , 2046 at and 8190 at (except on E4B-it at 8192, which finishes thinking early at median 3364 and 3672 tokens), with compliance (reasoning tokens ) in every cell and 100.0% in 20 of the 24 cells. At low budgets, models frequently continue reasoning in the visible response after the thought channel closes and hit max_tokens (finish_reason = length: 33.9% on 31B-it Visual at , falling to 1.0% at and 0.1% at free). Finally, in the two-regressor fit on the core counting tasks at free budget (Table S101, right), the #P indicator is small or positive ( on 26B-A4B-it Text to on 31B-it Visual).
| Model | Cond. | odds/dec. | H1 | H2 | H3 b/c | H3 | slope/dec. [95% CI] | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| gamma-4-31B-it | Visual | -1.22±0.11 | 0.30 | < | 1.19±0.16 | < | 1/5 | 1.00 | 0.04 | 0.43 | 0.99 | 1.15 | 0.79 [0.55, 1.06] |
| gamma-4-31B-it | Text | -1.46±0.12 | 0.23 | < | 1.25±0.15 | < | 0/8 | 1.00 | 0.43 | 0.68 | 1.50 | 1.84 | 0.88 [0.70, 1.12] |
| gamma-4-26B-A4B-it | Visual | -1.70±0.21 | 0.18 | < | 1.66±0.30 | < | 1/1 | 1.00 | -1.40 | -0.42 | -0.16 | 0.40 | 1.03 [0.18, 2.73] |
| gamma-4-26B-A4B-it | Text | -1.65±0.14 | 0.19 | < | 1.52±0.20 | < | 2/3 | 1.00 | -0.03 | 0.14 | 0.72 | 1.54 | 0.62 [0.38, 0.90] |
| gamma-4-12B-it | Visual | -1.49±0.18 | 0.23 | < | 1.53±0.23 | < | 1/2 | 1.00 | -0.96 | -0.15 | 0.34 | 0.41 | 1.07 [0.51, 2.07] |
| gamma-4-12B-it | Text | -1.51±0.15 | 0.22 | < | 1.98±0.21 | < | 1/1 | 1.00 | -0.67 | 0.29 | 0.88 | 1.03 | 1.28 [0.88, 1.79] |
| gamma-4-E4B-it | Visual | -0.14±0.44 | 0.87 | 0.372 | 0.00±0.77 | 0.500 | 0/0 | - | -1.92 | -3.55 | -4.58 | -42.53 | -2.21 [-2.87, -1.15] |
| gamma-4-E4B-it | Text | -1.72±0.21 | 0.18 | < | 1.18±0.22 | < | 0/0 | - | -0.13 | 0.28 | 0.47 | 0.36 | 0.49 [0.22, 0.82] |
Table S99. G9: pre-registered hypothesis tests (H1, H2, H3) and scaling across the four thinking-on budgets for all four self-hosted Gemma 4 models and both conditions (34,592 calls total, 0 missing). H1 fits on the 721 pooled core counting tasks (GapL and #P) at free budget; odds/dec. = . H2 fits across ( per cell). H3 tests (exact one-sided McNemar) on the 80 magnitude-matched T6 twins at free budget (: #ST right only, : #M right only). Holm -values are adjusted over the 8 cells in each family; slope/dec. is the OLS slope of per decade of budget across , with an instance-clustered bootstrap 95% CI ().
| Model | Cond. | Budget | Core (921) | Bin (200) | Grid GapL (291) | Grid #P (350) | Euler (80) | Twins (160) | Twin #ST | Twin #M | Percept. exact (%) | Percept. F1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| gamma-4-31B-it | Visual | 512 | 24.5 | 82.5 | 7.5 | 6.7 | 14.8 | 0.6 | 1.2 | 0.0 | 34.5 | 0.971 |
| gamma-4-31B-it | Visual | 2048 | 27.3 | 82.5 | 9.6 | 9.3 | 23.4 | 0.0 | 0.0 | 0.0 | 35.5 | 0.973 |
| gamma-4-31B-it | Visual | 8192 | 36.2 | 94.0 | 13.5 | 17.9 | 39.8 | 5.0 | 3.8 | 6.2 | 39.8 | 0.973 |
| gamma-4-31B-it | Visual | free | 38.1 | 93.5 | 17.1 | 17.9 | 46.9 | 6.2 | 3.8 | 8.8 | 40.3 | 0.974 |
| gamma-4-31B-it | Text | 512 | 27.7 | 82.0 | 12.5 | 10.3 | 18.8 | 0.6 | 1.2 | 0.0 | - | - |
| gamma-4-31B-it | Text | 2048 | 33.1 | 94.0 | 16.7 | 13.1 | 22.7 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-31B-it | Text | 8192 | 42.9 | 100.0 | 24.9 | 19.6 | 50.0 | 2.5 | 1.2 | 3.8 | - | - |
| gamma-4-31B-it | Text | free | 47.1 | 100.0 | 30.2 | 25.0 | 55.5 | 10.0 | 5.0 | 15.0 | - | - |
| gamma-4-26B-A4B-it | Visual | 512 | 14.7 | 61.5 | 1.4 | 0.0 | 6.2 | 0.0 | 0.0 | 0.0 | 35.5 | 0.963 |
| gamma-4-26B-A4B-it | Visual | 2048 | 18.9 | 81.0 | 0.7 | 0.6 | 6.2 | 0.0 | 0.0 | 0.0 | 27.6 | 0.961 |
| gamma-4-26B-A4B-it | Visual | 8192 | 24.8 | 89.0 | 3.9 | 3.5 | 21.9 | 0.0 | 0.0 | 0.0 | 33.1 | 0.963 |
| gamma-4-26B-A4B-it | Visual | free | 28.1 | 90.5 | 5.7 | 5.1 | 35.9 | 1.2 | 1.2 | 1.2 | 32.2 | 0.962 |
| gamma-4-26B-A4B-it | Text | 512 | 13.7 | 47.0 | 2.1 | 3.2 | 12.5 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-26B-A4B-it | Text | 2048 | 22.1 | 72.5 | 7.5 | 7.1 | 12.5 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-26B-A4B-it | Text | 8192 | 30.6 | 87.5 | 12.5 | 11.9 | 27.3 | 1.2 | 1.2 | 1.2 | - | - |
| gamma-4-26B-A4B-it | Text | free | 43.2 | 100.0 | 27.8 | 17.9 | 50.0 | 3.1 | 2.5 | 3.8 | - | - |
| gamma-4-12B-it | Visual | 512 | 14.9 | 59.5 | 1.4 | 2.6 | 4.7 | 0.0 | 0.0 | 0.0 | 25.7 | 0.953 |
| gamma-4-12B-it | Visual | 2048 | 18.9 | 68.5 | 3.9 | 4.2 | 10.2 | 0.6 | 1.2 | 0.0 | 25.7 | 0.955 |
| gamma-4-12B-it | Visual | 8192 | 25.1 | 78.5 | 5.7 | 9.0 | 23.4 | 0.0 | 0.0 | 0.0 | 28.8 | 0.959 |
| gamma-4-12B-it | Visual | free | 28.6 | 88.5 | 7.1 | 9.3 | 28.9 | 1.9 | 1.2 | 2.5 | 33.3 | 0.961 |
| gamma-4-12B-it | Text | 512 | 14.8 | 57.0 | 1.1 | 3.8 | 5.5 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-12B-it | Text | 2048 | 23.1 | 72.5 | 6.4 | 8.0 | 19.5 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-12B-it | Text | 8192 | 30.8 | 81.5 | 16.7 | 13.1 | 25.8 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-12B-it | Text | free | 36.7 | 97.5 | 19.2 | 15.7 | 31.2 | 1.2 | 1.2 | 1.2 | - | - |
| gamma-4-E4B-it | Visual | 512 | 6.5 | 29.5 | 0.0 | 0.3 | 0.0 | 0.0 | 0.0 | 0.0 | 2.6 | 0.786 |
| gamma-4-E4B-it | Visual | 2048 | 8.7 | 37.5 | 0.7 | 1.0 | 0.0 | 0.0 | 0.0 | 0.0 | 2.1 | 0.806 |
| gamma-4-E4B-it | Visual | 8192 | 8.7 | 39.5 | 0.4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 2.0 | 0.815 |
| gamma-4-E4B-it | Visual | free | 8.0 | 36.5 | 0.0 | 0.3 | 0.0 | 0.0 | 0.0 | 0.0 | 2.1 | 0.817 |
| gamma-4-E4B-it | Text | 512 | 14.0 | 48.5 | 3.2 | 3.8 | 8.6 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-E4B-it | Text | 2048 | 18.1 | 61.5 | 4.6 | 3.8 | 14.8 | 0.6 | 1.2 | 0.0 | - | - |
| gamma-4-E4B-it | Text | 8192 | 25.3 | 77.0 | 12.5 | 8.7 | 13.3 | 0.0 | 0.0 | 0.0 | - | - |
| gamma-4-E4B-it | Text | free | 25.6 | 81.0 | 11.7 | 9.0 | 10.2 | 0.0 | 0.0 | 0.0 | - | - |
Table S100. G9: exact-match accuracy (%) by model, condition, thinking budget and task group, plus visual transcription exactness (%) and mean edge/cell F1 on the core benchmark. Core (921): all pooled core pairs; Bin (200): () and #CC (L) on binary images; Grid GapL (291): #ST and #PM; Grid #P (350): #M and #Paths; Euler (80): #EC (GapL) and #EC (#P); Twins (160): the 80 magnitude-matched T6 twins, split into Twin #ST (80) and Twin #M (80).
| Model | Cond. | Budget | n | Med. reason. tok. | Med. compl. tok. | Compliance (≤ b+16, %) | Length-trunc. (%) | Class ± SE (free) | Class p (two-sided) |
|---|---|---|---|---|---|---|---|---|---|
| gamma-4-31B-it | Visual | 512 | 1081 | 510 | 2030 | 100.0 | 33.9 | -- | -- |
| gamma-4-31B-it | Visual | 2048 | 1081 | 2046 | 3185 | 100.0 | 10.9 | -- | -- |
| gamma-4-31B-it | Visual | 8192 | 1081 | 8190 | 9188 | 100.0 | 1.0 | -- | -- |
| gamma-4-31B-it | Visual | free | 1081 | 10448 | 11573 | -- | 0.1 | 0.91±0.24 | 0.0002 |
| gamma-4-31B-it | Text | 512 | 1081 | 510 | 1875 | 100.0 | 28.3 | -- | -- |
| gamma-4-31B-it | Text | 2048 | 1081 | 2046 | 3020 | 100.0 | 6.3 | -- | -- |
| gamma-4-31B-it | Text | 8192 | 1081 | 8190 | 8930 | 100.0 | 0.6 | -- | -- |
| gamma-4-31B-it | Text | free | 1081 | 12184 | 12997 | -- | 0.0 | 0.41±0.24 | 0.085 |
| gamma-4-26B-A4B-it | Visual | 512 | 1081 | 510 | 2560 | 100.0 | 74.1 | -- | -- |
| gamma-4-26B-A4B-it | Visual | 2048 | 1081 | 2046 | 3882 | 100.0 | 47.2 | -- | -- |
| gamma-4-26B-A4B-it | Visual | 8192 | 1081 | 8190 | 9429 | 100.0 | 28.0 | -- | -- |
| gamma-4-26B-A4B-it | Visual | free | 1081 | 21415 | 22460 | -- | 52.3 | 0.74±0.31 | 0.019 |
| gamma-4-26B-A4B-it | Text | 512 | 1081 | 510 | 2560 | 100.0 | 74.1 | -- | -- |
| gamma-4-26B-A4B-it | Text | 2048 | 1081 | 2046 | 3409 | 99.9 | 37.2 | -- | -- |
| gamma-4-26B-A4B-it | Text | 8192 | 1081 | 8190 | 9245 | 99.9 | 29.9 | -- | -- |
| gamma-4-26B-A4B-it | Text | free | 1081 | 28759 | 29420 | -- | 48.2 | -0.06±0.24 | 0.817 |
| gamma-4-12B-it | Visual | 512 | 1081 | 510 | 2560 | 99.9 | 67.1 | -- | -- |
| gamma-4-12B-it | Visual | 2048 | 1081 | 2046 | 3840 | 100.0 | 44.4 | -- | -- |
| gamma-4-12B-it | Visual | 8192 | 1081 | 8190 | 9460 | 100.0 | 27.5 | -- | -- |
| gamma-4-12B-it | Visual | free | 1081 | 28565 | 29637 | -- | 49.3 | 0.71±0.29 | 0.016 |
| gamma-4-12B-it | Text | 512 | 1081 | 510 | 2560 | 99.2 | 65.9 | -- | -- |
| gamma-4-12B-it | Text | 2048 | 1081 | 2046 | 3339 | 100.0 | 31.8 | -- | -- |
| gamma-4-12B-it | Text | 8192 | 1081 | 8190 | 9264 | 100.0 | 25.1 | -- | -- |
| gamma-4-12B-it | Text | free | 1081 | 29996 | 30000 | -- | 58.6 | 0.60±0.26 | 0.018 |
| gamma-4-E4B-it | Visual | 512 | 1081 | 510 | 2038 | 100.0 | 34.6 | -- | -- |
| gamma-4-E4B-it | Visual | 2048 | 1081 | 2046 | 2948 | 100.0 | 8.9 | -- | -- |
| gamma-4-E4B-it | Visual | 8192 | 1081 | 3364 | 4194 | 100.0 | 1.3 | -- | -- |
| gamma-4-E4B-it | Visual | free | 1081 | 3316 | 4152 | -- | 0.0 | sep. | 0.999 |
| gamma-4-E4B-it | Text | 512 | 1081 | 510 | 1127 | 100.0 | 13.0 | -- | -- |
| gamma-4-E4B-it | Text | 2048 | 1081 | 2046 | 2483 | 100.0 | 5.1 | -- | -- |
| gamma-4-E4B-it | Text | 8192 | 1081 | 3672 | 4072 | 100.0 | 0.3 | -- | -- |
| gamma-4-E4B-it | Text | free | 1081 | 3677 | 4116 | -- | 0.0 | 0.63±0.32 | 0.046 |
Table S101. G9: thinking-budget compliance, realized token medians and equal-magnitude class term. n = 1,081 calls per row (921 core + 160 twin tasks); Med. reason. tok. and Med. compl. tok.: median reasoning and completion tokens; Compliance: share (%) of calls with reasoning tokens ≤ b + 16; Length-trunc.: share (%) of calls stopping with finish_reason = length; right columns: coefficient SE and two-sided Wald p of the #P indicator in logit(exact) on the 721 core counting tasks at free budget (sep.: quasi-complete separation on E4B-it Visual where grid accuracy is near zero).
Q. Self-hosted Qwen3-VL control family
Why. Every model in the main paper and Appendix P belongs to the Gemini or Gemma 4 families from a single provider. To check whether our three main conclusions (the steep drop in accuracy with answer magnitude, the positive shift of the counting curve with the exact thinking token budget once the input graph is perceived, and the absence of a GapL advantage on same-image magnitude-matched twins) hold beyond one vendor's vision encoder, tokenizer and reasoning post-training, we replicate the controlled-budget protocol of Appendix P on a cross-vendor open-weight vision-language family: Alibaba's Qwen3-VL (Qwen3-VL-32B-Thinking, Qwen3-VL-8B-Thinking and Qwen3-VL-8B-Instruct). Evaluating the matched 8B pair (Qwen3-VL-8B-Thinking vs. Qwen3-VL-8B-Instruct, which share the same 8B backbone and vision encoder and differ only in thinking post-training) also gives a direct within-backbone comparison between chain-of-thought reasoning and non-thinking instruction following at free budget. As in Appendix P, the experimental plan (EXPERIMENT_QW_PLAN.md), task bundles, runner (run_g9.py) and derived analysis script (analyze_qw.py) were hash-frozen before the first model finished and before any record content was read.
Models, tasks and serving. We self-host three open-weight checkpoints in bfloat16 under the same pinned vLLM 0.31.0 image (--max-model-len 32768 --gpu-memory-utilization 0.92), each pinned to its HuggingFace commit hash:
-
Qwen/Qwen3-VL-32B-Thinking (commit 7edd10ffd1196091948fb245ff63e406ccb2d4d1), dense 32B thinking model served with --reasoning-parser qwen3 at tensor parallel 4 on 4xA100-40GB (a2-highgpu-4g spot VM replicas), using the checkpoint's generation parameters (temperature = 0.8, top_p = 0.95, top_k = 20);
-
Qwen/Qwen3-VL-8B-Thinking (commit 92f3c4b4feadd3a016ef468d103bb5f58b2a2c6b), dense 8B thinking model served with --reasoning-parser qwen3 at tensor parallel 2 on 2xA100-40GB (a2-highgpu-2g spot VM replicas), with temperature = 1.0, top_p = 0.95, top_k = 20; and
-
Qwen/Qwen3-VL-8B-Instruct (commit 0c351dd01ed87e9c1b53cbc748cba10e6187ff3b), the matched dense 8B non-thinking instruction model served without a reasoning parser on A100-40GB VMs, with temperature = 0.7, top_p = 0.8, top_k = 20.
The two thinking models (32B-Thinking and 8B-Thinking) run on the exact same frozen task bundle as Appendix P (tasks_g9.jsonl, SHA-256 a08e1b81...): all 921 pooled core instance-task pairs plus the 160 tasks of the 80 magnitude-matched T6 twins (1,081 pairs) across Visual and Text and all four budgets (8,648 calls per model, with thinking_token_budget = b and max tokens = b + 2048 for capped budgets, and no thinking cap with max tokens = 30,000 for free). Because Qwen3-VL-8B-Instruct has no thinking channel to cap, it runs the 2,162 free-budget rows (max tokens = 30,000, bundle SHA-256 e17fac6b...) across all 1,081 instances and both conditions, giving calls across the 3 models.
Before launching the runs, format-only smoke checks (24 throw-away records on 8B-Thinking and 11 on 8B-Instruct) verified budget capping, reasoning_tokens = 0 on 8B-Instruct, and JSON output formatting, and were discarded. Because the long 8192 and free generations were KV-cache bound, remaining keys were dealt round-robin in the runner's seeded order (order_seed = 20261009) across data-parallel spot VM replicas, logged under Deviations in EXPERIMENT_QW_PLAN.md before any record content was read, with spot preemptions automatically resumed by a 5-minute watchdog and merged by key before running the unchanged frozen analyze_qw.py: (i) Qwen3-VL-8B-Thinking ran across 2 shards (4,609 + 4,039 = 8,648 ok keys on two a2-highgpu-2g VMs at tensor parallel 2); (ii) Qwen3-VL-32B-Thinking ran across 4 shards (3,891 + 3,574 + 658 + 525 = 8,648 ok keys on four a2-highgpu-4g VMs at tensor parallel 4); and (iii) Qwen3-VL-8B-Instruct ran across 6 shards (763 + 546 + 590 + 123 + 78 + 62 = 2,162 ok keys across three a2-highgpu-2g VMs at tensor parallel 2 and three repurposed a2-highgpu-4g VMs at tensor parallel 4 once 32B-Thinking completed). All 19,458 calls returned an ok record (0 missing keys across all three models, so the returned-only primary analysis and the missing-as-wrong sensitivity analysis coincide identically).
Hypotheses and analysis. The frozen script (analyze_qw.py) applies the same scorer and statistical models as Appendix P, with Holm–Bonferroni adjustments matched to the active cells of each test family at :
• H1 (Magnitude law at free budget, 6 cells): on the 721 pooled core counting instances (GapL and #P tasks with truth > 0) at free budget across all 3 models 2 conditions, testing (one-sided Wald, Holm-adjusted over the 6 cells).
• H2 (Controlled thinking budget shifts the curve, 4 cells): across the capped budgets ( per cell) on the two thinking models 2 conditions, testing (one-sided Wald, Holm-adjusted over the 4 cells), along with per-budget and the OLS slope of per decade of budget with instance-clustered bootstrap 95% CIs ( ).
• H3 (Same-image magnitude-matched twins at free budget, 6 cells): one-sided exact McNemar test (b > c, where b: #ST right only and c: #M right only) on the 80 T6 twins at free budget across all 3 models 2 conditions (Holm-adjusted over the testable cells).
• Thinking vs. Instruct within-backbone comparison (2 conditions): a secondary paired two-sided exact McNemar test comparing Qwen3-VL-8B-Thinking (free) against Qwen3-VL-8B-Instruct (free) on the 721 pooled core counting instances in Visual and Text (Holm-adjusted over the 2 conditions).
Results. Table S102 reports H1, H2, H3, per budget and the budget slope; Table S103 gives exact-match accuracy by task group and visual transcription quality; Table S104 gives realized token medians, budget compliance, truncation rates and the equal-magnitude class term.
H1 (Magnitude law). H1 is supported in all 6 of the 6 (model, condition) cells after Holm correction (Table S102), with between -2.90 and -1.08 (all Holm ) and odds multipliers odds/dec. = between 0.05 and 0.34: 0.26 ( , Holm ) and 0.20 ( , ) on 32B-Thinking Visual and Text; 0.06 ( , p = 0.018) and 0.22 ( , ) on 8B-Thinking Visual and Text; and 0.34 ( , p = 0.036) and 0.05 ( , ) on 8B-Instruct Visual and Text.
H2 (Controlled thinking budget) and Thinking vs. Instruct. H2 is supported in 2 of the 4 thinking cells after Holm correction (Table S102), namely both Text cells (32B-Thinking Text: , Holm ; 8B-Thinking Text: , Holm ). In Text, where the ground-truth graph is given symbolically, core accuracy (Table S103) rises monotonically across from 4.8% to 8.1%, 22.8% and 34.2% on 32B-Thinking (Grid GapL: 0.4% to 16.0%; Grid #P: 1.6% to 15.7%; Bin: 11.5% to 98.5%) and from 4.8% to 7.9%, 19.9% and 29.3% on 8B-Thinking (Grid GapL: 1.8% to 11.7%; Grid #P: 0.0% to 11.5%; Bin: 15.5% to 96.0%), shifting from -0.07 at to 0.21 at and 0.81 at free on 32B-Thinking Text (OLS slope 0.23 decades/decade, 95% CI [-0.07, 0.59]) and from -0.29 to 0.12 and 0.32 on 8B-Thinking Text (slope 0.34, CI [-0.04, 0.84]). In Visual, by contrast, Qwen3-VL is severely bottlenecked by schematic diagram transcription: although overall core Visual accuracy rises with budget from 6.3% to 20.0% on 32B-Thinking and from 3.9% to 12.6% on 8B-Thinking, Table S103 shows that this gain comes almost entirely from the binary-image tasks (Bin: 24.5% to 83.0% on 32B-Thinking; 12.5% to 56.0% on 8B-Thinking). On the core grid and Eulerian graphs that enter H2, exact visual transcription is near zero (overall core transcription exactness is only 11.7%–19.6% on 32B-Thinking, 5.2%–5.8% on 8B-Thinking, and 3.6% on 8B-Instruct, concentrated on the binary matrices), keeping Grid GapL and Grid #P accuracy at the floor across all budgets ( on 32B-Thinking Visual and on 8B-Thinking Visual). Consequently, fitted Visual is negative at the floor (-0.63 to -1.16 on 32B-Thinking; -0.84 to -4.30 on 8B-Thinking) and H2 is null in Visual (32B-Thinking Visual: , raw , Holm ; 8B-Thinking Visual: , Holm ). Just like gamma-4-E4B-it Visual in Appendix P, this contrast directly reinforces the paper's Seeing vs. Counting separation: exact thinking token budget shifts the counting curve strongly once the graph is given as text, whereas perception failure caps accuracy near the floor regardless of thinking budget. The paired within-backbone comparison at free budget on the 721 core counting instances exhibits the same dissociation: in Text, Qwen3-VL-8B-Thinking beats Qwen3-VL-8B-Instruct by +8.0 percentage points (10.8% vs. 2.8%, discordant counts , two-sided McNemar Holm , shifting from -0.15 to 0.32, decades), whereas in Visual both are tied at the visual floor (0.6% vs. 0.6%, , Holm ). All accuracies count a call that reaches the token cap before emitting an answer as wrong, and in Text such calls are frequent: on 32B-Thinking, 78.8% of calls end at the cap at , 22.5% at and 39.3% at free (8B-Thinking: 46.6%, 13.7% and 46.1%; Table S104), so part of the budget effect in Text is the share of calls that finish. 8B-Instruct reaches its 30,000-token cap on 52.1% of Text calls, against 46.1% for 8B-Thinking at free.
H3 (Matched twins) and descriptive checks. On the 80 magnitude-matched T6 twins at free budget (H3, Table S102), 0 of the 6 cells pass Holm correction: because T6 twin answers span –, well above Qwen3-VL's , twin accuracy is at the floor, with discordant counts (Holm ) on 32B-Thinking Visual and 0/0 in the other five cells. Table S104 confirms 100.0% budget compliance (reasoning_tokens ) in all 12 capped cells (median reasoning tokens 511, 2047 and 8191 at ). At free budget, median reasoning tokens reach 17935 (Visual) and 24376 (Text) on 32B-Thinking and 16104 (Visual) and 28778 (Text) on 8B-Thinking, while 8B-Instruct emits 0 reasoning tokens and a median of 1647 (Visual) and 30000 (Text, hitting finish_reason = length on 52.1% of calls) completion tokens. Finally, the equal-magnitude class term at free budget (Table S104, right) is non-negative or within noise (, on 32B-Thinking Visual; , on 32B-Thinking Text; , on 8B-Thinking Visual; , on 8B-Thinking Text; quasi-complete separation on 8B-Instruct Visual; and , on 8B-Instruct Text).
| Model | Cond. | odds/dec. | H1 | H2 | H3 | H3 | slope/dec. [95% CI] | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3-VL-32B-Thinking | Visual | -1.34±0.33 | 0.26 | < | 0.58±0.38 | 0.123 | 1/0 | 0.500 | -0.63 | -0.87 | -1.16 | -1.12 | -0.44 [-1.12, 0.35] |
| Qwen3-VL-32B-Thinking | Text | -1.61±0.17 | 0.20 | < | 1.45±0.25 | < | 0/0 | - | -0.07 | -0.07 | 0.21 | 0.81 | 0.23 [-0.07, 0.59] |
| Qwen3-VL-8B-Thinking | Visual | -2.77±1.17 | 0.06 | 0.018 | -1.43±0.57 | 0.994 | 0/0 | - | -1.13 | -2.33 | -4.30 | -0.84 | -2.63 [-4.15, -1.32] |
| Qwen3-VL-8B-Thinking | Text | -1.50±0.19 | 0.22 | < | 1.78±0.30 | < | 0/0 | - | -0.29 | -0.94 | 0.12 | 0.32 | 0.34 [-0.04, 0.84] |
| Qwen3-VL-8B-Instruct | Visual | -1.08±0.60 | 0.34 | 0.036 | - | - | 0/0 | - | - | - | - | -3.08 | - |
| Qwen3-VL-8B-Instruct | Text | -2.90±0.56 | 0.05 | < | - | - | 0/0 | - | - | - | - | -0.15 | - |
Table S102. QW: pre-registered hypothesis tests (H1, H2, H3) and scaling across the self-hosted Qwen3-VL control family (19,458 calls total, 0 missing). H1 fits on the 721 pooled core counting tasks (GapL and #P) at free budget (Holm-adjusted over 6 cells); odds/dec. = . H2 fits across ( per cell) on the two thinking models (Holm-adjusted over 4 cells). H3 tests (exact one-sided McNemar) on the 80 magnitude-matched T6 twins at free budget (: #ST right only, : #M right only; Holm-adjusted over testable cells). slope/dec. is the OLS slope of per decade of budget across , with an instance-clustered bootstrap 95% CI ().
| Model | Cond. | Budget | Core (921) | Bin (200) | Grid GapL (291) | Grid #P (350) | Euler (80) | Twins (160) | Twin #ST | Twin #M | Percept. exact (%) | Percept. F1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3-VL-32B-Thinking | Visual | 512 | 6.3 | 24.5 | 0.4 | 0.6 | 4.7 | 0.0 | 0.0 | 0.0 | 11.7 | 0.920 |
| Qwen3-VL-32B-Thinking | Visual | 2048 | 8.8 | 36.5 | 0.0 | 0.3 | 5.5 | 0.0 | 0.0 | 0.0 | 15.7 | 0.941 |
| Qwen3-VL-32B-Thinking | Visual | 8192 | 18.7 | 78.0 | 2.1 | 2.2 | 2.3 | 0.0 | 0.0 | 0.0 | 18.8 | 0.944 |
| Qwen3-VL-32B-Thinking | Visual | free | 20.0 | 83.0 | 2.1 | 1.6 | 5.5 | 0.6 | 1.2 | 0.0 | 19.6 | 0.944 |
| Qwen3-VL-32B-Thinking | Text | 512 | 4.8 | 11.5 | 0.4 | 1.6 | 11.7 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-32B-Thinking | Text | 2048 | 8.1 | 25.5 | 1.1 | 2.9 | 9.4 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-32B-Thinking | Text | 8192 | 22.8 | 72.0 | 8.2 | 9.6 | 10.2 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-32B-Thinking | Text | free | 34.2 | 98.5 | 16.0 | 15.7 | 18.8 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-8B-Thinking | Visual | 512 | 3.9 | 12.5 | 1.1 | 0.6 | 4.7 | 0.0 | 0.0 | 0.0 | 5.2 | 0.886 |
| Qwen3-VL-8B-Thinking | Visual | 2048 | 8.5 | 36.5 | 0.4 | 0.0 | 3.1 | 0.0 | 0.0 | 0.0 | 5.8 | 0.881 |
| Qwen3-VL-8B-Thinking | Visual | 8192 | 10.0 | 45.0 | 0.0 | 0.6 | 0.0 | 0.0 | 0.0 | 0.0 | 5.6 | 0.868 |
| Qwen3-VL-8B-Thinking | Visual | free | 12.6 | 56.0 | 0.0 | 0.3 | 2.3 | 0.0 | 0.0 | 0.0 | 5.4 | 0.852 |
| Qwen3-VL-8B-Thinking | Text | 512 | 4.8 | 15.5 | 1.8 | 0.0 | 6.2 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-8B-Thinking | Text | 2048 | 7.9 | 30.0 | 1.8 | 1.3 | 3.1 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-8B-Thinking | Text | 8192 | 19.9 | 64.0 | 6.0 | 9.3 | 7.0 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-8B-Thinking | Text | free | 29.3 | 96.0 | 11.7 | 11.5 | 7.0 | 0.0 | 0.0 | 0.0 | - | - |
| Qwen3-VL-8B-Instruct | Visual | free | 7.7 | 33.5 | 0.0 | 1.0 | 0.8 | 0.0 | 0.0 | 0.0 | 3.6 | 0.484 |
| Qwen3-VL-8B-Instruct | Text | free | 12.1 | 45.5 | 1.1 | 1.3 | 10.2 | 0.0 | 0.0 | 0.0 | - | - |
Table S103. QW: exact-match accuracy (%) by model, condition, thinking budget and task group, plus visual transcription exactness (%) and mean edge/cell F1 on the core benchmark for the Qwen3-VL control family. Column definitions match Table S100.
| Model | Cond. | Budget | n | Med. reason. tok. | Med. compl. tok. | Compliance (≤ b+16, %) | Length-trunc. (%) | Class βhard ± SE (free) | Class p (two-sided) |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3-VL-32B-Thinking | Visual | 512 | 1081 | 511 | 2560 | 100.0 | 53.2 | - | - |
| Qwen3-VL-32B-Thinking | Visual | 2048 | 1081 | 2047 | 2348 | 100.0 | 27.8 | - | - |
| Qwen3-VL-32B-Thinking | Visual | 8192 | 1081 | 8191 | 8400 | 100.0 | 10.7 | - | - |
| Qwen3-VL-32B-Thinking | Visual | free | 1081 | 17935 | 18205 | - | 15.9 | -0.25±0.58 | 0.662 |
| Qwen3-VL-32B-Thinking | Text | 512 | 1081 | 511 | 2560 | 100.0 | 78.8 | - | - |
| Qwen3-VL-32B-Thinking | Text | 2048 | 1081 | 2047 | 4096 | 100.0 | 51.8 | - | - |
| Qwen3-VL-32B-Thinking | Text | 8192 | 1081 | 8191 | 8648 | 100.0 | 22.5 | - | - |
| Qwen3-VL-32B-Thinking | Text | free | 1081 | 24376 | 24876 | - | 39.3 | 0.39±0.27 | 0.148 |
| Qwen3-VL-8B-Thinking | Visual | 512 | 1081 | 511 | 800 | 100.0 | 24.6 | - | - |
| Qwen3-VL-8B-Thinking | Visual | 2048 | 1081 | 2047 | 2277 | 100.0 | 10.6 | - | - |
| Qwen3-VL-8B-Thinking | Visual | 8192 | 1081 | 8191 | 8371 | 100.0 | 5.3 | - | - |
| Qwen3-VL-8B-Thinking | Visual | free | 1081 | 16104 | 16380 | - | 13.4 | 0.84±1.52 | 0.581 |
| Qwen3-VL-8B-Thinking | Text | 512 | 1081 | 511 | 535 | 100.0 | 46.6 | - | - |
| Qwen3-VL-8B-Thinking | Text | 2048 | 1081 | 2047 | 2059 | 100.0 | 26.5 | - | - |
| Qwen3-VL-8B-Thinking | Text | 8192 | 1081 | 8191 | 8203 | 100.0 | 13.7 | - | - |
| Qwen3-VL-8B-Thinking | Text | free | 1081 | 28778 | 28855 | - | 46.1 | 0.79±0.31 | 0.010 |
| Qwen3-VL-8B-Instruct | Visual | free | 1081 | 0 | 1647 | - | 17.8 | sep. | 0.999 |
| Qwen3-VL-8B-Instruct | Text | free | 1081 | 0 | 30000 | - | 52.1 | 0.61±0.67 | 0.361 |
Table S104. QW: thinking-budget compliance, realized token medians and equal-magnitude class term for the Qwen3-VL control family (n = 1,081 calls per row: 921 core + 160 twin tasks). Column definitions match Table S101 (sep.: quasi-complete separation on 8B-Instruct Visual where grid accuracy is near zero).
R. Exploratory: how much of the budget and magnitude effects is truncation?
This analysis was not pre-registered and was run after the results of Appendices P and Q were known. The frozen scorer counts a call that stops at the token cap (finish_reason = length) as wrong unless its partial output already contains the right integer (17 to 120 such calls per model), and capped calls are common on the smaller models at low budgets (Tables S101 and S104). We first rebuilt both result files from the raw records with the frozen code path (685 G9 and 499 QW values identical) and then refit H1 and H2 on finished calls only, with the same models, test directions and Holm families (Table S105). On finished calls the magnitude law holds in 12 of 14 cells (frozen analyses: 13 of 14), with coefficients close to the frozen ones (median finished/frozen ratio 1.00 over the 13 cells that pass in the frozen analyses). The budget effect holds in 9 of 12 cells (frozen: 9 of 12) but shrinks (median ratio 0.66 over the 9 cells that pass in the frozen analyses; gamma-4-12B-it Text goes from 1.98 to 0.72), so a substantial part of the budget effect on these models comes from whether a call finishes. Restricted to pairs in which both calls finished, Qwen3-VL-8B-Thinking still beats Qwen3-VL-8B-Instruct in Text (9.8% vs. 3.0%, b/c = 9/0, exact McNemar p = 0.0039, n = 133 pairs). Finishing itself depends on budget and answer size, so the finished-only rows are a selected sample and serve as a robustness check, not as an estimate of a separate effect.
| Exp. | Model | Cond. | frozen | finished | p | pHolm | n_{fin} | survives |
|---|---|---|---|---|---|---|---|---|
| H1 (magnitude law): at free budget | ||||||||
| G9 | gamma-4-31B-it | Visual | -1.22 | -1.22 | 720 | yes | ||
| G9 | gamma-4-31B-it | Text | -1.46 | -1.46 | 721 | yes | ||
| G9 | gamma-4-26B-A4B-it | Visual | -1.70 | -1.75 | 465 | yes | ||
| G9 | gamma-4-26B-A4B-it | Text | -1.65 | -1.63 | 309 | yes | ||
| G9 | gamma-4-12B-it | Visual | -1.49 | -1.73 | 327 | yes | ||
| G9 | gamma-4-12B-it | Text | -1.51 | -2.09 | 234 | yes | ||
| G9 | gamma-4-E4B-it | Visual | -0.14 | -0.14 | 0.372 | 0.372 | 721 | no |
| G9 | gamma-4-E4B-it | Text | -1.72 | -1.72 | 721 | yes | ||
| QW | Qwen3-VL-32B-Thinking | Visual | -1.34 | -1.23 | 0.0002 | 585 | yes | |
| QW | Qwen3-VL-32B-Thinking | Text | -1.61 | -2.00 | 384 | yes | ||
| QW | Qwen3-VL-8B-Thinking | Visual | -2.77 | -2.64 | 0.011 | 0.022 | 614 | yes |
| QW | Qwen3-VL-8B-Thinking | Text | -1.50 | -2.92 | 326 | yes | ||
| QW | Qwen3-VL-8B-Instruct | Visual | -1.08 | -0.76 | 0.125 | 0.125 | 612 | no |
| QW | Qwen3-VL-8B-Instruct | Text | -2.90 | -2.46 | 0.0004 | 0.001 | 277 | yes |
| H2 (budget effect): across | ||||||||
| G9 | gamma-4-31B-it | Visual | 1.19 | 0.65 | 0.0001 | 0.0007 | 1,799 | yes |
| G9 | gamma-4-31B-it | Text | 1.25 | 0.94 | 1,886 | yes | ||
| G9 | gamma-4-26B-A4B-it | Visual | 1.66 | 1.98 | 0.0003 | 0.002 | 942 | yes |
| G9 | gamma-4-26B-A4B-it | Text | 1.52 | 0.58 | 0.045 | 0.091 | 1,059 | no |
| G9 | gamma-4-12B-it | Visual | 1.53 | 0.70 | 0.005 | 0.019 | 1,063 | yes |
| G9 | gamma-4-12B-it | Text | 1.98 | 0.72 | 0.007 | 0.021 | 1,220 | yes |
| G9 | gamma-4-E4B-it | Visual | 0.00 | 0.32 | 0.382 | 0.382 | 1,817 | no |
| G9 | gamma-4-E4B-it | Text | 1.18 | 0.78 | 0.0005 | 0.003 | 1,995 | yes |
| QW | Qwen3-VL-32B-Thinking | Visual | 0.58 | 1.02 | 0.019 | 0.038 | 1,584 | yes |
| QW | Qwen3-VL-32B-Thinking | Text | 1.45 | 1.56 | 1,140 | yes | ||
| QW | Qwen3-VL-8B-Thinking | Visual | -1.43 | -1.52 | 0.993 | 0.993 | 1,973 | no |
| QW | Qwen3-VL-8B-Thinking | Text | 1.78 | 3.06 | 1,624 | yes | ||
Table S105. Exploratory, not pre-registered. H1 and H2 of Appendices P and Q refit on finished calls only, that is, without the calls that stopped at the token cap (finish_reason = length). H1 rows give of logit(exact) on the core counting tasks at free budget; H2 rows give of logit(exact) across the capped budgets. Exp.: experiment (G9 or QW); Cond.: input condition; frozen: the coefficient of the pre-registered analysis on all calls (Tables S99 and S102); finished: the same coefficient refit on finished calls only; p: one-sided Wald p of the finished-only fit in the pre-registered direction ( for H1, for H2); : exploratory Holm adjustment of that p over the cells of the same experiment and hypothesis, mirroring the frozen families; : finished calls in the fit, out of 721 per H1 cell and 2,163 per H2 cell; survives: whether the finished-only fit meets the frozen rule (Holm-adjusted p at or below the pre-registered , with the pre-registered sign); : the verdict differs from the frozen analysis.
S. Realistic-style rendered diagrams (Experiment R9)
Why. Appendices H and M test whether our conclusions survive five rendering styles and ten visual degradations applied to synthetic node-link drawings. A natural computer-vision question is whether the three core phenomena of the paper (the steep drop of chain-of-thought accuracy with answer magnitude rather than complexity class on magnitude-matched twins, the large accuracy gain from writing code once the structure is perceived, and the anisotropic horizontal-over-vertical edge false-negative blind spot on large grids repaired by rotated multi-view plus local pair-crop verification) also hold when the same kind of graphs is rendered in realistic, domain-textured styles rather than as clean SVG drawings on white backgrounds. Every R9 image is procedurally rendered from a known graph; none is a photograph.
Domains, slices and pre-registration. Experiment R9 (EXPERIMENT_R9_PLAN.md and analyze_r9.py, hash-frozen in PLAN_FREEZE_r9.txt and ANALYSIS_FREEZE_r9.txt before any API call was issued) evaluates 88 procedural instances across 4 realistic visual styles (Fig. S7):
-
FR-4 printed circuit boards (pcb_trace): dark solder-mask substrate with silkscreen grid ticks, component reference designators (U0–U63), gold-ringed copper solder pads, and angled copper traces with specular highlights and board grain;
-
Architectural cyanotype floorplans (blueprint_floorplan): Prussian-blue blueprint paper with fold creases, CAD title blocks, room partition boxes, and double-line architectural corridors;
-
Metro transit schematics (transit_map): off-white parchment transit map with river/park background geography, line-colored route segments, and white-rimmed transfer station interchanges; and
-
Rendered desk scenes (camera_desk_shadow): a wood-grain tabletop rendered under a projective homography slant, vignette lighting, sensor noise, 3D-shaded physical pucks casting directional drop shadows, and taut connecting cords. The benchmark comprises two pre-registered slices:
• Slice R9-A (Large realistic diagrams, 48 images, 96 task pairs): 6 grids at 7×7 and 6 at 8×8 per domain (12 × 4 = 48 images), each evaluated on #ST (GapL) and #M (#P-complete) under six conditions: Direct (chain-of-thought JSON transcription and count), One-shot Code (single-turn Python), TwoStage-1v (one upright transcription call solved by exact Kirchhoff/profile-DP code), TwoStage-Zoom (2×2 overlapping quadrant crops merged and solved by exact code), TwoStage-rot180 (0°+180° readings plus local pair-crop adjudication on disagreements), and TwoStage-2v (0°+90° axis-swapping readings plus local pair-crop adjudication on disagreements).
• Slice R9-B (Magnitude-matched realistic twins, 40 images, 120 task pairs): 10 grids per domain across 4×4, 4×5, 5×5 and 5×6 (10 × 4 = 40 images) filtered so that every graph has decades and , evaluated on #ST, #M and the smaller-magnitude control #PM under Direct and Code (CAR). We evaluate both gemini-3.8-flash (low, primary) and gemini-3.1-pro-preview (low), totalling 816 standardized evaluation records per model (1,632 records overall from 2,761 raw API calls, with zero missing records).

(a) pcb_trace (FR-4 copper PCB)

(b) blueprint_floorplan (CAD blueprint)

(c) transit_map (metro schematic)

(d) camera_desk_shadow (rendered desk scene)
Figure S7. Representative instances from the four realistic rendering styles of Experiment R9 (§); all images are rendered from known graphs. Each style is evaluated on both magnitude-matched complexity twins (4×4–5×6, Slice R9-B) and large 7×7–8×8 diagrams (Slice R9-A).
Registered criteria. The plan fixes a pass threshold for every hypothesis. analyze_r9.py computes the statistics; Table S106 applies the registered thresholds to them. On gemini-3.8-flash, 4 of the 8 criteria pass: the magnitude decay (H1b), the horizontal-edge anisotropy (H3a), and the gains of the two-view pipeline over one view and over quadrant zoom (H3b-i, H3b-ii). Four fail: code gains less than registered (H1a), matched #ST/#M twins differ by 20.0 points rather than at most 15 (H2a), #PM leads #M by less than 35 points (H2b), and a 180° second view does as well as a 90° one (H3b-iii). On gemini-3.1-pro-preview, 3 pass. Because H3b-iii fails on both models, R9 supports the second, differently rendered reading with crop adjudication, not the axis swap, as the source of the repair, in line with Appendix K. The plan's text calls #PM #P-complete; on planar grids it is in GapL (Kasteleyn), which does not change the registered H2b threshold.
| Rule | Registered criterion | 3.8-flash | 3.1-pro |
|---|---|---|---|
| H1a | Code ≥75%, ≥+40 pp over Direct ( ), ≥+30 pp in every style | fail: 83.3%, +23.3 pp, min style +16.7 | fail: 70.0%, +43.3 pp, min style +0.0 |
| H1b | Direct falls over 4 magnitude bins; slope < 0, | pass: slope -0.36, \nfail: 20.0 pp, Code 87.5/82.5% | pass: slope -0.60, \nfail: 15.0 pp, Code 75.0/67.5% |
| H2a | matched twins: |#ST - #M| ≤15 pp ( ), log-error gap ≤0.35, Code ≥75% on both | ||
| H2b | #PM exceeds #M by ≥35 pp ( ) | fail: +32.5 pp, | fail: +42.5 pp, |
| H3a | FNR > FNR , Wilcoxon , in all 4 styles | pass: , 4/4 styles | fail: , 3/4 styles |
| H3b-i | two-view vs. one view: ≥+20 pp graphs and tasks, | pass: +45.8 pp, | pass: +33.3 pp, |
| H3b-ii | two-view vs. quadrant zoom: ≥+15 pp, | pass: +35.4 pp, | pass: +54.2 pp, |
| H3b-iii | 90° vs. 180° second view: ≥+15 pp, | fail: -4.2 pp, | fail: -8.3 pp, |
Table S106. Experiment R9: registered criteria from EXPERIMENT_R9_PLAN.md (Section 3, frozen before the first API call) and verdicts for both models, computed from the frozen analysis output. "style": one of the four rendering styles.
Results. Table S107 reports all pre-registered metrics for both models.
-
H1 and H2 on Slice R9-B (Magnitude law, matched twins, and code routing): On the 120 realistic twin evaluations, Direct chain-of-thought accuracy decays monotonically across the four pre-registered bins ([0, 2.5), [2.5, 4.5), [4.5, 6.5), [6.5, )) from 75.0% to 64.7%, 61.5% and 29.2% on gemini-3.8-flash ( , odds multiplier 0.69/decade, Wald ) and from 50.0% to 35.3%, 15.4% and 0.0% on gemini-3.1-pro-preview ( , ). On the 40 magnitude-matched twins ( ), Direct accuracy on #ST (GapL) is higher than on #M (#P-complete) but not significantly so (62.5% vs. 42.5%, two-sided McNemar on 3.8-flash; 22.5% vs. 7.5%, on 3.1-pro); the 3.8-flash gap exceeds the registered 15-point bound, so H2a fails. The GapL task #PM, whose answers are smaller, reaches 75.0% on the same images (+32.5 pp over #M, one-sided McNemar ) on 3.8-flash and 50.0% (+42.5 pp, ) on 3.1-pro; this contrast changes class and magnitude together. Routing to code (CAR) lifts overall R9-B accuracy from 60.0% to 83.3% (+23.3 pp, two-sided McNemar ) on 3.8-flash and from 26.7% to 70.0% (+43.3 pp, ) on 3.1-pro, with gains in every style on 3.8-flash (pcb_trace 53.3%→70.0%, blueprint_floorplan 50.0%→76.7%, transit_map 60.0%→93.3%, camera_desk_shadow 76.7%→93.3%), though below the registered size (H1a).
-
H3a on Slice R9-A (Anisotropic horizontal-edge blind spot): Across the 48 large 7×7 and 8×8 diagrams, upright single-view transcription (TwoStage-1v) misses horizontal segments at 4.7× the rate of vertical segments on gemini-3.8-flash (mean FNR_H = 7.3% vs. FNR_V = 1.6%, one-sided Wilcoxon p = 7.6 × 10⁻⁷, sign-permutation p = 5.0 × 10⁻⁵), holding in all four styles (pcb_trace 10.9% vs. 2.4%, blueprint_floorplan 9.5% vs. 1.9%, transit_map 6.5% vs. 1.9%, and camera_desk_shadow 2.4% vs. 0.0%). On gemini-3.1-pro-preview, FNR_H = 1.8% vs. FNR_V = 0.6% (3.0×, one-sided Wilcoxon p = 0.0083), short of the registered p < 10⁻⁴.
-
H3b on Slice R9-A (Multi-view plus local pair-crop verification repair): On the 96 large-diagram task evaluations, chain of thought (Direct) scores 0.0% on both models, and single-turn One-shot Code solves only 14.6% on 3.8-flash (7.3% on 3.1-pro). Separating transcription in a single upright view (TwoStage-1v) reaches 27.1% (13/48 exact graphs, mean edge ) on 3.8-flash and 37.5% (18/48 exact graphs) on 3.1-pro, while unrotated 2×2 quadrant cropping (TwoStage-Zoom) reaches only 37.5% on 3.8-flash and 16.7% on 3.1-pro. Pairing the upright reading with a rotated second reading and adjudicating only the disagreeing adjacent vertex pairs via local pair crops raises exact graph recovery and end-to-end solving to 72.9% (35/48 exact graphs, , +45.8 pp over 1v, b/c = 44/0, one-sided exact McNemar ; +35.4 pp over Zoom, ) for 90° (TwoStage-2v) and 77.1% (37/48 exact graphs) for 180° (TwoStage-rot180) on 3.8-flash, and to 70.8% (34/48 exact graphs, +33.3 pp over 1v, b/c = 32/0, ) for 90° and 79.2% (38/48 exact graphs) for 180° on 3.1-pro. The 180° view, which keeps every edge's orientation, is at least as good as the 90° view on both models (H3b-iii fails).
| Slice / Condition | Metric / Subset | gemini-3.8-flash (low) | gemini-3.1-pro-preview (low) | ||||
|---|---|---|---|---|---|---|---|
| Graph / Dir. | Task / Code | Edge F1 / Δ | Graph / Dir. | Task / Code | Edge F1 / Δ | ||
| R9-A: Large realistic diagrams (7×7 and 8×8, N = 48 images, 96 task pairs: #ST and #M) | |||||||
| Direct (CoT) | prose JSON + count | 12/48 (25.0%) | 0/96 (0.0%) | 0.987 | 6/48 (12.5%) | 0/96 (0.0%) | 0.985 |
| One-shot Code | single-turn Python | 2/48 (4.2%) | 14/96 (14.6%) | 0.946 | 9/48 (18.8%) | 7/96 (7.3%) | 0.962 |
| TwoStage-1v | 1 upright view + solver | 13/48 (27.1%) | 26/96 (27.1%) | 0.977 | 18/48 (37.5%) | 36/96 (37.5%) | 0.988 |
| TwoStage-Zoom | 2×2 quadrant crops + solver | 18/48 (37.5%) | 36/96 (37.5%) | 0.989 | 8/48 (16.7%) | 16/96 (16.7%) | 0.990 |
| TwoStage-rot180 | 0° + 180° + pair crops + solver | 37/48 (77.1%) | 74/96 (77.1%) | 0.998 | 38/48 (79.2%) | 76/96 (79.2%) | 0.998 |
| TwoStage-2v | 0° + 90° + pair crops + solver | 35/48 (72.9%) | 70/96 (72.9%) | 0.998 | 34/48 (70.8%) | 68/96 (70.8%) | 0.997 |
| R9-A: Single-view horizontal (FNR_H) vs. vertical (FNR_V) edge false-negative rate (N = 48 images) | |||||||
| All 4 domains | N = 48 grids | FNR_H = 7.3% | FNR_V = 1.6% | 4.7× (p = 7.6 × 10⁻⁷) | FNR_H = 1.8% | FNR_V = 0.6% | 3.0× (p = 0.0083) |
| PCB copper trace | n = 12 grids | 10.9% | 2.4% | 4.5× | 4.9% | 1.3% | 3.7× |
| Blueprint floorplan | n = 12 grids | 9.5% | 1.9% | 5.0× | 1.1% | 0.2% | 6.1× |
| Transit schematic | n = 12 grids | 6.5% | 1.9% | 3.5× | 0.5% | 1.0% | 0.5× |
| Camera desk shadow | n = 12 grids | 2.4% | 0.0% | all misses H | 0.9% | 0.0% | all misses H |
| R9-B: Magnitude-matched twins on realistic diagrams (4×4 to 5×6, N = 40 images, 120 evaluations) | |||||||
| All R9-B tasks | N = 120 pairs | 72/120 (60.0%) | 100/120 (83.3%) | +23.3 pp | 32/120 (26.7%) | 84/120 (70.0%) | +43.3 pp |
| PCB copper trace | n = 30 pairs | 16/30 (53.3%) | 21/30 (70.0%) | +16.7 pp | 7/30 (23.3%) | 22/30 (73.3%) | +50.0 pp |
| Blueprint floorplan | n = 30 pairs | 15/30 (50.0%) | 23/30 (76.7%) | +26.7 pp | 10/30 (33.3%) | 28/30 (93.3%) | +60.0 pp |
| Transit schematic | n = 30 pairs | 18/30 (60.0%) | 28/30 (93.3%) | +33.3 pp | 7/30 (23.3%) | 7/30 (23.3%) | +0.0 pp |
| Camera desk shadow | n = 30 pairs | 23/30 (76.7%) | 28/30 (93.3%) | +16.7 pp | 8/30 (26.7%) | 27/30 (90.0%) | +63.3 pp |
| Twin #ST (GapL) | n = 40 grids | 25/40 (62.5%) | 35/40 (87.5%) | +25.0 pp | 9/40 (22.5%) | 30/40 (75.0%) | +52.5 pp |
| Twin #M (#P-c) | n = 40 grids | 17/40 (42.5%) | 33/40 (82.5%) | +40.0 pp | 3/40 (7.5%) | 27/40 (67.5%) | +60.0 pp |
| Control #PM (GapL, small) | n = 40 grids | 30/40 (75.0%) | 32/40 (80.0%) | +5.0 pp | 20/40 (50.0%) | 27/40 (67.5%) | +17.5 pp |
Table S107. Experiment R9: pre-registered evaluation across four realistic engineering and physical diagram domains (pcb_trace, blueprint_floorplan, transit_map, camera_desk_shadow; Fig. S7) on gemini-3.8-flash (low) and gemini-3.1-pro-preview (low) (1,632 standardized evaluation records across 2,761 API calls). Top: Slice R9-A (48 large 7×7 and 8×8 diagrams, 96 task pairs across #ST and #M), reporting exact graph transcription rate, end-to-end exact task accuracy, and mean edge F₁ across six conditions. Middle: single-view horizontal (FNR_H) vs. vertical (FNR_V) edge false-negative rates and anisotropy ratios FNR_H/FNR_V with one-sided paired Wilcoxon p-values. Bottom: Slice R9-B (40 magnitude-matched twins with |log₁₀ #ST − log₁₀ #M| ≤ 0.25, 120 evaluations across #ST, #M and smaller-magnitude #PM), comparing Direct (CoT) against Code (CAR) overall, by visual domain, and by task.
T. Code conditions, the routing prompt and the reading pipelines
This appendix gives the details that Section 4 summarises (its paragraph “Code and multi-view reading”) and the full version of Table 5.
The routing prompt (CAR). A model that writes code to count typically transcribes the structure and writes the first algorithm that comes to mind, usually enumeration. CAR (Complexity-Aware Routing) inserts one step. The prompt (§C) is generic, never names a task, and asks for three things: Perceive, transcribe the structure exactly; Classify, decide whether the counting problem admits a known polynomial-time exact algorithm or is #P-complete in general so that only exponential methods exist, and name the theorem or algorithm; Solve by code, write one program that hard-codes the transcription and prints one integer, with exact integer arithmetic for algebraic routes and a frontier dynamic program rather than naive enumeration for #P-complete problems. The main paper uses CAR only as a control: if routing mattered, CAR should beat plain Code where enumeration is too slow and tie elsewhere (Proposition 1).
Four controls. Four controls isolate the ingredients: Perceive+Code keeps the transcription step and drops the classification and routing sentences; Route-only keeps the first two steps but asks the model to carry out the chosen algorithm by hand; Text CAR runs CAR on the text input; Hint→Code gives the task-specific theorem and asks for code.
Zoom-k and two-view reading. Because the extra-large grids fail through single-view transcription (Section 7.2), where horizontal segments are missed far more often than vertical ones, two further pipelines separate the Perceive step from the rest; no ground truth enters either. Zoom-k cuts the image into k×k overlapping crops, each wide enough to contain any lattice edge with both endpoint circles, asks for the edges in each crop with the same transcription prompt, merges the lists and solves the merged list with Text CAR or Text→Code; Zoom-1 is a single-shot transcription of the whole image (Table S39). Two-view transcribes the image upright and as a copy rotated by 90°; the design meant to turn horizontal edges vertical, with a 180° rotation, which keeps them horizontal, as the control, but the two rotations tie (§K), so we read the gain as coming from a second, decorrelated reading. Pairs on which the two readings agree are accepted or rejected accordingly, and each disagreement is settled by one further call showing a local crop of the two endpoint vertices alone. The verified list is then solved by code.
Code conditions on every configuration. Table S108 lists every code prompt run on the benchmark proper; Table 5 keeps the Visual→Code, Text→Code and CAR rows of gemini-3.8-flash (low).
| Model | Condition | n | acc (%) | exec ok (%) | timeout (%) | libs (%) | algebraic (%) | DP (%) | tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemini 3.6 Flash (low) | Visual→Code | 202 | 94 | 97 | 3 | 13 | 54 | 22 | 1.6k |
| CAR | 202 | 95 | 99 | 1 | 7 | 74 | 34 | 1.9k | |
| Gemini 3.8 Flash (low) | Visual→Code | 392 | 93 | 100 | 0 | 6 | 62 | 27 | 1.7k |
| Text→Code | 392 | 96 | 98 | 0 | 3 | 64 | 32 | 0.9k | |
| Hint→Code | 202 | 89 | 99 | 0 | 0 | 89 | 36 | 1.8k | |
| Perceive+Code | 392 | 93 | 98 | 0 | 1 | 66 | 23 | 1.5k | |
| CAR | 392 | 91 | 100 | 0 | 0 | 72 | 41 | 1.5k | |
| Text CAR | 392 | 98 | 100 | 0 | 0 | 67 | 50 | 1.2k | |
| Gemma 4 31B (no thinking) | Visual→Code | 392 | 67 | 100 | 0 | 10 | 67 | 33 | 0.9k |
| Hint→Code | 202 | 63 | 100 | 0 | 0 | 99 | 41 | 1.0k | |
| Perceive+Code | 202 | 64 | 100 | 0 | 13 | 67 | 33 | 1.1k | |
| CAR | 392 | 62 | 100 | 0 | 0 | 74 | 42 | 1.2k | |
| Gemma 4 31B (thinking) | Visual→Code | 19 | 95 | 95 | 0 | 0 | 75 | 18 | 8.0k |
| CAR | 25 | 92 | 100 | 0 | 0 | 83 | 54 | 7.3k | |
| Gemini 3.1 Pro (low) | Visual→Code | 202 | 86 | 100 | 0 | 0 | 62 | 27 | 2.5k |
| Perceive+Code | 202 | 91 | 100 | 0 | 0 | 58 | 26 | 2.2k | |
| CAR | 202 | 88 | 100 | 0 | 0 | 74 | 51 | 2.4k |
Table S108. Code conditions on the benchmark proper (extra-large grids excluded). “libs”: programs that import a library; “algebraic”: fraction of programs for #ST, #PM, #EC→ that compute a determinant/Pfaffian; “DP”: fraction of programs for #M, #Paths, #EC that use memoised/frontier dynamic programming rather than enumeration.