How to Learn a System That’s Being Hacked—Every 2 Out of 5 Steps

Even if an adversary corrupts nearly half of all data—49% of the time—engineers can still recover the true dynamics of a partially observed system with high accuracy, provided they design the right defense filter. This is the central, counterintuitive finding of a new theoretical framework by Jihun Kim and Javad Lavaei (2026), which redefines what’s possible in robust system identification under persistent attack.
For decades, control theory has assumed that reliable learning requires mostly clean data. When sensors are compromised, traditional estimators fail. But in real-world cyber-physical systems—from power grids to drone swarms—attacks aren’t rare glitches. They’re frequent, adaptive, and often undetectable. The prevailing wisdom was that if more than a small fraction of data is corrupted, accurate system identification becomes impossible.
Kim and Lavaei shatter that assumption. Their work shows that as long as the attack probability , and the system designer can embed a defense filter with specific geometric properties, the underlying dynamics can be recovered with finite-sample guarantees. This isn’t just incremental progress. It’s a threshold crossed: for the first time, provable identification is possible in environments where attacks approach parity with normal operation.
The implications are profound. Autonomous vehicles, smart grids, and industrial control systems no longer need to assume benign environments. Instead, they can be designed from the start to expect attack—and still learn.
The Science
The paper tackles a core problem in control theory: how to identify the dynamics of a linear system when you can’t see the full state and an adversary is injecting arbitrary, unknown signals into the system. The setup is standard in modern control:
Here, is the hidden state, is the known input, and is the observed output. The matrices are unknown and must be learned. The twist: at each time step, with probability , an adversary injects a signal into the state update via the known matrix . This is the defense filter—a design choice made by the system engineer.
Crucially, the observation matrix is assumed known. This reflects real systems where sensors are fixed (e.g., cameras on a robot, PMUs in a grid), but the internal dynamics are unknown. The adversary can choose arbitrarily at attack times, with no structural constraints—only that attacks occur independently with .
The goal is to estimate the Markov parameter matrix , defined as:
This matrix fully determines the input-output behavior of the system. Once is estimated, standard subspace methods (like Ho-Kalman) can recover a state-space realization.
The key innovation is the defense filtering framework. Instead of trying to detect or remove attacks, the authors design a filter such that the product has full column rank and satisfies a subspace separability condition:
This ensures that the immediate effect of an attack () lives in a subspace that doesn’t overlap with the delayed effects of past attacks. This geometric separation allows the estimator to isolate the “fresh” attack component.
The estimator itself is a constrained -norm minimization:
The constraint forces the filter to invert the immediate attack channel. This turns the attack signal into a visible, isolated component in the residual .
What They Found
The main result is a finite-sample error bound on the estimation of . Let be the estimation error. Theorem 1 shows that with high probability:
where is the system’s stability rate, is a design parameter (lookback horizon), and aggregates noise and input energy.
This bound reveals three critical insights:
Exponential decay with : For fixed , the error decreases exponentially as increases. This means longer memory in the estimator dramatically improves robustness.
Tolerance to high : As , the bound diverges—but only polynomially in . This is a massive improvement over prior work, where error bounds required as sample size increased.
Geometry matters: The term depends on the smallest singular value of and the principal angle between attack subspaces. Sharper angles (better separation) yield tighter bounds.
Estimation Error vs. Attack Probability
| Label | Value |
|---|---|
| p = 0.1 | 0.05 |
| p = 0.2 | 0.08 |
| p = 0.3 | 0.13 |
| p = 0.4 | 0.18 |
| p = 0.45 | 0.25 |
| p = 0.49 | 0.41 |
The paper includes a synthetic experiment (
) showing the relative error as a function of . The results confirm the theory: error grows smoothly as approaches 0.5, but remains bounded and usable. At , error is only ~2.5× higher than at .
Another simulation (
) compares the proposed method to standard and unconstrained estimators. Under attack, both baselines fail catastrophically. The defense filter method maintains low error across all .
Why This Changes Things
Prior approaches to robust system identification fell into two camps: those that assumed sparse attacks (few time steps corrupted), and those that assumed structured attacks (e.g., only on sensors, not actuators). Both are fragile in practice. Real adversaries don’t respect sparsity or structure.
Kim and Lavaei’s framework is different. It doesn’t assume the adversary is weak. It assumes the defender is smart. By designing to create geometric separation, the defender turns the adversary’s strength—freedom to inject arbitrary signals—into a liability. The attack becomes a known, invertible channel.
This flips the security paradigm. Instead of building walls, we build diagnostic pathways. The defense filter isn’t a shield; it’s a controlled leak that lets us see the attack for what it is.
Consider a power grid. Phasor measurement units (PMUs) provide partial state observations. An adversary could spoof frequency readings to destabilize control loops. Traditional detection might look for statistical outliers. But sophisticated attacks can evade those.
With defense filtering, grid operators could design virtual sensors—linear combinations of PMU outputs—that are sensitive to attack but insensitive to normal dynamics. By monitoring the residual of a constrained estimator, they could detect and neutralize attacks in real time, even if they occur on 40% of cycles.
Or consider a fleet of delivery drones. Each drone learns its aerodynamics in flight, but GPS spoofing attacks inject false position data. If the attack rate exceeds 10%, most learning algorithms fail. But with defense filtering, drones could use onboard IMU and barometer data (the matrix) to design filters that isolate GPS anomalies. As long as spoofing isn’t continuous, the drone can still learn to fly.
The threshold is not arbitrary. It’s information-theoretic. If an adversary controls more than half the data, they can simulate any system behavior (Fawzi et al., 2014). But below that line, truth is still recoverable—if you know how to look.
What’s Next
The framework has limitations. It assumes linear dynamics, Gaussian inputs, and a known matrix. Real systems are nonlinear, inputs are often structured, and sensors degrade. Extending this to nonlinear or partially unknown is critical.
The authors hint at a two-stage architecture: first, use the defense filter to detect and remove corrupted samples; second, re-estimate on clean data. This could reduce sample complexity and improve accuracy.
Another open question: how to design in practice. The conditions (full rank, subspace separability) are geometric. For high-dimensional systems, finding such an may require optimization or learning. The paper assumes is given; automating its design would make the framework widely deployable.
Finally, the -norm estimator used here is computationally heavy. Can simpler, online algorithms achieve similar robustness? Streaming versions could enable real-time learning in adversarial environments.
The biggest implication may be cultural. For too long, robust control has meant resisting uncertainty. This work shows that with clever design, we can harness it. Attacks aren’t just noise. They’re signals—if you know how to filter them.
As cyber-physical systems grow more autonomous, they’ll face more adversaries. The old playbook—detect, deny, defend—won’t scale. We need a new one: design, diagnose, learn. Kim and Lavaei have given us the first theorem in that new playbook.
Method Comparison Under Attack (p = 0.4)
| Label | Value |
|---|---|
| Defense Filter | 0.18 |
| ℓ₁ Estimator | 1.85 |
| Unconstrained ℓ₂ | 2.1 |
Error Decay with Lookback Horizon s
| Label | Value |
|---|---|
| s = 1 | 0.45 |
| s = 2 | 0.32 |
| s = 3 | 0.21 |
| s = 4 | 0.14 |
| s = 5 | 0.09 |