Keyed Chaotic Dynamics for Privacy-Preserving Neural Inference
Peter David Fagan · 2025
Read Keyed Chaotic Dynamics for Privacy-Preserving Neural Inference by Peter David Fagan (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2505-23655.txt.
Introduction
Peter David Fagan introduces, in a 2025 paper, a way to encrypt data inside a neural network so that inference can run without exposing raw inputs. Standard setups handle plain data during setup and prediction, which raises the risk of leaks. They also lack a built-in way to check that an input is genuine.
His method builds key-driven chaotic systems on graphs. Such systems react sharply to their starting state and can warp data in complex, key-dependent ways from simple rules, which suits encryption well. The warp and its reverse both live inside the network itself. Fagan frames the work as a new paradigm for securing neural inference, and as an opening for wider use of graph dynamics in network security.
Catalog record
| CREATOR | Peter David Fagan |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 35 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2505-23655
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Keyed Chaotic Dynamics for Privacy-Preserving Neural Inference Peter David Fagan Abstract Neural network inference typically operates on raw input data, increasing the risk of exposure during preprocessing and inference. Moreover, neural architectures lack efficient built-in mechanisms for directly authenticating input data. This work introduces a novel encryption method for ensuring the security of neural inference. By constructing key-conditioned chaotic graph dynamical systems, we enable the encryption and decryption of real-valued tensors within the neural architecture. The proposed dynamical systems are particularly suited to encryption due to their sensitivity to initial conditions and their capacity to produce complex, key-dependent nonlinear transformations from compact rules. This work establishes a paradigm for securing neural inference and opens new avenues for research on the application of graph dynamical systems in neural network security. 1 Introduction Modern machine learning systems increasingly operate in environments where user privacy, data security, and attribution are critical. Inference pipelines often transmit sensitive user data to hosted models; in these contexts, users must trust that their data are handled securely, and that their contributions are not exposed, misused, or misattributed. Existing approaches to privacy-preserving inference often rely on heavyweight cryptographic methods such as homomorphic encryption [ 1 ] , and secure multi-party computation [ 2 ] which require significant computational overhead or infrastructure changes, limiting their practicality in real-world systems and motivating the need for lightweight, deployable alternatives. To address this gap, we seek a practical solution for securing real-valued tensors during inference—one that supports both data privacy and attribution without disrupting existing model architectures. Ideally, such a solution would act as a cryptographic wrapper for tensors, applied either prior or post inference, without incurring significant computational overhead. This work introduces a framework for constructing chaotic graph dynamical systems and applying them to encrypt and decrypt tensors used in machine learning pipelines, enabling privacy-preserving and traceable manipulation of data representations. Each dynamical system is constructed from a cryptographic key and is represented as a computation graph that can readily be incorporated into existing neural architectures. The main contributions of this work are: • A framework for constructing chaotic graph dynamical systems from cryptographic keys. • A demonstration of the application of chaotic graph dynamical systems for encrypting and decrypting tensors with a focus on inference pipelines. • A discussion of the implications of this paradigm for future research directions in privacy preserving machine learning. This framework bridges ideas from cryptography and dynamical systems offering a new lens on how models and data can interact securely. Unlike traditional cryptographic methods, this approach is architecture-agnostic, low-overhead, and enables per-user control over inference contributions. The following sections outline the approach, initial validation experiments and directions for future work. 2 Background and Related Work 2.1 Cryptography Modern cryptographic systems rely on key-dependent, invertible transformations that enable secure and authorized access to data. These transformations, when combined with additional primitives such as cryptographic hashes and digital signatures, support confidentiality, integrity, and authenticity across a wide range of secure communication protocols [ 3 ] . While most cryptographic methods operate on discrete data (e.g., byte strings), the key ideas — particularly keyed deterministic transforms and collision-resistant signatures — are relevant when designing mechanisms for secure computation in neural systems. Two foundational building blocks in traditional cryptography are symmetric-key encryption and cryptographic hash functions. Symmetric schemes such as AES and HMAC rely on a shared secret key to encrypt or authenticate data, ensuring that only entities with access to the key can reproduce or verify the transformation [ 4 , 5 ] . These methods are computationally efficient and deterministic, but are designed for bitwise or block-level data and require quantization or serialization to operate on high-dimensional tensors. While invertible, they are not natively compatible with neural network pipelines, which often operate on continuous, real-valued representations during inference. Cryptographic hash functions such as SHA-256 offer another relevant abstraction: they produce outputs that are deterministic, sensitive to small input changes, and hard to invert or collide [ 6 ] . However, they map inputs to fixed-length binary strings and do not support inverse gradients, interpolation, or alignment with downstream learning tasks. The method introduced in this work draws inspiration from these primitives but is fundamentally distinct: it operates in continuous space and supports tensor-valued inputs. By using keys to construct graph dynamical systems that encrypt tensors, the method introduces cryptographically inspired properties, such as key-dependent transformation and input sensitivity, while remaining lightweight and compatible with standard model architectures. 2.2 Privacy-Preserving Inference As machine learning systems become increasingly deployed in real-world, cloud-based, and client-server settings, privacy-preserving inference has emerged as a critical area of research. In many applications, users transmit sensitive data, such as biometrics, medical signals, personal text, or proprietary feature representations, to centralized models for inference. This has raised concerns not only about data exposure, but also about the reusability, traceability, and control of these contributions once they enter the inference pipeline. A number of approaches have been proposed to mitigate these risks, but each carries substantial trade-offs in performance, infrastructure complexity, or applicability. Techniques such as homomorphic encryption (HE) [ 1 ] allow models to perform inference directly on encrypted data, preserving confidentiality without revealing inputs to the model host. However, HE-based approaches are often computationally intensive and have orders of magnitude slower model inference, limiting their deployment to narrow use cases. Similarly, secure multi-party computation (SMPC) distributes computation across parties such that no individual party has full access to the data, but these methods typically require multiple rounds of communication, synchronized computation, and significant coordination overhead [ 2 ] . Other approaches focus on statistical privacy. For example, differential privacy (DP) introduces controlled noise into model training or inference pipelines to mask individual contributions [ 7 ] . While DP offers formal privacy guarantees, it is stochastic, lossy, and often difficult to apply meaningfully in one-off inference scenarios. Lastly, training-time watermarking techniques embed identifiable signatures into the model’s parameters during training, enabling ownership verification or post hoc misuse detection [ 8 ] . However, these methods are typically static, global, and tied to the model itself—making them difficult to extend to per-user or inference-time watermarking, and often requiring access to the model weights. The approach introduced in this work departs from these paradigms. Rather than encrypting the model or introducing noise, it applies deterministic, key-conditioned transformations to tensors prior or post inference. These transformations are derived from chaotic dynamical systems, producing outputs that are key-specific, structurally transformed, and task-compatible (i.e., preserving shape and structure for downstream model compatibility). While the masking operation is algebraically reversible by the key holder (e.g. via replaying forward dynamics and performing subtraction), it requires a key as with traditional encryption methods like AES. As a result, the overall transformation remains opaque to unauthorized parties. The chaotic nature of the transformation ensures exponential sensitivity to small changes in initial state or key, rendering inversion impractical without full system knowledge—even though the transformation is technically deterministic. This enables lightweight, key-authenticated inference, where only correctly transformed inputs yield meaningful results, and offers tensor-level control over privacy, traceability, and secure data contribution—without requiring architectural changes or incurring the computational costs of conventional cryptographic methods. 2.3 Chaotic Dynamical System Chaotic dynamical systems are processes that