Low Accuracy in Visual Decryption? Three Bottlenecks and Countermeasures
Recent benchmarks reveal that mainstream multimodal models struggle with visual decryption tasks, with top configurations achieving less than 30% accuracy. This article analyzes three core bottlenecks causing these failures: detail loss during visual encoding, training data bias towards natural images, and breakages in multi-step reasoning. It further explores three practical application-level countermeasures—structured prompting, code execution-assisted reasoning, and targeted fine-tuning—alongside an evaluation checklist and logging strategies to help developers identify and resolve reasoning chain breakpoints.
1. Data Context
Recent public reports on a visual cryptography benchmark indicate that among 29 mainstream large model configurations evaluated, none achieved an accuracy rate of 30%. The best-performing configuration reached approximately 26.7% accuracy. The top three configurations solved between 8.7 and 10.7 problems in a single-round test, while the bottom five barely solved any.
These figures should be used with caution. The original report did not provide the benchmark name, the number of questions, the evaluation date, or the scoring rules, nor did it clarify whether the results were configuration-level or model-level. Results from single-round vs. multi-round, or zero-shot vs. few-shot tests cannot be directly compared. Therefore, this article treats these numbers as reported values solely to illustrate that the problem exists, without ranking any models.
To avoid confusion, this article refers to the “visual cryptography benchmark” as the benchmark test itself, and the task requiring models to deduce hidden rules as “visual decryption.” These terms are used consistently throughout.
2. Why Visual Decryption is Difficult
Standard visual question answering only requires the model to identify what is in the image. Visual decryption, however, requires the model to first observe the image elements and then deduce hidden rules, spatial mapping relationships, or encryption logic within them. This difference makes models prone to errors in three areas.
1. Detail Loss During the Encoding Stage
Many multimodal models use ViT-based visual encoders. These encoders split the image into fixed-size patches and map each patch to a feature vector. When the patches are large, subtle pixel changes, color shifts, or steganographic traces may be averaged out. Whether this information can be recovered later depends on the resolution, patch size, and training methodology. Thus, it may be unrecoverable, but one cannot conclude that all models fail solely for this reason.
2. Image-Text Alignment Data Bias Towards Natural Images
Most multimodal models are trained on image-text data derived from natural images and their descriptions, such as “a cat sitting on a sofa.” Abstract graphics, flowcharts, and rule-based images constitute a smaller proportion of the training data. Consequently, models can describe objects in an image but struggle to transcribe graphical relationships into strict logical expressions.
3. Multi-Step Reasoning Breakage
Decryption typically involves four steps: observing phenomena, proposing hypotheses, verifying hypotheses, and drawing conclusions. If visual information extraction in the first step is flawed, subsequent reasoning proceeds along an erroneous premise, resulting in an incorrect final answer. In single-round responses, models have no opportunity to review intermediate steps, and failures often manifest as zero points for the entire question.
3. Three Application-Level Countermeasures
The intrinsic capabilities of the models are unlikely to change in the short term, but compensations can be made at the application layer. The following three approaches have different scopes of application.
1. Structured Prompting
Structured prompting aims to guide the model to inspect the image in a fixed sequence rather than outputting an answer directly. Below is a text template; it is not a directly executable program:
You are a cryptanalyst. Please process this image in the following order, stating the basis for each step:1. List all visible shapes in the image and describe their relative positions.2. Identify repeating patterns, numbers, or color changes, and record the frequency of occurrence.3. Write the above rules into an explicit mapping table, indicating the source position for each entry.4. Derive the result based on the mapping table. If evidence is insufficient for a step, state so directly and do not fill in the gaps.
The fourth instruction requires the model to acknowledge insufficient evidence, which helps reduce hallucinations. However, the model may skip steps and provide an answer directly, so it is necessary to verify in the logs that each step has an output.
2. Code Execution-Assisted Reasoning
For questions involving precise counting or pixel-level comparison, models are prone to errors when calculating mentally. An alternative approach is to allow the model to write Python code, using Pillow to read the image and NumPy to perform counting and comparison. It is recommended to fix dependency versions, such as Python 3.10+, Pillow 10.4.0, and NumPy 1.26.4, and retain version information for reproducibility.
The following code example counts the occurrences of each color in an image for reference:
import numpy as npfrom PIL import Imagedef load_pixels(path: str, size: tuple[int, int] | None = None) -> np.ndarray:img = Image.open(path).convert("RGB")if size is not None:img = img.resize(size, Image.NEAREST)return np.asarray(img)def count_colors(arr: np.ndarray) -> list[tuple[tuple[int, int, int], int]]:flat = arr.reshape(-1, 3)colors, counts = np.unique(flat, axis=0, return_counts=True)pairs = [(tuple(int(v) for v in c), int(n)) for c, n in zip(colors, counts)]return sorted(pairs, key=lambda p: p[1], reverse=True)if __name__ == "__main__":pixels = load_pixels("/data/task/input.png")print("shape:", pixels.shape)for color, n in count_colors(pixels)[:10]:print(color, n)
When running such code, the following protections must be implemented:
- Run in an isolated sandbox with network access disabled.
- Mount the directory containing the task image in read-only mode; do not open other paths.
- Set an execution timeout (e.g., 10 seconds) and limit memory and CPU quotas.
- Log the standard output, error output, and exit code of each execution into an audit log.
The output must also be validated. First, verify that the image dimensions meet expectations, then confirm that the preprocessing in the code (color mode, scaling method) is consistent with the preprocessing fed to the model. A successfully read pixel matrix does not equal successful decryption. The model still needs to verify the mapping rules, for instance, by checking if the rules hold using known samples.
3. Targeted Fine-Tuning and Data Augmentation
If an enterprise processes fixed question types over the long term, it can build a proprietary dataset. The data should include abstract graphics, flowcharts, and rule-based images, with each sample accompanied by a verifiable answer and reasoning steps.
The training and evaluation sets must be strictly separated. A common practice is to split the data by question template or source, deduplicate the samples, and use perceptual hashing to detect near-duplicate images. If test questions leak into the training data, scores will be artificially inflated, rendering the conclusions unreliable. Each split and deduplication should be written to a contamination audit log, recording the number of samples involved in the split and the deduplication results.
The following table compares the three methods:
| Method | Applicable Scenarios | Main Cost | Main Risk | Common Failure Modes |
|---|---|---|---|---|
| Structured Prompting | Diverse question types, simple rules | Low, only requires prompt debugging | Effectiveness depends on the model; may fail when switching models | Model skips steps and outputs answers directly |
| Code Execution-Assisted | Requires precise counting or pixel-level comparison | Medium, requires sandbox and runtime environment | Code errors, overly permissive sandbox permissions | Incorrect image reading method leading to erroneous matrix |
| Fine-Tuning & Data Augmentation | Fixed question types, large volume, long-term use | High, requires labeling and training resources | Overfitting, data leakage, insufficient question type coverage | Test set contamination, lack of separation between training and evaluation, performance drop when question types change |
If the question types are diverse, start with structured prompting. If precise counting is required, add code execution assistance. If the question types are fixed and the volume is large, consider fine-tuning.
4. Evaluation Checklist
Before interpreting or publishing any visual decryption results, it is recommended to check the following items one by one:
- Benchmark name and version, as well as data source or acquisition method.
- Number of questions and distribution of question types.
- Evaluation date, and specific version number of the model or configuration.
- Scoring rules, including whether partial credit is awarded.
- Single-round or multi-round answering.
- Zero-shot or few-shot, and how examples are selected.
- Consistency between the answer and the reasoning steps.
- Image preprocessing parameters, including scaling size and color mode.
- Sampling parameters, such as temperature.
- Whether failed samples are fully retained, rather than only reporting successful cases.
Only with all this information available can results be reproduced and compared. If information is missing, the results can only serve as illustrative references.
5. Locating Reasoning Chain Breakpoints with Logs and Monitoring
When the failure rate for a certain type of question increases, logs can tell you which step the problem occurred in. It is recommended to record at least the following fields:
- Request ID, model version, and prompt version.
- Image hash value, resolution, and preprocessing parameters.
- Model output for each step, including the mapping table and evidence reference positions.
- Code execution input, standard output, error output, exit code, and duration.
- Timeout events and resource limit trigger records.
- Timestamps and token usage for each step.
During troubleshooting, verify step by step starting from the first one. If elements in the mapping table do not match the image, the problem lies in visual extraction; you should check the encoder’s resolution and patch settings, or switch to reading pixels via code. If the mapping table is correct but the conclusion lacks evidentiary support, the problem lies in the reasoning and verification phase; you should strengthen the requirements for steps 3 and 4.
Several metrics can be used for continuous monitoring: per-step evidence reference rate, “insufficient evidence” declaration rate, code timeout rate, and average number of steps per question. Thresholds should be set by the team based on historical data, rather than adopting fixed numbers directly.
6. Next Steps
If you are currently evaluating visual decryption capabilities, first use the checklist in Section 4 to verify existing data. If the data source cannot be verified, treat the results as examples and note this in the report. If you want to improve the system, first integrate the logging described in Section 5 to locate the step where the breakpoint occurs, and then choose the corresponding countermeasure.
