Top LLMs Pass Only 26.7% on Visual Cipher Benchmarks: Evaluation Design and Engineering Practice
This article analyzes the Visual Cipher reasoning benchmark, on which the best-performing model configuration achieves only a 26.7% pass rate. It explains why the task is difficult—requiring visual perception, symbolic reasoning, and long-range consistency at the same time—and what the sharp, near all-or-nothing score distribution reveals about the current limits of large language models. From a developer's perspective, it then details how to build reproducible and comparable evaluations (task generation, unified prompting protocols, exact-match judging, confidence intervals, and contamination defenses) and how to apply generate-verify-prune patterns to real scenarios that involve extracting hidden patterns from images. It concludes that such benchmarks should be treated as capability probes for guiding model selection and system design, not as guarantees of production readiness.
1. Introduction: A puzzle that stumps even the top models
Imagine handing a model this task: on the screen is a string of “code” written in an unconventional set of symbols, with a segment of known plaintext–ciphertext correspondence given beside or below it. The model must infer the encoding rule and decode the rest. Most models can recognize what each symbol is, yet struggle to articulate the pattern that governs how the symbols relate to one another.
Recently, a class of reasoning benchmarks known as “Visual Cipher” has drawn wide attention. In public evaluation results, the best-performing model configuration reaches a pass rate of 26.7%. On the surface, that is more than a quarter of a perfect score; from a capability standpoint, it means the model solves only about 10.7 of 40 problems on average.
Using these evaluations as a starting point, this article answers three questions from a developer’s perspective:
- What exactly makes this task hard?
- What does the “no middle ground” distribution in the results tell us?
- How should developers design evaluations and engineering solutions to use this capability soundly in real business scenarios?
1.1 What is visual cipher reasoning
Visual cipher reasoning can be formalized as a three-part problem:
- Symbol parsing: segment and recognize the graphic elements in the image to obtain a symbol sequence.
- Mapping recovery: infer the correspondence between symbols and semantic units from the given plaintext–ciphertext pairs.
- Rule induction: distill the encoding rule from the recovered correspondences and extrapolate it to the unlabeled portion.
The rule itself can take many forms, commonly including:
- fixed substitution;
- alphabet shift or affine transformation;
- geometric transforms such as symbol mirroring or rotation;
- position swaps;
- compositions of multiple rules.
1.2 Three key capabilities
A single visual cipher problem tests at least three capabilities at once:
- Visual perception: recognizing symbols, segmenting boundaries, and handling variants such as rotation and handwriting;
- Symbolic reasoning: searching, testing, and eliminating wrong hypotheses among a large space of candidate rules;
- Long-range consistency: an inferred rule must hold everywhere across the whole problem—a single counterexample overturns the entire hypothesis.
This differs fundamentally from everyday document recognition. Ordinary text recognition aims to “read what is written on the screen”; visual cipher reasoning aims to “discover the pattern hidden behind the text.” The former is closer to a perception problem, while the latter is an inductive reasoning problem.
2. Reading the evaluation results: not “close,” but a cliff
| Model configuration | Pass rate | Solved per round (out of 40) | Cumulative correct across 120 attempts per config |
|---|---|---|---|
| Config A | 26.7% | 10.7 | 32 |
| Config B | 21.7% | 8.7 | 26 |
| Config C | 21.7% | 8.7 | 26 |
| Config D | 0.8% | 0.3 | 1 |
| Config E | 0.8% | 0.3 | 1 |
| Config F/G/H | 0% | 0 | 0 |
Note: the configurations in this table are anonymized based on public evaluation data. They are used only to illustrate the difficulty distribution and do not constitute an assessment of any specific product.
The evaluation covers 29 model configurations in total. The same set of 40 problems is tested independently three times per configuration, for roughly 3,480 attempts overall. The findings are:
- No configuration exceeds 30%. The gap between the first tier (26.7%) and the second tier (21.7%) is small, yet both remain far from a “usable” level.
- The middle is almost a vacuum. The top three reliably solve 8.7–10.7 problems per round; the group right behind them answers only 1 problem across 3 rounds; the remaining configurations fail to solve any problem at all, showing a clear polarization.
- “Sporadic hits” at the sample level are meaningless. Across all attempts, the 29 configurations together answer fewer than 90 problems correctly, for an overall pass rate of about 2.5%. In other words, the overwhelming majority of attempts end in failure.
2.1 Recognizing is not the same as deducing
Researchers drew a key conclusion from this: mere symbol recognition is not enough to transfer into rule induction between symbols. Understanding this requires distinguishing two levels:
- Recognition level: the model can describe “the third symbol is a circle with a slash.”
- Induction level: the model must also discover “this symbol stands for the letter k, because the overall rule shifts each letter two positions forward,” and use that rule to correctly solve all the rest.
The former relies on pattern matching, where current models are already quite mature; the latter relies on hypothesis generation, systematic testing, and error correction, and remains a clear weak spot.
2.2 The search-verify loop: how many attempts are needed?
Formally, rule induction can be modeled as a search problem:
- Rule space: R, containing all possible encoding rules;
- Observation set: D, containing the given plaintext–ciphertext correspondences;
- Verification function: Verify, used to check whether a given rule is consistent with all known correspondences.
The problem can be stated formally as:
- Objective: find a rule r in R satisfying Verify(r, D) = True, and apply it to the content to be decoded;
- Faithfulness constraint: the final rule must re-derive all known correspondences and be checked against them one by one;
- Extrapolation constraint: the rule’s behavior beyond the known samples cannot be verified from the known information alone; it can only be assessed for “consistency with a hidden ground truth.”
A highly simplified example illustrates the search cost. Suppose the symbol table has 26 symbols and the mapping is any one-to-one correspondence, then the number of candidate mappings is 26!. A rough estimate:
- 26! ≈ 4.03×10²⁶;
- assuming one million candidates can be verified per second, an exhaustive search would take about 1.28×10¹³ years;
- for perspective, the universe is only about 1.4×10¹⁰ years old.
The Stirling approximation makes the scale even more intuitive. When the symbol table size is n:
n! ≈ √(2πn) · (n/e)ⁿ
Each additional symbol expands the candidate space by at least a factor of n+1. Even though real rules belong to restricted families such as shift or affine transforms—which shrink the search space substantially—the problem persists: the model must find a “pruning path” that uses a few observed samples to quickly rule out the vast majority of candidates. This is precisely one of the things current autoregressive models are least good at.
2.3 Why the middle ground disappeared
In the public evaluation, the top three’s advantage comes mainly from “rule induction,” not “symbol recognition.” From this, it can be inferred that the dividing line between the first tier and the rest likely lies in whether they possess stable hypothesis-testing ability:
- First-tier models: can propose candidate rules, test them on local samples, correct them upon finding contradictions, and thereby reliably solve several problems per round;
- The other configurations: often stay at the level of local observation, either giving rules that “seem plausible but fail verification” or being unable to even start in the face of complex rules.
The gap in pass rates produced by these two behavior patterns is not a gradual “90% vs. 70%” difference, but a qualitative change of “whether one can enter the correct reasoning track.”
It is worth emphasizing that not observing a middle ground does not mean these models “only know a little.” For models whose solution methods are undisclosed and whose versions keep iterating, many factors—reasoning-chain quality, tool use, context management, and more—can affect scores. The evaluation reveals the “currently reachable capability ceiling,” not the accidental result of a single run.
2.4 How to read a leaderboard
Neither a strong nor a weak score is enough to directly infer production readiness. It is advisable to examine at least four dimensions:
- Limited sample size: each configuration is tested only 120 times; whether the difference in pass rates is significant needs statistical testing to support it;
- Single task type: visual cipher is a highly specialized task and cannot represent a model’s performance in general business;
- Strict judging: only “fully correct” counts, and partial correctness earns no points, which naturally depresses pass rates;
- Constant change: models keep iterating, and any static leaderboard can only reflect a snapshot at a specific point in time.
Therefore, a more reasonable use is: treat such evaluations as “capability probes” for identifying model weaknesses and guiding selection decisions, rather than as guarantees of business outcomes.
3. Evaluation design: making results reproducible and comparable
For teams preparing to build their own evaluation, the above can be decomposed into a pipeline, with standards tightened across four stages.
3.1 Task generation: controllable difficulty and enumerable combinations
Generation principles:
- Use the same random seed to generate the same problem, ensuring different models face exactly the same input;
- The rule families should cover substitution, shift, geometric transforms, position swaps, and their combinations;
- Select the symbol set randomly, to prevent the model from “guessing symbols” based on prior experience;
- Control variables: change only one difficulty dimension at a time (number of symbols, number of known samples, presence of distractors) to pinpoint the capability boundary.
Illustrative code (pseudocode):
import random# Symbol set: randomly selected from a preset library of primitives (lines/arcs/dots/polylines, etc.)# Rule families: replace / shift / affine / rotate / swap / composedef build_cipher(seed: int, n_symbols: int, rule_family: str, n_known: int):rng = random.Random(seed)symbol_pool = sample_symbol_glyphs(rng, k=n_symbols) # random symbol tablerule = sample_rule(rng, rule_family, n_symbols) # sample an encoding ruleplaintext = sample_plaintext(rng) # plaintext to be encodedcipher = apply_rule(rule, plaintext, symbol_pool) # generate ciphertextknown_pairs = sample_pairs(rng, cipher, n=n_known) # known correspondences given in the problemreturn {"image": render(cipher), # rendered as an image input"known": known_pairs, # sample correspondences provided in the problem"rule": rule, # visible only to the evaluation side, used for automatic scoring"answer": plaintext,}
Engineering note: font, font size, baseline jitter, and anti-aliasing significantly affect visual difficulty. Rendering parameters should be versioned and archived together with the question bank; otherwise results across evaluation rounds will lose comparability.
3.2 Prompts and protocol: making “observe–hypothesize–verify” explicit
With reasonable prompt constraints, a model can be guided through the following process:
- First list the recognized symbol sequence;
- Then propose 1–3 candidate rules;
- Test each against the known correspondences, explicitly recording which rules are eliminated and why;
- Finally output a formal description of the rule and the complete decoding result.
Sample prompt template:
You are a cryptanalysis assistant. Infer the encoding rule from the known correspondences, then decode the remaining part.Requirements:1. First list the recognized symbol sequence;2. Propose no more than 3 candidate rules, compare each against the known correspondences one by one, and state why each rule is adopted or eliminated;3. Give a formal description of the final rule (e.g., "each symbol is shifted k positions forward, where k is an integer");4. Output the complete decoding result, without omission or guessing.If a unique rule cannot be determined, explicitly state where the ambiguity lies rather than offering a guess.
An easily overlooked detail here: the prompt itself is also a variable. If different models use different prompts, score differences cannot be attributed to model capability. The prerequisite for a fair comparison is a unified input protocol.
3.3 Judging: only “exact match” counts, no “partial correctness”
Judging strategy:
- A decoding result counts as a pass only when it exactly matches the reference answer, avoiding inflated scores from “half correct also counts”;
- Require the model to output a rule description as well, to facilitate human review of whether its reasoning holds up;
- For problems where the “model claims it cannot be certain,” separately track the “abstention rate” and “abstention accuracy” to gauge how well the model understands its own uncertainty.
Illustrative judging code:
def judge(response: dict, sample: dict) -> dict:exact = response.get("answer", "").strip() == sample["answer"].strip()valid_rule = Truetry:# Re-encode the plaintext with the model's rule and compare character by character with the original ciphertextrule = parse_rule(response.get("rule", "")) # parse the formal rulevalid_rule = apply_rule(rule, sample["answer"], sample["symbol_pool"]) \== sample["cipher"]except Exception:valid_rule = Falsereturn {"exact": exact, "rule_consistent": valid_rule,"abstained": response.get("abstain", False)}
The rule-consistency check is a kind of “self-consistency check”: it cannot prove a rule is necessarily correct, because multiple rules may be equivalent on the known samples; but it can effectively catch cases where “the answer happens to be right but the rule is wrong.”
3.4 Statistics: confidence intervals instead of “single-point rankings”
A single evaluation is only an estimate and needs an uncertainty range. Taking pass rate p and number of attempts n as an example, the following illustrative code can be used:
import mathdef wilson_interval(passed: int, total: int, z: float = 1.96):"""Wilson score interval: more robust than the normal approximation for small samples or extreme proportions"""p = passed / totaldenom = 1 + z * z / totalcenter = (p + z * z / (2 * total)) / denommargin = z * math.sqrt(p * (1 - p) / total + z * z / (4 * total * total)) / denomlo, hi = max(0.0, center - margin), min(1.0, center + margin)return p, lo, hi# Example: 32 passes out of 120 attemptsprint(wilson_interval(32, 120)) # approximately (0.267, 0.199, 0.349)
We can see that a 26.7% pass rate corresponds to a 95% confidence interval of about 19.9%–34.9%, a width of nearly 15 percentage points. This means that, unless the sample size is increased, a few-percentage-point difference between configurations is very likely just statistical noise.
Practical recommendations:
- Judgment threshold: when repeating the same configuration over multiple rounds, use a binomial test to determine whether its performance is significantly above the null hypothesis level (e.g., random guessing or an older baseline);
- Aggregating across problems: directly aggregating pass rates across problems of different difficulty introduces bias; consider stratified sampling or reporting per-difficulty-tier pass rates;
- Cost dimension: also record the number of inference calls, context length, and time consumed per attempt. A 20% improvement in pass rate at 10× the compute cost may not be worthwhile in engineering terms.
3.5 Guarding against contamination: the model may have “seen the answers”
Once a public benchmark is released, it may enter the training corpus of subsequent models. If problems are “memorized” by the model, the pass rate will be inflated and lose its discriminating power. The following strategies can be adopted:
- Hold-out set: keep the core problem set private and release only a few examples;
- Periodic refresh: replace problems by a certain proportion and watch for abnormal jumps in pass rate;
- Dynamic generation: generate new problems on the fly for each evaluation, fundamentally eliminating memorization;
- Variant testing: apply symbol substitutions, order shuffling, and other transformations to the same rule to test whether the model truly understands it.
4. Engineering practice: putting the generate-verify idea to work
The purpose of evaluation is to guide practice. If a business scenario involves “extracting implicit patterns from images” (for example, recognizing forms, receipts, or graphical identifiers according to specific encoding rules), the following combination of approaches can be referenced.
4.1 Symbolize first, then reason
Turning a visual problem into a text problem usually reduces difficulty significantly:
- Through image preprocessing (denoising, binarization, skew correction) and symbol segmentation, convert the image into a structured symbol sequence;
- Hand the structured result to the model for rule reasoning, rather than having it “look at the image and guess the pattern” directly.
Advantages:
- A symbol sequence can be enumerated and verified, so the model need not carry both the recognition and reasoning burdens at once;
- Structured results are easy to store, compare, and audit.
Risk: once upstream recognition errs, the error propagates downstream. Therefore, the recognition stage needs confidence outputs, and low-confidence symbols should trigger human review.
4.2 Generate–verify–prune: leave “search” to the program
The model’s role is to “propose hypotheses,” while the program’s role is to “verify rigorously.” The recommended flow is:
- Have the model propose several candidate rules based on the known samples;
- Have deterministic code verify each one and discard those that do not hold;
- Feed counterexamples back to the model, asking it to correct or propose new hypotheses;
- Terminate when verification passes, the iteration limit is reached, or human intervention is required.
Diagram:
Image input → [symbolization] → symbol sequence↓[Model: propose candidate rules]↓[Program: verify each against known samples] --fail--> [feed back counterexamples, return to model]↓ pass[output rule + decoding result] --pass--> [human spot check / archive]
Illustrative pseudocode:
def solve(image, max_rounds: int = 5):symbols = to_symbol_sequence(image) # visual recognition and symbolizationknown, target = split_known_and_target(symbols)feedback = ""for _ in range(max_rounds):candidates = llm_propose_rules(known, feedback) # model proposes candidate rulesfor rule in candidates:if verify(rule, known): # deterministic code verifies rigorouslyreturn rule, apply_rule(rule, target)feedback = build_counterexamples(candidates, known) # build counterexample feedbackreturn None, escalate_to_human(image) # escalate to human if the limit is exceeded
4.3 Tool calling: let deterministic code handle “computation”
Verifying many rules is essentially string and mathematical operations, such as:
- alphabet shift;
- mirroring or rotation;
- position swaps;
- composite transforms.
Executing these operations in code is far more reliable than having the model “do mental math.” A typical function-registration pattern is as follows:
TOOLS = {}def tool(name):def deco(fn):TOOLS[name] = fnreturn fnreturn deco@tool("apply_shift")def apply_shift(text: str, k: int) -> str:return shift_alphabet(text, k) # cyclically shift the alphabet@tool("reverse_string")def reverse_string(text: str) -> str:return text[::-1]
The model only needs to output a structured tool-call intent (such as which function to call and what the parameters are), which the runtime executes and returns. The benefit is that the verification process is fully deterministic and reproducible, and the model does not have to “do the math in its head” within the context.
4.4 Multiple sampling and consistency convergence
Evaluation data show that most configurations have an extremely low accuracy on a single attempt, indicating that “getting it right in one shot” is unrealistic. In engineering, two strategies can be adopted:
- Majority voting: sample the same problem multiple times and take the most frequently occurring answer;
- Verification-first: as soon as a candidate rule passes strict verification, adopt it directly, without waiting for a vote.
For tasks like visual cipher where “rules are verifiable,” verification-first is usually more cost-effective: one correct verification ends the process immediately, avoiding the cost of multiple sampling.
4.5 Dynamic benchmarks: let the evaluation follow the task
The limitations of static leaderboards have already been discussed above. A practical alternative is to build an auto-generated “dynamic benchmark”:
- Generation: generate problems on the fly, ensuring every evaluation uses different problems;
- Difficulty tiers: set multiple difficulty levels by rule family, number of symbols, and noise intensity to locate the model’s capability boundary;
- Multi-dimensional reporting: besides the overall pass rate, separately report “recognition accuracy,” “rule consistency rate,” and “abstention rate”;
- Regression tracking: re-run the same dynamic problem set after each model upgrade to observe whether capability has regressed.
An illustrative task-list structure is as follows:
suite: visual_cipher_dynamictasks:- id: shift_basicrule_family: shiftdifficulty: easyn_symbols: 10noise: 0.0- id: compose_mediumrule_family: [rotate, swap]difficulty: mediumn_symbols: 14noise: 0.1- id: noisy_hardrule_family: composedifficulty: hardn_symbols: 18noise: 0.3
5. Platform support: building a cloud evaluation pipeline
To bring the above capabilities into a sustainable, running evaluation system, several kinds of general-purpose cloud capabilities are typically needed. Taking Baidu AI Cloud as an example, one can combine general products such as object storage, a container platform, a message queue, a log service, and monitoring/alerting to build an elastic, scalable evaluation pipeline.
5.1 Data and question bank management
- Object storage: centrally store the question bank, rendering parameters, and historical evaluation results, organized into “dataset version + date” directories;
- Versioning: archive question-generation scripts and random seeds together to ensure results are reproducible and can be rolled back.
5.2 Task scheduling and elastic execution
- Container platform: package symbolization, model inference, verification, and judging as independent containers that scale up or down on demand;
- Message queue: evaluation tasks enter the queue and are consumed asynchronously by worker nodes, avoiding blockage from long-running tasks while supporting failure retries and priority scheduling;
- Batch inference: for large-scale offline evaluation, batch processing can be used to reduce costs, keeping online serving and offline evaluation isolated from each other to avoid mutual interference.
5.3 Observability
- Log service: uniformly collect each attempt’s input snapshot, model output, verification process, and time spent;
- Monitoring and alerting: set thresholds for metrics such as pass rate, P95 latency, and cost per problem, and notify promptly when abnormal fluctuations occur;
- Tracing: break down and visualize the time spent across the “symbolization → reasoning → verification” stages to quickly locate bottlenecks.
5.4 Evaluation as a service
Package the above capabilities into an internal platform, so developers only need to submit a “task ID + model version” to receive a complete report containing pass rate, confidence interval, and error classification. In this way, evaluation transforms from a “one-off script” into “sustainable infrastructure.”
6. Common pitfalls and improvement suggestions
6.1 Four typical pitfalls
- Treating recognition ability as reasoning ability: a model that can read symbols does not necessarily derive the rules; when selecting models, test the “rule induction” dimension separately.
- Drawing conclusions from a single run: under a small sample, single-run evaluation fluctuates greatly, so report confidence intervals rather than a single number.
- Ignoring the fairness of prompts and tools: different models using different prompts and different tool chains will distort comparison results.
- Chasing “all correct” instead of “usable”: business often allows a human fallback, so the key metric should be a combined trade-off of “accuracy × coverage × cost.”
6.2 Three improvement suggestions
- Build a “verifiable tasks” list: prioritize tasks whose “answers can be checked by a program” into the evaluation, making automatic judging possible;
- Build a “difficulty ladder”: arrange problems from easy to hard to locate the model’s capability inflection point, rather than giving only a single overall score;
- Accumulate an “error taxonomy”: categorize failure causes into recognition errors, rule errors, verification errors, expression errors, and so on, compute the proportion of each category, and guide subsequent optimization directions.
7. Conclusion
The visual cipher evaluation reveals a plain but important fact: current top models are already quite mature at “reading symbols,” yet still show a clear gap at “discovering patterns.” The 26.7% pass rate and the distribution of many configurations at zero indicate that rule induction remains a problem that has not yet been cracked.
For developers, the significance of this result lies not in the ranking but in three lessons:
- Evaluation should be “verifiable”: only when answers can be checked by a program does evaluation have the foundation for sustainable operation;
- Reasoning should be “decomposable”: break “look at the image–hypothesize–verify” into independent stages, using deterministic code to handle computation and validation;
- Capability should be “locatable”: through difficulty ladders and confidence intervals, see clearly under what conditions a model is usable and under what conditions a human fallback is mandatory.
As the industry gradually shifts from “chasing leaderboard scores” to “building verifiable, reproducible, and operable evaluation systems,” high-difficulty tasks like visual cipher will ultimately transform from a “show-off puzzle” into a “yardstick for measuring real productivity.”
