In cyber-physical systems like autonomous vehicles, smart grids, and robotics, controllers rely on a stream of sensor measurements to estimate the internal state of the system. If an attacker maliciously compromises a subset of these sensors, they can inject false data to mislead the controller.
To defend against such attacks, engineers leverage sensor redundancy. But how much redundancy is enough? The answer lies in a fundamental geometric and information-theoretic boundary: the system can tolerate up to $p$ compromised sensors if and only if it remains observable after removing any $2p$ sensors. This principle is known as $2p$-sparse observability.
The Indistinguishability Problem
To understand why the $2p$ rule arises, we must look at the attacker's objective. An attacker targeting $p$ sensors does not merely want to add random noise; they want to trick the defender into believing the system is in an entirely different, yet physically plausible, state.
As established by Fawzi et al. and Chen et al., the absolute information-theoretic limit for robust state estimation is a 50% corruption rate. If half or more of the sensors are compromised, the adversary can provide data that perfectly mimics an alternative valid trajectory. The defender is then faced with two equally valid, conflicting explanations of the system's behavior, rendering the true state fundamentally unidentifiable.
The Geometry of $2p$-Sparse Observability
To prevent this indistinguishability, the system's physical and architectural configuration must satisfy $2p$-sparse observability. Formally, a system is $2p$-sparse observable if the state can be uniquely reconstructed from any subset of sensors after discarding an arbitrary choice of $2p$ sensors. This requirement has been shown by Shoukry et al. and Teixeira to be a necessary and sufficient condition for unique state reconstruction under $p$ attacks.
We can build intuition for this rule by drawing an analogy to error-correcting codes and Hamming distance, a connection formalized by Mishra et al..
Imagine two distinct system states, $x_1$ and $x_2$. Under normal operation, these two states produce different measurement vectors across the entire sensor array. The "distance" between these states can be thought of as the number of sensors that register a difference between them.
True State x1 ---> [ Sensor 1 ] [ Sensor 2 ] [ Sensor 3 ] [ Sensor 4 ] [ Sensor 5 ]
Differs Differs Differs Differs Differs
False State x2 ---> [ Sensor 1 ] [ Sensor 2 ] [ Sensor 3 ] [ Sensor 4 ] [ Sensor 5 ]
If an attacker controls $p$ sensors, they can manipulate those $p$ outputs to try to bridge the gap, making the true state $x_1$ look like the false state $x_2$.
- If the states differ on fewer than $2p$ sensors: The attacker can easily alter a subset of them to make the remaining clean sensors look consistent with either $x_1$ or $x_2$. The defender cannot distinguish the truth.
- If the system is $2p$-sparse observable: Any two distinct states are guaranteed to produce differing measurements on at least $2p + 1$ sensors. When the attacker corrupts their $p$ sensors, there are still at least $(2p + 1) - p = p + 1$ uncompromised sensors left over that continue to show a discrepancy. This remaining clean majority breaks the symmetry, allowing the defender to isolate the malicious data and uniquely reconstruct the true state.
Bypassing the Combinatorial Explosion
While $2p$-sparse observability guarantees that secure state reconstruction is mathematically possible, finding the solution is computationally difficult. Because the defender does not know which $p$ sensors are compromised, they must search through combinations of sensors to find a consistent subset. This makes the secure state-reconstruction problem NP-hard in the general case.
To make this practical for real-time systems, researchers look for specific system structures that lower the computational burden. Mao et al. and Mitra et al. demonstrated that the complexity is tied directly to the eigenvalues of the system matrix.
If every eigenvalue of the system is monitored by more than $2p$ sensors, the combinatorial search can be bypassed entirely. Specifically, when the geometric multiplicity of each eigenvalue is exactly one, the gap between sparse observability and eigenvalue observability disappears. Under this condition, defenders can use efficient, polynomial-time majority voting mechanisms over the sensor outputs to reconstruct the state, transforming an intractable combinatorial problem into an execution-friendly algorithm.
Generalizing the Redundancy Bound
The core logic of the $2p$ sensor threshold extends across several different dimensions of cyber-physical security:
- Actuator and Sensor Attacks: When an adversary can corrupt both inputs (actuators) and outputs (sensors), the framework expands to sparse strong observability. As proven by Showkatbakhsh et al., the $50\%$ limit remains a strict barrier for sensors (outputs), but the number of tolerable actuator attacks (inputs) is not inherently bounded by half and instead depends on the direct feedthrough properties of the system dynamics.
- Time-Varying Attacks: Attackers do not always target the same devices; they may dynamically switch their targets over time to evade detection. Liu et al. demonstrated that if a system maintains $2p$-sparse observability statically, that redundancy is sufficient to guarantee bounded estimation errors even against an adversary who shifts their attacks across different sensors at each time step.
- Data-Driven Trajectories: When an explicit mathematical model of the system's physics is unavailable, redundancy limits can be evaluated directly from data. Yan et al. showed that the sparse observability condition translates to row-redundancy requirements within offline trajectory matrices, enabling model-free secure reconstruction via convex optimization techniques like $\ell_1$-minimization.