ELVIA analysis of: Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision — Problem 1: Inconsistent CLIP input rescaling in the current released FID comparison
Original paper: Marco Cipriano; Moritz Feuerpfeil; Gerard de Melo. Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/cipriano25a.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: Section 5.2/A12; requirements.txt; eval.py and evaluation scripts
Question: What does the recorded analysis establish about “Inconsistent CLIP input rescaling in the current released FID comparison”?
Bounded finding:
TorchMetrics normalize=True converts float images to byte [0,255] before the custom feature module. Grimoire disables processor rescaling while Im2Vec keeps default 1/255. A white red-channel input becomes 947.4704283825 versus 1.9303362542 after CLIP normalization. Current released metric results are not calculated with one common CLIP input normalization. Numerical FID effect and the paper's historical rankings are not established.
Recorded check:
The Grimoire and baseline feature pipelines do not apply the same preprocessing under the declared dependency versions.
Consider a spatially constant white RGB image, so resizing and cropping do not alter its values. Float input \(x=1\) becomes byte \(b=255\). With default CLIP red-channel mean \(\mu=0.48145466\) and standard deviation \(\sigma=0.26862954\), \[z_{\rm Grimoire}=\frac{255-\mu}{\sigma}\simeq947.4704,
\qquad
z_{\rm default}=\frac{255/255-\mu}{\sigma}\simeq1.9303.\] For float half-intensity, byte conversion gives 127, with red-channel normalized values approximately 470.9778 and 0.06174. The black case agrees, showing why checking only zero pixels would miss the defect. Independent scalar calculations reproduce these values without executing author code or downloaded dependency code.
The evaluators apply different preprocessing maps, so their outputs cannot be interpreted as scores from one common intended CLIP feature pipeline. Both real and generated images pass through each evaluator’s own map; that symmetry does not make cross-evaluator feature definitions identical.
The supported impact is Minor, confined to the acquired release. The historical environment and entrypoints producing the paper’s tables are unbound, so published rankings and numerical changes remain Needs Evidence. No CLIP weights or image features were computed, and no numerical change in Fréchet distance is claimed.
A verified local correction is to restore the processor’s \(1/255\) rescaling after TorchMetrics’ byte conversion, consistently across evaluators. Another option is an explicitly shared floating-input feature pipeline with redundant conversion removed. Only the input-unit correction is established; complete evaluator execution and table recomputation remain outstanding. Author source files were preserved without modification.
Case-wide limitations:
- P1 — Inconsistent CLIP input rescaling in the current released FID comparison — Counterevidence: Both real and generated images receive each script's transformation, but the transformations differ across methods. Historical entrypoint, environment and checkpoint bindings are unavailable; release is dated July 2026.
- P1 — Inconsistent CLIP input rescaling in the current released FID comparison — Limits: Requires recomputation to establish feature distances and score/ranking changes; none performed
- P1 — Inconsistent CLIP input rescaling in the current released FID comparison — Counterevidence and limits: Processing real and generated images consistently inside one path does not make the feature map common across the two comparison paths. The current release still lacks a binding to the historical experiment.
- P2 — PSNR does not have a recoverable reference-pairing protocol — Counterevidence: A meaningful fixed paired reference or other undisclosed protocol could justify a narrower comparison. Selected visual examples show style but do not determine the metric protocol.
- P2 — PSNR does not have a recoverable reference-pairing protocol — Limits: Actual evaluation samples and pairing records are unavailable
- P2 — PSNR does not have a recoverable reference-pairing protocol — Counterevidence and limits: Independent pairing is a diagnostic assumption, not an established fact about the actual experiment. Aligned references or another documented pairing could change the interpretation.
- Unresolved claim: Historical run files and exact metric entrypoints are missing
- Unresolved claim: Split CSV, data, weights and raw run outputs absent
- Limitations: No author code execution, imported downloaded dependency code, neural feature computation or empirical reproduction
- Limitations: Two small exact-version official dependency source texts were downloaded after required disk checks
- Limitations: No dataset or weights downloaded
- Limitations: No accessible Space reference supplied
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p1
Source report index: 1
Original source excerpts (verbatim):
We demonstrate the effectiveness of our method by fitting GRIMOIRE for closed filled shapes on MNIST and Emoji, and for outline strokes on icon and font data, surpassing previous image-supervised methods in generative quality and the vector-supervised approach in flexibility.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1, Abstract
Source PDF SHA-256: 76f7c8e2b77155384780ec01980a48393d51a9e8c5edb228b766307de2b92167
Review status: Independent review pending
Case: icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image/records/icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image.r1.json
Canonical record SHA-256: e9ce9d5d6575937a77d11acd078c6d988990bfb6c5a15f2fe605df24455f3f43
The page follows the latest revision; the versioned record identifies this snapshot.
Analysis citation:
Minhao Liu. ELVIA analysis of: Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision — Problem 1: Inconsistent CLIP input rescaling in the current released FID comparison. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image.html#problem-1
Case icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned record: https://elvia-atlas.org/atlas/evidence/icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image/records/icml2025-0205-vector-grimoire-codebook-based-shape-generation-under-raster-image.r1.json
Claim in the source (paraphrase):
Sections 5.1–5.2 and Appendix A.12 use CLIP-image features for the reported Fréchet metric. This is a disclosed CLIP-feature distance, not conventional Inception-feature FID. A comparison requires a common feature mapping for all methods.
The release pins `torchmetrics==1.0.1` and `transformers==4.31.0`. Its `evaluation/eval_ART_strokes.py`, lines 66–91, constructs `FrechetInceptionDistance(feature=wrapper, normalize=True)`, but the wrapper calls the CLIP processor with `do_rescale=False`. The same combination appears in `eval.py`, lines 165–189, and `evaluation/eval_Grimoire_MNIST.py`, lines 60–85. In contrast, `evaluation/eval_im2vec.py`, lines 95–119, uses the same Fréchet normalization flag but leaves CLIP rescaling at its default.
The loaders and raster conversion paths use floating \([0,1]\) tensors. Official TorchMetrics source version 1.0.1 applies \[b=\operatorname{uint8}(255x)\] before passing the tensor to any feature module, including the custom wrapper [tm]. No author wrapper divides this value by 255. The official Transformers 4.31.0 CLIP processor defaults to rescaling by \(1/255\) before mean/standard-deviation normalization [hf].
Pinned TorchMetrics 1.0.1 and Transformers 4.31.0 behavior. Raster helper outputs float images in [0,1]. Current release is not assumed to be the historical experiment revision.
Full finding analysis:
The Grimoire and baseline feature pipelines do not apply the same preprocessing under the declared dependency versions.
Consider a spatially constant white RGB image, so resizing and cropping do not alter its values. Float input \(x=1\) becomes byte \(b=255\). With default CLIP red-channel mean \(\mu=0.48145466\) and standard deviation \(\sigma=0.26862954\), \[z_{\rm Grimoire}=\frac{255-\mu}{\sigma}\simeq947.4704,
\qquad
z_{\rm default}=\frac{255/255-\mu}{\sigma}\simeq1.9303.\] For float half-intensity, byte conversion gives 127, with red-channel normalized values approximately 470.9778 and 0.06174. The black case agrees, showing why checking only zero pixels would miss the defect. Independent scalar calculations reproduce these values without executing author code or downloaded dependency code.
The evaluators apply different preprocessing maps, so their outputs cannot be interpreted as scores from one common intended CLIP feature pipeline. Both real and generated images pass through each evaluator’s own map; that symmetry does not make cross-evaluator feature definitions identical.
The supported impact is Minor, confined to the acquired release. The historical environment and entrypoints producing the paper’s tables are unbound, so published rankings and numerical changes remain Needs Evidence. No CLIP weights or image features were computed, and no numerical change in Fréchet distance is claimed.
A verified local correction is to restore the processor’s \(1/255\) rescaling after TorchMetrics’ byte conversion, consistently across evaluators. Another option is an explicitly shared floating-input feature pipeline with redundant conversion removed. Only the input-unit correction is established; complete evaluator execution and table recomputation remain outstanding. Author source files were preserved without modification.
Finding and scope:
TorchMetrics normalize=True converts float images to byte [0,255] before the custom feature module. Grimoire disables processor rescaling while Im2Vec keeps default 1/255. A white red-channel input becomes 947.4704283825 versus 1.9303362542 after CLIP normalization. Current released metric results are not calculated with one common CLIP input normalization. Numerical FID effect and the paper's historical rankings are not established.
Recorded correction and verification scope:
Apply one consistent image range and CLIP rescaling policy; with the byte path, retain processor rescaling by 1/255.
Displayed problem statement:
Sections 5.1–5.2 and Appendix A.12 use CLIP-image features for the reported Fréchet metric. This is a disclosed CLIP-feature distance, not conventional Inception-feature FID. A comparison requires a common feature mapping for all methods.
The release pins `torchmetrics==1.0.1` and `transformers==4.31.0`. Its `evaluation/eval_ART_strokes.py`, lines 66–91, constructs `FrechetInceptionDistance(feature=wrapper, normalize=True)`, but the wrapper calls the CLIP processor with `do_rescale=False`. The same combination appears in `eval.py`, lines 165–189, and `evaluation/eval_Grimoire_MNIST.py`, lines 60–85. In contrast, `evaluation/eval_im2vec.py`, lines 95–119, uses the same Fréchet normalization flag but leaves CLIP rescaling at its default.
The loaders and raster conversion paths use floating \([0,1]\) tensors. Official TorchMetrics source version 1.0.1 applies \[b=\operatorname{uint8}(255x)\] before passing the tensor to any feature module, including the custom wrapper [tm]. No author wrapper divides this value by 255. The official Transformers 4.31.0 CLIP processor defaults to rescaling by \(1/255\) before mean/standard-deviation normalization [hf].
Pinned TorchMetrics 1.0.1 and Transformers 4.31.0 behavior. Raster helper outputs float images in [0,1]. Current release is not assumed to be the historical experiment revision.
Complete retained report:
Abstract: The shape representation, quantization and geometric objectives, generation metrics, postprocessing and available release code were inspected. The current release feeds inconsistent intensity scales into the CLIP feature extractors used for Grimoire and Im2Vec Fréchet evaluation. This is a demonstrated release-level defect under its pinned dependencies; historical score provenance is unresolved. The PSNR-based distribution comparison also requires its unprovided reference protocol. The geometric penalty’s behavior does not establish a failure of the joint training objective. The supported overall impact is Minor, with empirical subitems marked Needs Evidence and scientific adjudication pending.
Author: AI-assisted technical review
Title: Technical Verification of Vector Grimoire
# Identity, version, and scope
The assigned paper is 0205/I25-43574, Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision, by Marco Cipriano, Moritz Feuerpfeil, and Gerard de Melo, ICML 2025 [paper]. The reviewed publisher PDF has 28 pages. Page references mean one-based PDF pages.
The staged repository `potpov/VectorGrimoire` is pinned to `e1eebebe45366cc2df3aea12a8e8bf4168f00c0e`, dated 12 July 2026 [code]. It is a later release, not an established publication-time implementation. Its selective source archive and all 82 member mappings were preserved and checked. Datasets, checkpoints and historical experiment outputs were not acquired or executed.
The main method and results, relevant Appendix A.1–A.19 text, Tables 1–12 and selected implementation paths were inspected. Parent image checks covered original pages 4, 8, 9, 15, 17 and 20, including metric tables, the SDS comparison and geometric-loss illustrations. Other qualitative panels were not exhaustively visually audited.
# Representation and objective checks
The finite scalar quantization cardinalities are correct: \[|V|=7\cdot5^4=4375,\qquad |V|+256^2+3=69\,914.\] Sharing consecutive cubic Bézier endpoints gives \(2(3\nu+1)\) coordinates for an open connected path and \(2(3\nu)\) for a closed path. The separation of shape tokens and global positions is explicit. The paper acknowledges quantization displacement, fragmentation and path postprocessing, rather than claiming exact whole-image reconstruction.
Equations (2)–(3), p. 4, penalize the variance of \(\|p_i-p_j\|/|i-j|\) among ordered segment endpoints. It is a regularity penalty, not an independent length maximizer. For contraction about any centre, \[L_{\rm geom}(c+r(P-c))=r^2L_{\rm geom}(P),\qquad 0\leq r\leq1.\] Equally spaced collinear endpoints, including collapse, have zero penalty. This does not refute Appendix A.11’s observed elongation under joint reconstruction loss. For endpoints \((-a,0),(0,h),(a,0)\), translated into the unit square when needed, set \(\ell=\sqrt{a^2+h^2}\). Then \[L_{\rm geom}=\frac{(\ell-a)^2}{6},\qquad
\frac{\partial L_{\rm geom}}{\partial a}
=-\frac{(\ell-a)^2}{3\ell}<0,\qquad
\frac{\partial L_{\rm geom}}{\partial h}
=\frac{h(\ell-a)}{3\ell}>0.\] Thus minimizing it can expand endpoint span while straightening a bend. Its auxiliary role, restriction to open strokes, and deterioration shown at excessive weight are material counterevidence against treating collapse alone as a demonstrated method failure.
# Substantive findings
Problem 1 (Released Fréchet evaluators use incompatible CLIP intensity scales). The Grimoire and baseline feature pipelines do not apply the same preprocessing under the declared dependency versions.
## Claim, code path, and operative conditions
Sections 5.1–5.2 and Appendix A.12 use CLIP-image features for the reported Fréchet metric. This is a disclosed CLIP-feature distance, not conventional Inception-feature FID. A comparison requires a common feature mapping for all methods.
The release pins `torchmetrics==1.0.1` and `transformers==4.31.0`. Its `evaluation/eval_ART_strokes.py`, lines 66–91, constructs `FrechetInceptionDistance(feature=wrapper, normalize=True)`, but the wrapper calls the CLIP processor with `do_rescale=False`. The same combination appears in `eval.py`, lines 165–189, and `evaluation/eval_Grimoire_MNIST.py`, lines 60–85. In contrast, `evaluation/eval_im2vec.py`, lines 95–119, uses the same Fréchet normalization flag but leaves CLIP rescaling at its default.
The loaders and raster conversion paths use floating \([0,1]\) tensors. Official TorchMetrics source version 1.0.1 applies \[b=\operatorname{uint8}(255x)\] before passing the tensor to any feature module, including the custom wrapper [tm]. No author wrapper divides this value by 255. The official Transformers 4.31.0 CLIP processor defaults to rescaling by \(1/255\) before mean/standard-deviation normalization [hf].
## Independent decisive calculation
Consider a spatially constant white RGB image, so resizing and cropping do not alter its values. Float input \(x=1\) becomes byte \(b=255\). With default CLIP red-channel mean \(\mu=0.48145466\) and standard deviation \(\sigma=0.26862954\), \[z_{\rm Grimoire}=\frac{255-\mu}{\sigma}\simeq947.4704,
\qquad
z_{\rm default}=\frac{255/255-\mu}{\sigma}\simeq1.9303.\] For float half-intensity, byte conversion gives 127, with red-channel normalized values approximately 470.9778 and 0.06174. The black case agrees, showing why checking only zero pixels would miss the defect. Independent scalar calculations reproduce these values without executing author code or downloaded dependency code.
## Impact, counterevidence, and bounded correction
The evaluators apply different preprocessing maps, so their outputs cannot be interpreted as scores from one common intended CLIP feature pipeline. Both real and generated images pass through each evaluator’s own map; that symmetry does not make cross-evaluator feature definitions identical.
The supported impact is Minor, confined to the acquired release. The historical environment and entrypoints producing the paper’s tables are unbound, so published rankings and numerical changes remain Needs Evidence. No CLIP weights or image features were computed, and no numerical change in Fréchet distance is claimed.
A verified local correction is to restore the processor’s \(1/255\) rescaling after TorchMetrics’ byte conversion, consistently across evaluators. Another option is an explicitly shared floating-input feature pipeline with redundant conversion removed. Only the input-unit correction is established; complete evaluator execution and table recomputation remain outstanding. Author source files were preserved without modification.
Problem 2 (PSNR needs a reference protocol to support the distribution comparison). The ancillary SDS comparison lacks the correspondence needed to interpret its quantitative evidence.
## Claim and missing information
Section 5.4 and Table 4, p. 8, use PSNR on 20 generated User samples to argue that alternatives fall farther from the target dataset distribution. Values are 45.19 dB for Grimoire, 28.68 for CLIPDraw, 36.62 for VectorFusion, and 34.53 for SVGDreamer. The inspected text and acquired source do not specify reference-image pairing, alignment, pixel range or aggregation. Static searches found no PSNR evaluator.
For reference \(X\) and generated image \(Y\), PSNR depends on a paired error and specified range \(R\): \[\operatorname{PSNR}=10\log_{10}\frac{R^2}{\operatorname{MSE}(X,Y)}.\] Under independent pairing, \[\mathbb E\|X-Y\|^2
=\operatorname{tr}\Sigma_X+\operatorname{tr}\Sigma_Y
+\|\mu_X-\mu_Y\|^2.\] A generator collapsed to \(\mu_X\) has expected MSE \(\operatorname{tr}\Sigma_X\); an independent correct generator has \(2\operatorname{tr}\Sigma_X\). This illustrates why paired fidelity alone is not a distributional guarantee. It does not assert that the authors used this pairing or aggregation.
## Assessment and required evidence
The assessment is Needs Evidence. Supply the evaluator, reference/generated sample list, pairing and range definitions, and explain what aspect of distributional matching is measured. Figure 10 visibly illustrates a style difference among its selected samples; it does not determine the missing quantitative protocol. Reconstruction MSE and other comparisons remain separate evidence.
# Empirical boundaries and local clarifications
The paper does not show universal metric dominance. Table 3 reports cases where filled Im2Vec has lower CLIP-feature Fréchet distance, Appendix A.10 gives class-specific exceptions, and Table 7 acknowledges IconShop’s better reported metric values. Tables 1–2 favor VSQ in reconstruction MSE. These support separate judgments about reconstruction, text alignment and generative distribution.
Appendix A.5’s categorical Path Clipping ranking needs narrowing: in Table 6, FIGR-8 reconstruction favors Path Interpolation (FID 0.07 versus 0.10; CLIPScore 32.0 versus 31.97). PC does lead the displayed generation rows. This is a local comparison clarification, not evidence that postprocessing fails.
Full-FIGR-8 scores require checkpoint/cohort correspondence: Tables 3 and 7 give 0.64/29.00, while Tables 6 and 12 give 3.58/27.45 for postprocessed generation. Different configurations or cohorts may explain the difference. The timing description uses both five and 20 samples, and the CLIPDraw speed ratio is \(100.19/2.34\simeq42.8\), so a literal hundredfold advantage does not apply to every comparator.
Raster reconstruction supervision differs from absence of all vector-form preprocessing. The paper openly extracts raster contours, uses positional metadata, and skips contour extraction for vector-origin Fonts. The Fonts split unit is not fully specified, so unseen-font generalization was not independently verified. Small emoji experiments and poorer transfer/completion metrics are disclosed. No dataset leakage, metric-table repair or training result was established by this static review.
# Conclusion
Item | Assessment | Verified repair/evidence state
Released CLIP preprocessing | Minor | Local input-unit correction
Historical metric impact | Needs Evidence | Run/checkpoint mapping absent
PSNR distribution comparison | Needs Evidence | Reference protocol absent
Representation/geometric scope | No Issue Found | Bounded analytic checks
Scientific adjudication | Pending | Human reviews empty
Author adoption | Unknown | Not requested
# Supporting checks
.
The original manifest and preserve source identity, versions, archive membership and hashes. Independent arithmetic and actual output are and . Two exact dependency-source files are preserved as and , with URLs, hashes and pre/post disk-space checks in . They were retrieved solely to resolve pinned-library behavior and were not imported, installed or executed. No dataset or weight was downloaded.
No human review or author-code execution is represented.
9 M. Cipriano, M. Feuerpfeil, and G. de Melo. Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision. ICML 2025, PMLR 267. Publisher PDF, 28 pages. https://proceedings.mlr.press/v267/cipriano25a.html. VectorGrimoire repository. Commit `e1eebebe45366cc2df3aea12a8e8bf4168f00c0e`, 12 July 2026. https://github.com/potpov/VectorGrimoire. Lightning AI. TorchMetrics, version 1.0.1, `src/torchmetrics/image/fid.py`, especially `update`. Official tagged source, retrieved 25 October 2026. https://github.com/Lightning-AI/torchmetrics/blob/v1.0.1/src/torchmetrics/image/fid.py. Hugging Face. Transformers, version 4.31.0, `image_processing_clip.py`, default rescaling and preprocessing. Official tagged source, retrieved 25 October 2026. https://github.com/huggingface/transformers/blob/v4.31.0/src/transformers/models/clip/image_processing_clip.py.
Source PDF SHA-256: 76f7c8e2b77155384780ec01980a48393d51a9e8c5edb228b766307de2b92167
Repair verification: pending
Author adoption: not_requested