Omni-I2C: A Holistic Benchmark for High-Fidelity Image-to-Code Generation
Organizations: School of Computer Science, Wuhan University, Wuhan, China · Independent Researcher, China · Xidian University, Xi’an, China · Guangzhou University, Guangzhou, China
Abstract
We present Omni-I2C, a comprehensive benchmark designed to evaluate the capability of Large Multimodal Models (LMMs) in converting complex, structured digital graphics into executable code. We argue that this task represents a non-trivial challenge for the current generation of LMMs: it demands an unprecedented synergy between high-fidelity visual perception -- to parse intricate spatial hierarchies and symbolic details -- and precise generative expression -- to synthesize syntactically sound and logically consistent code. Unlike traditional descriptive tasks, Omni-I2C requires a holistic understanding where any minor perceptual hallucination or coding error leads to a complete failure in visual reconstruction. Omni-I2C features 1080 meticulously curated samples, defined by its breadth across subjects, image modalities, and programming languages. By incorporating authentic user-sourced cases, the benchmark spans a vast spectrum of digital content -- from scientific visualizations to complex symbolic notations -- each paired with executable reference code. To complement this diversity, our evaluation framework provides necessary depth; by decoupling performance into perceptual fidelity and symbolic precision, it transcends surface-level accuracy to expose the granular structural failures and reasoning bottlenecks of current LMMs. Our evaluation reveals a substantial performance gap among leading LMMs; even state-of-the-art models struggle to preserve structural integrity in complex scenarios, underscoring that multimodal code generation remains a formidable challenge. Data and code are available at https://github.com/MiliLab/Omni-I2C.
Figures & tables
| Benchmark | Domain | Samples | Subjects | Figure Types | Output Modalities |
| ChartMimic ( Yang et al., 2024 ) | Chart | 4,800 | 8 | 22 | Python |
| Chart2Code ( Tang et al., 2025 ) | Chart | 2,023 | 4 | 22 | Python |
| Plot2Code ( Wu et al., 2025 ) | Plot | 368 | - | 6 | Python, R |
| Design2Code ( Si et al., 2025 ) | Web | 484 | - | - | HTML |
| UniSVG ( Li et al., 2025 ) | Icon | 2,850 | - | - | SVG |
| Image2Struct ( Roberts et al., 2024 ) | Doc/Music | 2,400 | 3 | 6 | LaTeX, HTML |
| Model | Overall(1080) | HTML(166) | LaTeX(265) | Python(357) | SVG(192) | SMILES(100) | ||||||||||||||||
| Exec | Exec | Exec | Exec | Exec | T.S. | Exec | ||||||||||||||||
| Proprietary Models | ||||||||||||||||||||||
| Claude Sonnet 4.5 | 60.4 | 40.8 | 76.7 | 97.2 | 67.2 | 55.3 | 84.2 | 99.4 | 47.7 | 29.4 | 66.8 | 92.8 | 62.5 | 41.0 | 81.0 | 98.9 | 68.1 | 44.0 | 75.8 | 100.0 | 59.4 | 94.0 |
| GPT 5.1 | 60.7 | 40.9 | 74.1 | 92.7 | 67.4 | 55.2 | 84.2 | 99.4 | 46.9 | 28.0 | 55.2 | 84.5 | 63.3 | 42.9 | 81.9 | 94.7 | 69.1 | 42.5 | 76.9 | 100.0 | 49.0 | 82.0 |
| Gemini 3 Pro | 62.2 | 41.4 | 76.1 | 92.8 | 68.9 | 56.0 | 86.2 | 98.2 | 47.2 | 27.2 | 56.5 | 83.4 | 62.6 | 42.2 | 81.9 | 95.0 | 76.3 | 47.0 | 83.7 | 100.0 | 48.0 | 87.0 |
| Gemini 2.5 Pro | 58.4 | 39.6 | 71.2 | 89.3 | 61.5 | 54.9 | 80.8 | 98.8 | 45.0 | 26.9 | 52.5 | 72.5 | 62.0 | 40.9 | 80.7 | 93.3 | 67.6 | 41.6 | 71.1 | 99.0 | 75.6 | 85.0 |
| Prompt | Judge | Ken. ( ) | Spr. ( ) | RMSE ( ) |
| Chart2Code | GPT 4.1 | 0.7254 | 0.7769 | 0.5474 |
| Qwen-VL-Max | 0.5971 | 0.6402 | 0.6951 | |
| Qwen3-VL-Plus | 0.5736 | 0.6156 | 0.7293 | |
| ChartMimic | GPT 4.1 | 0.7835 | 0.8252 | 0.4934 |
| Qwen-VL-Max | 0.7241 | 0.7723 | 0.5575 | |
| Qwen3-VL-Plus | 0.7564 | 0.8004 | 0.5265 |
| Per-judge vs MV | ||
| Code Judge | MV align | Closest to MV (count/%) |
| Claude Sonnet 4.5 | 0.8482 ( =0.8335, =0.8629) | 276 / 35.62% |
| Gemini 2.5 Pro | 0.7556 ( =0.7368, =0.7743) | 215 / 27.80% |
| GPT 5.3 codex | 0.8517 ( =0.8390, =0.8643) | 283 / 36.58% |
| Overall (all judges) | ||
| Kendall’s | 0.7618 0.2482 | |
| Model | Method | Exec | |||
| Gemini 2.5 Pro | Direct | 57.81 | 39.92 | 71.01 | 89.49 |
| Few-Shot | 59.52 | 39.76 | 72.09 | 89.70 | |
| Scaffold | 51.31 | 35.87 | 56.92 | 84.28 | |
| Self-Commentary | 60.11 | 41.36 | 72.37 | 94.18 | |
| Hint-Enhanced | 58.42 | 39.62 | 71.21 | 89.72 | |
| Qwen3-VL-235B-A22B-Instruct | Direct | 55.78 | 40.03 | 62.58 | 88.16 |
Appendix figures & tables28 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Source URL |
| Python | https://matplotlib.org/stable/gallery/index.html |
| https://networkx.org/documentation/stable/auto_examples/index.html | |
| https://plotly.com/python/ | |
| https://altair-viz.github.io/gallery/index.html | |
| https://python-graph-gallery.com/ | |
| LaTeX | https://tikz.net/ |
| Profile | Comp. | Text | Ent. | Sty. |
| ( ) | ( ) | ( ) | ( ) | |
| Charts & Plots | 30% | 20% | 35% | 15% |
| Geometry | 30% | 15% | 35% | 20% |
| Diagrams | 30% | 20% | 35% | 15% |
| Tables | 35% | 35% | 15% | 15% |
| Equations | 30% | 35% | 20% | 15% |
| Metric | Kendall’s | Spearman’s | RMSE |
| LPIPS | 0.2717 | 0.3024 | 0.9401 |
| SSIM | 0.1155 | 0.1298 | 1.0526 |
| CLIP Score | 0.4414 | 0.4831 | 0.7994 |
| Ours | 0.8304 | 0.8681 | 0.4284 |
| Method | Metric | Mean Var. | Improv. |
| Direct GT-to-Code | Logic Score | 8.288 | - |
| Our Checklist | Logic Score | 7.414 | 10.6% |
| Direct GT-to-Code | Param. Score | 30.605 | - |
| Our Checklist | Param. Score | 5.544 | 81.9% |
| Model | Method | Overall(1080) | HTML(166) | LaTeX(265) | Python(357) | SVG(192) | SMILES(100) | ||||||||||||||||
| Exec | Exec | Exec | Exec | Exec | Exec | T.S. | |||||||||||||||||
| Gemini 2.5 Pro | Direct | 89.49 | 57.81 | 39.92 | 71.01 | 98.19 | 62.10 | 54.42 | 80.41 | 69.43 | 41.04 | 26.39 | 52.56 | 94.96 | 63.08 | 41.86 | 80.76 | 99.48 | 67.43 | 42.44 | 70.22 | 96.00 | 81.99 |
| Few-Shot | 89.70 | 59.52 | 39.76 | 72.09 | 98.19 | 67.78 | 54.96 | 80.66 | 73.21 | 44.25 | 26.78 | 57.11 | 92.72 | 62.48 | 40.97 | 80.27 | 99.48 | 67.93 | 42.26 | 70.16 | 97.00 | 80.93 | |
| Scaffold | 84.28 | 51.31 | 35.87 | 56.92 | 98.19 | 61.15 | 54.48 | 80.92 | 61.51 | 32.31 | 22.14 | 35.37 | 86.55 | 52.09 | 33.68 | 54.58 | 99.48 | 67.60 | 42.82 | 70.27 | 79.00 | 52.41 | |
| Self-Commentary | 94.18 | 60.11 | 41.36 | 72.37 | 98.19 | 61.44 | 54.11 | 79.96 | 86.04 | 50.48 | 30.08 | 58.03 | 95.52 | 62.51 | 43.22 | 80.05 | 99.48 | 67.77 | 42.47 | 71.31 | 96.00 | 77.65 | |
| Hint-Enhanced | 89.72 | 58.42 | 39.62 | 71.21 | 98.80 | 61.50 | 54.90 | 80.80 | 72.50 | 45.00 | 26.90 | 52.50 | 93.30 | 62.00 | 40.90 | 80.70 | 99.00 | 67.60 | 41.60 | 71.10 | 85.00 | 75.60 | |
| Dimension | Kendall’s | Spearman’s | RMSE |
| Composition | 0.7837 | 0.8222 | 0.4110 |
| Text | 0.6889 | 0.7225 | 0.5267 |
| Entity | 0.6531 | 0.6986 | 0.5167 |
| Style | 0.7367 | 0.7791 | 0.4491 |