Modelstamp: Pre-Deserialization Verification of Machine-Learning Artifacts and Runtime Environment State

📅 2026-09-01
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
"This study addresses the validation issues that may arise when machine learning models are loaded across different software environments, highlighting that relying solely on artifact integrity checks is insufficient. To tackle this, the work proposes Modelstamp, a lightweight Python persistence library designed to verify the consistency of models and their runtime environments before deserialization. By encapsulating SHA-256 digests, runtime metadata, and installed version information into a JSON manifest, and supporting HMAC authentication, Modelstamp ensures secure and reliable cross-environment loading. Experimental results demonstrate that Modelstamp effectively enhances model loading security in 14 environment drift and 8 trust boundary scenarios, with an average verification time ranging from 0.032 seconds to 3.334 seconds for data sizes between 10 MiB and 1 GiB, maintaining a throughput of 307-312 MiB/s."
📝 Abstract
Persisted machine-learning models can remain byte-identical while the software environments in which they are loaded evolve, creating a verification problem that artifact integrity checks alone cannot expose. This paper presents Modelstamp, a lightweight Python persistence library for verifying artifact integrity and represented runtime-environment state before deserialization. At persistence time, Modelstamp associates a serialized artifact with a sidecar JSON manifest containing a SHA-256 digest, runtime metadata, and installed versions from a bounded tracked-package set; a separately recorded model-relevant subset determines which package versions participate in drift comparison. Optional HMAC authentication supports workflows in which the producer and verifier share a secret key. At verification time, the artifact and represented current environment are checked against this recorded evidence before the model is deserialized. Modelstamp is evaluated using 14 controlled environment-drift scenarios, eight controlled trust-boundary scenarios, and an artifact-size scaling benchmark from 10 MiB to 1 GiB. The controlled drift experiments behaved as specified across relevant dependency changes, unchanged environments, and unrelated environmental changes, including broader noise controls. The trust-boundary experiments similarly confirmed both intended detections and expected limitations, including shared-key forgery and replay. Median verification time increased from 0.032 s at 10 MiB to 3.334 s at 1 GiB, with measured throughput of approximately 307-312 MiB/s in the benchmark environment. These results characterize Modelstamp as a complementary pre-deserialization reference-state verification control rather than as a replacement for dependency-management systems, malicious-model detection, safe deserialization, or public publisher authentication.
Problem

Research questions and friction points this paper is trying to address.

machine-learning models
software environment
verification problem
artifact integrity
runtime environment
Innovation

Methods, ideas, or system contributions that make the work stand out.

Pre-Deserialization Verification
Artifact Integrity
Runtime Environment State
SHA-256 Digest
HMAC Authentication
🔎 Similar Papers
💼 Related Jobs
No related jobs found.
A
Anagha Dhekne
Independent Researcher