Designing and Engineering Evaluations for Long-Horizon Visual Reasoning
Long-horizon visual reasoning tests whether an AI agent can infer rules from images, execute multi-step visual transformations, and deliver a verifiable answer without textual instructions or correctness feedback. This article presents task categories, evaluation protocols, error taxonomies, engineering practices, and product implications for building reliable visual reasoning benchmarks.
Existing agents can fix bugs, implement features, and operate through long tool chains largely because their tasks are expressed in text. Goals are explicit, constraints are searchable, and tests or logs indicate when the agent has gone off course.
Remove those external supports, and the capability profile changes immediately. Imagine an image containing only black-and-white line drawings, labels, and arrows: no question, no answer choices, and no “try again” signal. The agent must determine which regions are examples, which are test inputs, and whether the answer should be a word or a number. This is the setting of long-horizon visual reasoning. The clues cannot be fully translated into text before solving; the model must repeatedly move between visual inspection, hypothesis formation, multi-step reasoning, and visual verification.
What Existing Evaluations Miss
Most visual question-answering benchmarks are single-turn tasks with short reasoning chains. The question is provided in text, while the image supplies only the local evidence explicitly requested. Agent benchmarks, meanwhile, are usually built around text and code environments. Even when an image is included, the environment often returns compiler errors, unit-test results, or tool outputs. The model can then use trial and error to reach the correct answer without genuinely understanding the rule represented in the image.
The gap between these two settings is a task in which all meaningful information exists in the image and no one tells the model whether it is correct. The goal is not merely to make perception harder, but to combine three capabilities in one trajectory:
- Visual structure parsing: Distinguishing example areas, query areas, legends, arrow directions, and spatial relationships instead of compressing the entire image into a vague description.
- Rule induction: Inferring the transformation or constraint specific to the current task from a small number of visual examples, rather than applying a familiar training-set template.
- Execution without feedback: Carrying a hypothesis through to completion without intermediate rewards and writing the final answer in a machine-checkable form.
A recurring pattern in public discussions is that, under a unified instruction such as “look only at the image and write the answer to a file,” even strong models achieve relatively low end-to-end accuracy. Results often show a large gap between the strongest and weakest systems, with little smooth middle ground. Once the hidden rule is stated in a single sentence, overall accuracy rises substantially.
This gap suggests that the main bottleneck is often not the final symbolic calculation, but extracting the rule from the image. Exact percentages vary with the task set, decoding configuration, and number of repetitions, so a single leaderboard result should not be treated as an upper bound on capability.
Four Task Categories and Their Failure Modes
A useful visual-puzzle suite should be divided by cognitive operation rather than by artistic style. The following four categories cover major failure modes. Within each category, visual style should be controlled so that models cannot exploit superficial texture or rendering cues.
Spatial Operations and Simulation
These tasks require the model to mentally perform folding, rotation, projection, occlusion, or another spatial transformation. A model may correctly identify that an image represents origami but lose track of face correspondences after the second step.
The evaluation should fix the initial orientation markers and include contrastive items that differ only in folding order. This helps distinguish genuine understanding of the markers from memorization of common unfolded patterns.
Logical Constraints and Planning
The image may specify capacity, exclusion, direction, or resource constraints, with one valid path or arrangement. A text-based planning model may solve the problem if it is first given an extracted constraint table. The difficulty here is rebuilding that table from legends, arrows, and labels.
Typical failures include missing an exclusion edge or treating a decorative line as a hard constraint.
Rule Induction
Several input-output examples appear in one image, and the rule applies only to the current task. The model cannot rely on the name of a familiar puzzle type or on general-world knowledge. This category is the closest to visual program induction.
A well-designed example set should satisfy two conditions:
- The smallest set of examples should eliminate the main incorrect rules.
- One additional example should uniquely determine the correct rule when the initial examples are insufficient.
Otherwise, a low score may indicate ambiguity in the task rather than a weakness in the model.
Knowledge Decoding
The image may contain Morse code, Braille, a simple substitution cipher, or a word puzzle based on a conventional symbol system. The task is to recognize the convention and execute it completely, not to invent a new cipher.
Symbols must remain distinguishable after resolution is reduced. The task should also avoid obscure cultural references, or the evaluation will measure knowledge coverage rather than visual reasoning.
Protocol: Separating “Cannot Read” from “Can Solve but Cannot Deliver”
A set of approximately 40 original problems, each containing multiple line drawings, is enough to identify broad trends, but statistical conclusions still require repeated sampling. The following protocol is preferable to reporting a single greedy decoding result.
Use a Unified Instruction
All tasks should share the same task description, such as:
Read the image and write the final answer to the specified file.
The instruction should not reveal the task type, answer format, or location of the examples. This measures task identification as well as problem solving.
Keep the Answer Contract Narrow
Accept only predefined canonical formats, such as:
- an integer;
- a single word;
- a coordinate sequence with fixed separators.
The grading script should normalize the output before comparison. Open-ended text should not receive credit merely because it expresses the same meaning in a different form. Writing the file should also be part of the success condition. Otherwise, a model that reasons correctly but writes the wrong content to the deliverable could be incorrectly marked as successful.
Use Multiple Reasoning Budgets
For the same model, evaluate at least low, medium, and high reasoning budgets or sampling temperatures. Repeat each configuration independently three times, then report both the best configuration and the average across repetitions.
Reporting only the best single run confuses variance with capability. If accuracy decreases as the budget increases, the model may be rewriting rules that do not exist in the image during its longer reasoning chain.
Hide Feedback but Preserve Auditability
The model should not receive correctness feedback, but the evaluation system should preserve the trajectory for later analysis. Useful records include:
- the number of image-inspection calls;
- whether the model referenced concrete image regions;
- how many times it revised a hypothesis;
- the final file contents.
These traces are for error analysis, not online rewards. Otherwise, the benchmark becomes another feedback-driven agent environment.
Add a Controlled Comparison
Run the same task set under a second condition containing a one-sentence rule hint. The hint should state the rule without revealing the answer or highlighting the relevant image region.
The difference between the two conditions directly measures rule-acquisition difficulty. If performance remains low even after the rule is stated, the bottleneck is more likely to be simulation or decoding execution.
The grading logic can remain deliberately simple. The important component is the answer contract, not the framework:
def normalize(text: str) -> str:return " ".join(text.strip().lower().split())def grade(pred_path: str, gold: str) -> bool:try:pred = open(pred_path, encoding="utf-8").read()except OSError:return Falsereturn normalize(pred) == normalize(gold)
Where Errors Come From
Classifying failure trajectories is usually more useful than running another aggregate benchmark. Five common categories are as follows.
Misreading Regions
The model treats a query as another example or includes a problem label as part of the answer. Dense line drawings and missing section titles make this worse.
One engineering approach is to require training examples to first produce a region inventory before answering. The inventory should not count toward the evaluation score; it is retained only for diagnosis.
Rule Overfitting
The model infers an overly broad rule from two examples. A third example contradicts it, but the model does not revisit the image. Because there is no external feedback to interrupt the process, long-horizon visual reasoning depends heavily on self-consistency checks.
A useful technique is to reserve unused examples for validation. If the inferred rule fails on those examples, the model should reject the hypothesis and search again.
Simulation Drift
During a folding or rotation sequence, the intermediate state is not externalized. Spatial relationships gradually become misaligned in the hidden reasoning process.
A practical solution is to redraw the intermediate state in a coordinate system or character grid, applying only one transformation per step. Invariants such as the number of cells or markers can then be used to validate each state.
Unstable Knowledge Triggers
The model recognizes only part of a symbol system and translates the rest using the wrong alphabet, causing the entire task to fail.
A more reliable procedure is to detect the symbol system from a closed set first, confirm the corresponding codebook, and only then translate. Guessing and translating at the same time is less stable.
Delivery Failures
The reasoning is correct, but the model uses the wrong filename or encoding, or adds extra explanation that causes the grader to reject the output. These may look like implementation details, but when the protocol requires an answer to be written to disk, delivery is part of the task.
Both the instruction and the grading script should explicitly define the path and encoding.
Turning Evaluation into an Improvement Loop
Increasing context length or switching to a stronger general-purpose model is unlikely to solve this gap by itself. A more reliable approach is to design data, tools, and acceptance criteria separately.
Data
Prioritize original line drawings instead of scraping public puzzle sites and risking leakage. For each task, record:
- a formal description of the rule;
- why the examples are sufficient;
- plausible incorrect rules that may confuse a model.
The formal description can be used for training or for the rule-hint comparison condition, but it must not appear in blind-test instructions.
Use consistent line widths and resolutions to reduce shortcuts based on rendering artifacts or source recognition.
Tools
Models may be allowed to use read-only visual tools such as cropping, magnification, and rotation correction. These tools should not return semantic labels or correctness signals.
If adding OCR or image-to-text conversion produces a dramatic accuracy increase, the benchmark may have been penetrated by a textification shortcut. The solution is to redesign the image, not to interpret the score increase as evidence of stronger visual reasoning.
Training Signals
A blind evaluation protocol should not provide online rewards, but training can still use process supervision. Possible signals include:
- consistency on held-out examples;
- preservation of invariants;
- coverage of key strokes or regions in image references.
These signals can be dense while remaining decoupled from the final answer. The final leaderboard should still evaluate a single delivery under no hints and no feedback.
System Placement
Store task images and trajectories in object storage, use a task queue for batch attempts, and rely on logging and monitoring alerts to detect timeouts, empty files, and repeated failures. These are general engineering components and do not change the evaluation definition.
When using cloud-based agents or inference services, keep blind-test data separate from rule-hint data. This prevents retrieval augmentation from accidentally injecting the rule text.
Reporting
Publish all of the following:
- accuracy without hints;
- accuracy after the one-sentence rule hint;
- the best configuration;
- the mean across three repetitions;
- results broken down by the four task categories.
A single aggregate score can hide a structure that matters much more for product decisions—for example, acceptable spatial simulation but nearly zero performance on rule induction.
Common Design Mistakes
Ambiguous Rules
If two mutually exclusive rules explain all available examples, a zero score cannot fairly be attributed to the model. Before release, use formal enumeration or manual red-teaming to verify uniqueness.
Text Leakage
Filenames, watermarks, or the order of adjacent files may encode the task type. Blind-test packages should randomize ordering and use semantically empty filenames.
Unfair Resolution
Thin lines may merge after downsampling, making the task impossible for humans as well. Evaluate human solvability at the actual input resolution used by the target model rather than relying only on the original vector image.
Imbalanced Category Difficulty
If knowledge decoding is much easier than rule induction, the aggregate score will be dominated by symbol recognition. Calibrate human completion time and accuracy for each category before deciding whether weighting is necessary.
Perception Tasks Disguised as Reasoning Tasks
If magnifying the image reveals the answer immediately, the benchmark is not measuring long-horizon reasoning. Each task should require at least two non-skippable dependencies: without the intermediate conclusion from the previous step, the next step should not be uniquely determined.
Implications for AI Agent Products
Weak long-horizon visual reasoning does not mean that a model “cannot see.” Many models perform reliably on visual question answering when a question is supplied. They fail when the prompt contains no question and no feedback because they lack autonomous task identification and a stable hypothesis-and-verification loop.
Product teams that pass flowcharts, wireframes, or scanned documents directly to an agent and expect it to act as if it were processing a structured ticket will systematically overestimate reliability.
A more practical architecture is layered:
- Use a visual module to produce auditable structure, including regions, arrows, and symbols.
- Let a symbolic reasoning module search over that structure.
- Make intermediate structures explicit so that humans and automated invariant checks can inspect them.
For high-risk workflows, “look at one image and modify production configuration” should not be the default path. At minimum, retain a human confirmation step or require the model to restate the rule it believes it has identified before execution.
The evaluation itself should also become a maintained asset. Version the tasks, gold answers, incorrect-rule catalog, and trajectory taxonomy separately. Whenever the model or data distribution changes, rerun both the no-hint and rule-hint conditions.
A shrinking gap between the two conditions indicates improvement in rule acquisition. An increase in the no-hint score while the hinted score remains stable is stronger evidence of genuine progress in long-horizon visual reasoning.
Long-horizon visual reasoning is difficult because it removes the two supports on which agents rely most: textual specifications and environmental feedback. A useful evaluation must therefore use uniquely decidable line drawings, a unified instruction, repeated sampling, and a rule-hint comparison to separate “cannot read the rule” from “cannot execute it.” Process supervision and read-only visual tools can then strengthen the reasoning loop without weakening the blind-test protocol. This turns evaluation into an engineering guide rather than a single discouraging score.
