OPTIC-Bench v0.3.2: dataset, card, manifest, pilot results
Browse files- README.md +177 -0
- RESULTS.md +161 -0
- en/test.jsonl +0 -0
- manifest.json +244 -0
- zh/test.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- zh
|
| 6 |
+
task_categories:
|
| 7 |
+
- visual-question-answering
|
| 8 |
+
- image-to-text
|
| 9 |
+
- question-answering
|
| 10 |
+
tags:
|
| 11 |
+
- benchmark
|
| 12 |
+
- vision-language
|
| 13 |
+
- token-compression
|
| 14 |
+
- ocr
|
| 15 |
+
- instruction-following
|
| 16 |
+
- code-reasoning
|
| 17 |
+
- bilingual
|
| 18 |
+
pretty_name: OPTIC-Bench
|
| 19 |
+
size_categories:
|
| 20 |
+
- 1K<n<10K
|
| 21 |
+
configs:
|
| 22 |
+
- config_name: en
|
| 23 |
+
data_files:
|
| 24 |
+
- split: test
|
| 25 |
+
path: en/test.jsonl
|
| 26 |
+
- config_name: zh
|
| 27 |
+
data_files:
|
| 28 |
+
- split: test
|
| 29 |
+
path: zh/test.jsonl
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
# OPTIC-Bench
|
| 33 |
+
|
| 34 |
+
**Optical Text In-Context Benchmark**: how reliably do LLMs consume text
|
| 35 |
+
delivered as rendered images versus plain text tokens?
|
| 36 |
+
|
| 37 |
+
Text-as-image prompting (pxpipe, DeepSeek-OCR, Glyph) can pack roughly three
|
| 38 |
+
characters into one vision token versus about one character per text token, a large cost saving whose reliability risks are under-measured. OPTIC-Bench
|
| 39 |
+
measures those risks with **paired** evaluation: each instance is run under
|
| 40 |
+
the modality conditions of a 2×2 design (instruction channel × content
|
| 41 |
+
channel, each delivered as text or as a rendered image), in **English and
|
| 42 |
+
Chinese** as structurally-twinned instances from shared seeds, across up to
|
| 43 |
+
five difficulty tiers and several render profiles, with **fully programmatic
|
| 44 |
+
scoring** (no LLM judges) and per-call token and cost accounting.
|
| 45 |
+
|
| 46 |
+
## Task families
|
| 47 |
+
|
| 48 |
+
| family | task | tiers | metric |
|
| 49 |
+
|---|---|---|---|
|
| 50 |
+
| transcription | reproduce a passage verbatim (public-domain literature, sentence-shuffled) | 1–4 | 1 − CER |
|
| 51 |
+
| extraction | copy exact identifiers with confusable glyphs (0/O, 1/l/I…), with long tiers adding superseding errata and a retrieval-depth variant | 1–5 | per-field exact |
|
| 52 |
+
| instruction | verifiable filter/sort constraints → JSON, plus IFEval-style strict plain-text formatting | 1–4 | exact list / exact text |
|
| 53 |
+
| reasoning | multi-hop, arithmetic and conditional QA, with long tiers requiring whole-document integration | 1–5 | exact answer |
|
| 54 |
+
| code | predict the exact stdout of a Python program (CRUXEval-style, 18 shapes) | 1–3 | exact output |
|
| 55 |
+
| calculation | reconcile an invoice to the exact cent (up to 100 lines) | 1–4 | exact amount |
|
| 56 |
+
| wordgame | word counts, acrostics, positional character assembly | 1–3 | exact string |
|
| 57 |
+
| injection | answer a benign question while resisting an adversarial instruction embedded in the document | 1–3 | benign-correct and canary-free |
|
| 58 |
+
| dialog | multi-turn conversation with revisions, recalling or combining facts across turns (history-compression scenario) | 1–3 | exact answer |
|
| 59 |
+
|
| 60 |
+
Difficulty tiers 1–3 are page-scale. Tier 4 ("long", ~8k characters in
|
| 61 |
+
English) and tier 5 ("extended", ~24k characters ≈ 6k text tokens) are built
|
| 62 |
+
on a multi-section operations dossier whose final Errata section supersedes
|
| 63 |
+
facts stated earlier, so answers require integrating the whole document.
|
| 64 |
+
These long tiers sit in the regime where optical text compression beats plain
|
| 65 |
+
text tokens. Most families use all four modality conditions, whereas the multi-turn
|
| 66 |
+
`dialog` and the copy-task `transcription` families use only the two
|
| 67 |
+
conditions where the comparison is meaningful.
|
| 68 |
+
|
| 69 |
+
Beyond raw accuracy the harness (see the code repository) also measures token
|
| 70 |
+
economy (cached and uncached), retrieval depth (lost-in-the-page), silent
|
| 71 |
+
corruption and false confidence (optional abstention), injection resistance,
|
| 72 |
+
multi-turn history compression, transport robustness (JPEG and rescale), and
|
| 73 |
+
latency, all bilingually and with programmatic scoring only.
|
| 74 |
+
|
| 75 |
+
## Headline findings
|
| 76 |
+
|
| 77 |
+
A pilot evaluation of three current frontier models (OpenAI GPT 5.5, Google
|
| 78 |
+
Gemini 3.5 Flash and Moonshot Kimi K2.6) gives a clear and consistent answer
|
| 79 |
+
to the questions this benchmark was built to settle. The full report is in
|
| 80 |
+
`RESULTS.md`.
|
| 81 |
+
|
| 82 |
+
- **Token economy is conditional.** Rendering content as a dense image saves
|
| 83 |
+
roughly 28 to 47 per cent of input tokens on long documents, but it costs
|
| 84 |
+
1.6 to 2.6 times more than plain text on short, page-scale prompts.
|
| 85 |
+
- **Exact retrieval collapses under image delivery.** On long dense
|
| 86 |
+
documents, verbatim identifier extraction fell from perfect to almost zero,
|
| 87 |
+
and even with partial credit about half the characters of a dense
|
| 88 |
+
identifier were misread. Anything that must be reproduced exactly should not
|
| 89 |
+
be sent as a dense image.
|
| 90 |
+
- **Instruction-following and reasoning are largely preserved.** Imaging the
|
| 91 |
+
content left constraint-following and multi-step reasoning essentially
|
| 92 |
+
intact. Reading exact figures for arithmetic is the exception, because a
|
| 93 |
+
misread digit corrupts an otherwise correct calculation.
|
| 94 |
+
- **Injection resistance held** for all three current models even when the
|
| 95 |
+
adversarial text was imaged, although an older model tested during
|
| 96 |
+
development was susceptible under the combined-image condition.
|
| 97 |
+
|
| 98 |
+
## Fields
|
| 99 |
+
|
| 100 |
+
Each row of `{lang}/test.jsonl`:
|
| 101 |
+
|
| 102 |
+
- `id`, `family`, `language`, `difficulty` (1–5), `benchmark_version`
|
| 103 |
+
- `instruction_text`, what the model must do
|
| 104 |
+
- `content_text`, the document or data (render this to an image for the image
|
| 105 |
+
conditions)
|
| 106 |
+
- `scorer`, the deterministic scoring function name (implemented in the code
|
| 107 |
+
repository, `eval/scorers.py`)
|
| 108 |
+
- `expected`, the exact ground-truth payload, **as a JSON string**
|
| 109 |
+
- `meta`, auxiliary metadata (including `pair_id`, which links the EN/ZH
|
| 110 |
+
twins), **as a JSON string**
|
| 111 |
+
|
| 112 |
+
`expected` and `meta` are serialized as JSON strings because their shape
|
| 113 |
+
varies by family (a transcription target, a dict of identifier fields, an id
|
| 114 |
+
list, an answer plus an injection canary, a dialog's turn list, and so on). Call
|
| 115 |
+
`json.loads` on them. This keeps the dataset schema uniform and lossless on
|
| 116 |
+
the Hub.
|
| 117 |
+
|
| 118 |
+
## Usage
|
| 119 |
+
|
| 120 |
+
```python
|
| 121 |
+
import json
|
| 122 |
+
from datasets import load_dataset
|
| 123 |
+
|
| 124 |
+
ds = load_dataset("translorentz/vision-token-compression-bench", "en", split="test") # or "zh"
|
| 125 |
+
row = ds[0]
|
| 126 |
+
expected = json.loads(row["expected"])
|
| 127 |
+
meta = json.loads(row["meta"])
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
To evaluate a model, deliver `instruction_text` and `content_text` under each
|
| 131 |
+
modality condition (as text, or rendered to a PNG), collect the response, and
|
| 132 |
+
score it with the named `scorer`. The companion **code repository** provides
|
| 133 |
+
the full harness, covering rendering (CJK-aware, pinned Noto fonts), 2×2 condition
|
| 134 |
+
assembly, provider-agnostic clients (Anthropic- and OpenAI-compatible,
|
| 135 |
+
including Kimi/Moonshot, DeepSeek, Qwen, Zhipu, Gemini), programmatic scorers,
|
| 136 |
+
paired statistics, and the report generator, plus scripts to regenerate this
|
| 137 |
+
dataset and the pre-rendered images.
|
| 138 |
+
|
| 139 |
+
If an `images/` folder is included, it holds pre-rendered PNGs at
|
| 140 |
+
`images/{profile}/{id}/{part}-{page}.png` (parts depend on the family:
|
| 141 |
+
`content` always, `instruction`/`combined` for families that use the
|
| 142 |
+
instruction-image conditions), produced with pinned Noto Sans / Noto Sans SC
|
| 143 |
+
and paginated to stay under the ~1568 px provider-downscale threshold. Images
|
| 144 |
+
are optional: they can be regenerated bit-for-bit from the text with the
|
| 145 |
+
repository's renderer.
|
| 146 |
+
|
| 147 |
+
## Construction and licensing
|
| 148 |
+
|
| 149 |
+
The structured families (extraction, instruction, reasoning, code,
|
| 150 |
+
calculation, wordgame, injection, dialog) are generated deterministically
|
| 151 |
+
from a master seed using original templates and word banks. Their ground
|
| 152 |
+
truth is computed by the generators (code tasks are executed at generation
|
| 153 |
+
time), and the whole set regenerates bit-identically from source. Changing
|
| 154 |
+
the seed mints a fresh, uncontaminated edition with the same statistics.
|
| 155 |
+
|
| 156 |
+
The **transcription** family is the one exception: its passages are excerpts
|
| 157 |
+
of public-domain literature, a genre spread of English works (Collins,
|
| 158 |
+
Gaskell, Darwin, Thoreau) and late-Qing Chinese vernacular novels, sampled
|
| 159 |
+
per-work-balanced and sentence-shuffled so that no model family gains an
|
| 160 |
+
in-distribution or memorization advantage on text it may have helped author.
|
| 161 |
+
These works are in the public domain, and provenance and processing are recorded
|
| 162 |
+
in the code repository's `corpus/PROVENANCE.md`.
|
| 163 |
+
|
| 164 |
+
Dataset: **CC-BY-4.0** (public-domain excerpts carry no additional
|
| 165 |
+
restriction). Harness code: MIT.
|
| 166 |
+
|
| 167 |
+
## Citation
|
| 168 |
+
|
| 169 |
+
```bibtex
|
| 170 |
+
@software{opticbench2026,
|
| 171 |
+
title = {OPTIC-Bench: Measuring the Reliability of Text-as-Image
|
| 172 |
+
Prompting in Large Language Models},
|
| 173 |
+
author = {{OPTIC-Bench contributors}},
|
| 174 |
+
year = {2026},
|
| 175 |
+
version = {0.3.2}
|
| 176 |
+
}
|
| 177 |
+
```
|
RESULTS.md
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OPTIC-Bench pilot results: text versus image delivery
|
| 2 |
+
|
| 3 |
+
This document reports a pilot evaluation that answers the four questions
|
| 4 |
+
posed in the founding document. How does delivering text to a model as a
|
| 5 |
+
rendered image, rather than as ordinary text tokens, affect the token
|
| 6 |
+
economy, the fidelity of retrieval, the completion of instructed tasks, and
|
| 7 |
+
the depth of reasoning?
|
| 8 |
+
|
| 9 |
+
## Experimental setup
|
| 10 |
+
|
| 11 |
+
Three current frontier models were evaluated through their public
|
| 12 |
+
programming interfaces. These were OpenAI GPT 5.5, Google Gemini 3.5 Flash,
|
| 13 |
+
and Moonshot Kimi K2.6. All scoring was programmatic, with no model acting as
|
| 14 |
+
a judge, and every ground-truth value was verified independently of the
|
| 15 |
+
models.
|
| 16 |
+
|
| 17 |
+
Two datasets were used. The first was a page-scale slice covering all nine
|
| 18 |
+
task families at difficulty tiers one to three, in English and Chinese,
|
| 19 |
+
rendered at the regular density profile. The second was a long-document slice
|
| 20 |
+
covering the extraction, reasoning, transcription and calculation families at
|
| 21 |
+
tiers four and five, rendered at the dense profile, where a document runs to
|
| 22 |
+
roughly eight thousand characters in English and where optical compression
|
| 23 |
+
begins to save tokens. Each instance was presented under the modality
|
| 24 |
+
conditions of the benchmark, namely both channels as text, the content as a
|
| 25 |
+
rendered image with the instruction as text, the instruction as a rendered
|
| 26 |
+
image with the content as text, and both channels combined into a single
|
| 27 |
+
image.
|
| 28 |
+
|
| 29 |
+
The samples are small, as befits a pilot, so the figures below should be read
|
| 30 |
+
as clear directional findings rather than as precise leaderboard values. The
|
| 31 |
+
consistency of the pattern across three independent models is the main reason
|
| 32 |
+
for confidence in the conclusions.
|
| 33 |
+
|
| 34 |
+
## Question one: the token economy
|
| 35 |
+
|
| 36 |
+
Whether image delivery saves tokens depends entirely on how much text is
|
| 37 |
+
packed into each image. On short, page-scale documents at the regular density
|
| 38 |
+
the image is wasteful, because a single page carries little text yet still
|
| 39 |
+
incurs a fixed vision-token cost. Across the three models the content-as-image
|
| 40 |
+
condition used between 1.6 and 2.6 times as many input tokens as the plain
|
| 41 |
+
text condition.
|
| 42 |
+
|
| 43 |
+
The saving appears only when documents are long and the rendering is dense.
|
| 44 |
+
On the long-document slice at the dense profile the picture reverses, and the
|
| 45 |
+
image becomes the cheaper channel.
|
| 46 |
+
|
| 47 |
+
| model | text tokens | image tokens | image saving |
|
| 48 |
+
|---|---|---|---|
|
| 49 |
+
| GPT 5.5 | 4189 | 3020 | 28 per cent |
|
| 50 |
+
| Gemini 3.5 Flash | 4819 | 2554 | 47 per cent |
|
| 51 |
+
|
| 52 |
+
The economic conclusion is therefore conditional. Optical compression does
|
| 53 |
+
reduce input token counts, but only in the regime of long documents rendered
|
| 54 |
+
densely, and it increases them for the short prompts that make up most
|
| 55 |
+
ordinary traffic. Prompt caching narrows the advantage further, because a
|
| 56 |
+
cached text context is billed at roughly a tenth of the normal rate, which is
|
| 57 |
+
the situation that a static system prompt or tool description would enjoy.
|
| 58 |
+
|
| 59 |
+
## Question two: the fidelity of retrieval
|
| 60 |
+
|
| 61 |
+
Retrieval fidelity is where image delivery fails most clearly. Two families
|
| 62 |
+
measure it, namely the exact reproduction of identifier strings such as
|
| 63 |
+
hashes and order numbers, and the verbatim transcription of prose.
|
| 64 |
+
|
| 65 |
+
On short documents the reproduction of exact identifiers already suffers.
|
| 66 |
+
Measured by character-level accuracy, which awards partial credit, the mean
|
| 67 |
+
score fell from a perfect 1.00 on text to between 0.79 and 0.83 on the image
|
| 68 |
+
across the three models. Under the stricter requirement that every character
|
| 69 |
+
of every identifier be correct, the loss is larger, because a single misread
|
| 70 |
+
character fails the field.
|
| 71 |
+
|
| 72 |
+
On long documents rendered densely the degradation becomes severe. Exact
|
| 73 |
+
identifier extraction, which every model performed perfectly from text, very
|
| 74 |
+
nearly collapsed from the image.
|
| 75 |
+
|
| 76 |
+
| model | identifiers from text | identifiers from image | prose (character accuracy) |
|
| 77 |
+
|---|---|---|---|
|
| 78 |
+
| GPT 5.5 | 8 of 8 exact | 0 of 8 exact (0.42 chars) | 1.00 to 0.74 |
|
| 79 |
+
| Gemini 3.5 Flash | 8 of 8 exact | 1 of 8 exact (0.57 chars) | 1.00 to 0.47 |
|
| 80 |
+
|
| 81 |
+
Even allowing partial credit, roughly half of the characters in a dense
|
| 82 |
+
identifier were misread, and no complete identifier survived. Verbatim prose
|
| 83 |
+
transcription lost between a quarter and a half of its character accuracy over
|
| 84 |
+
the same documents. The practical lesson is that any value which must be
|
| 85 |
+
reproduced exactly, such as an identifier, a code token or a precise figure,
|
| 86 |
+
should never be entrusted to a dense image.
|
| 87 |
+
|
| 88 |
+
## Question three: the completion of instructed tasks
|
| 89 |
+
|
| 90 |
+
The founding document asked in particular whether instructions delivered by
|
| 91 |
+
image are followed as reliably as instructions delivered as text. The answer
|
| 92 |
+
divides into two cases.
|
| 93 |
+
|
| 94 |
+
When the instruction remains text and only the content is imaged, task
|
| 95 |
+
completion is unaffected. On the constraint-following family every model
|
| 96 |
+
scored perfectly under both the text and the content-as-image conditions.
|
| 97 |
+
|
| 98 |
+
When the instruction itself is rendered into an image, the models mostly
|
| 99 |
+
still obey it, but not universally. Gemini 3.5 Flash and Kimi K2.6 followed
|
| 100 |
+
imaged instructions without loss, whereas GPT 5.5 fell from six of six to
|
| 101 |
+
four of six when the instruction was delivered visually. Delivering the
|
| 102 |
+
instruction as an image is therefore usually safe on current models but
|
| 103 |
+
carries a residual risk that varies by model, and it should be tested rather
|
| 104 |
+
than assumed.
|
| 105 |
+
|
| 106 |
+
## Question four: the depth of reasoning
|
| 107 |
+
|
| 108 |
+
Reasoning proved the most robust ability under image delivery, provided that
|
| 109 |
+
the reasoning does not itself depend on reading exact figures. On the
|
| 110 |
+
page-scale slice, pooling the reasoning, calculation, code, wordgame and
|
| 111 |
+
dialog families, imaging the content changed the exact-match rate by no more
|
| 112 |
+
than three points in either direction across all three models. On long
|
| 113 |
+
documents the multi-step reasoning family was likewise preserved, scoring
|
| 114 |
+
identically from text and from image.
|
| 115 |
+
|
| 116 |
+
There is one important qualification. Long-document arithmetic, which requires
|
| 117 |
+
reading many precise digits before computing with them, failed from the dense
|
| 118 |
+
image, falling from perfect to near zero for GPT 5.5. This is not a failure of
|
| 119 |
+
reasoning as such but a failure of retrieval feeding the reasoning. Once the
|
| 120 |
+
digits are misread, the correct calculation on the wrong inputs still yields a
|
| 121 |
+
wrong answer. The depth of thought is preserved, but it operates on corrupted
|
| 122 |
+
data.
|
| 123 |
+
|
| 124 |
+
## A note on safety
|
| 125 |
+
|
| 126 |
+
The benchmark also embeds adversarial instructions inside documents in order
|
| 127 |
+
to test whether imaging untrusted content changes a model's susceptibility to
|
| 128 |
+
prompt injection. On this slice the three current models resisted every
|
| 129 |
+
injection under every condition, including when the adversarial text was
|
| 130 |
+
rendered into the image. An earlier model tested during development, Gemini
|
| 131 |
+
2.5 Flash, complied with the injection in two of three cases when the
|
| 132 |
+
malicious content was delivered as a combined image, whereas it resisted
|
| 133 |
+
perfectly when the same content was delivered as text. The security property
|
| 134 |
+
therefore appears to have improved between model generations, but the earlier
|
| 135 |
+
result shows that imaging untrusted content can weaken instruction and data
|
| 136 |
+
separation, and it should continue to be measured.
|
| 137 |
+
|
| 138 |
+
## Synthesis
|
| 139 |
+
|
| 140 |
+
The trade-off that the founding document set out to characterise is real and
|
| 141 |
+
sharply shaped. Delivering content as a dense image can save a substantial
|
| 142 |
+
fraction of input tokens on long documents, and it preserves both
|
| 143 |
+
instruction-following and multi-step reasoning. It does so, however, at a
|
| 144 |
+
severe cost to any task that depends on reading text exactly, whether that is
|
| 145 |
+
reproducing an identifier, transcribing prose, or performing arithmetic on
|
| 146 |
+
precise figures. The method is well suited to bulky context whose gist and
|
| 147 |
+
structure matter more than its exact characters, and it is unsuitable for
|
| 148 |
+
content that must be recovered verbatim. On short prompts it saves nothing and
|
| 149 |
+
costs more, so its use should be confined to the long, static context for
|
| 150 |
+
which it was designed.
|
| 151 |
+
|
| 152 |
+
## Caveats
|
| 153 |
+
|
| 154 |
+
These figures come from a pilot with small per-cell samples and should be
|
| 155 |
+
reproduced at the full per-cell count of the released dataset before being
|
| 156 |
+
quoted as model rankings. Cross-provider comparisons additionally conflate the
|
| 157 |
+
model with each provider's opaque image preprocessing, so the cleanest
|
| 158 |
+
readings are the within-model deltas between conditions rather than absolute
|
| 159 |
+
scores across providers. The cost figures use the token counts actually
|
| 160 |
+
returned by each interface, priced with example rates that should be checked
|
| 161 |
+
against current provider pricing before any monetary claim is made.
|
en/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
manifest.json
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"benchmark": "OPTIC-Bench",
|
| 3 |
+
"description": "OPTIC-Bench (Optical Text In-Context Benchmark) measures how reliably large language models consume text delivered as rendered images versus plain text tokens, covering transcription fidelity, exact-string retrieval, instruction-following, reasoning, injection resistance and multi-turn history compression, in English and Chinese, with fully programmatic scoring and per-call token and cost accounting.",
|
| 4 |
+
"version": "0.3.2",
|
| 5 |
+
"license": {
|
| 6 |
+
"data": "CC-BY-4.0",
|
| 7 |
+
"code": "MIT"
|
| 8 |
+
},
|
| 9 |
+
"master_seed": 20260705,
|
| 10 |
+
"per_cell": 25,
|
| 11 |
+
"families": [
|
| 12 |
+
"transcription",
|
| 13 |
+
"extraction",
|
| 14 |
+
"instruction",
|
| 15 |
+
"reasoning",
|
| 16 |
+
"code",
|
| 17 |
+
"calculation",
|
| 18 |
+
"wordgame",
|
| 19 |
+
"injection",
|
| 20 |
+
"dialog"
|
| 21 |
+
],
|
| 22 |
+
"languages": [
|
| 23 |
+
"en",
|
| 24 |
+
"zh"
|
| 25 |
+
],
|
| 26 |
+
"family_difficulties": {
|
| 27 |
+
"transcription": [
|
| 28 |
+
1,
|
| 29 |
+
2,
|
| 30 |
+
3,
|
| 31 |
+
4
|
| 32 |
+
],
|
| 33 |
+
"extraction": [
|
| 34 |
+
1,
|
| 35 |
+
2,
|
| 36 |
+
3,
|
| 37 |
+
4,
|
| 38 |
+
5
|
| 39 |
+
],
|
| 40 |
+
"instruction": [
|
| 41 |
+
1,
|
| 42 |
+
2,
|
| 43 |
+
3,
|
| 44 |
+
4
|
| 45 |
+
],
|
| 46 |
+
"reasoning": [
|
| 47 |
+
1,
|
| 48 |
+
2,
|
| 49 |
+
3,
|
| 50 |
+
4,
|
| 51 |
+
5
|
| 52 |
+
],
|
| 53 |
+
"code": [
|
| 54 |
+
1,
|
| 55 |
+
2,
|
| 56 |
+
3
|
| 57 |
+
],
|
| 58 |
+
"calculation": [
|
| 59 |
+
1,
|
| 60 |
+
2,
|
| 61 |
+
3,
|
| 62 |
+
4
|
| 63 |
+
],
|
| 64 |
+
"wordgame": [
|
| 65 |
+
1,
|
| 66 |
+
2,
|
| 67 |
+
3
|
| 68 |
+
],
|
| 69 |
+
"injection": [
|
| 70 |
+
1,
|
| 71 |
+
2,
|
| 72 |
+
3
|
| 73 |
+
],
|
| 74 |
+
"dialog": [
|
| 75 |
+
1,
|
| 76 |
+
2,
|
| 77 |
+
3
|
| 78 |
+
]
|
| 79 |
+
},
|
| 80 |
+
"family_conditions": {
|
| 81 |
+
"transcription": [
|
| 82 |
+
"tt",
|
| 83 |
+
"ti"
|
| 84 |
+
],
|
| 85 |
+
"extraction": [
|
| 86 |
+
"tt",
|
| 87 |
+
"ti",
|
| 88 |
+
"it",
|
| 89 |
+
"ii"
|
| 90 |
+
],
|
| 91 |
+
"instruction": [
|
| 92 |
+
"tt",
|
| 93 |
+
"ti",
|
| 94 |
+
"it",
|
| 95 |
+
"ii"
|
| 96 |
+
],
|
| 97 |
+
"reasoning": [
|
| 98 |
+
"tt",
|
| 99 |
+
"ti",
|
| 100 |
+
"it",
|
| 101 |
+
"ii"
|
| 102 |
+
],
|
| 103 |
+
"code": [
|
| 104 |
+
"tt",
|
| 105 |
+
"ti",
|
| 106 |
+
"it",
|
| 107 |
+
"ii"
|
| 108 |
+
],
|
| 109 |
+
"calculation": [
|
| 110 |
+
"tt",
|
| 111 |
+
"ti",
|
| 112 |
+
"it",
|
| 113 |
+
"ii"
|
| 114 |
+
],
|
| 115 |
+
"wordgame": [
|
| 116 |
+
"tt",
|
| 117 |
+
"ti",
|
| 118 |
+
"it",
|
| 119 |
+
"ii"
|
| 120 |
+
],
|
| 121 |
+
"injection": [
|
| 122 |
+
"tt",
|
| 123 |
+
"ti",
|
| 124 |
+
"it",
|
| 125 |
+
"ii"
|
| 126 |
+
],
|
| 127 |
+
"dialog": [
|
| 128 |
+
"tt",
|
| 129 |
+
"ti"
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"family_scorers": {
|
| 133 |
+
"transcription": [
|
| 134 |
+
"transcription"
|
| 135 |
+
],
|
| 136 |
+
"extraction": [
|
| 137 |
+
"exact_fields"
|
| 138 |
+
],
|
| 139 |
+
"instruction": [
|
| 140 |
+
"record_list",
|
| 141 |
+
"text_output"
|
| 142 |
+
],
|
| 143 |
+
"reasoning": [
|
| 144 |
+
"answer_match"
|
| 145 |
+
],
|
| 146 |
+
"code": [
|
| 147 |
+
"text_output"
|
| 148 |
+
],
|
| 149 |
+
"calculation": [
|
| 150 |
+
"answer_match"
|
| 151 |
+
],
|
| 152 |
+
"wordgame": [
|
| 153 |
+
"answer_match"
|
| 154 |
+
],
|
| 155 |
+
"injection": [
|
| 156 |
+
"injection_resistance"
|
| 157 |
+
],
|
| 158 |
+
"dialog": [
|
| 159 |
+
"answer_match"
|
| 160 |
+
]
|
| 161 |
+
},
|
| 162 |
+
"modality_conditions": {
|
| 163 |
+
"tt": "instruction text, content text (baseline)",
|
| 164 |
+
"ti": "instruction text, content rendered as image",
|
| 165 |
+
"it": "instruction rendered as image, content text",
|
| 166 |
+
"ii": "instruction and content combined into one image"
|
| 167 |
+
},
|
| 168 |
+
"difficulty_tiers": {
|
| 169 |
+
"1-3": "page-scale",
|
| 170 |
+
"4": "long (~8k characters EN)",
|
| 171 |
+
"5": "extended (~24k characters EN, roughly 6k text tokens)"
|
| 172 |
+
},
|
| 173 |
+
"n_instances": 1700,
|
| 174 |
+
"counts": {
|
| 175 |
+
"transcription/en/d1": 25,
|
| 176 |
+
"transcription/zh/d1": 25,
|
| 177 |
+
"transcription/en/d2": 25,
|
| 178 |
+
"transcription/zh/d2": 25,
|
| 179 |
+
"transcription/en/d3": 25,
|
| 180 |
+
"transcription/zh/d3": 25,
|
| 181 |
+
"transcription/en/d4": 25,
|
| 182 |
+
"transcription/zh/d4": 25,
|
| 183 |
+
"extraction/en/d1": 25,
|
| 184 |
+
"extraction/zh/d1": 25,
|
| 185 |
+
"extraction/en/d2": 25,
|
| 186 |
+
"extraction/zh/d2": 25,
|
| 187 |
+
"extraction/en/d3": 25,
|
| 188 |
+
"extraction/zh/d3": 25,
|
| 189 |
+
"extraction/en/d4": 25,
|
| 190 |
+
"extraction/zh/d4": 25,
|
| 191 |
+
"extraction/en/d5": 25,
|
| 192 |
+
"extraction/zh/d5": 25,
|
| 193 |
+
"instruction/en/d1": 25,
|
| 194 |
+
"instruction/zh/d1": 25,
|
| 195 |
+
"instruction/en/d2": 25,
|
| 196 |
+
"instruction/zh/d2": 25,
|
| 197 |
+
"instruction/en/d3": 25,
|
| 198 |
+
"instruction/zh/d3": 25,
|
| 199 |
+
"instruction/en/d4": 25,
|
| 200 |
+
"instruction/zh/d4": 25,
|
| 201 |
+
"reasoning/en/d1": 25,
|
| 202 |
+
"reasoning/zh/d1": 25,
|
| 203 |
+
"reasoning/en/d2": 25,
|
| 204 |
+
"reasoning/zh/d2": 25,
|
| 205 |
+
"reasoning/en/d3": 25,
|
| 206 |
+
"reasoning/zh/d3": 25,
|
| 207 |
+
"reasoning/en/d4": 25,
|
| 208 |
+
"reasoning/zh/d4": 25,
|
| 209 |
+
"reasoning/en/d5": 25,
|
| 210 |
+
"reasoning/zh/d5": 25,
|
| 211 |
+
"code/en/d1": 25,
|
| 212 |
+
"code/zh/d1": 25,
|
| 213 |
+
"code/en/d2": 25,
|
| 214 |
+
"code/zh/d2": 25,
|
| 215 |
+
"code/en/d3": 25,
|
| 216 |
+
"code/zh/d3": 25,
|
| 217 |
+
"calculation/en/d1": 25,
|
| 218 |
+
"calculation/zh/d1": 25,
|
| 219 |
+
"calculation/en/d2": 25,
|
| 220 |
+
"calculation/zh/d2": 25,
|
| 221 |
+
"calculation/en/d3": 25,
|
| 222 |
+
"calculation/zh/d3": 25,
|
| 223 |
+
"calculation/en/d4": 25,
|
| 224 |
+
"calculation/zh/d4": 25,
|
| 225 |
+
"wordgame/en/d1": 25,
|
| 226 |
+
"wordgame/zh/d1": 25,
|
| 227 |
+
"wordgame/en/d2": 25,
|
| 228 |
+
"wordgame/zh/d2": 25,
|
| 229 |
+
"wordgame/en/d3": 25,
|
| 230 |
+
"wordgame/zh/d3": 25,
|
| 231 |
+
"injection/en/d1": 25,
|
| 232 |
+
"injection/zh/d1": 25,
|
| 233 |
+
"injection/en/d2": 25,
|
| 234 |
+
"injection/zh/d2": 25,
|
| 235 |
+
"injection/en/d3": 25,
|
| 236 |
+
"injection/zh/d3": 25,
|
| 237 |
+
"dialog/en/d1": 25,
|
| 238 |
+
"dialog/zh/d1": 25,
|
| 239 |
+
"dialog/en/d2": 25,
|
| 240 |
+
"dialog/zh/d2": 25,
|
| 241 |
+
"dialog/en/d3": 25,
|
| 242 |
+
"dialog/zh/d3": 25
|
| 243 |
+
}
|
| 244 |
+
}
|
zh/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|