A large family of encryption schemes replaces number theory with chaos: the sender iterates a simple nonlinear map, seeded with a secret floating-point starting condition and secret tuning parameters, and uses the resulting orbit to scramble pixels or keystream bits. Breaking these schemes today means one of two things. Either you hand-craft a statistical test tailored to one specific map — possible for the logistic map $f(x)=4x(1-x)$, whose orbits follow a known U-shaped distribution, and nothing else — or you train a black-box image-restoration network that mimics decryption without ever learning the key, so it must be retrained from scratch for every new key. Neither recovers the secret itself in a general way.
This proposal attacks that gap with a tool from an unrelated corner of dynamics. The Koopman approach says: any nonlinear dynamical system, however tangled in its raw coordinates, becomes linear if you watch it through the right collection of measurement functions. A Koopman autoencoder — an encoder network that maps states into a hidden coordinate system, a single linear matrix that evolves those hidden coordinates forward, and a decoder back — learns such a coordinate system from data. Our claim is that for chaotic ciphers, the secret parameters live in inspectable places inside this learned linear structure: the secret initial condition determines the hidden coordinates of the first observed state, and the secret control parameters shift the eigenvalues of the learned transition matrix. Train the autoencoder on orbit data leaked by the cipher, then read the key off the spectrum. The same architecture, pointed at modular exponentiation, doubles as a controlled experiment on whether imposing linear latent structure changes what gradient descent can learn about the discrete logarithm — a question the literature poses but has never tested.
What Exists Already, and What Does Not
Two papers establish that eigenvalues can carry secrets. Koopman interpretation and analysis of a public-key cryptosystem: Diffie-Hellman key exchange recasts Diffie-Hellman modular multiplication as a dynamical system and lifts it, with hand-chosen Fourier observables, into an exactly linear system whose eigenvalue phases encode the secret exponent; it proves the minimal lifting dimension is $(p-1)/2$. Decrypting Nonlinearity: Koopman Interpretation and Analysis of Cryptosystems extends this to RSA and demonstrates 100% secret reconstruction for primes up to $p = 31{,}607$ — but at the cost of 3,561 seconds for that single instance, and with the honest admission that the $(p-1)/2$ matrix makes real 2048-bit keys permanently out of reach. Both papers supply the conceptual bridge (secrets appear as eigenvalue phases) and supply the negative result that constrains us: exact, analytical lifting does not scale. Neither evaluates learned, approximate, low-dimensional operators, and neither touches chaotic ciphers.
On the dynamics side, three papers supply reusable machinery. Deep learning for universal linear embeddings of nonlinear dynamics contributes the autoencoder architecture and, crucially, an auxiliary network that lets eigenvalues vary continuously with the state — reaching mean-squared errors of $10^{-6}$ to $10^{-7}$ on physical benchmarks — but it has only ever been applied to smooth mechanical systems, never to cryptographic dynamics. Forecasting Sequential Data Using Consistent Koopman Autoencoders contributes forward-backward consistency penalties that push learned eigenvalues onto the unit circle and stop long-horizon divergence — exactly the regularization a chaotic orbit, which neither grows nor decays, needs. On the Generalisation of Koopman Representations for Chaotic System Control is the feasibility proof: it embeds the chaotic Lorenz attractor in a 32-dimensional latent space with a structured operator (a diagonal part for growth and decay plus a banded skew-symmetric part for rotation), reaching $R^2 = 0.991$ on downstream prediction — but it never attempts inversion or parameter recovery. Finally, Cryptanalyzing image encryption using chaotic logistic map and A deep learning based known plaintext attack method for chaotic cryptosystem define the two competing attack styles we must beat, and Intractability of Learning the Discrete Logarithm with Gradient-Based Methods sets the theoretical tripwire for the modular experiment.
Core Claim
The claim, stated so it can fail: for a chaotic cipher whose keystream is an observed function of a secret-parameterized map $f_\alpha$ with secret initial condition $x_0$, a Koopman autoencoder trained on orbit segments can recover both $\alpha$ and $x_0$ exactly — $\alpha$ by regressing it from the eigenvalues of the learned operator $A$, and $x_0$ by inverting the encoder on the learned latent initial state — and this recovery works on hybrid and higher-dimensional maps where no closed-form invariant density exists, which is precisely where the strongest existing statistical attack Cryptanalyzing image encryption using chaotic logistic map has no applicable analogue.
One honest caveat shapes the design. Chaotic maps are mixing, which in operator terms means they have continuous spectra: no exact finite-dimensional linear representation exists, in the same way that Diffie-Hellman has none below dimension $(p-1)/2$. The bet is not exactness of the representation but persistence of the signal: that a low-dimensional approximate embedding, of the kind On the Generalisation of Koopman Representations for Chaotic System Control shows exists for Lorenz, keeps enough parameter-dependent spectral structure for key recovery. Testing that bet is the scientific content of the proposal.
Research Program
We build three components. First, a trajectory extractor: under a chosen-plaintext or known-plaintext threat model, ciphertext statistics reveal segments of the orbit (or a fixed invertible function of it), the same leakage assumption under which both Cryptanalyzing image encryption using chaotic logistic map and A deep learning based known plaintext attack method for chaotic cryptosystem operate. Second, the autoencoder: encoder $\psi$, decoder $\psi^{-1}$, and an operator $A$ structured as a diagonal plus banded skew-symmetric matrix (the construction of On the Generalisation of Koopman Representations for Chaotic System Control), trained with forward-backward consistency penalties from Forecasting Sequential Data Using Consistent Koopman Autoencoders to hold eigenvalues near the unit circle. Third, the read-out: a small regression head $g$ mapping the eigenvalues $\hat{\mu}_1,\dots,\hat{\mu}_d$ of $A$ to $\hat{\alpha}$, plus a latent inversion for $x_0$.
The training loss combines a linear-consistency term with reconstruction and consistency penalties:
$$\mathcal{L} = \sum_t \|\psi(x_{t+1}) - A\,\psi(x_t)\|^2 + \sum_t \|\psi^{-1}(\psi(x_t)) - x_t\|^2 + \lambda\,\mathcal{L}_{\mathrm{fb}},$$
where $\mathcal{L}_{\mathrm{fb}}$ penalizes disagreement between the forward operator and its trained backward counterpart, following Forecasting Sequential Data Using Consistent Koopman Autoencoders. Recovery is then two cheap steps: $\hat{\alpha} = g(\hat{\mu}_1, \dots, \hat{\mu}_d)$, and $\hat{x}_0 = \arg\min_x \|\psi(x) - \hat{z}_0\|$ where $\hat{z}_0$ is the latent encoding of the first observed state propagated backward through $A$. The decisive property is that after training, a new key on the same cipher family requires only this linear-algebra read-out, not retraining — the exact opposite of the per-key image-translation attack.
The theoretical arm has two targets. One is a local identifiability result: conditions on the family $f_\alpha$ under which the map from $\alpha$ to the dominant spectrum of the Koopman operator is injective in a neighborhood, so the regression head is well-posed. The second targets the modular experiment described below: an analysis of the gradient variance of the consistency term $\|\psi(x_{t+1}) - A\psi(x_t)\|^2$ on trajectories of $x_{k+1} = m x_k \bmod p$, to be compared against the end-to-end bound of $O(d(w)^2 \ln p / \sqrt{p})$ proved for ordinary classification losses in Intractability of Learning the Discrete Logarithm with Gradient-Based Methods.
Baselines
The do-nothing reference point is exhaustive search over the floating-point key space, which for the Patidar logistic-map scheme is $O(2^{48} \cdot L)$ before any cryptanalysis, as characterized in Cryptanalyzing image encryption using chaotic logistic map. Any attack must beat this trivially, and it calibrates how much work each method actually saves.
The strongest existing competitor is the invariant-density chosen-plaintext attack of Cryptanalyzing image encryption using chaotic logistic map, which uses the logistic map's U-shaped orbit distribution and a recurrence test to cut the search from $O(2^{48} \cdot L)$ to $O(2^{36})$ and recover exact floating-point keys in approximately 11 minutes on a 2.83 GHz machine with 3 GB of RAM. It is the strongest because it is the only method in the literature that achieves exact key recovery on a chaotic cipher. We will reimplement it and run it on identical instances of the Patidar scheme with the same plaintext corpus and the same wall-clock budget, so the head-to-head is clean. On the hybrid and Lorenz-based systems, where no closed-form invariant density exists, we will run the closest fair analogue — empirical distribution matching plus the same recurrence filter — rather than declare victory by absence. Beating this baseline means matching its exactness and time on the logistic scheme, and succeeding where it structurally cannot.
The black-box competitor is the known-plaintext U-Net attack of A deep learning based known plaintext attack method for chaotic cryptosystem, which reports 99.15% testing correlation on logistic-encrypted MNIST and 95.70% on hybrid-chaotic-map-encrypted CIFAR-10 after 200 epochs. We will train it on our identical datasets with the same epoch budget and sample counts. Note the metric mismatch: it reports image-restoration correlation, not key recovery, and cannot produce the latter at any budget; we therefore report both decryption correlation and key-recovery rate for every method, so the comparison is fair on each axis separately.
Two ablations isolate our key ingredient. The first removes the linearity constraint: the same encoder-decoder trained without the operator $A$ and consistency loss, i.e. a plain autoencoder, tested on the same recovery tasks. The second swaps the learned encoder for a fixed dictionary of Fourier and delay observables with Extended Dynamic Mode Decomposition regression, the non-learning route that Koopman interpretation and analysis of a public-key cryptosystem: Diffie-Hellman key exchange uses for its data-driven variant. If the fixed dictionary matches the learned encoder, the neural machinery is not earning its place and we will say so.
Why not just…?
Why not just use the statistical invariant-density attack? Because it is bespoke to a single map. The $\Delta_k$ recurrence test of Cryptanalyzing image encryption using chaotic logistic map depends on the closed-form U-shaped density of $f(x)=4x(1-x)$; for the Logistic-Sine-Chebyshev hybrid cipher evaluated in A deep learning based known plaintext attack method for chaotic cryptosystem, and a fortiori for a Lorenz-based cipher, no analytical density is known and the method has no defined procedure. Our first experiment includes running the empirical-density analogue on the hybrid cipher precisely to demonstrate this limit empirically rather than by assertion. That said, if the analogue somehow succeeds on all our systems, the proposal's motivation collapses, and that experiment is designed to reveal it early.
Why not just train a black-box U-Net or Transformer end to end? Two reasons grounded in the file. First, black-box restoration recovers no key: the U-Net of A deep learning based known plaintext attack method for chaotic cryptosystem acts as an "equivalent key" bound to its training pairs and must be retrained per key, while our read-out is per-instance linear algebra on a trained operator. Second, for modular arithmetic specifically, end-to-end gradient learning provably stalls: Intractability of Learning the Discrete Logarithm with Gradient-Based Methods shows the gradient variance shrinks as $O(d(w)^2 \ln p / \sqrt{p})$, so backpropagation extracts essentially no information even about one parity bit. The one counterexample in the file, SALSA: Attacking Lattice Cryptography with Transformers, works only at small modulus ($q \approx 251$) with sparse binary secrets and tops out at dimension $n=128$, where prior machine-learning attacks had stalled at $n=20$. Our linearity-ablation directly tests whether the structured latent loss is what matters: if the plain autoencoder recovers keys as well as the Koopman one, the reviewers win and the constraint is dead weight.
Why not just run Extended Dynamic Mode Decomposition with a hand-picked dictionary? EDMD, as used in Koopman interpretation and analysis of a public-key cryptosystem: Diffie-Hellman key exchange, needs the observables chosen in advance. For the logistic map the right choice (Fourier-type unit-circle observables) is known from Decrypting Nonlinearity: Koopman Interpretation and Analysis of Cryptosystems; for hybrid and higher-dimensional maps nobody knows it, and a wrong dictionary quietly fails. The learned encoder is exactly the mechanism for discovering the dictionary, and the EDMD ablation above will tell us whether discovery is actually needed on each system.
Why not attack real Diffie-Hellman or RSA instead? Because we would lose, and the literature already concedes it. Classical algorithms solve discrete logarithms in $O(\sqrt{p})$ group operations, while diagonalizing the $(p-1)/2$-dimensional exact Koopman matrix costs $O(p^3)$ — and Koopman interpretation and analysis of a public-key cryptosystem: Diffie-Hellman key exchange itself presents its result as a systems-theoretic explanation of intractability, not a practical attack. We keep modular systems only as a measurement target (below), not an attack claim.
Proposed Experiments
Experiment 1 is the head-to-head on the Patidar 2009 logistic-map scheme, replicating the setting of Cryptanalyzing image encryption using chaotic logistic map. Metrics: exact bit-level key-recovery rate for $(x_0, y_0)$ and wall-clock time. The bar is the reported 11-minute exact recovery after reduction to $O(2^{36})$; success means matching exactness within an order of magnitude in time while using only orbit data, no hand-crafted density.
Experiment 2 moves to the hybrid and image benchmarks of A deep learning based known plaintext attack method for chaotic cryptosystem: MNIST under the 1D logistic map and CIFAR-10 under the Logistic-Sine-Chebyshev hybrid, with the U-Net's reported 99.15% and 95.70% restoration correlations as the decryption-quality reference points. We report key-recovery rate (no baseline can produce this number) and post-recovery decryption correlation on the same split. The decisive check is the empirical-density analogue of the Li-style attack on the hybrid cipher: if it also recovers keys, our generalization claim is wrong.
Experiment 3 constructs a Lorenz-based synthetic cipher, using the 32-dimensional structured-operator design of On the Generalisation of Koopman Representations for Chaotic System Control as the methodological seed, and measures key-recovery rate as a function of latent dimension, orbit length, and constraint set. The ablation matrix (no linearity, no unit-circle penalty, fixed dictionary) runs here with full tuning budget parity. We expect the unconstrained operator to diverge over long horizons, per the eigenvalue-drift failure documented in Forecasting Sequential Data Using Consistent Koopman Autoencoders.
Experiment 4 is the modular stress test, framed as measurement. We train the same architecture on trajectories of $x_{k+1} = m x_k \bmod p$ for primes up to the scale where Decrypting Nonlinearity: Koopman Interpretation and Analysis of Cryptosystems reports 3,561 seconds for exact reconstruction at $p = 31{,}607$, but with latent dimension far below $(p-1)/2$. We measure two things: how many leading bits of the eigenvalue angle (hence of the secret exponent) an approximate low-dimensional embedding preserves — the open question both Koopman-cryptanalysis papers leave open — and the empirical gradient variance of the consistency loss versus the $O(d(w)^2 \ln p / \sqrt{p})$ end-to-end bound of Intractability of Learning the Discrete Logarithm with Gradient-Based Methods. Either outcome is publishable: a slower variance decay would show that structured latents partially evade the information bottleneck and would connect to the "Aha!"-moment evidence in SALSA: Attacking Lattice Cryptography with Transformers; a matching decay would be the first empirical confirmation that the bottleneck survives even structured objectives.
The program is deliberately falsifiable at three points: the identifiability theorem could fail for hybrid families, the linearity ablation could erase our advantage, and the statistical baseline could generalize further than the literature suggests. Each failure mode has an experiment placed in front of it.
References
- Koopman interpretation and analysis of a public-key cryptosystem: Diffie-Hellman key exchange
- Decrypting nonlinearity: Koopman interpretation and analysis of cryptosystems
- Deep learning for universal linear embeddings of nonlinear dynamics
- Forecasting Sequential Data Using Consistent Koopman Autoencoders
- On the Generalisation of Koopman Representations for Chaotic System Control
- Cryptanalyzing image encryption using chaotic logistic map
- A deep learning based known plaintext attack method for chaotic cryptosystem
- Intractability of Learning the Discrete Logarithm with Gradient-Based Methods
- SALSA: Attacking Lattice Cryptography with Transformers