arXiv:2608.25738cs.CRAug 2026

Manuscript Offprint

arXiv:2608.25738

MeMark: Membrane-Space Watermarking for Spiking Neural Networks

Roberto Riaño, Gorka Abad, Stjepan Picek, Aitor Urbieta

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Spiking Neural Networks (SNNs) are increasingly distributed as pretrained checkpoints and reused as backbones for new tasks. However, current SNN watermarks are mainly verified against the model output. Thus, a user who replaces the output head can keep most of the original network while removing the evidence used for verification. We present MeMark, a watermark designed for the checkpoint-reuse setting. Instead of storing the watermark in the output head, MeMark embeds a multi-bit identifier in the internal membrane state of selected Leaky Integrate-and-Fire (LIF) neurons. A secret input drives each selected neuron to the chosen side of its own firing threshold, and the same threshold is later used to recover the secret bit, so the verifier does not need a learned decoder. We evaluate MeMark across recurrent, convolutional, residual, and transformer SNNs. On a 215.4M-parameter SpikeGPT checkpoint, all 20 independent 64-bit keys pass the fixed 51/64 verification rule, while none of the 30 000 fresh random keys pass when tested against all 20 protected checkpoints and the clean model. All 20 genuine keys also remain above the threshold after fine-tuning, 90% pruning, int8 quantization, and output-head replacement. Under our stated threat model, adaptive attacks can weaken the watermark but do not remove the ownership evidence in the settings we test. Additionally, we study false ownership claims, key-aware and key-agnostic removal, partial key disclosure, rollback, and extraction into a student. The results show that MeMark can provide evidence of checkpoint derivatives, while being resistant to the adversary's attacks and complete head replacement. All our code and results are available at our repository.

1 Introduction

Deep Neural Networks (DNNs) have achieved excellent performance in many machine learning tasks, including computer vision, speech recognition, and natural language processing [11, 7, 2]. However, training high-performance DNNs is computationally expensive and requires large datasets, specialized hardware, and long optimization times, resulting in substantial investment and energy consumption. This has motivated researchers to explore alternative models that can provide similar capabilities with lower energy consumption.

Spiking Neural Networks (SNNs) are one of the main approaches that are being explored [26, 3]. Unlike conventional DNNs, SNNs communicate through spikes over time and remain inactive when they do not produce an output. Their event-driven behavior reduces unnecessary computation and makes SNNs attractive for low-power systems, achieving up to 12.2×12.2\times better compute energy efficiency than comparable DNNs [12]. Additionally, in recent years, SNNs have improved considerably in model size and performance. Spiking-YOLO showed that SNNs can be used for energy-efficient object detection [10], while residual architectures made it possible to train deeper spiking models [5]. More recent work introduced transformer-based SNNs such as Spikeformer [34], QK-Former [33], and SpikeGPT [35], demonstrating that models can be scaled to 216M-parameter generative language models. Still, training such models, like their traditional counterparts, can require considerable data, computation, and engineering effort.

This makes the trained model an important asset to protect. Once a checkpoint is released, another user can copy the weights, fine-tune the model, replace part of the network, or reuse the backbone of the model for another task. Model watermarking provides a way to protect the models by embedding information that can be later verified in a suspect model. In traditional DNNs, watermarks have been embedded in their weights, internal activations, learned representations, and trigger-dependent outputs [28, 23, 1, 17, 24].

However, only a few works have considered watermarking for SNNs. Poursiami et al. [22] proposed ownership protection for neuromorphic models to require authorization for their use, while SpikeTimer [31] embeds a temporal response that can be verified from the model's output. Output verification is useful when the owner has black-box access to the suspect model. However, it is not suitable when an SNN is reused as a backbone. Indeed, replacing the final task-specific layers can completely remove the output watermark while leaving most of the original model unchanged.

In this work, we introduce MeMark, a multi-bit water-mark designed to remain inside the spiking computation even when the output head is replaced. MeMark uses the membrane potentials of the spiking neurons to embed the watermark. We assign each watermark bit to a secret layer, neuron, and timestep, making use of their internal firing thresholds as the decoding method. Then, we train the corresponding membrane potential to lie on the required side of that neuron's threshold when the secret input is present. During verification, the owner of the model can present the same secret input and read the selected states, checking each bit of the response.

We use the membrane information in two different ways. The first is a hard read that checks only which side of the threshold the neuron reaches at that timestep, and since the threshold is already part of the neuron, it does not require a learned decoder. The second keeps the distance from the membrane potential to the threshold and uses it as a confidence score. This distance is also useful during the embedding phase, as it provides a training signal before the spike changes. Additionally, MeMark can train an optional output response for cases where the verifier cannot inspect the internal states. We keep this output carrier as an alternative verification interface, but it is expected to disappear if the output head is completely replaced. Unlike output-based SNN watermarks, the primary MeMark response remains in the backbone even after the output head is replaced. Compared to our matched DICTION [1] adaptation, MeMark obtains the same on-challenge recovery and comparable fidelity, but does not store a learned projection and reveals less payload information when the challenge is absent.

However, obtaining the correct watermark response is not enough to prove ownership. A claimant with white-box access can inspect a model and craft a new key by choosing coordinates and bit values that already match its internal states. Similar ambiguity and false-ownership attacks have been identified for DNN watermarking [4, 16]. We evaluate this case and show that a fitted key can pass the model-level rule. Therefore, before releasing the protected checkpoint, the owner must also publish a timestamped commitment that links the key, owner, release, and the specific checkpoint hash. The watermark shows that the suspect model contains the registered response, while the commitment demonstrates that the key was fixed before the claim.

We evaluate MeMark on recurrent, convolutional, residual, and transformer SNN architectures. Our largest experiment embeds 20 independent 64-bit keys in a 215.4M-parameter SpikeGPT checkpoint, and evaluates the verification rule using 30 000 random keys. We study the hard membrane read, membrane-distance score, and the optional output carrier under head replacement, fine-tuning, pruning, quantization, SNN-specific modifications, structural changes, adaptive removal, rollback, partial key disclosure, and extraction. For attacks that modify the checkpoint, we also report the effect on normal task performance.

Our main contributions are as follows:

  • We introduce MeMark, a challenge-response watermark that embeds a multi-bit identifier in secret LIF states and supports both hard threshold and continuous membrane-distance verification without a learned internal decoder.

  • We include an optional output carrier for query-only verification and a timestamped release commitment that prevents a key fitted after model inspection from being considered as prior ownership evidence.

  • We evaluate MeMark across eight SNN testbeds, including 20 independent embeddings in a 215.4M-parameter SpikeGPT checkpoint and 30 000 random keys, under checkpoint reuse and several adaptive and model-modification attacks. We also compare to previous watermarking methods, adapt DNN watermarking techniques, and re-implement Poursiami et al. [22] as an SNN-specific baseline. The comparison shows that MeMark keeps the internal evidence when the output-based SNN watermarks are removed, while avoiding the learned projection used by prior DNN activation-based watermarks.

References (33)