zkml-audit-benchmark / CHANGELOG.md
Anonymous648's picture Netzerep's picture Anonymous's picture
zkml-audit-benchmark v1.3.0 (102 artifacts across six systems; see CHANGELOG.md)
d121e6a
|
Raw History Blame Contribute Delete
8.69 kB

Changelog

v1.3.0 (2026-11-18)

Expansion to 102 artifacts across six systems

  • Added two systems as a held-out extension: zkCNN (ACM CCS 2021) and vCNN (IEEE TDSC), with codebase snapshots, paper references, and artifact records. Neither was used to build the failure taxonomy.
  • Added 46 extension artifacts: 6 zkGPT, 25 zkML, 6 zkTorch, 5 zkCNN, 4 vCNN. (Five initial -050 drafts were dropped after validation: they anchored to a different codebase snapshot than the frozen release; their findings remain represented in the core. An independent per-system audit of zkCNN and vCNN then removed three vCNN drafts that targeted prover-side or debug-only assertions rather than verifier checks, and added vCNN-004, a genuine downgrade of the LegoSNARK connecting-proof verifier check.) The evaluated 56-artifact core over four systems is unchanged.
  • Extended scripts/build_parquet.py to six pairs and rebuilt data/artifacts.parquet (102 rows), data/pairs.parquet (6 pairs), and MANIFEST.json.

Packaging and metadata fixes

  • codebases/zkllm.zip: the bundled .git directory was repacked (reflog removed; refs point only at upstream commit 993311e), and a hard-coded credential in reproduce_zkllm.ipynb was replaced with a placeholder. All other source files are byte-identical to v1.2.2, and all 13 zkLLM anchors re-verify.
  • data/pairs.parquet: corrected stale codebase_sha256 values for zkgpt and zktorch (their zips are unchanged) and refreshed zkllm; all now match MANIFEST.json.
  • MANIFEST.json: refreshed the codebases/zkllm.zip entry.
  • DATASHEET.md: updated the zkLLM prover-cost inflation figure from 12.35× to 32.8×.

v1.2.2 (2026-05-01)

Artifact line-number and SHA-256 fixup (5 zkLLM artifacts)

  • Fixed stale anchor.start/anchor.end, expect_sha256, conflict_keys.regions, and finding.labels.relevant_code in 5 zkLLM artifacts after the zkllm.zip codebase update in v1.2.1 shifted line numbers:
    • zkLLM-004: tlookup.cu 384-385 → 401-402
    • zkLLM-006: main.cu 252-261 → 302-311
    • zkLLM-007: stage_proof.cuh 212-213 → 215-216
    • zkLLM-012: tlookup.cu 19-22 → 36-39
    • zkLLM-013: main.cu 138-158 → 138-204 (block expanded; SHA updated)
  • data/baseline_findings.json: corrected two stale line references — self-attn.cu:230-237 → self-attn.cu:139-140 (file only has 226 lines) and main.cu:174-189 → main.cu:31-35 (pointed at wrong code after line shift).
  • Rebuilt MANIFEST.json, data/artifacts.parquet. verify_dataset.py passes all checks.

v1.2.1 (2026-04-30)

Schema cleanup — finding.labels reduced to two fields

  • Stripped the severity field from all 52 artifacts that still carried it. The v2 schema (additionalProperties: false) only permits relevant_code and paper_reference under finding.labels; severity was a stale leftover from the v1 → v2 migration that had been silently failing schema validation in verify_dataset.py.
  • Removed category and security_concern from artifact JSONs in the same pass. These fields are no longer carried as per-artifact labels (the grader does not consume them).

Codebase runtime fixes (zkllm.zip)

  • Updated zkllm.zip with three runtime fixes: transcript alignment, a most-vexing-parse correction, and tensor padding. SHA-256 in MANIFEST.json refreshed.

Tooling — build_parquet.py is now the single rebuild script

  • scripts/build_parquet.py extended to also (a) refresh the artifact_count column in data/pairs.parquet from on-disk artifact files (preserving all static pair metadata) and (b) regenerate MANIFEST.json with fresh sha256 + size for every artifact, codebase, and paper. Running the script is now the one command required to rebuild every derived dataset file.

Artifact count correction

  • data/pairs.parquet artifact_count corrected to match on-disk files: zkgpt=14, zkllm=13, zkml=14, zktorch=15 (previously incorrectly reported as 15/15/15/16). Authoritative artifact total is 56, not 61 as some earlier release notes implied — the v1.1.0 additions were partially superseded during the v2 schema cleanup.
  • MANIFEST.json refreshed with new sha256 hashes for the 52 modified artifact JSONs. verify_dataset.py now passes all checks.

v1.2.0 (2026-04-28)

Clean codebase fixes (zktorch)

  • zktorch.zip: Fixed epsilon hardcoded to 1.0 in BatchNorm — now properly scaled by SF_FLOAT (norm.rs:60-61)
  • zktorch.zip: Fixed blanket < 1e-10 near-zero guard — now checks after scaling instead of on raw float (onnx.rs:73-76)

Baseline findings

  • Added data/baseline_findings.json — 10 known pre-existing gaps in clean codebases (2 zkgpt, 5 zkllm, 3 zktorch). These are inherent to the research prototypes and are not injected bugs. The grader's --baseline flag excludes matching agent findings from scoring.

v1.1.0 (2026-04-25)

Clean codebase fixes

  • zkgpt.zip: Fixed pow(1,-8) → pow(2,-8) in softmax scale factor (neuralNetwork.cpp:354-356)
  • zkllm.zip: Fixed FFN output to save rescaled down_out_ instead of unrescaled down_out (ffn.cu:137, 152)

Artifact label corrections (4 relabeled)

  • zkGPT-003, zkGPT-004, zkGPT-005: Engineering/Prototype Gap → Specification Mismatch (bias removal, identity LayerNorm, and zeroed weights are specification deviations)
  • zkML-001: Engineering/Prototype Gap → Protocol/Transcript Logic (hardcoded Freivalds challenge is a protocol violation)

New artifacts (5 added, 56 → 61 total at the time)

  • zkGPT-014: Softmax Scale Factor Evaluates to Unity (Numerical/Quantization Bug, Warning)
  • zkGPT-015: Attention Dimension Scaling Factor Removed (Specification Mismatch, Critical)
  • zkLLM-015: FFN Output Saved at Wrong Rescaling Level (Numerical/Quantization Bug, Warning)
  • zkML-015: Selector Constraint Enforcement Disabled by Default (Engineering/Prototype Gap, Critical)
  • zkTorch-016: BatchAdd Verification Assertion Removed (Under-constrained Circuit, Critical)

Note: the artifact total temporarily reached 61 with this release. The v2-schema cleanup in v1.2.1 reconciled the on-disk count back to 56; see v1.2.1 above for the authoritative count.

Data updates

  • MANIFEST.json updated (69 entries, new SHA-256 hashes for modified files)
  • Parquet files rebuilt (artifacts: 61 rows, pairs: updated artifact_count)

v1.0.1 (post-v1.0.0 maintenance, pre-v1.1.0)

This was a series of in-place corrections committed against the v1.0.0 release before v1.1.0 was tagged. They are documented retroactively for completeness.

Schema migration — v1 → v2 (all 56 artifacts)

  • Removed root-level v1 fields from every artifact: name, category, severity, aliases, notes.
  • Normalized source from a nested object to a string enum (real | synthetic).
  • Moved finding.severity → finding.labels.severity and finding.location → finding.labels.relevant_code.
  • verify_dataset.py now performs full v2 JSON-schema validation (no more v1 skip).
  • build_dataset.py updated to read v2 fields directly (the extract_source helper was removed).
  • Cleaned v1 references from README.md, CHANGELOG.md, and the schema description.
  • The migration helper script was deleted after the migration completed.

Anchor and probe corrections

  • All 13 zkGPT artifacts: recomputed expect_sha256 anchors against the current codebase zip.
  • zkML-006: narrowed not_contains probe from AddPairsChip to AddPairsChip::<F>::construct (the broader form was too aggressive).
  • zkML-007: removed a not_contains probe (line 272 legitimately contains the same text).
  • zkTorch-002: narrowed not_contains probe from 1 << 15 to y.clamp(-(1 << 15).
  • zkGPT-010, zkLLM-002, zkML-001: removed not_contains probes that checked for text absence file-wide. The same text legitimately appears outside the edit range, so the probes were redundant (the corresponding contains probes already validated injection) and incorrect.
  • MANIFEST.json updated with refreshed SHA-256 hashes for all modified files.

Documentation corrections

  • Fixed paper year/venue, citation URL, the load_dataset example, artifact summary stats, and label-coverage notes in README.md.
  • Merged the Hugging Face default .gitattributes and added a Git LFS rule for PDFs.

v1.0.0 (2026-04-22)

  • Initial release
  • 4 (paper, codebase) pairs: zkLLM, zkML, zkTorch, zkGPT
  • 56 bug artifacts (14 + 14 + 15 + 13)
  • Two Parquet configs: pairs (4 rows) and artifacts (56 rows)
  • SHA256 manifest for all files
  • Artifact format: v2 JSON schema (artifact.v2.schema.json)