Cycle-Space Informed Detection of Autoencoded Blind False Data Injection Attacks on Power Systems
Summary
This paper proposes a Cycle-Space Detector (CSD) for detecting blind false data injection attacks on power systems, where an autoencoder generates stealthy perturbations aligned with the measurement Jacobian null space. The CSD uses topology-derived cycle constraints to improve detection without requiring precise line parameters.
View Cached Full Text
Cached at: 05/29/26, 09:13 AM
# Cycle-Space Informed Detection of Autoencoded Blind False Data Injection Attacks on Power Systems
Source: [https://arxiv.org/html/2605.28912](https://arxiv.org/html/2605.28912)
Xin Li1,Chenhan Xiao2,Jonathan Cohen1,Aviad Elyashar34,Yang Weng2,Rami Puzis14 Faculty of Computer and Information Science, Ben\-Gurion\-University, Be’er Sheva, Israel
###### Abstract
The rapid growth of AI\-driven data centers and large\-scale energy storage systems is increasing the reliance of power system operation on real\-time measurement data and automated decision\-making\. However, many existing detection methods rely on statistical or data\-driven analysis of measurements and can fail when attackers exploit the same data structure to craft stealthy perturbations\. To illustrate this limitation, we demonstrate a blindFalse Data Injection Attack\(FDIA\) in which an autoencoder learns the measurement manifold and generates perturbations aligned with the Jacobian null space, thereby allowing the attack to evade both residual\-based bad\-data detectors and time\-series anomaly detectors\. To mitigate data\-driven FDIAs which exploit the null space, we propose a topology\-informedCycle\-Space Detector\(CSD\) that leverages the Cycle\-Space of the network to impose structural constraints that enhance null space estimation\. In addition, we prove that by using theMinimum Cycle Basis\(MCB\), the proposedCSDachieves the optimal generalization error for attack detection\. By exploiting topology\-derived cycle constraints rather than relying solely on numerical null space estimation, the proposed method does not require precise line parameters and improves the separation between normal and attacked measurements\. Simulation results on IEEE 14\-, 30\-, 57\-, and 118\-bus systems demonstrate that the proposed method effectively detects data\-driven FDIAs under realistic measurement noise\.
## IIntroduction
Modern power system operation increasingly relies on real\-time measurement data, especially with the rapid growth of AI\-driven data centers and large\-scale energy storage systems\[[29](https://arxiv.org/html/2605.28912#bib.bib28)\]\. However, integrating cyber infrastructure also introduces new vulnerabilities into power systems\. Recent reports show that cyberattacks targeting energy infrastructure are rapidly increasing, with attacks on U\.S\. utilities rising by nearly 70% between 2023 and 2024\[[10](https://arxiv.org/html/2605.28912#bib.bib45)\]\. At the same time, emerging grid assets, such as utility\-scale battery energy storage systems, are becoming new potential targets for cyber intrusions\[[21](https://arxiv.org/html/2605.28912#bib.bib46)\]\. These risks are particularly significant as more grid data is processed through cloud platforms and third\-party services\[[27](https://arxiv.org/html/2605.28912#bib.bib25)\]\. Notably, a recent cyberattack on the Polish power grid highlighted the stealth and sophistication of such threats\[[8](https://arxiv.org/html/2605.28912#bib.bib48)\]\.
One common attack is the false data injection attack \(FDIA\), which manipulates measurement data used in state estimation\. Carefully constructed FDIAs exploit the null space of the measurement Jacobian to bypass traditional bad data detectors \(BDDs\)\. This allows attackers to alter estimated system states without triggering residual\-based alarms\[[22](https://arxiv.org/html/2605.28912#bib.bib36)\]\. For example, successful attacks can mislead system operators and lead to severe operational consequences, such as cascading outages\[[14](https://arxiv.org/html/2605.28912#bib.bib5)\], transmission congestion\[[25](https://arxiv.org/html/2605.28912#bib.bib6)\], and economic disruption\[[26](https://arxiv.org/html/2605.28912#bib.bib24)\]\.
Early research on FDIA primarily focused on model\-based attacks, in which adversaries assume knowledge of system parameters, such as network topology and line admittances\. Under this assumption, adversaries can construct attack vectors aligned with the column space of the measurement Jacobian, preserving residual statistics and evading BDD\-based detection\[[22](https://arxiv.org/html/2605.28912#bib.bib36)\]\. Subsequent work investigated techniques for reconstructing system information from measurements to relax the assumption of full model knowledge\. These methods include Independent Component Analysis \(ICA\)\[[9](https://arxiv.org/html/2605.28912#bib.bib10)\], Principal Component Analysis \(PCA\)\[[35](https://arxiv.org/html/2605.28912#bib.bib41),[3](https://arxiv.org/html/2605.28912#bib.bib12)\], and low\-rank matrix factorization\[[34](https://arxiv.org/html/2605.28912#bib.bib42)\], which attempt to estimate the Jacobian structure from historical measurements\.
More recent studies have explored data\-driven approaches for constructing blind FDIAs that do not require explicit knowledge of system parameters\. This shift is motivated by the limited accessibility of physical system information: grid operators increasingly restrict access to sensitive infrastructure data\[[2](https://arxiv.org/html/2605.28912#bib.bib8)\], and in practice, even system operators may lack accurate and up\-to\-date system models due to evolving infrastructure, third\-party assets, and infrequent model updates\[[6](https://arxiv.org/html/2605.28912#bib.bib9),[27](https://arxiv.org/html/2605.28912#bib.bib25)\]\. To address these limitations, blind FDIA methods attempt to infer system structure directly from measurements\. Examples include eigenvalue\-based matrix reconstruction\[[33](https://arxiv.org/html/2605.28912#bib.bib16),[17](https://arxiv.org/html/2605.28912#bib.bib18)\]and deep learning approaches, such as autoencoders\[[24](https://arxiv.org/html/2605.28912#bib.bib15)\]and generative adversarial networks \(GANs\)\[[28](https://arxiv.org/html/2605.28912#bib.bib43)\]\. While these techniques demonstrate that stealthy attacks can be constructed solely from measurement data, they also expose a key limitation of many existing detection strategies\. When both attack generation and detection rely primarily on numerical or data\-driven analysis of the same measurements, the resulting symmetry makes it difficult to distinguish malicious perturbations from normal system variability reliably\.
To expose the limitations of existing detection methods, we study a blind FDIA generated by a tailored autoencoder \(AE\) that learns the measurement manifold from historical data and produces perturbations aligned with the Jacobian null space\. Such perturbations remain close to the learned measurement manifold and can bypass both residual\-based bad data detectors \(BDDs\) and time\-series anomaly detectors\. These observations highlight the difficulty of detecting attacks using purely statistical or data\-driven analysis of measurements\.
To address this challenge, we propose a topology\-informed detection framework, theCycle\-Space Detector\(CSD\), that leverages the Cycle\-Space structure of the power network to constrain null\-space estimation and detect data\-driven FDIAs\. In DC power systems, the Cycle\-Space, defined as the kernel of the incidence matrix, captures the fundamental loops whose structure is closely related to the null space of the measurement Jacobian\. By incorporating these topology\-derived constraints, the proposed method introduces structural information that cannot be inferred solely from measurement data\. The method constructs a cycle basis for the network and uses cycle\-consistent indicators to guide null\-space estimation, enabling reliable detection even when precise line parameters are unavailable\.
To the best of our knowledge, this work is the first to bridge graph\-theoretic Cycle\-Space theory with power system state estimation to provide a topology\-informed defense against blindFDIAs\.
As a supporting analytical result, we derive a first\-order finite\-sample expression for the expected generalization error of the null\-space estimator\. Building on the classical first\-order subspace perturbation framework of\[[30](https://arxiv.org/html/2605.28912#bib.bib17),[20](https://arxiv.org/html/2605.28912#bib.bib56)\], we derive a compact, closed\-form expression for the generalization error in terms ofrank\(𝐇\)\\text\{rank\(\}\\mathbf\{H\}\)and the sample sizeToT\_\{o\}\. While classical subspace\-estimation quantities, such asTotal Least Squares\(TLS\) covariance\[[11](https://arxiv.org/html/2605.28912#bib.bib59)\], DOA parameter MSE\[[20](https://arxiv.org/html/2605.28912#bib.bib56)\], and singular\-vector overlaps\[[7](https://arxiv.org/html/2605.28912#bib.bib57)\], are well established, the train/test functional we target and its closed form have not, to our knowledge, been derived previously\. While presented here in the context of power system cybersecurity, the result is mathematically general and offers a new analytical tool for theTLScommunity\. This analysis leads to Corollary 1, which shows that theMCBminimizes the generalization error among all cycle\-basis null\-space estimators\.
Simulation studies on IEEE 14\-, 30\-, 57\-, and 118\-bus transmission systems demonstrate that the proposed detection framework effectively identifies data\-driven FDIAs under realistic measurement noise\. The results show that incorporating topology\-derived cycle constraints improves the separation between normal and attacked measurements compared with purely data\-driven anomaly detection approaches\.
The remainder of the paper is organized as follows\. Section[II](https://arxiv.org/html/2605.28912#S2)reviews DC state estimation and BDD fundamentals\. Section[III](https://arxiv.org/html/2605.28912#S3)describes the autoencoder\-based blind FDIA scheme\. Section[IV](https://arxiv.org/html/2605.28912#S4)presents the proposed Cycle\-Space\-informed detection framework\. Section[V](https://arxiv.org/html/2605.28912#S5)reports the numerical evaluation results, and Section[VI](https://arxiv.org/html/2605.28912#S6)concludes the paper\.
## IIPreliminaries
We adopt the DC state estimation formulation\. The DC power grid is modeled as a graph𝒢=\(𝒱,ℰ\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}\)where\|𝒱\|=n\|\\mathcal\{V\}\|=ndenotes the set of buses and\|ℰ\|=m\|\\mathcal\{E\}\|=mthe set of branches\. Let𝐱=\(x1,⋯,xn\)∈ℝn\\mathbf\{x\}=\(x\_\{1\},\\cdots,x\_\{n\}\)\\in\\mathbb\{R\}^\{n\}denote the system state vector \(e\.g\., voltage phase angles at buses\), and𝐳=\(z1,⋯,zm\)∈ℝm\\mathbf\{z\}=\(z\_\{1\},\\cdots,z\_\{m\}\)\\in\\mathbb\{R\}^\{m\}denote the system measurement vector \(e\.g\., active power flows on branches\)\. The linearized DC power flow model relates them through the system Jacobian matrix𝐇∈ℝm×n\\mathbf\{H\}\\in\\mathbb\{R\}^\{m\\times n\}, which encodes network topology and measurement configuration:𝐳=𝐇𝐱\+𝜺,\\mathbf\{z\}=\\mathbf\{H\}\\mathbf\{x\}\+\\boldsymbol\{\\varepsilon\},where𝜺∈ℝm\\boldsymbol\{\\varepsilon\}\\in\\mathbb\{R\}^\{m\}represents measurement noise due to sensor error or communication disturbances\. The noise is typically modeled as zero\-mean Gaussian, i\.e\.,𝜺∼𝒩\(𝟎,𝐑\)\\boldsymbol\{\\varepsilon\}\\sim\\mathcal\{N\}\(\\boldsymbol\{0\},\\mathbf\{R\}\), where𝐑=diag\(σ12,⋯,σm2\)\\mathbf\{R\}=\\mathrm\{diag\}\(\\sigma\_\{1\}^\{2\},\\cdots,\\sigma\_\{m\}^\{2\}\)is the noise covariance matrix\. Based on such a relationship above, power system state estimation estimate the state𝐱^\\hat\{\\mathbf\{x\}\}from measurements𝐳\\mathbf\{z\}by solving the weighted least\-squares problem:
𝐱^\\displaystyle\\hat\{\\mathbf\{x\}\}=argmin𝐱∑i=1m\(zi−𝐇i𝐱\)2σi2\\displaystyle=\\arg\\min\_\{\\mathbf\{x\}\}\\sum\\nolimits\_\{i=1\}^\{m\}\\frac\{\(z\_\{i\}\-\\mathbf\{H\}\_\{i\}\\mathbf\{x\}\)^\{2\}\}\{\\sigma\_\{i\}^\{2\}\}\(1\)=\(𝐇T𝐑−1𝐇\)−1𝐇T𝐑−1𝐳,\\displaystyle=\(\\mathbf\{H\}^\{T\}\\mathbf\{R\}^\{\-1\}\\mathbf\{H\}\)^\{\-1\}\\mathbf\{H\}^\{T\}\\mathbf\{R\}^\{\-1\}\\mathbf\{z\},\(2\)where𝐇i\\mathbf\{H\}\_\{i\}is theii\-th row of𝐇\\mathbf\{H\}\. The estimated state𝐱^\\hat\{\\mathbf\{x\}\}help decide critical monitoring and control decisions, making it a high\-value target for adversarial attacks\. To verify the measurement data𝐳\\mathbf\{z\}, a widely used approach is Bad Data Detection \(BDD\)\[[1](https://arxiv.org/html/2605.28912#bib.bib34),[31](https://arxiv.org/html/2605.28912#bib.bib35)\]\. BDD evaluates the consistency between observed measurements and the estimated state by examining the squared residual error:‖𝐳−𝐳^‖22=‖𝐳−𝐇𝐱^‖22=‖𝐒𝐳‖22,\\\|\\mathbf\{z\}\-\\hat\{\\mathbf\{z\}\}\\\|\_\{2\}^\{2\}=\\\|\\mathbf\{z\}\-\\mathbf\{H\}\\hat\{\\mathbf\{x\}\}\\\|\_\{2\}^\{2\}=\\\|\\mathbf\{S\}\\mathbf\{z\}\\\|\_\{2\}^\{2\},where𝐒=𝐈−𝐇\(𝐇T𝐑−1𝐇\)−1𝐇T𝐑−1\\mathbf\{S\}=\\mathbf\{I\}\-\\mathbf\{H\}\(\\mathbf\{H\}^\{T\}\\mathbf\{R\}^\{\-1\}\\mathbf\{H\}\)^\{\-1\}\\mathbf\{H\}^\{T\}\\mathbf\{R\}^\{\-1\}is the residual sensitivity matrix\[[1](https://arxiv.org/html/2605.28912#bib.bib34)\]\. Under the assumption of Gaussian noise, the normalized residual
LNR\(𝐳\):=∑i=1m\(𝐒i𝐳\)2σi2=∑i=1m\(𝐒i𝜺\)2σi2∼χm−n2,\\text\{LNR\}\(\\mathbf\{z\}\):=\\sum\\nolimits\_\{i=1\}^\{m\}\\frac\{\(\\mathbf\{S\}\_\{i\}\\mathbf\{z\}\)^\{2\}\}\{\\sigma\_\{i\}^\{2\}\}=\\sum\\nolimits\_\{i=1\}^\{m\}\\frac\{\(\\mathbf\{S\}\_\{i\}\\boldsymbol\{\\varepsilon\}\)^\{2\}\}\{\\sigma\_\{i\}^\{2\}\}\\sim\\chi^\{2\}\_\{m\-n\},\\vskip\-5\.0pt\(3\)follows aχ2\\chi^\{2\}distribution withm−nm\-ndegrees of freedom\. This property enables a statistical detection rule: for a given significance levelα\\alpha\(e\.g\., 0\.05\), the residual statisticLNR\(𝐳\)\\text\{LNR\}\(\\mathbf\{z\}\)is compared with the thresholdτ=χm−n,1−α2\\tau=\\chi^\{2\}\_\{m\-n,\\,1\-\\alpha\}\. IfLNR\(𝐳\)≥τ\\text\{LNR\}\(\\mathbf\{z\}\)\\geq\\tau, the measurement set is flagged as containing bad data; otherwise, it is deemed consistent with the assumed noise model\.
## IIIBlind FDIA via Measurement Manifold Learning
Traditional FDIA schemes assume knowledge of system information, in particular the Jacobian matrix𝐇\\mathbf\{H\}\. Under this assumption, an adversary can modify the measurement vector as𝐳′=𝐳\+𝐇𝒖\\mathbf\{z\}^\{\\prime\}=\\mathbf\{z\}\+\\mathbf\{H\}\\boldsymbol\{u\}\[[22](https://arxiv.org/html/2605.28912#bib.bib36)\], where𝒖∈ℝn\\boldsymbol\{u\}\\in\\mathbb\{R\}^\{n\}is an arbitrarily chosen direction in the state space\. Because the perturbation𝐇𝒖\\mathbf\{H\}\\boldsymbol\{u\}lies in the column space of𝐇\\mathbf\{H\}, the attacked measurement preserves the residual error, i\.e\.,‖𝐒\(𝐳\+𝐇𝒖\)‖=‖𝐒𝐳‖\\\|\\mathbf\{S\}\(\\mathbf\{z\}\+\\mathbf\{H\}\\boldsymbol\{u\}\)\\\|=\\\|\\mathbf\{S\}\\mathbf\{z\}\\\|, allowing the attack to remain undetected by theBad Data Detector\(BDD\)\. However, this model\-based approach has two important limitations\. First, access to the exact Jacobian matrix is often unrealistic in practice because such information is sensitive and typically protected by utility operators\. Second, although these attacks evadeBDD, they may still introduce abnormal measurement patterns that deviate from historical data, making them vulnerable to modern time\-series anomaly detectors\[[37](https://arxiv.org/html/2605.28912#bib.bib37)\]\.
To address these limitations, we construct a blind FDIA that does not require explicit knowledge of the Jacobian matrix\. The key observation is that under the DC model𝐳=𝐇𝐱\\mathbf\{z\}=\\mathbf\{H\}\\mathbf\{x\}, the measurement manifold corresponds to the column space of𝐇\\mathbf\{H\}\. Therefore, if an attacker can learn this manifold from historical measurements, stealth attack directions can be recovered without explicit knowledge of the system model\. Based on this insight, we employ a tailored autoencoder \(AE\) to learn the measurement manifold directly from historical system data\.
To ensure that theAutoencoder\(AE\) faithfully captures the structure of the measurement manifold, we design its latent space dimensionality to match the number of system statesnn\. While the exact Jacobian matrix𝐇\\mathbf\{H\}is typically unavailable to attackers, the value ofnncan often be inferred from system metadata or estimated using model selection and dimensionality reduction techniques\. This architectural choice forces the AE to encode only the minimal set of variables required to reconstruct valid measurements, aligning the learned representation with the physical notion of system states in power systems\.
Moreover, theAEarchitecture naturally performs a denoising operation\. Since the observed measurements follow the noisy model𝐳=𝐇𝐱\+𝜺\\mathbf\{z\}=\\mathbf\{H\}\\mathbf\{x\}\+\\boldsymbol\{\\varepsilon\}, where𝜺\\boldsymbol\{\\varepsilon\}denotes Gaussian sensor noise, the AE is incentivized to recover the signal component𝐇𝐱\\mathbf\{H\}\\mathbf\{x\}, while suppressing the noise𝜺\\boldsymbol\{\\varepsilon\}\. Similar to linearAEs, which are mathematically equivalent toPrincipal Component Analysis\(PCA\)\[[5](https://arxiv.org/html/2605.28912#bib.bib29)\], the latent representation captures directions of maximum variance in the data and filters out noise components\. This property is useful for constructing stealthy perturbations that remain close to the learned measurement manifold\.
Figure 1:Customized autoencoder architecture designed to mimic the state estimation process and implicitly learn the null space of the system Jacobian matrix𝐇T\\mathbf\{H\}^\{T\}\.The proposedAEarchitecture is illustrated in Fig\.[1](https://arxiv.org/html/2605.28912#S3.F1)\. It consists of an encoder that maps input measurements𝐳∈ℝm\\mathbf\{z\}\\in\\mathbb\{R\}^\{m\}to a lower\-dimensional latent representation, and a decoder that reconstructs the measurement from the latent space\[[12](https://arxiv.org/html/2605.28912#bib.bib38)\]\. TheAEmodelAE\(⋅;θAE\)\\rm\{AE\}\(\\cdot;\\theta\_\{\\text\{AE\}\}\), whereθAE\\theta\_\{\\text\{AE\}\}denotes the network parameters, is trained to minimize the reconstruction loss
minθAE𝔼𝐳‖𝐳−AE\(𝐳;θAE\)‖2\.\\min\_\{\\theta\_\{\\text\{AE\}\}\}\\mathbb\{E\}\_\{\\mathbf\{z\}\}\\left\\\|\\mathbf\{z\}\-\\rm\{AE\}\\left\(\\mathbf\{z\};\\theta\_\{\\text\{AE\}\}\\right\)\\right\\\|^\{2\}\.\(4\)
After theAEmodel in[eq\.4](https://arxiv.org/html/2605.28912#S3.E4)converges, the attacker can generate an FDIA as follows \(see Fig\.[2](https://arxiv.org/html/2605.28912#S3.F2)\)\. Given a real\-time measurement𝐳t\\mathbf\{z\}\_\{t\}, theAEreconstructs it as𝐳^t=AE\(𝐳t\)\\hat\{\\mathbf\{z\}\}\_\{t\}=\\rm\{AE\}\(\\mathbf\{z\}\_\{t\}\)\. The reconstruction residualrt:=𝐳t−𝐳^tr\_\{t\}:=\\mathbf\{z\}\_\{t\}\-\\hat\{\\mathbf\{z\}\}\_\{t\}captures the component of𝐳t\\mathbf\{z\}\_\{t\}that lies outside the learned manifold and therefore approximately lies inCol\(𝐇\)⟂\\text\{Col\}\(\\mathbf\{H\}\)^\{\\perp\}, whereCol\(𝐇\):=\{𝐇𝐱\|𝐱∈ℝn\}\\text\{Col\}\(\\mathbf\{H\}\):=\\\{\\mathbf\{H\}\\mathbf\{x\}\|\\mathbf\{x\}\\in\\mathbb\{R\}^\{n\}\\\}denotes the column space of𝐇\\mathbf\{H\}\. This orthogonal complement ofCol\(𝐇\)\\text\{Col\}\(\\mathbf\{H\}\)serves as a proxy for the system’s null space\. The attacker then perturbs the real\-time measurement along the residual direction
𝐳t′=𝐳t\+κ⋅rt,\\mathbf\{z\}^\{\\prime\}\_\{t\}=\\mathbf\{z\}\_\{t\}\+\\kappa\\cdot r\_\{t\},\(5\)whereκ\>0\\kappa\>0controls the attack magnitude\. Since𝐳^t\\hat\{\\mathbf\{z\}\}\_\{t\}lies on the learned manifold, the perturbed measurement𝐳t′\\mathbf\{z\}^\{\\prime\}\_\{t\}remains close to historical measurement patterns, reducing the risk of detection by time\-series anomaly detectors\. Moreover, becausert⟂Col\(𝐇\)r\_\{t\}\\perp\\text\{Col\}\(\\mathbf\{H\}\), it approximately lies in the null space of the sensitivity matrix𝐒\\mathbf\{S\}, i\.e\.,𝐒rt≈0\\mathbf\{S\}r\_\{t\}\\approx 0, which implies that𝐒𝐳t′=𝐒𝐳t\+κ𝐒rt≈𝐒𝐳t\.\\mathbf\{S\}\\mathbf\{z\}^\{\\prime\}\_\{t\}=\\mathbf\{S\}\\mathbf\{z\}\_\{t\}\+\\kappa\\mathbf\{S\}r\_\{t\}\\approx\\mathbf\{S\}\\mathbf\{z\}\_\{t\}\.Thus, the attack preserves the residual used in BDD and successfully bypasses BDD\-based detection\.
Figure 2:Reconstruction of measurement manifold from historical observed measurements\.To further reduce the detectability of the attack and ensure statistical indistinguishability from normal measurement noise, we add a Gaussian perturbation𝜼t∼𝒩\(𝟎,γ𝐑\)\\boldsymbol\{\\eta\}\_\{t\}\\sim\\mathcal\{N\}\(\\boldsymbol\{0\},\\gamma\\mathbf\{R\}\), whereγ∈\(0,1\)\\gamma\\in\(0,1\)controls the variance\. The final injected measurement becomes𝐳t′=𝐳t\+κ⋅\(rt\+𝜼t\)\.\\mathbf\{z\}^\{\\prime\}\_\{t\}=\\mathbf\{z\}\_\{t\}\+\\kappa\\cdot\(r\_\{t\}\+\\boldsymbol\{\\eta\}\_\{t\}\)\.This additional perturbation captures sensor\-level variability and helps the attack remain hidden even under fine\-grained time\-series anomaly detection methods\. Unlike traditional FDIA constructions that rely on explicit system matrices, the proposed scheme infers stealth directions directly from historical data without access to𝐇\\mathbf\{H\}\.
### III\-APseudo\-Null Space FDIA extended to AC Systems
While the above FDIA is formulated under the linear DC model, the underlying concept generalizes to the nonlinear AC setting, where the measurement model becomes𝐳=𝒉\(𝐱\)\+𝜺\\mathbf\{z\}=\\boldsymbol\{h\}\(\\mathbf\{x\}\)\+\\boldsymbol\{\\varepsilon\}\. In this case, due to the slack bus constraint and physical conservation laws, the image of𝒉\(⋅\)\\boldsymbol\{h\}\(\\cdot\)forms a lower\-dimensional nonlinear manifold within the measurement space\. Compared to DC system based FDIA, constructing stealthy attacks in this setting requires identifying perturbations𝐜p\\mathbf\{c\}\_\{p\}that satisfy𝐚=𝒉\(𝐱\+𝐜p\)−𝒉\(𝐱\)≈0\\mathbf\{a\}=\\boldsymbol\{h\}\(\\mathbf\{x\}\+\\mathbf\{c\}\_\{p\}\)\-\\boldsymbol\{h\}\(\\mathbf\{x\}\)\\approx 0, thereby preserving the measurement consistency necessary to evadeDeep Learning\(DL\)\-based anomaly detection\. One strategy for achieving this condition is to formulate a nonlinear optimization problem that directly minimizes the measurement discrepancy:min𝐜p‖𝒉\(𝐱\+𝐜p\)−𝒉\(𝐱\)‖2\\min\_\{\\mathbf\{c\}\_\{p\}\}\\\|\\boldsymbol\{h\}\(\\mathbf\{x\}\+\\mathbf\{c\}\_\{p\}\)\-\\boldsymbol\{h\}\(\\mathbf\{x\}\)\\\|^\{2\}\. However, solving such nonlinear optimization problem can be computationally intensive and impractical for large\-scale systems or real\-time applications\.
To address this challenge, we adopt an alternative strategy based on a first\-order Taylor approximation of𝒉\(⋅\)\\boldsymbol\{h\}\(\\cdot\)\. Linearizing the measurement function around𝐱\\mathbf\{x\}yields𝒉\(𝐱\+𝐜p\)≈𝒉\(𝐱\)\+𝑱\(𝐱\)𝐜p\\boldsymbol\{h\}\(\\mathbf\{x\}\+\\mathbf\{c\}\_\{p\}\)\\approx\\boldsymbol\{h\}\(\\mathbf\{x\}\)\+\\boldsymbol\{J\}\(\\mathbf\{x\}\)\\mathbf\{c\}\_\{p\}, where𝑱\(𝐱\)\\boldsymbol\{J\}\(\\mathbf\{x\}\)denotes the Jacobian matrix of𝒉\\boldsymbol\{h\}evaluated at𝐱\\mathbf\{x\}\. Stealthiness can then be enforced by selecting𝐜p∈null\(𝑱\(𝐱\)\)\\mathbf\{c\}\_\{p\}\\in\\text\{null\}\(\\boldsymbol\{J\}\(\\mathbf\{x\}\)\), ensuring that the perturbation lies in the local linear kernel of the measurement function and thus approximately preserves measurement consistency\. This Jacobian\-based method is computationally efficient, scalable, and effective when the perturbations are sufficiently small to remain within the linear approximation region\. Notably, this procedure closely parallels the approach used in the DC case\. The key difference lies in the fact that, under the AC model, the Jacobian𝑱\\boldsymbol\{J\}must be re\-evaluated at each operating point for FDIA construction, whereas the DC formulation involves a constant Jacobian𝐇\\mathbf\{H\}\. In practice, the update frequency of𝑱\\boldsymbol\{J\}is inherently determined by the sampling rate of the system measurements\.
## IVCycle\-Space\-Based Detection of Data\-Driven BlindFDIA
Figure 3:Overview of the proposed Cycle\-Space informed FDIA detection procedure\.The blind FDIA in Section[III](https://arxiv.org/html/2605.28912#S3)approximates the null space of the Jacobian matrix𝐇T\\mathbf\{H\}^\{T\}using historical measurements\. While this data\-driven construction enables the attack to bypass both BDDs and time\-series anomaly detectors, its null space approximation is inherently imperfect\. As a result, the injected perturbation does not lie exactly in the true null space, leaving a detectable footprint\. This observation motivates the proposed detection method\. Existing null space\-based detection schemes typically rely on purely numerical tools such as Singular Value Decomposition \(SVD\) to estimate the null space of𝐇T\\mathbf\{H\}^\{T\}\. However, such methods use only measurement data and do not exploit the physical structure of the power network\. Consequently, they provide limited advantage to the defender when the attacker also relies on data\-driven null space approximation\. In contrast, system operators typically have access to the network topology\. We leverage this structural information to construct a more physically meaningful approximation of the null space and use it for attack detection\.
In DC power systems, the non\-trivial null space of the Jacobian matrix arises from cycles in the network graph\. In particular, radial networks do not contain closed loops and therefore have a trivial Cycle\-Space\. This motivates the use of Cycle\-Space theory for null space reconstruction\. The resulting topology\-informed approach offers two advantages\. First, unlike numerical decomposition methods such as SVD, it does not rely on precise values of internal system parameters such as line admittances\. Second, it naturally supports decentralized detection because each cycle can serve as an independent local consistency check\. Fig\.[3](https://arxiv.org/html/2605.28912#S4.F3)provides an overview of the proposed detection framework, which consists of two components: \(1\) Cycle\-Space informed null space extraction, and \(2\) decentralized attack detection\.
### IV\-ACycle\-Space Informed Null Space Extraction
We first introduce the graph\-theoretic objects used to construct the topology\-informed null space\.
###### Definition 1\(Cycle\)\.
Let𝒢=\(𝒱,ℰ\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}\)be a connected graph with vertices \(buses\)vi∈𝒱v\_\{i\}\\in\\mathcal\{V\}and edges \(branches\)ei∈ℰe\_\{i\}\\in\\mathcal\{E\}\. A*cycle*is a closed walk of the form\[v1,e1,v2,…,el−1,vl\]\[v\_\{1\},e\_\{1\},v\_\{2\},\\ldots,e\_\{l\-1\},v\_\{l\}\]such thatv1=vlv\_\{1\}=v\_\{l\}and all other vertices are distinct\. Equivalently, we represent a cycle by the set of edges as𝐜=\{e1,e2,…,el−1\}\\mathbf\{c\}=\\\{e\_\{1\},e\_\{2\},\\ldots,e\_\{l\-1\}\\\}\.
The dimension of the null space of a graph’s incidence matrix corresponds to the number of independent cycles in the graph\. We now extend this concept to the algebraic representation of all independent cycles\.
###### Definition 2\(Cycle basis\)\.
A cycle basis𝒞=\{𝐜1,𝐜2,…,𝐜m−n\+1\}\\mathcal\{C\}=\\\{\\mathbf\{c\}\_\{1\},\\mathbf\{c\}\_\{2\},\\ldots,\\mathbf\{c\}\_\{m\-n\+1\}\\\}is a minimal set of simple cycles that can be combined to generate every cycle in the graph\. Each cycle𝐜∈𝒞\\mathbf\{c\}\\in\\mathcal\{C\}is associated with a signed indicator vectorζ𝐜∈ℝm\\zeta\_\{\\mathbf\{c\}\}\\in\\mathbb\{R\}^\{m\}, which encodes the orientation of an edge in the cycle relative to its orientation in the graph:
ζ𝐜\(e\)=\{1,ife∈𝐜and its orientations in𝐜and𝒢are the same−1,ife∈𝐜and its orientations in𝐜and𝒢are different0,ife∉𝐜\\zeta\_\{\\mathbf\{c\}\}\(e\)=\\begin\{cases\}1,&\\text\{if $e\\in\\mathbf\{c\}$ and its orientations in $\\mathbf\{c\}$\}\\\\ &\\text\{and $\\mathcal\{G\}$ are the same\}\\\\ \-1,&\\text\{if $e\\in\\mathbf\{c\}$ and its orientations in $\\mathbf\{c\}$\}\\\\ &\\text\{and $\\mathcal\{G\}$ are different\}\\\\ 0,&\\text\{if $e\\notin\\mathbf\{c\}$ \}\\end\{cases\}\(6\)wheree∈ℰe\\in\\mathcal\{E\}denotes an edge in the graph𝒢\\mathcal\{G\}\.
The cycle basis is generally non\-unique\. The cycle basis setℂ=\{𝒞\(1\),𝒞\(2\),…\}\\mathbb\{C\}=\\\{\\mathcal\{C\}^\{\(1\)\},\\mathcal\{C\}^\{\(2\)\},\\ldots\\\}denotes the collection of all such cycle bases\.
###### Definition 3\(Cycle\-Space\)\.
The Cycle\-Space of the graph𝒢\\mathcal\{G\}under cycle basis𝒞\\mathcal\{C\}is defined as𝐍c=ζ⊙𝐩=\(𝐧c\(1\),𝐧c\(2\),…,𝐧c\(m−n\+1\)\)∈ℝm×\|𝒞\|\\mathbf\{N\}\_\{c\}=\\zeta\\odot\\mathbf\{p\}=\(\\mathbf\{n\}^\{\(1\)\}\_\{c\},\\mathbf\{n\}^\{\(2\)\}\_\{c\},\\ldots,\\mathbf\{n\}^\{\(m\-n\+1\)\}\_\{c\}\)\\in\\mathbb\{R\}^\{m\\times\|\\mathcal\{C\}\|\}, where𝐩\\mathbf\{p\}is the parameter of the branch \(i\.e\., the reactance\)\.
Since the Cycle\-Space coincides with the null space of𝐇T\\mathbf\{H\}^\{T\}, i\.e\.,𝐍c=Null\(𝐇T\)\\mathbf\{N\}\_\{c\}=Null\(\\mathbf\{H\}^\{T\}\), each direction of𝐍c\\mathbf\{N\}\_\{c\}admits:
𝐙¯T𝐧c\(i\)=0\\bar\{\\mathbf\{Z\}\}^\{T\}\\mathbf\{n\}^\{\(i\)\}\_\{c\}=0\(7\)where𝐙¯\\bar\{\\mathbf\{Z\}\}is clean measurement data without noise and attack\.
The orthogonal complement is the cut space:
𝐍c⟂=Range\(𝐇\)\.\\mathbf\{N\}\_\{c\}^\{\\perp\}=Range\(\\mathbf\{H\}\)\.\(8\)
Our goal is to extract the null space of the matrix𝐇T\\mathbf\{H\}^\{T\}from measurement𝐙\\mathbf\{Z\}\. The null space of the matrix𝐇T\\mathbf\{H\}^\{T\}is defined as𝐍=\(𝐧\(1\),𝐧\(2\),…,𝐧\(m−n\+1\)\)\\mathbf\{N\}=\(\\mathbf\{n\}^\{\(1\)\},\\mathbf\{n\}^\{\(2\)\},\\ldots,\\mathbf\{n\}^\{\(m\-n\+1\)\}\)\. Each𝐧\(i\)∈ℝm\\mathbf\{n\}^\{\(i\)\}\\in\\mathbb\{R\}^\{m\}is a direction of the null space\. The null space reconstruction problem is usually formulated as the unconstrained optimization
𝐎=min𝐍\(i\)\\displaystyle\\mathbf\{O\}=\\min\_\{\\mathbf\{N\}\(i\)\}∑i‖𝐙trainT⋅𝐍\(i\)‖2\\displaystyle\\sum\\nolimits\_\{i\}\|\|\\mathbf\{Z\}\_\{train\}^\{T\}\\cdot\\mathbf\{N\}\(i\)\|\|^\{2\}\(9\)s\.t\.‖𝐧\(i\)‖2=1\.\\displaystyle\\quad\|\|\\mathbf\{n\}^\{\(i\)\}\|\|^\{2\}=1\.
Based on Definition[3](https://arxiv.org/html/2605.28912#Thmdefinition3), we reformulate the problem by constraining the null space using the cycle structure:
𝐎=min𝐍\(i\)\\displaystyle\\mathbf\{O\}=\\min\_\{\\mathbf\{N\}\(i\)\}∑i‖𝐙T⋅𝐍\(i\)‖2\\displaystyle\\sum\\nolimits\_\{i\}\|\|\\mathbf\{Z\}^\{T\}\\cdot\\mathbf\{N\}\(i\)\|\|^\{2\}\(10\)s\.t\.‖𝐍\(i\)‖2=1,𝐍=χ𝐜i⊙𝐍,\\displaystyle\\quad\|\|\\mathbf\{N\}\(i\)\|\|^\{2\}=1,\\quad\\mathbf\{N\}=\\chi\_\{\\mathbf\{c\}\_\{i\}\}\\odot\\mathbf\{N\},where𝐙=\{𝐳1,…,𝐳To\}∈ℝm×To\\mathbf\{Z\}=\\\{\\mathbf\{z\}\_\{1\},\\ldots,\\mathbf\{z\}\_\{T\_\{o\}\}\\\}\\in\\mathbb\{R\}^\{m\\times T\_\{o\}\}contains the noisy measurements,To≥mT\_\{o\}\\geq mis the number of measurements considered for optimization,χ𝐜=abs\(ζ𝐜\)\\chi\_\{\\mathbf\{c\}\}=\\text\{abs\}\(\\zeta\_\{\\mathbf\{c\}\}\)is the unsigned indicator, andχ𝐜⊙𝐍\\chi\_\{\\mathbf\{c\}\}\\odot\\mathbf\{N\}regulates the dimensions of the null space spanned by each cycle, where⊙\\odotdenotes element\-wise multiplication\. We define the selection𝐙𝐜i\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}, which selects the branch data from𝐙\\mathbf\{Z\}that belongs to cycle𝐜i\\mathbf\{c\}\_\{i\}, such that the dimension of the extracted results isℝ\|𝐜i\|×To\\mathbb\{R\}^\{\|\\mathbf\{c\}\_\{i\}\|\\times T\_\{o\}\}\. Thus, solving this optimization problem is equivalent to optimizing each cycle separately:
𝐎i=min𝐍𝐜i\(i\)\\displaystyle\\mathbf\{O\}\_\{i\}=\\min\_\{\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)\}∑i‖𝐙𝐜iT⋅𝐍𝐜i\(i\)‖2\\displaystyle\\sum\\nolimits\_\{i\}\\left\\\|\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}^\{T\}\\cdot\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)\\right\\\|^\{2\}\(11\)s\.t\.‖𝐍𝐜i\(i\)‖2=1,\\displaystyle\\left\\\|\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)\\right\\\|^\{2\}=1,where𝐍𝐜i\(i\)\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)is the optimization entity with dimensionℝ\|𝐜i\|×1\\mathbb\{R\}^\{\|\\mathbf\{c\}\_\{i\}\|\\times 1\}, and𝐍𝐜i\(i\)\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)is theii\-th basis selecting branches that belong to𝐜i\\mathbf\{c\}\_\{i\}\. For brevity, we denote𝐍𝐜i\(i\)\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)as𝐍𝐜i\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}\.
The solution of[eq\.11](https://arxiv.org/html/2605.28912#S4.E11)is composed of the null space of each selection\. Because the rank of𝐙𝐜i\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}is\|𝐜i\|−1\|\\mathbf\{c\}\_\{i\}\|\-1, there is only one null space vector\. The solution is the eigenvector of𝐙𝐜iT𝐙𝐜i\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}^\{T\}\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}that corresponds to the smallest eigenvalue:
𝐍^𝐜i\(i\)=eigvecmin\(𝐙𝐜i𝐙𝐜iT\)\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\)=\\text\{eigvec\}\_\{min\}\(\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}^\{T\}\)\(12\)After obtaining all𝐍^𝐜i\(i\)\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}\(i\), we recover the full estimated null space,𝐍^\\hat\{\\mathbf\{N\}\}, which can be directly used forFDIAdetection\. Another advantage of the Cycle\-Space null space reconstruction is the minimum number of measurements required, namely the number of links of the largest cycle,max\|𝐜\|\\max\|\\mathbf\{c\}\|, in contrast to other subspace learning methods, which require at leastrank\(𝐇\)\\text\{rank\}\(\\mathbf\{H\}\)measurements withmax\|𝐜\|≤rank\(𝐇\)\\max\|\\mathbf\{c\}\|\\leq\\text\{rank\}\(\\mathbf\{H\}\)\.
By mapping the null space of the Jacobian matrixHTH^\{T\}directly to the Cycle\-Space of the network graph, we introduce a novel structural constraint\. This represents the first application of the Cycle\-Space formalism, grounded in the network topology, to isolate malicious data injections in power grid systems\. Based on[eqs\.11](https://arxiv.org/html/2605.28912#S4.E11)and[12](https://arxiv.org/html/2605.28912#S4.E12), we next construct a bi\-level decentralized detection framework\.
### IV\-BDecentralized Attack Detector
The Cycle\-Space construction naturally supports decentralized detection\. In[eq\.11](https://arxiv.org/html/2605.28912#S4.E11),𝐙𝐜i\\mathbf\{Z\}\_\{\\mathbf\{c\}\_\{i\}\}contains the measurements of the branches in cycle𝐜i\\mathbf\{c\}\_\{i\}, while𝐍𝐜i\\mathbf\{N\}\_\{\\mathbf\{c\}\_\{i\}\}is the null space basis associated with that cycle\. Since the null space originates from the Cycle\-Space, attack detection can also be carried out independently on each cycle\. Therefore, each cycle can be assigned to a local detector that collects the corresponding branch measurements and performs detection in parallel\.
Figure[4](https://arxiv.org/html/2605.28912#S4.F4)illustrates this architecture for the IEEE 14\-bus system after removing leaf branches that do not belong to any cycle\. The D\-detectors \(blue nodes\) represent local cycle\-based detectors, while the blue dashed lines indicate the information flow from branch measurements to the local detectors\. The A\-detector \(red node\) aggregates the local detector outputs, as indicated by the red dashed lines\.
Since the suspicious components lie in the null space, we project the measurements onto the estimated null space in order to extract the null space component\. Let𝐙¯=\{𝐳¯1,…,𝐳¯Tu\}\\bar\{\\mathbf\{Z\}\}=\\\{\\bar\{\\mathbf\{z\}\}\_\{1\},\\ldots,\\bar\{\\mathbf\{z\}\}\_\{T\_\{u\}\}\\\}be the measurements under consideration, whereTuT\_\{u\}is the number of measurements\. The null space component extracted by the detector associated with cycle𝐜i\\mathbf\{c\}\_\{i\}is
ℕt\(i\)=\(𝐍^𝐜i𝐍^𝐜i\+𝐙¯𝐜i\(t\)\)T=𝐙¯𝐜iT𝐍^𝐜iT𝐍^𝐜i\\mathbb\{N\}\_\{t\}\(i\)=\(\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}^\{\+\}\\bar\{\\mathbf\{Z\}\}\_\{\\mathbf\{c\}\_\{i\}\}\(t\)\)^\{T\}=\\bar\{\\mathbf\{Z\}\}\_\{\\mathbf\{c\}\_\{i\}\}^\{T\}\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}^\{T\}\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}\(13\)where𝐍^𝐜i\+∈ℝ1×\|𝐜i\|\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}^\{\+\}\\in\\mathbb\{R\}^\{1\\times\|\\mathbf\{c\}\_\{i\}\|\}is the pseudo inverse of matrix𝐍^𝐜i\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}, and𝐍^𝐜i𝐍^𝐜i\+\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}\\hat\{\\mathbf\{N\}\}\_\{\\mathbf\{c\}\_\{i\}\}^\{\+\}projects onto the null space component\.
Next, we define the magnitude ofℕ\(i\)\\mathbb\{N\}\(i\)asℒℕ\(i\)=\(‖ℕ1\(i\)‖2,…,‖ℕTu\(i\)‖2\)\\mathcal\{L\}\_\{\\mathbb\{N\}\(i\)\}=\(\\\|\\mathbb\{N\}\_\{1\}\(i\)\\\|\_\{2\},\\ldots,\\\|\\mathbb\{N\}\_\{T\_\{u\}\}\(i\)\\\|\_\{2\}\)\. We observe thatℒℕ\(i\)\\mathcal\{L\}\_\{\\mathbb\{N\}\(i\)\}is smaller under normal operating conditions and therefore provides good separation between normal and attacked measurements\. We useℒℕ\(i\)\\mathcal\{L\}\_\{\\mathbb\{N\}\(i\)\}as the reconstruction error of theithi^\{\\text\{th\}\}cycle\.
Figure 4:The structure of the decentralized detectors \(D\-nodes, blue\) and aggregated detector \(A\-node, red\) for the IEEE 14\-bus system\.In this two\-layered protection system, each decentralized detector can independently detect the attack while also sending a reconstruction error to the aggregated detector \(see Fig\.[4](https://arxiv.org/html/2605.28912#S4.F4)\)\. We compute the aggregated reconstruction error as
ℒℕ=∑i\|𝒞\|ℒℕ\(i\)2\.\\mathcal\{L\}\_\{\\mathbb\{N\}\}=\\sqrt\{\\sum\\nolimits\_\{i\}^\{\|\\mathcal\{C\}\|\}\\mathcal\{L\}\_\{\\mathbb\{N\}\(i\)\}^\{2\}\}\.\(14\)
To detect the attack interval, if the data𝐙¯\\bar\{\\mathbf\{Z\}\}contains attacked measurements, the reconstruction error should contain two separate classes corresponding to normal and attacked samples\. We therefore adopt the minimum cross\-entropy criterion\[[19](https://arxiv.org/html/2605.28912#bib.bib31),[18](https://arxiv.org/html/2605.28912#bib.bib32)\]to iteratively determine the thresholdτℕ\(i\)\\tau\_\{\\mathbb\{N\}\(i\)\}that separates these two classes, by settingτℕ\(i\)=LI\(ℒℕ\(i\)\)\\tau\_\{\\mathbb\{N\}\(i\)\}=LI\(\\mathcal\{L\}\_\{\\mathbb\{N\}\(i\)\}\)\[[19](https://arxiv.org/html/2605.28912#bib.bib31),[18](https://arxiv.org/html/2605.28912#bib.bib32)\]\. Ifℒℕt\(i\)≥τℕ\(i\)\\mathcal\{L\}\_\{\\mathbb\{N\}\_\{t\}\(i\)\}\\geq\\tau\_\{\\mathbb\{N\}\(i\)\}, then the detector raises an alarm\. Note thatLI\(\)LI\(\)computes the threshold in linear time and is therefore suitable for real\-time implementation\.
The experimental detection results in Section[V](https://arxiv.org/html/2605.28912#S5)empirically validate that the null space of the Jacobian matrix aligns with the Cycle\-Space of the network\. Furthermore, in Section[V\-B](https://arxiv.org/html/2605.28912#S5.SS2), we compare the performance of the proposed Cycle\-Space\-informed detection framework against state\-of\-the\-artDL\-based anomaly detectors under the proposed blindFDIA\. In addition, in Section[V\-C](https://arxiv.org/html/2605.28912#S5.SS3)we evaluate the contribution of each individual decentralized cycle\-based detector \(D\-detector\), assessing its standalone detection capability relative to the aggregated detection outcome\.
### IV\-COptimal Generalization Error
To analyze the optimality of the proposedCSD, we derive a finite\-sample expression for the expected generalization error using first\-order subspace perturbation analysis\[[30](https://arxiv.org/html/2605.28912#bib.bib17),[20](https://arxiv.org/html/2605.28912#bib.bib56)\]\.
Let:
- •T⋆T\_\{\\star\}denote the number of samples in all test sets\.
- •xt∈ℝnx\_\{t\}\\in\\mathbb\{R\}^\{n\}be independent and identically distributed \(i\.i\.d\.\) random state vectors drawn from an isotropic standard normal distribution:xt∼𝒩\(0,In\)x\_\{t\}\\sim\\mathcal\{N\}\(0,I\_\{n\}\)\. AndX⋆=\[x1,x2,…\]∈ℝn×T⋆X\_\{\\star\}=\[x\_\{1\},x\_\{2\},\\dots\]\\in\\mathbb\{R\}^\{n\\times T\_\{\\star\}\}\.
- •𝐙⋆=𝐇𝐗⋆\+ℰ⋆∈ℝm×T⋆\\mathbf\{Z\}\_\{\\star\}=\\mathbf\{H\}\\mathbf\{X\}\_\{\\star\}\+\\mathcal\{E\}\_\{\\star\}\\in\\mathbb\{R\}^\{m\\times T\_\{\\star\}\}be the noisy test set measurements, produced from independent state and noise realizations𝐗⋆\\mathbf\{X\}\_\{\\star\}andℰ⋆\\mathcal\{E\}\_\{\\star\}respectively\.𝐙¯⋆=𝐇𝐗⋆\\bar\{\\mathbf\{Z\}\}\_\{\\star\}=\\mathbf\{H\}\\mathbf\{X\}\_\{\\star\}is the noise\-free test set measurement\.
- •ϵ=𝐧^−𝐧\\boldsymbol\{\\epsilon\}=\\hat\{\\mathbf\{n\}\}\-\{\\mathbf\{n\}\}be the training null space estimation error\.
- •EgenE\_\{\\text\{gen\}\}be the scalar values indicating the Expected Generalization errors\.
- •𝔼𝐙\\mathbb\{E\}\_\{\\mathbf\{Z\}\}denote an expectation over the training measurements𝐙\\mathbf\{Z\}\.
- •𝔼𝐳∼𝐙⋆\\mathbb\{E\}\_\{\{\\mathbf\{z\}\}\\sim\\mathbf\{Z\}\_\{\\star\}\}denote an expectation over a random sample drawn from the test measurements𝐙¯⋆\\bar\{\\mathbf\{Z\}\}\_\{\\star\}\.
The Expected Generalization Error\[[15](https://arxiv.org/html/2605.28912#bib.bib4), p\.34\], denoted asEgenE\_\{\\text\{gen\}\}, represents the expected residual error of the estimated null vector𝐧^\\hat\{\\mathbf\{n\}\}when applied to the underlying distribution of the noisy measurements\.EgenE\_\{\\text\{gen\}\}is defined as the average error that the estimator𝐧^\\hat\{\\mathbf\{n\}\}incurs over all possible system measurement realizations\. It can be regarded as the limit of the‖𝐳T𝐧^‖2\\\|\\mathbf\{z\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}error as the size of the test set𝐙⋆\\mathbf\{Z\}\_\{\\star\}approaches infinity \(T⋆→∞T\_\{\\star\}\\to\\infty\), ensuring the empirical average converges to the true expectation\. Consequently, we adapt the definition ofEgenE\_\{\\text\{gen\}\}to the null space estimation problem as follows:
Egen=𝔼𝐙\[𝔼𝐳∼𝐙⋆\[‖𝐳T𝐧^‖2\]\]=limT⋆→∞𝔼𝐙\[‖𝐙⋆T𝐧^‖2\]T⋆\.\\displaystyle E\_\{\\text\{gen\}\}=\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\\left\[\\mathbb\{E\}\_\{\\mathbf\{z\}\\sim\\mathbf\{Z\}\_\{\\star\}\}\[\\\|\\mathbf\{z\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}\]\\right\]=\\lim\_\{T\_\{\\star\}\\to\\infty\}\\frac\{\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\\left\[\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}\\right\]\}\{T\_\{\\star\}\}\.\(15\)
Plugging𝐧^=𝐧\+ϵ\\hat\{\\mathbf\{n\}\}=\\mathbf\{n\}\+\\boldsymbol\{\\epsilon\}into[eq\.15](https://arxiv.org/html/2605.28912#S4.E15), we can derive the simplified equation \(see[Section\-A](https://arxiv.org/html/2605.28912#A0.SS1)for a detailed derivation\):
Egen=σ2\+limT⋆→∞𝔼𝐙\[‖𝐙⋆Tϵ‖2\+2𝐧Tℰ⋆ℰ⋆Tϵ\]T⋆E\_\{\\text\{gen\}\}=\\sigma^\{2\}\+\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\+2\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]\}\{T\_\{\\star\}\}\(16\)
The presence ofϵ\\boldsymbol\{\\epsilon\}in[eq\.16](https://arxiv.org/html/2605.28912#S4.E16)underscores the need to investigate its behavior in depth\. Hence, we next deriveϵ\\boldsymbol\{\\epsilon\}analytically in closed form\.
The estimation errorϵ\\boldsymbol\{\\epsilon\}is a nonlinear function of the noise realizationℰ\\mathcal\{E\}, and its exact distribution does not admit a tractable closed form\. In the high\-dimensional regimen,T0→∞n,T\_\{0\}\\to\\inftywithn/T0∈\(0,1\)n/T\_\{0\}\\in\(0,1\), the squared overlap\|⟨𝐧^,𝐧⟩\|2\|\\langle\\hat\{\\mathbf\{n\}\},\\mathbf\{n\}\\rangle\|^\{2\}undergoes a phase transition\[[4](https://arxiv.org/html/2605.28912#bib.bib58),[7](https://arxiv.org/html/2605.28912#bib.bib57)\], suggesting that exact null\-vector recovery is generally not attainable with finite samples\. We therefore use a first\-order Lagrangian expansion, valid for small noise variance, and empirically verify its accuracy\. In this setting, higher\-order termsℰTϵ\\mathcal\{E\}^\{T\}\\boldsymbol\{\\epsilon\}andϵTϵ\\boldsymbol\{\\epsilon\}^\{T\}\\boldsymbol\{\\epsilon\}are neglected for simplicity\.
###### Proposition 1\.
\[First Order Lagrangian Solution\] The first order solution for the vectorϵ\\boldsymbol\{\\epsilon\}which minimizes‖𝐙T𝐧^‖2\\\|\\mathbf\{Z\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}is given by:
ϵ=\\displaystyle\\boldsymbol\{\\epsilon\}=−\(𝐙¯T\)\+ℰT𝐧\\displaystyle\-\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\(17\)
See the proof of Proposition[1](https://arxiv.org/html/2605.28912#Thmprop1)in[Section\-B](https://arxiv.org/html/2605.28912#A0.SS2)\. Since𝔼\[ℰT\]=0To×m\\mathbb\{E\}\[\\mathcal\{E\}^\{T\}\]=0\_\{T\_\{o\}\\times m\}, the expectation ofϵ\\boldsymbol\{\\epsilon\}is also0\{0\}\. Plugging[eq\.17](https://arxiv.org/html/2605.28912#S4.E17)into[eq\.16](https://arxiv.org/html/2605.28912#S4.E16), we aim to cancel out𝐙⋆,ϵ,𝐧\\mathbf\{Z\}\_\{\\star\},\\boldsymbol\{\\epsilon\},\\mathbf\{n\}andℰ⋆\\mathcal\{E\}\_\{\\star\}\.
Next, we adapt the classical subspace\-perturbation machinery of\[[30](https://arxiv.org/html/2605.28912#bib.bib17),[20](https://arxiv.org/html/2605.28912#bib.bib56)\]to the expected generalization error𝔼𝐙\[𝔼𝐳∼𝐙⋆\[‖𝐳T𝐧^‖2\]\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\\left\[\\mathbb\{E\}\_\{\\mathbf\{z\}\\sim\\mathbf\{Z\}\_\{\\star\}\}\[\\\|\\mathbf\{z\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}\]\\right\]\. While related quantitiesTLScoefficient covariance\[[11](https://arxiv.org/html/2605.28912#bib.bib59)\], parameter MSE for subspace\-based DOA estimators\[[20](https://arxiv.org/html/2605.28912#bib.bib56)\], and asymptotic singular vector overlaps\[[7](https://arxiv.org/html/2605.28912#bib.bib57)\]are well established, the specific closed\-form expression for the expected generalization error of the null space estimator, to our knowledge, has not been derived in prior subspace\-estimation work\. Using the orthogonal projection property\[[30](https://arxiv.org/html/2605.28912#bib.bib17)\], namely that𝐇𝐇T\(𝐇𝐇T\)\+=PCol\(𝐇\)\\mathbf\{H\}\\mathbf\{H\}^\{T\}\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\}=P\_\{\\mathrm\{Col\}\(\\mathbf\{H\}\)\}, we establish the relationship between generalization error andrank\(𝐇\)\\text\{rank\}\(\\mathbf\{H\}\)\.
###### Theorem 1\.
\[First Order Finite Sample Expected Generalization Error\] The first\-order finite sample expected generalization error is given by:
Egen=σ2\(1\+rank\(𝐇\)To−n\)\\boxed\{E\_\{\\text\{gen\}\}=\\sigma^\{2\}\(1\+\\frac\{\\mathrm\{rank\}\(\\mathbf\{H\}\)\}\{T\_\{o\}\-n\}\)\}\(18\)
See the proof of Theorem[18](https://arxiv.org/html/2605.28912#S4.E18)in[Section\-C](https://arxiv.org/html/2605.28912#A0.SS3)\. An experimental validation of[eq\.18](https://arxiv.org/html/2605.28912#S4.E18)can be found in[Section\-E](https://arxiv.org/html/2605.28912#A0.SS5)\.
To adapt[eq\.18](https://arxiv.org/html/2605.28912#S4.E18)into the Cycle\-Space method, we proceed as follows\. Each cycleccof the power\-system network yields a submatrix𝐇cT\\mathbf\{H\}\_\{c\}^\{T\}whose null space dimension satisfies:
nullity\(𝐇cT\)=1\.\\mathrm\{nullity\}\(\\mathbf\{H\}\_\{c\}^\{T\}\)=1\.\(19\)Let𝐧c\\mathbf\{n\}\_\{c\}denote the null space estimation of cyclecc\. Applying[eq\.18](https://arxiv.org/html/2605.28912#S4.E18)on each𝐇c\\mathbf\{H\}\_\{c\}yields:
Egen=σ2\(1\+\(\|c\|−1\)To−\|c\|\)\.E\_\{\\text\{gen\}\}=\\sigma^\{2\}\(1\+\\frac\{\(\|c\|\-1\)\}\{T\_\{o\}\-\|c\|\}\)\.\(20\)For a cycle basisCC, the total expected generalization error is:
∑c∈𝒞σ2\(1\+\(\|c\|−1\)To−\|c\|\)\.\\sum\\nolimits\_\{c\\in\\mathcal\{C\}\}\\sigma^\{2\}\(1\+\\frac\{\(\|c\|\-1\)\}\{T\_\{o\}\-\|c\|\}\)\.\(21\)
Since the denominator decreases and the numerator increases with\|c\|\|c\|, minimizing generalization error reduces to minimizing total cycle length\|c\|\|c\|\.
###### Corollary 1\.
Optimality ofMinimum Cycle Basis\(MCB\)\] TheMCB\[[16](https://arxiv.org/html/2605.28912#bib.bib3)\]
𝒞mcb=argmin𝒞∑c∈𝒞\|c\|\\mathcal\{C\}^\{\\mathrm\{mcb\}\}=\\arg\\min\_\{\\mathcal\{C\}\}\\sum\\nolimits\_\{c\\in\\mathcal\{C\}\}\|c\|\(22\)achieves the minimum generalization error among all Cycle\-Space estimators\.
Based on[eq\.22](https://arxiv.org/html/2605.28912#S4.E22), we can achieve optimal generalization error by decomposing the topology intoMCB\. The time complexity of computingMCBisO\(m2n\)O\(m^\{2\}n\)and is incurred only once under a fixed topology\.
## VExperiments
This section evaluates the effectiveness of the proposed framework from several complementary perspectives\. First, we validate that the proposed autoencoder \(AE\) successfully learns the measurement manifold and enables the construction of stealthy blind FDIA attacks\. Second, we evaluate the ability of the proposed Cycle\-Space\-informed detection framework to identify such attacks and compare its performance with existing machine learning based anomaly detectors\. Third, we analyze several practical aspects of the framework, including decentralized detection coverage, extension to AC systems, and robustness to measurement noise\. Finally, additional experimental results conducted under partial observability are provided in[Section\-F](https://arxiv.org/html/2605.28912#A0.SS6)\.
Dataset Configuration\.We evaluate the proposed framework on several standard IEEE transmission grid test systems, including the 14\-bus, 30\-bus, 57\-bus, and 118\-bus systems\. These benchmark networks cover a wide range of topological characteristics, from small and sparse networks \(e\.g\., IEEE 14\-bus\) to larger and more interconnected systems \(e\.g\., IEEE 118\-bus\)\. Such test cases are widely used in power system research to validate state estimation and cybersecurity methodologies\.
For each system, time\-series measurement data are generated using DC power flow simulations implemented in MATPOWER\[[36](https://arxiv.org/html/2605.28912#bib.bib39)\]\. To introduce realistic temporal variability, load and generation profiles are scaled using time\-series data derived from the Duquesne Light Company \(Pittsburgh\)\. Random scaling factors are applied to simulate natural fluctuations in system demand\. In addition, Gaussian white noise with a standard deviation of0\.020\.02p\.u\. is added to all measurements to emulate realistic sensor noise levels commonly encountered in operational power systems\.
Implementation Details\.For constructing the blind FDIA attack, we employ the autoencoder architecture described in Section[III](https://arxiv.org/html/2605.28912#S3)\. The AE learns the measurement manifold directly from historical measurement data\. The input to the AE consists of active power flow measurements across all transmission branches of the grid\. For example, in the IEEE 14\-bus system containing 20 branches, the input vector dimension is 20\. The AE output mirrors the input and the network is trained to minimize the mean squared reconstruction error\.
To ensure that the AE captures the intrinsic system behavior while filtering out measurement noise, the latent dimension is set equal to the number of independent system states\. Under the DC model, this corresponds to the number of buses minus one \(excluding the slack bus\)\. For instance, the latent dimension of the IEEE 14\-bus system is set to 13\. This design allows the AE to learn the low\-dimensional physical subspace defined by the power flow equations while suppressing noise components\. Both the encoder and decoder consist of five fully connected layers with approximately ten neurons each usingRectified Linear Unit\(ReLU\) activations\.
The AE is trained for up to 300 epochs using the Adam optimizer with a learning rate of2×10−42\\times 10^\{\-4\}and a batch size of 50\. When adversarial modules such as generators and discriminators are involved, they are updated every five iterations to maintain stable convergence\. All simulations are performed using MATLAB 2022b for power flow generation and Python 3\.12 for AE training and attack construction\. The experiments are conducted on a workstation equipped with an Intel Core i7 2\.2 GHz processor and 16 GB of RAM\.
### V\-AEvaluation of Autoencoded Blind FDIA
We first evaluate whether the proposed autoencoder can successfully learn the underlying measurement manifold of the power system\. Since the measurement space is high dimensional, direct visualization is not feasible\. Instead, we select four representative branch power flow measurements in the IEEE 14\-bus system, corresponding to lines\(2,3\)\(2,3\),\(2,5\)\(2,5\),\(4,7\)\(4,7\), and\(6,13\)\(6,13\), denoted as pf1 through pf4\.
Figure[5](https://arxiv.org/html/2605.28912#S5.F5)illustrates the original measurements \(top row\) and the AE reconstructed measurements \(bottom row\) for several combinations of these power flow variables\. The close geometric alignment between the original and reconstructed measurements demonstrates that the AE successfully captures the low\-dimensional measurement manifold of the system\.
This reconstruction capability is essential for the blind FDIA described in Section[III](https://arxiv.org/html/2605.28912#S3)\. By reconstructing measurements that lie close to the learned manifold, the attacker can generate perturbations that remain near the approximate null space of the residual\-based bad data detector \(BDD\), allowing the attack to remain stealthy\.
Figure 5:Comparison of original and reconstructed measurement manifolds in the IEEE 14\-bus system\.
### V\-BComparison withDL\-based Detectors
We next evaluate the ability of the proposed Cycle\-Space\-informed detection framework to detect the blind FDIA attack\. Figure[6](https://arxiv.org/html/2605.28912#S5.F6)compares the proposed detector with several advanced machine learning based anomaly detection methods, including anLong Short\-Term Memory\(LSTM\)\-based detector\[[23](https://arxiv.org/html/2605.28912#bib.bib13)\]and anIsolation Forestalgorithm\. For each system, anomaly scores are computed for measurement sequences containing the proposed AE\-based blind FDIA\. The results show that machine learning based detectors frequently produce false positives due to natural system fluctuations and load variability\. Consequently, these methods often fail to clearly identify the attack interval\.
In contrast, the proposed Cycle\-Space detector consistently identifies the attack interval across all tested systems\. This behavior highlights the advantage of incorporating physical system structure into the detection process\. By leveraging the Cycle\-Space structure of the power network, the proposed method can isolate the null space components introduced by the attack, enabling accurate detection even when the attack is designed to evade data\-driven anomaly detectors\.
Figure 6:The comparison of our proposed Cycle\-Space based detector andDL\-based detectors on the proposed FDIA in IEEE 14, 30, 57, 118\-bus systems\.
### V\-CAggregated vs\. Single Decentralized Detection Coverage Comparison
To evaluate the effectiveness of the decentralized detection architecture described in Section[IV](https://arxiv.org/html/2605.28912#S4), we analyze the detection capability of individual cycle\-based detectors \(D\-detectors\) and compare their performance with the aggregated detector\. Figure[7](https://arxiv.org/html/2605.28912#S5.F7)presents theF1F\_\{1\}scores \(visualized as colored heatmaps\) in the attack magnitude–noise plane for the IEEE 14\-, 30\-, 57\-, and 118\-bus systems\. The dashed blue curves correspond to theF1=0\.8F\_\{1\}=0\.8boundary achieved by individual D\-detectors, while the red dashed curves correspond to the aggregated detector\.
The results show that while individual cycle\-based detectors can detect attacks within limited operating regions, the aggregated detector provides significantly broader detection coverage\. This demonstrates that combining information from multiple cycle\-based detectors enhances detection reliability and improves robustness against varying attack magnitudes and noise levels\.To assess robustness when full state information is unavailable, we conduct an additional study under partial observability in[Section\-F](https://arxiv.org/html/2605.28912#A0.SS6)\.
Figure 7:F1F\_\{1\}scores \(colored heatmap\) in the attack magnitude\-noise plane, for IEEE 14, 30, 57, 118\-bus systems, where the 0\.8 value curves for single D\-detectors \(dashed blue lines\) and aggregated result \(red dashed line\) are shown for comparison\.
### V\-DSensitivity Analysis under Noise
We now evaluate the robustness of the Cycle\-Space detection framework under different measurement noise levels\. Figure[8](https://arxiv.org/html/2605.28912#S5.F8)illustrates the reconstruction loss obtained during detection for varying standard deviations of measurement noise in the IEEE 14\-bus system\. The shaded gray region corresponds to the interval during which the AE\-based blind FDIA is active\.
Figure 8:Reconstructed loss in detection procedure in various noise levels in IEEE 14\-bus test case\.The results show that the proposed detector maintains reliable detection capability under realistic PMU noise levels \(approximately0\.010\.01p\.u\.\)\. This indicates that the Cycle\-Space detection approach remains effective even when measurements contain realistic levels of sensor noise, supporting its applicability in practical power system monitoring environments\.
### V\-EExtension to Nonlinear AC Systems
To assess the generalizability of our framework beyond linear DC models, we evaluate the performance ofCSDin AC systems under data\-drivenFDIA\. In this setting,𝐳\\mathbf\{z\}includes both active and reactive power flow measurements based on the AC power flow equations\. We compare the detection results ofCSDandDL\-based methods in Fig\.[9](https://arxiv.org/html/2605.28912#S5.F9)\. Similar to the DC setting,DL\-based anomaly detectors fail to reliably detect the proposed AC attack\. Specifically, theIsolation Forest\(Isolation Forest\) produces no significant response, while theLSTM\-based detector exhibits erratic behavior, with inconsistent localization and high false positive rates\. These results confirm the vulnerability ofDL\-based anomaly detectors in such FDIAs\. Since such models operate purely on statistical patterns without leveraging the system’s physical structure, their performance is influenced by the consistency of the observed measurement trajectory\. By locally adjusting𝑱\\boldsymbol\{J\}\(see Section[III\-A](https://arxiv.org/html/2605.28912#S3.SS1)\) to maintain the attack along the manifold, the adversary ensures that the perturbation remains statistically consistent with normal behavior, further underscoring the advantage of geometry\-aware detectors likeCSD\.
Figure 9:The comparison ofCSDandDL\-based detectors on the proposed FDIA in IEEE1414,3030,5757,118118\-bus AC systems\.In contrast, our proposedCSDremains robust and consistently detects the attack period across all AC systems\. While performance is slightly degraded compared to the DC case, the attack window remains clearly identifiable\. This degradation arises from a key structural difference between DC and AC systems: in DC models, the measurements lie on a low\-dimensional flat subspace, resulting in a sharp drop in singular values after the true rank\. In AC systems, however, the measurements lie on a nonlinear low\-dimensional manifold, causing the singular values to decay more gradually rather than collapsing sharply111As for a comparison between AC and DCState\-Estimation\(SE\) results, since we use a linearized AC description, it is expected to exhibit similar behavior as in the DC case and is therefore omitted for brevity\.\. As a result, the distinction between normal and anomalous subspaces becomes less pronounced\. To account for this effect, the singular value threshold inCSDmust be tuned appropriately\. We find that setting the SVD threshold𝒯\\mathcal\{T\}to values between10−110^\{\-1\}and10−210^\{\-2\}yields robust and consistent performance across all AC systems\. This adjustment allows the method to effectively separate the underlying structure of the measurement data from the perturbed subspace induced by the attack\. These results confirm that the geometric foundation ofCSDextends effectively to nonlinear AC systems, maintaining high detection accuracy and low false positive rates despite manifold curvature and the departure from exact linear structure, and outperforming both classical and learning\-based detectors\.
TABLE I:Detection performance F1\-score\(%\) across IEEE test systems and attack models\. Detectors includeSVD,BDD,Isolation Forest,LSTM, andCSD\.M2M^\{2\}refers to the proposed Autoencoder\-based \(i\.e\., Measurement Manifold learning\-based\)FDIA\.To further evaluate the proposedCSDdetection framework, we consider not only the autoencoder\-based attack developed in Section[III\-A](https://arxiv.org/html/2605.28912#S3.SS1), but also several representative blind FDIA generation methods from the literature\. Specifically, we consider the following attacks for comparison:
- •a principal component analysis \(PCA\)\-based Jacobian estimator\[[35](https://arxiv.org/html/2605.28912#bib.bib41)\],
- •a low\-rank singular value decomposition \(low\-rank SVD\) based approach\[[34](https://arxiv.org/html/2605.28912#bib.bib42)\],
- •iAttackgen\[[28](https://arxiv.org/html/2605.28912#bib.bib43)\], a generative adversarial model for crafting stealthy attacks\.
As illustrated in[TableI](https://arxiv.org/html/2605.28912#S5.T1), first, the proposed autoencoder attack,M2M^\{2\}, achieves lower BDD detection rates \(or equivalently, higher BDD bypass rates\) than several existing blind FDIA approaches\. Second, theCSDexhibits superior detection capabilities compared toSingular Value Decomposition\(SVD\),BDD,Isolation Forest, andLSTM\. Specifically,CSDmaintains robust performance across all four IEEE systems regardless of the attack model employed\. Finally, the improvedCSDperformance observed in larger systems suggests that higher topological complexity provides a richer set of cycle based constraints, which significantly enhances the fidelity of the null space estimation\.
## VIConclusion and future work
This paper investigates blind false data injection attacks \(FDIAs\) and corresponding detection mechanisms in power system state estimation\. We first propose a data\-driven FDIA construction method based on an autoencoder \(AE\) that learns the measurement manifold directly from historical data\. By exploiting the orthogonal direction of this manifold, the attack can generate stealthy perturbations that bypass traditional bad data detection \(BDD\) without requiring prior knowledge of system parameters\. Numerical results demonstrate that the proposed AE\-based attack achieves higher BDD bypass rates than several existing blind FDIA approaches\. To counter such attacks, we develop a topology\-awareCSDbased on the Cycle\-Space of the network, which is shown to achieve optimal generalization error among Cycle\-Space estimators associated with the attack detection\. A primary contribution of this research is the first use of Cycle\-Space theory in the context of cyber\-physical security\. This structural approach provides a fundamental advantage over purely data\-driven detectors by grounding security in the invariant physical topology of the grid\. By leveraging graph structural information, the proposed method reconstructs the system null space without relying on precise line parameters and enables decentralized detection across network cycles\. Experimental results on multiple IEEE benchmark systems show that the proposed detector consistently identifies the proposed blind FDIA, as well as competitive/existing blind FDIAs, and outperforms several machine\-learning\-based anomaly detectors while maintaining robustness under measurement noise\. As a supporting analytical result, we derive a first\-order finite\-sample expression for the expected generalization error of the null space estimator, which we use to establish the optimality of the Minimum Cycle Basis among cycle\-basis\-based estimators\. The expression depends only onrank\(𝐇\)\\text\{rank\}\(\\mathbf\{H\}\), sample size, and noise variance, and applies to subspace estimation beyond power systems\.
Future work will focus on expanding the applicability of the Cycle\-Space formalism, particularly in topology estimation and in the optimization of moving target defense strategies\.
## References
- \[1\]\(2004\)Power system state estimation: theory and implementation\.CRC press\.Cited by:[§II](https://arxiv.org/html/2605.28912#S2.p1.19)\.
- \[2\]P\. M\. Anderson, C\. F\. Henville, R\. Rifaat, B\. Johnson, and S\. Meliopoulos\(2022\)Power system protection\.John Wiley & Sons\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p4.1)\.
- \[3\]A\. Anwar and A\. N\. Mahmood\(2016\)Stealthy and blind false injection attacks on scada ems in the presence of gross errors\.InPower and Energy Society General Meeting,pp\. 1–5\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p3.1)\.
- \[4\]J\. Baik, G\. Ben Arous, and S\. Péché\(2005\)Phase transition of the largest eigenvalue for nonnull complex sample covariance matrices\.Cited by:[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p7.7)\.
- \[5\]P\. Baldi and K\. Hornik\(1989\)Neural networks and principal component analysis: learning from examples without local minima\.Neural networks2\(1\),pp\. 53–58\.Cited by:[§III](https://arxiv.org/html/2605.28912#S3.p4.4)\.
- \[6\]M\. A\. Basit, S\. Dilshad, R\. Badar, and S\. M\. Sami ur Rehman\(2020\)Limitations, challenges, and solution approaches in grid\-connected renewable energy systems\.International Journal of Energy Research44\(6\),pp\. 4132–4162\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p4.1)\.
- \[7\]F\. Benaych\-Georges and R\. R\. Nadakuditi\(2011\)The eigenvalues and eigenvectors of finite, low rank perturbations of large random matrices\.Advances in Mathematics227\(1\),pp\. 494–521\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p8.2),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p7.7),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p9.3)\.
- \[8\]CERT Polska\(2026\-01\)Energy sector incident report – 29 december 2025 cyberattack\.Technical reportCERT Polska\.External Links:[Link](https://cert.pl/en/posts/2026/01/incident-report-energy-sector-2025/)Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p1.1)\.
- \[9\]M\. Esmalifalak, H\. Nguyen, R\. Zheng, L\. Xie, L\. Song, and Z\. Han\(2015\)A stealthy attack against electricity market using independent component analysis\.IEEE Systems Journal12\(1\),pp\. 297–307\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p3.1)\.
- \[10\]Federal Energy Regulatory Commission\(2025\)Summer 2025 energy market and electric reliability assessment\.Technical reportFederal Energy Regulatory Commission \(FERC\)\.External Links:[Link](https://www.ferc.gov/sites/default/files/2025-06/Summer%20Assessment%202025_june%202025.pdf)Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p1.1)\.
- \[11\]R\. D\. Fierro\(1993\)The total least squares problem: computational aspects and analysis \(s\. van huffel and j\. vandewalle\)\.SIAM Review35\(4\),pp\. 660–662\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p8.2),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p9.3)\.
- \[12\]I\. Goodfellow\(2016\)Deep learning\.MIT press\.Cited by:[§III](https://arxiv.org/html/2605.28912#S3.p5.3)\.
- \[13\]A\. K\. Gupta and D\. K\. Nagar\(2018\)Matrix variate distributions\.Chapman and Hall/CRC\.Cited by:[§\-D](https://arxiv.org/html/2605.28912#A0.SS4.2.p2.17)\.
- \[14\]T\. Hong and A\. Hofmann\(2021\)Data integrity attacks against outage management systems\.IEEE Transactions on Engineering Management69\(3\),pp\. 765–772\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p2.1)\.
- \[15\]G\. James, D\. Witten, T\. Hastie, and R\. Tibshirani\(2013\)An introduction to statistical learning: with applications in r\.Vol\.103,Springer\.Cited by:[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p3.8)\.
- \[16\]T\. Kavitha, K\. Mehlhorn, D\. Michail, and K\. E\. Paluch\(2007\)An o\(m 2 n\) algorithm for minimum cycle basis of graphs\.Algorithmica52\(3\),pp\. 333–349\.Cited by:[Corollary 1](https://arxiv.org/html/2605.28912#Thmcoro1.p1.1.1)\.
- \[17\]S\. Lakshminarayana, A\. Kammoun, M\. Debbah, and H\. V\. Poor\(2020\)Data\-driven false data injection attacks against power grids: a random matrix approach\.IEEE Transactions on Smart Grid12\(1\)\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p4.1)\.
- \[18\]C\. Li and P\. K\. Tam\(1998\)An iterative algorithm for minimum cross entropy thresholding\.Pattern recognition letters19\(8\),pp\. 771–776\.Cited by:[§IV\-B](https://arxiv.org/html/2605.28912#S4.SS2.p6.5)\.
- \[19\]C\. H\. Li and C\. Lee\(1993\)Minimum cross entropy thresholding\.Pattern recognition26\(4\),pp\. 617–625\.Cited by:[§IV\-B](https://arxiv.org/html/2605.28912#S4.SS2.p6.5)\.
- \[20\]F\. Li, H\. Liu, and R\. J\. Vaccaro\(2002\)Performance analysis for doa estimation algorithms: unification, simplification, and observations\.IEEE Transactions on Aerospace and Electronic Systems29\(4\),pp\. 1170–1184\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p8.2),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p1.1),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p9.3)\.
- \[21\]Y\. Li, C\. Liu, and P\. Zhang\(2023\)Cybersecurity of battery energy storage systems in power grids: threats, vulnerabilities, and mitigation strategies\.IEEE Access11,pp\. 52017–52034\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2023.3279845)Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p1.1)\.
- \[22\]Y\. Liu, P\. Ning, and M\. K\. Reiter\(2011\)False data injection attacks against state estimation in electric power grids\.ACM Transactions on Information and System Security \(TISSEC\)14\(1\),pp\. 1–33\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p2.1),[§I](https://arxiv.org/html/2605.28912#S1.p3.1),[§III](https://arxiv.org/html/2605.28912#S3.p1.6)\.
- \[23\]Matlab\(2023\)Deep signal anomaly detector\(Website\)External Links:[Link](https://www.mathworks.com/help/signal/ref/deepsignalanomalydetector.html)Cited by:[§V\-B](https://arxiv.org/html/2605.28912#S5.SS2.p1.1)\.
- \[24\]A\. S\. Musleh, G\. Chen, Z\. Y\. Dong, C\. Wang, and S\. Chen\(2022\)Attack detection in automatic generation control systems using lstm\-based stacked autoencoders\.IEEE Transactions on Industrial Informatics19\(1\),pp\. 153–165\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p4.1)\.
- \[25\]K\. Paul\(2022\)Modified grey wolf optimization approach for power system transmission line congestion management based on the influence of solar photovoltaic system\.International Journal of Energy and Environmental Engineering13\(2\),pp\. 751–767\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p2.1)\.
- \[26\]M\. A\. Rahman, E\. Al\-Shaer, and R\. Kavasseri\(2014\)Impact analysis of topology poisoning attacks on economic operation of the smart power grid\.InIEEE 34th International Conference on Distributed Computing Systems,pp\. 649–659\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p2.1)\.
- \[27\]G\. C\. Rasner\(2021\)Cybersecurity and third\-party risk: third party threat hunting\.John Wiley & Sons\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p1.1),[§I](https://arxiv.org/html/2605.28912#S1.p4.1)\.
- \[28\]M\. H\. Shahriar, A\. A\. Khalil, M\. A\. Rahman, M\. H\. Manshaei, and D\. Chen\(2021\)IAttackGen: generative synthesis of false data injection attacks in cyber\-physical systems\.InConference on Communications and Network Security,pp\. 200–208\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p4.1),[3rd item](https://arxiv.org/html/2605.28912#S5.I1.i3.p1.1)\.
- \[29\]A\. Swain, E\. Abdellatif, A\. Mousa, and P\. W\. Pong\(2022\)Sensor technologies for transmission and distribution systems: a review of the latest developments\.Energies15\(19\),pp\. 7339\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p1.1)\.
- \[30\]G\. Swewart\(1977\)On the perturbation of pseudoinverses, projections and linear square problem\.SIAM Rev19,pp\. 634–662\.Cited by:[§\-C](https://arxiv.org/html/2605.28912#A0.SS3.14.p14.2),[§I](https://arxiv.org/html/2605.28912#S1.p8.2),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p1.1),[§IV\-C](https://arxiv.org/html/2605.28912#S4.SS3.p9.3)\.
- \[31\]Z\. Wang, H\. He, Z\. Wan, and Y\. Sun\(2020\)Detection of false data injection attacks in ac state estimation using phasor measurements\.IEEE Transactions on Smart Grid\.Cited by:[§II](https://arxiv.org/html/2605.28912#S2.p1.19)\.
- \[32\]Wikipedia contributors\(2024\)Trace \(linear algebra\)\.Note:en\.wikipedia\.org/wiki/Trace\_\(linear\_algebra\)Cited by:[§\-C](https://arxiv.org/html/2605.28912#A0.SS3.11.p11.1)\.
- \[33\]H\. Yang, X\. He, Z\. Wang, R\. C\. Qiu, and Q\. Ai\(2022\)Blind false data injection attacks against state estimation based on matrix reconstruction\.IEEE Transactions on Smart Grid13\(4\),pp\. 3174–3187\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p4.1)\.
- \[34\]H\. Yang and Z\. Wang\(2023\)A false data injection attack approach without knowledge of system parameters considering measurement noise\.IEEE Internet of Things Journal\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p3.1),[2nd item](https://arxiv.org/html/2605.28912#S5.I1.i2.p1.1)\.
- \[35\]Z\. Yu and W\. Chin\(2015\)Blind false data injection attack using pca approximation method in smart grid\.IEEE Transactions on Smart Grid6\(3\),pp\. 1219–1226\.Cited by:[§I](https://arxiv.org/html/2605.28912#S1.p3.1),[1st item](https://arxiv.org/html/2605.28912#S5.I1.i1.p1.1)\.
- \[36\]R\. D\. Zimmerman, C\. E\. Murillo\-Sánchez, and R\. J\. Thomas\(2010\)MATPOWER: steady\-state operations, planning, and analysis tools for power systems research and education\.IEEE Transactions on Power Systems26\(1\),pp\. 12–19\.Cited by:[§V](https://arxiv.org/html/2605.28912#S5.p3.1)\.
- \[37\]T\. Zu and F\. Li\(2024\)Self\-attention spatio\-temporal deep collaborative network for robust fdia detection in smart grids\.\.CMES\-Computer Modeling in Engineering & Sciences141\(2\)\.Cited by:[§III](https://arxiv.org/html/2605.28912#S3.p1.6)\.
### \-AExpected Generalization Error Simplification
𝐙⋆T𝐧^\\mathbf\{Z\}\_\{\\star\}^\{T\}\\hat\{\\mathbf\{n\}\}can be expanded as:
𝐙⋆T𝐧^=𝐙⋆T𝐧\+𝐙⋆Tϵ=𝐙¯⋆T𝐧\+ℰ⋆T𝐧\+𝐙⋆Tϵ\.\\mathbf\{Z\}\_\{\\star\}^\{T\}\\hat\{\\mathbf\{n\}\}=\\mathbf\{Z\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}=\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\.\(A\.1\)Since by definition𝐙¯⋆T𝐧=0\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\\mathbf\{n\}=0:
𝐙⋆T𝐧^=ℰ⋆T𝐧\+𝐙⋆Tϵ\\mathbf\{Z\}\_\{\\star\}^\{T\}\\hat\{\\mathbf\{n\}\}=\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\(A\.2\)And therefore:
‖𝐙⋆T𝐧^‖22\\displaystyle\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|\_\{2\}^\{2\}=‖ℰ⋆T𝐧\+𝐙⋆Tϵ‖22\\displaystyle=\\\|\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|\_\{2\}^\{2\}=\(ℰ⋆T𝐧\+𝐙⋆Tϵ\)T\(ℰ⋆T𝐧\+𝐙⋆Tϵ\)\\displaystyle=\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\)^\{T\}\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\+\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\)=‖ℰ⋆T𝐧‖2\+2\(ℰ⋆T𝐧\)T𝐙⋆Tϵ\+‖𝐙⋆Tϵ‖2\\displaystyle=\\\|\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\\\|^\{2\}\+2\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\)^\{T\}\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\(A\.3\)
Now we use this expanded term in[eq\.15](https://arxiv.org/html/2605.28912#S4.E15)\(the definition ofEgenE\_\{\\text\{gen\}\}\):
Egen=\\displaystyle E\_\{\\text\{gen\}\}=limT⋆→∞1T⋆𝔼𝐙\[‖ℰ⋆T𝐧‖2\+2\(ℰ⋆T𝐧\)T𝐙⋆Tϵ\+‖𝐙⋆Tϵ‖2\]\\displaystyle\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{1\}\{T\_\{\\star\}\}\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\\\|^\{2\}\+2\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\)^\{T\}\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\]\(A\.4\)
Since1T⋆𝔼𝐙\[‖ℰ⋆T𝐧‖2\]=σ2\\frac\{1\}\{T\_\{\\star\}\}\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\\\|^\{2\}\]=\\sigma^\{2\}:
Egen=σ2\+limT⋆→∞1T⋆𝔼𝐙\[2\(ℰ⋆T𝐧\)T𝐙⋆Tϵ\+‖𝐙⋆Tϵ‖2\]E\_\{\\text\{gen\}\}=\\sigma^\{2\}\+\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{1\}\{T\_\{\\star\}\}\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[2\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\)^\{T\}\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\]\(A\.5\)
Next we focus on𝔼𝐙\[2\(ℰ⋆T𝐧\)T𝐙⋆Tϵ\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[2\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\)^\{T\}\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]:
𝔼𝐙\[\(ℰ⋆T𝐧\)T𝐙⋆Tϵ\]\\displaystyle\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\(\\mathcal\{E\}\_\{\\star\}^\{T\}\\mathbf\{n\}\)^\{T\}\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]=𝔼𝐙\[𝐧Tℰ⋆𝐙⋆Tϵ\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]\(A\.6\)=𝔼𝐙\[𝐧Tℰ⋆\(𝐙¯⋆T\+ℰ⋆T\)ϵ\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\(\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\+\\mathcal\{E\}\_\{\\star\}^\{T\}\)\\boldsymbol\{\\epsilon\}\]\(A\.7\)
Sinceℰ⋆,𝐧,𝐙¯⋆,ϵ\\mathcal\{E\}\_\{\\star\},\\mathbf\{n\},\\bar\{\\mathbf\{Z\}\}\_\{\\star\},\\boldsymbol\{\\epsilon\}are independent we use the expectation separability property:
𝔼𝐙\[𝐧Tℰ⋆𝐙¯⋆Tϵ\]=𝔼𝐙\[𝐧T\]𝔼𝐙\[ℰ⋆\]𝔼𝐙\[𝐙¯⋆Tϵ\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]=\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathcal\{E\}\_\{\\star\}\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]\(A\.8\)Observing that𝔼𝐙\[ℰ⋆\]=0m×T⋆\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathcal\{E\}\_\{\\star\}\]=0\_\{m\\times T\_\{\\star\}\}, we therefore have:
Egen=σ2\+limT⋆→∞𝔼𝐙\[‖𝐙⋆Tϵ‖2\+2𝐧Tℰ⋆ℰ⋆Tϵ\]T⋆E\_\{\\text\{gen\}\}=\\sigma^\{2\}\+\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\+2\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]\}\{T\_\{\\star\}\}\(A\.9\)
### \-BFirst\-order Lagrangian Solution
###### Proposition 2\(First Order Lagrangian Solution\)\.
The first order solution for the vectorϵ\\boldsymbol\{\\epsilon\}which minimizes‖𝐙T𝐧^‖2\\\|\\mathbf\{Z\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}is given by:
ϵ=\\displaystyle\\boldsymbol\{\\epsilon\}=−\(𝐙¯T\)\+ℰT𝐧\\displaystyle\-\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\(A\.10\)
###### Proof\.
When the noise stdσ\\sigmais small, we may safely disregard the second\-order termℰTϵ\\mathcal\{E\}^\{T\}\\boldsymbol\{\\epsilon\}\.
Also:
‖𝐧\+ϵ‖2\\displaystyle\\\|\\mathbf\{n\}\+\\boldsymbol\{\\epsilon\}\\\|^\{2\}=\(𝐧\+ϵ\)T\(𝐧\+ϵ\)\\displaystyle=\(\\mathbf\{n\}\+\\boldsymbol\{\\epsilon\}\)^\{T\}\(\\mathbf\{n\}\+\\boldsymbol\{\\epsilon\}\)\(A\.11\)=𝐧T𝐧\+2𝐧Tϵ\+ϵTϵ\\displaystyle=\\mathbf\{n\}^\{T\}\\mathbf\{n\}\+2\\mathbf\{n\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\boldsymbol\{\\epsilon\}^\{T\}\\boldsymbol\{\\epsilon\}\(A\.12\)=1\+2𝐧Tϵ\+ϵTϵ\\displaystyle=1\+2\\mathbf\{n\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\boldsymbol\{\\epsilon\}^\{T\}\\boldsymbol\{\\epsilon\}\(A\.13\)=1\\displaystyle=1\(A\.14\)Disregarding the second order termϵTϵ\\boldsymbol\{\\epsilon\}^\{T\}\\boldsymbol\{\\epsilon\}, we have𝐧Tϵ=0\\mathbf\{n\}^\{T\}\\boldsymbol\{\\epsilon\}=0\. So the optimization problem becomes:
minϵ12‖𝐙¯Tϵ\+ℰT𝐧‖2s\.t\.𝐧Tϵ=0\\min\_\{\\boldsymbol\{\\epsilon\}\}\\frac\{1\}\{2\}\\\|\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\mathcal\{E\}^\{T\}\\mathbf\{n\}\\\|^\{2\}\\quad\\text\{s\.t\.\}\\quad\\mathbf\{n\}^\{T\}\\boldsymbol\{\\epsilon\}=0\(A\.15\)
Consider the following Lagrangian:
ℒ\(ϵ,μ\)=12\(𝐙¯Tϵ\+ℰT𝐧\)T\(𝐙¯Tϵ\+ℰT𝐧\)\+μ\(𝐧Tϵ\)\\mathcal\{L\}\(\\boldsymbol\{\\epsilon\},\\mu\)=\\frac\{1\}\{2\}\(\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\mathcal\{E\}^\{T\}\\mathbf\{n\}\)^\{T\}\(\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\mathcal\{E\}^\{T\}\\mathbf\{n\}\)\+\\mu\(\\mathbf\{n\}^\{T\}\\boldsymbol\{\\epsilon\}\)\(A\.16\)
Taking the derivative with respect toϵ\\boldsymbol\{\\epsilon\}\(First\-Order Condition\):
∂ℒ∂ϵ=𝐙¯\(𝐙¯Tϵ\+ℰT𝐧\)\+μ𝐧=0\\frac\{\\partial\\mathcal\{L\}\}\{\\partial\\boldsymbol\{\\epsilon\}\}=\\bar\{\\mathbf\{Z\}\}\(\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\mathcal\{E\}^\{T\}\\mathbf\{n\}\)\+\\mu\\mathbf\{n\}=0\(A\.17\)𝐙¯𝐙¯Tϵ\+𝐙¯ℰT𝐧\+μ𝐧=0\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\bar\{\\mathbf\{Z\}\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\+\\mu\\mathbf\{n\}=0\(A\.18\)
Solving for the Lagrange Multiplierμ\\mu, we left\-multiply by𝐧T\\mathbf\{n\}^\{T\}:
𝐧T𝐙¯𝐙¯Tϵ\+𝐧T𝐙¯ℰT𝐧\+μ\(𝐧T𝐧\)=0\\mathbf\{n\}^\{T\}\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\mathbf\{n\}^\{T\}\\bar\{\\mathbf\{Z\}\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\+\\mu\(\\mathbf\{n\}^\{T\}\\mathbf\{n\}\)=0\(A\.19\)
Applying the following properties: 1\) Orthogonality: Since𝐙¯T𝐧=0\\bar\{\\mathbf\{Z\}\}^\{T\}\\mathbf\{n\}=0, taking the transpose gives𝐧T𝐙¯=0\\mathbf\{n\}^\{T\}\\bar\{\\mathbf\{Z\}\}=0\. 2\) Unit Vector:𝐧T𝐧=1\\mathbf\{n\}^\{T\}\\mathbf\{n\}=1\. Substituting these expressions into the above equation:
\(0\)𝐙¯T𝐧\+\(0\)ℰT𝐧\+μ\(1\)=0\(0\)\\bar\{\\mathbf\{Z\}\}^\{T\}\\mathbf\{n\}\+\(0\)\\mathcal\{E\}^\{T\}\\mathbf\{n\}\+\\mu\(1\)=0\(A\.20\)
Substitutingμ=0\\mu=0back into[eq\.A\.18](https://arxiv.org/html/2605.28912#A0.E18):
𝐙¯𝐙¯Tϵ\+𝐙¯ℰT𝐧=0\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\bar\{\\mathbf\{Z\}\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}=0\(A\.22\)𝐙¯𝐙¯Tϵ=−𝐙¯ℰT𝐧\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\\boldsymbol\{\\epsilon\}=\-\\bar\{\\mathbf\{Z\}\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\(A\.23\)Finally, we now isolateϵ\\boldsymbol\{\\epsilon\}\. The matrix𝐙¯𝐙¯T\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}may not be invertible \(singular\), so we use the Moore\-Penrose pseudoinverse, denoted as\(𝐙¯𝐙¯T\)\+\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\.
ϵ=−\(𝐙¯𝐙¯T\)\+𝐙¯ℰT𝐧\+\(Im−\(𝐙¯𝐙¯T\)\+𝐙¯𝐙¯T\)y,\\displaystyle\\boldsymbol\{\\epsilon\}=\-\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\bar\{\\mathbf\{Z\}\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\+\(I\_\{m\}\-\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)y,\(A\.24\)yarbitrary∈Rm\\displaystyle y\\quad\\text\{arbitrary\}\\in R^\{m\}\(A\.25\)
Since\(Im−\(𝐙¯𝐙¯T\)\+𝐙¯𝐙¯T\)y\(I\_\{m\}\-\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)ylies in the null space of𝐙¯T\\bar\{\\mathbf\{Z\}\}^\{T\}, we disregard this term and\(𝐙¯𝐙¯T\)\+𝐙¯=\(𝐙¯T\)\+\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\bar\{\\mathbf\{Z\}\}=\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\.
Thus, the simplified first\-order solution forϵ\\boldsymbol\{\\epsilon\}is
ϵ=−\(𝐙¯T\)\+ℰT𝐧\\boldsymbol\{\\epsilon\}=\-\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\(A\.26\)
∎
### \-CExpected Generalization Error
###### Theorem 2\(First Order Finite Sample Expected Generalization Error\)\.
The first\-order finite sample expected generalization error is given by:
Egen=σ2\(1\+rank\(𝐇\)To−n\)\\boxed\{E\_\{\\text\{gen\}\}=\\sigma^\{2\}\(1\+\\frac\{\\mathrm\{rank\}\(\\mathbf\{H\}\)\}\{T\_\{o\}\-n\}\)\}\(A\.27\)
###### Proof\.
In[eq\.16](https://arxiv.org/html/2605.28912#S4.E16), the Expected Generalization Error is:
Egen=σ2\+limT⋆→∞𝔼𝐙\[‖𝐙⋆Tϵ‖2\+2𝐧Tℰ⋆ℰ⋆Tϵ\]T⋆E\_\{gen\}=\\sigma^\{2\}\+\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\+2\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]\}\{T\_\{\\star\}\}\(A\.28\)
Plugging[eq\.17](https://arxiv.org/html/2605.28912#S4.E17)into𝔼𝐙\[𝐧Tℰ⋆ℰ⋆Tϵ\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]:
𝔼𝐙\[𝐧Tℰ⋆ℰ⋆Tϵ\]\\displaystyle\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]\(A\.29\)=𝔼𝐙\[𝐧Tℰ⋆ℰ⋆T\(𝐙¯\+\)TℰT𝐧\]\\displaystyle=\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\(\\bar\{\\mathbf\{Z\}\}^\{\+\}\)^\{T\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\]\(A\.30\)=Tr\(𝔼𝐙\[ℰ⋆ℰ⋆T\(𝐙¯\+\)TℰT𝐧𝐧T\]\)\\displaystyle=Tr\(\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\(\\bar\{\\mathbf\{Z\}\}^\{\+\}\)^\{T\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\\mathbf\{n\}^\{T\}\]\)\(A\.31\)=Tr\(𝔼𝐙\[ℰ⋆ℰ⋆T\]𝔼𝐙\[\(𝐙¯\+\)T\]𝔼𝐙\[ℰT𝐧𝐧T\]\)\\displaystyle=Tr\(\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\(\\bar\{\\mathbf\{Z\}\}^\{\+\}\)^\{T\}\]\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathcal\{E\}^\{T\}\\mathbf\{n\}\\mathbf\{n\}^\{T\}\]\)\(A\.32\)
Because𝔼𝐙\[ℰT𝐧𝐧T\]=0To×m\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathcal\{E\}^\{T\}\\mathbf\{n\}\\mathbf\{n\}^\{T\}\]=0\_\{T\_\{o\}\\times m\},𝔼𝐙\[𝐧Tℰ⋆ℰ⋆Tϵ\]=0\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\mathbf\{n\}^\{T\}\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\]=0\.
Expanding𝔼𝐙\[‖𝐙⋆Tϵ‖2\]T⋆\\frac\{\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\]\}\{T\_\{\\star\}\}:
‖𝐙⋆Tϵ‖2T⋆\\displaystyle\\frac\{\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\}\{T\_\{\\star\}\}=‖\(𝐙¯⋆\+ℰ⋆\)Tϵ‖2T⋆\\displaystyle=\\frac\{\\\|\(\\bar\{\\mathbf\{Z\}\}\_\{\\star\}\+\\mathcal\{E\}\_\{\\star\}\)^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\}\{T\_\{\\star\}\}\(A\.33\)=ϵT\(𝐙¯⋆\+ℰ⋆\)\(𝐙¯⋆\+ℰ⋆\)TϵT⋆\\displaystyle=\\frac\{\\boldsymbol\{\\epsilon\}^\{T\}\(\\bar\{\\mathbf\{Z\}\}\_\{\\star\}\+\\mathcal\{E\}\_\{\\star\}\)\(\\bar\{\\mathbf\{Z\}\}\_\{\\star\}\+\\mathcal\{E\}\_\{\\star\}\)^\{T\}\\boldsymbol\{\\epsilon\}\}\{T\_\{\\star\}\}\(A\.34\)=ϵT\(𝐙¯⋆𝐙¯⋆T\+ℰ⋆𝐙¯⋆T\+𝐙¯⋆ℰ⋆T\+ℰ⋆ℰ⋆T\)ϵT⋆\\displaystyle=\\frac\{\\boldsymbol\{\\epsilon\}^\{T\}\(\\bar\{\\mathbf\{Z\}\}\_\{\\star\}\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\+\\mathcal\{E\}\_\{\\star\}\\bar\{\\mathbf\{Z\}\}\_\{\\star\}^\{T\}\+\\bar\{\\mathbf\{Z\}\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\+\\mathcal\{E\}\_\{\\star\}\\mathcal\{E\}\_\{\\star\}^\{T\}\)\\boldsymbol\{\\epsilon\}\}\{T\_\{\\star\}\}\(A\.35\)=ϵT\(𝐇𝐗⋆𝐗⋆T𝐇T\+T⋆Imσ2\)ϵT⋆\\displaystyle=\\frac\{\\boldsymbol\{\\epsilon\}^\{T\}\(\\mathbf\{H\}\\mathbf\{X\}\_\{\\star\}\\mathbf\{X\}\_\{\\star\}^\{T\}\\mathbf\{H\}^\{T\}\+T\_\{\\star\}I\_\{m\}\\sigma^\{2\}\)\\boldsymbol\{\\epsilon\}\}\{T\_\{\\star\}\}\(A\.36\)
Plugging[eq\.17](https://arxiv.org/html/2605.28912#S4.E17)intoσ2ϵTImϵ\\sigma^\{2\}\\boldsymbol\{\\epsilon\}^\{T\}I\_\{m\}\\boldsymbol\{\\epsilon\}:
σ2ϵTImϵ=σ2𝐧Tℰ𝐙¯\+\(𝐙¯\+\)TℰT𝐧\\displaystyle\\sigma^\{2\}\\boldsymbol\{\\epsilon\}^\{T\}I\_\{m\}\\boldsymbol\{\\epsilon\}=\\sigma^\{2\}\\mathbf\{n\}^\{T\}\\mathcal\{E\}\\bar\{\\mathbf\{Z\}\}^\{\+\}\(\\bar\{\\mathbf\{Z\}\}^\{\+\}\)^\{T\}\\mathcal\{E\}^\{T\}\\mathbf\{n\}\(A\.37\)
Since:
σ2ϵTImϵ=σ4Tr\(\(𝐇𝐇T\)\+\)To−n−1=𝒪\(σ4‖𝐇\+‖2To−n−1\)\\displaystyle\\sigma^\{2\}\\boldsymbol\{\\epsilon\}^\{T\}I\_\{m\}\\boldsymbol\{\\epsilon\}=\\sigma^\{4\}\\frac\{Tr\(\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\}\)\}\{T\_\{o\}\-n\-1\}=\\mathcal\{O\}\(\\sigma^\{4\}\\frac\{\\\|\\mathbf\{H\}^\{\+\}\\\|^\{2\}\}\{T\_\{o\}\-n\-1\}\)\(A\.38\)
SincelimT⋆→∞𝐗⋆𝐗⋆TT⋆=In\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{\\mathbf\{X\}\_\{\\star\}\\mathbf\{X\}\_\{\\star\}^\{T\}\}\{T\_\{\\star\}\}=I\_\{n\}:
limT⋆→∞‖𝐙⋆Tϵ‖2T⋆=ϵT𝐇𝐇Tϵ\+𝒪\(σ4‖𝐇\+‖2To−n−1\)\\lim\_\{T\_\{\\star\}\\rightarrow\\infty\}\\frac\{\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\boldsymbol\{\\epsilon\}\\\|^\{2\}\}\{T\_\{\\star\}\}=\\boldsymbol\{\\epsilon\}^\{T\}\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\boldsymbol\{\\epsilon\}\+\\mathcal\{O\}\(\\sigma^\{4\}\\frac\{\\\|\\mathbf\{H\}^\{\+\}\\\|^\{2\}\}\{T\_\{o\}\-n\-1\}\)\(A\.39\)Using the cyclic property of the trace\[[32](https://arxiv.org/html/2605.28912#bib.bib20)\]:
ϵT𝐇𝐇Tϵ=Tr\(𝐇𝐇TϵϵT\)\.\\boldsymbol\{\\epsilon\}^\{T\}\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\boldsymbol\{\\epsilon\}=\\mathrm\{Tr\}\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\,\\boldsymbol\{\\epsilon\}\\boldsymbol\{\\epsilon\}^\{T\}\)\.\(A\.40\)
Taking expectation:
𝔼𝐙\[ϵT𝐇𝐇Tϵ\]=Tr\(𝐇𝐇T𝔼𝐙\[ϵϵT\]\)\\displaystyle\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\boldsymbol\{\\epsilon\}^\{T\}\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\boldsymbol\{\\epsilon\}\]=\\mathrm\{Tr\}\\left\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\boldsymbol\{\\epsilon\}\\boldsymbol\{\\epsilon\}^\{T\}\]\\right\)\(A\.41\)=Tr\(𝐇𝐇TCov\(ϵ\)\)\.\\displaystyle=\\mathrm\{Tr\}\\left\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\mathrm\{Cov\}\(\\boldsymbol\{\\epsilon\}\)\\right\)\.\(A\.42\)
Using the covariance result in[corollary1](https://arxiv.org/html/2605.28912#Thmcorollary1):
𝔼𝐙\[ϵT𝐇𝐇Tϵ\]=σ2To−nTr\(𝐇𝐇T\(𝐇𝐇T\)\+\)\.\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\boldsymbol\{\\epsilon\}^\{T\}\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\boldsymbol\{\\epsilon\}\]=\\frac\{\\sigma^\{2\}\}\{T\_\{o\}\-n\}\\mathrm\{Tr\}\\left\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\}\\right\)\.\(A\.43\)
Since𝐇𝐇T\(𝐇𝐇T\)\+=PCol\(𝐇\)\\mathbf\{H\}\\mathbf\{H\}^\{T\}\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\}=P\_\{\\mathrm\{Col\}\(\\mathbf\{H\}\)\}which is the projection matrix on the column space of𝐇\\mathbf\{H\}\[[30](https://arxiv.org/html/2605.28912#bib.bib17)\], its trace equals the rank:
𝔼𝐙\[ϵT𝐇𝐇Tϵ\]=σ2rank\(𝐇\)To−n\.\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\boldsymbol\{\\epsilon\}^\{T\}\\mathbf\{H\}\\mathbf\{H\}^\{T\}\\boldsymbol\{\\epsilon\}\]=\\frac\{\\sigma^\{2\}\\,\\mathrm\{rank\}\(\\mathbf\{H\}\)\}\{T\_\{o\}\-n\}\.\(A\.44\)So the Expected Generalization Error is :
Egen=σ2\(1\+rank\(𝐇\)To−n\)\+𝒪\(σ4‖𝐇\+‖2\(To−n−1\)To\)\.E\_\{\\text\{gen\}\}=\\sigma^\{2\}\(1\+\\frac\{\\mathrm\{rank\}\(\\mathbf\{H\}\)\}\{T\_\{o\}\-n\}\)\+\\mathcal\{O\}\(\\sigma^\{4\}\\frac\{\\\|\\mathbf\{H\}^\{\+\}\\\|^\{2\}\}\{\(T\_\{o\}\-n\-1\)T\_\{o\}\}\)\.\(A\.45\)
∎
### \-DCovariance of the First\-Order Estimation Error
###### Corollary 1\(Covariance of the First\-Order Estimation Error\)\.
Under the setting of[2](https://arxiv.org/html/2605.28912#Thmprop2), assume𝐙¯=𝐇𝐗\\bar\{\\mathbf\{Z\}\}=\\mathbf\{H\}\\mathbf\{X\}with the columns of𝐗\\mathbf\{X\}drawn i\.i\.d\. from𝒩\(0,In\)\\mathcal\{N\}\(0,I\_\{n\}\),rank\(𝐇\)=n−1\\mathrm\{rank\}\(\\mathbf\{H\}\)=n\-1, andTo\>nT\_\{o\}\>n\. Thenϵ\\boldsymbol\{\\epsilon\}has zero mean and covariance
Cov\(ϵ\)=σ2To−n\(𝐇𝐇T\)\+\.\\mathrm\{Cov\}\(\\boldsymbol\{\\epsilon\}\)\\;=\\;\\frac\{\\sigma^\{2\}\}\{T\_\{o\}\-n\}\\,\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\}\.\(A\.46\)
###### Proof\.
Let𝐀=−\(𝐙¯T\)\+\\mathbf\{A\}=\-\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\. Then \([A\.10](https://arxiv.org/html/2605.28912#A0.E10)\) gives
ϵ=𝐀ℰT𝐧\.\\boldsymbol\{\\epsilon\}=\\mathbf\{A\}\\,\\mathcal\{E\}^\{T\}\\mathbf\{n\}\.\(A\.47\)Since the entries ofℰ\\mathcal\{E\}are i\.i\.d\.𝒩\(0,σ2\)\\mathcal\{N\}\(0,\\sigma^\{2\}\)and𝐧\\mathbf\{n\}is a deterministic unit vector,
𝔼ℰ\[ℰT𝐧𝐧Tℰ\]=σ2ITo\.\\mathbb\{E\}\_\{\\mathcal\{E\}\}\\left\[\\mathcal\{E\}^\{T\}\\mathbf\{n\}\\,\\mathbf\{n\}^\{T\}\\mathcal\{E\}\\right\]=\\sigma^\{2\}I\_\{T\_\{o\}\}\.\(A\.48\)Because𝐙¯\\bar\{\\mathbf\{Z\}\}andℰ\\mathcal\{E\}are independent and𝔼\[ℰ\]=0\\mathbb\{E\}\[\\mathcal\{E\}\]=0, the mean𝔼\[ϵ\]=0\\mathbb\{E\}\[\\boldsymbol\{\\epsilon\}\]=0, and
Cov\(ϵ\)=𝔼\[𝐀σ2ITo𝐀T\]=σ2𝔼\[𝐀𝐀T\]\.\\mathrm\{Cov\}\(\\boldsymbol\{\\epsilon\}\)=\\mathbb\{E\}\\left\[\\mathbf\{A\}\\,\\sigma^\{2\}I\_\{T\_\{o\}\}\\,\\mathbf\{A\}^\{T\}\\right\]=\\sigma^\{2\}\\,\\mathbb\{E\}\\left\[\\mathbf\{A\}\\mathbf\{A\}^\{T\}\\right\]\.\(A\.49\)Note:
𝐀𝐀T=\(𝐙¯T\)\+\(\(𝐙¯T\)\+\)T=\(𝐙¯𝐙¯T\)\+\.\\mathbf\{A\}\\mathbf\{A\}^\{T\}=\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\big\(\(\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\big\)^\{T\}=\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\.\(A\.50\)By plugging \([A\.50](https://arxiv.org/html/2605.28912#A0.E50)\) into \([A\.49](https://arxiv.org/html/2605.28912#A0.E49)\), we get:
Cov\(ϵ\)=σ2𝔼\[\(𝐙¯𝐙¯T\)\+\]\.\\mathrm\{Cov\}\(\\boldsymbol\{\\epsilon\}\)=\\sigma^\{2\}\\,\\mathbb\{E\}\\left\[\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\right\]\.\(A\.51\)
Since𝐙¯=𝐇𝐗\\bar\{\\mathbf\{Z\}\}=\\mathbf\{H\}\\mathbf\{X\}, we have
𝐙¯𝐙¯T=𝐇\(𝐗𝐗T\)𝐇T\.\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}=\\mathbf\{H\}\(\\mathbf\{X\}\\mathbf\{X\}^\{T\}\)\\mathbf\{H\}^\{T\}\.\(A\.52\)Take the SVD𝐇=𝐔r𝚺r𝐕rT\\mathbf\{H\}=\\mathbf\{U\}\_\{r\}\\mathbf\{\\Sigma\}\_\{r\}\\mathbf\{V\}\_\{r\}^\{T\}with𝐔r∈ℝm×\(n−1\)\\mathbf\{U\}\_\{r\}\\in\\mathbb\{R\}^\{m\\times\(n\-1\)\},𝚺r∈ℝ\(n−1\)×\(n−1\)\\mathbf\{\\Sigma\}\_\{r\}\\in\\mathbb\{R\}^\{\(n\-1\)\\times\(n\-1\)\}diagonal and invertible, and𝐕rT𝐕r=In−1\\mathbf\{V\}\_\{r\}^\{T\}\\mathbf\{V\}\_\{r\}=I\_\{n\-1\}\. Let𝒲=𝐕rT𝐗∈ℝ\(n−1\)×To\\mathcal\{W\}=\\mathbf\{V\}\_\{r\}^\{T\}\\mathbf\{X\}\\in\\mathbb\{R\}^\{\(n\-1\)\\times T\_\{o\}\}\. Since the columns of𝐗\\mathbf\{X\}are i\.i\.d\.𝒩\(0,In\)\\mathcal\{N\}\(0,I\_\{n\}\)and𝐕rT𝐕r=In−1\\mathbf\{V\}\_\{r\}^\{T\}\\mathbf\{V\}\_\{r\}=I\_\{n\-1\}, the columns of𝒲\\mathcal\{W\}are i\.i\.d\.𝒩\(0,In−1\)\\mathcal\{N\}\(0,I\_\{n\-1\}\), so𝒲𝒲T∼Wishartn−1\(To,In−1\)\\mathcal\{W\}\\mathcal\{W\}^\{T\}\\sim\\mathrm\{Wishart\}\_\{n\-1\}\(T\_\{o\},I\_\{n\-1\}\)and is invertible almost surely forTo\>n−1T\_\{o\}\>n\-1\. Hence
𝐙¯𝐙¯T=𝐔r𝚺r𝒲𝒲T𝚺r𝐔rT,\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}=\\mathbf\{U\}\_\{r\}\\mathbf\{\\Sigma\}\_\{r\}\\,\\mathcal\{W\}\\mathcal\{W\}^\{T\}\\,\\mathbf\{\\Sigma\}\_\{r\}\\mathbf\{U\}\_\{r\}^\{T\},\(A\.53\)and, since𝐔r\\mathbf\{U\}\_\{r\}has orthonormal columns and𝚺r𝒲𝒲T𝚺r\\mathbf\{\\Sigma\}\_\{r\}\\mathcal\{W\}\\mathcal\{W\}^\{T\}\\mathbf\{\\Sigma\}\_\{r\}is invertible,
\(𝐙¯𝐙¯T\)\+=𝐔r𝚺r−1\(𝒲𝒲T\)−1𝚺r−1𝐔rT\.\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}=\\mathbf\{U\}\_\{r\}\\mathbf\{\\Sigma\}\_\{r\}^\{\-1\}\(\\mathcal\{W\}\\mathcal\{W\}^\{T\}\)^\{\-1\}\\mathbf\{\\Sigma\}\_\{r\}^\{\-1\}\\mathbf\{U\}\_\{r\}^\{T\}\.\(A\.54\)The inverse\-Wishart mean\[[13](https://arxiv.org/html/2605.28912#bib.bib47)\]gives
𝔼\[\(𝒲𝒲T\)−1\]=1To−nIn−1\.\\mathbb\{E\}\\left\[\(\\mathcal\{W\}\\mathcal\{W\}^\{T\}\)^\{\-1\}\\right\]=\\frac\{1\}\{T\_\{o\}\-n\}\\,I\_\{n\-1\}\.\(A\.55\)Plugging \([A\.55](https://arxiv.org/html/2605.28912#A0.E55)\) into the expectation of \([A\.54](https://arxiv.org/html/2605.28912#A0.E54)\):
𝔼\[\(𝐙¯𝐙¯T\)\+\]=1To−n𝐔r𝚺r−2𝐔rT=1To−n\(𝐇𝐇T\)\+,\\mathbb\{E\}\\left\[\(\\bar\{\\mathbf\{Z\}\}\\bar\{\\mathbf\{Z\}\}^\{T\}\)^\{\+\}\\right\]=\\frac\{1\}\{T\_\{o\}\-n\}\\,\\mathbf\{U\}\_\{r\}\\mathbf\{\\Sigma\}\_\{r\}^\{\-2\}\\mathbf\{U\}\_\{r\}^\{T\}=\\frac\{1\}\{T\_\{o\}\-n\}\\,\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\},\(A\.56\)where the last equality uses the SVD form\(𝐇𝐇T\)\+=𝐔r𝚺r−2𝐔rT\(\\mathbf\{H\}\\mathbf\{H\}^\{T\}\)^\{\+\}=\\mathbf\{U\}\_\{r\}\\mathbf\{\\Sigma\}\_\{r\}^\{\-2\}\\mathbf\{U\}\_\{r\}^\{T\}\. By plugging \([A\.56](https://arxiv.org/html/2605.28912#A0.E56)\) into \([A\.51](https://arxiv.org/html/2605.28912#A0.E51)\), we obtain \([A\.46](https://arxiv.org/html/2605.28912#A0.E46)\)\. ∎
### \-EExpected Generalization Error Validation
We empirically validate[eq\.18](https://arxiv.org/html/2605.28912#S4.E18)on the IEEE 14, 30, 57, and 118\-bus systems\. In each Monte Carlo trial, we generateTo=2mT\_\{o\}=2mtraining andT⋆=1000T\_\{\\star\}=1000test measurements under the DC model with i\.i\.d\. Gaussian noise of standard deviationσ\\sigma, estimate𝐧^\\hat\{\\mathbf\{n\}\}from the training set, and compute1T⋆𝔼𝐙\[‖𝐙⋆T𝐧^‖2\]\\tfrac\{1\}\{T\_\{\\star\}\}\\mathbb\{E\}\_\{\\mathbf\{Z\}\}\[\\\|\\mathbf\{Z\}\_\{\\star\}^\{T\}\\hat\{\\mathbf\{n\}\}\\\|^\{2\}\], averaged over 100 trials perσ\\sigma\.[Figure10](https://arxiv.org/html/2605.28912#A0.F10)shows close agreement between theory and experiment across all four systems forσ≤1\\sigma\\leq 1, two orders of magnitude above operational PMU noise\. The crosses mark the firstσ\\sigmaat which the relative deviation exceeds 10%, occurring only atσ\>1\\sigma\>1where the dropped second\-order termsℰTϵ\\mathcal\{E\}^\{T\}\\boldsymbol\{\\epsilon\}andϵTϵ\\boldsymbol\{\\epsilon\}^\{T\}\\boldsymbol\{\\epsilon\}become non\-negligible\.
Figure 10:Validation of[eq\.18](https://arxiv.org/html/2605.28912#S4.E18)on IEEE 14, 30, 57, and 118\-bus systems\. Dashed lines: first\-order prediction; markers: empiricalEgenE\_\{\\mathrm\{gen\}\}over 100 Monte Carlo trials\. Crosses indicate the firstσ\\sigmaat which the relative deviation exceeds 10%\.
### \-FPartial observability analysis
In network monitoring, communication latencies or sensor failures often result in partial observability, where specific meter information is lost\. This degradation in data quality directly impacts the detector’s performance, as the efficacy of attack detection relies on the precision of null space estimation\. The null space is fundamentally characterized by the network’s cycle\-space\. When link measurements are missing, the corresponding cycles are broken, leading to an incomplete cycle\-space, which in turn diminishes the accuracy of the null space estimation\. According to the generalization error defined in[eq\.18](https://arxiv.org/html/2605.28912#S4.E18), the estimation error for a cycle basis is linearly correlated with the cycle length\. Consequently, shorter cycles yield higher estimation accuracy\. Therefore, the loss of these small, high\-fidelity cycles may reduce the detector’s ability to accurately characterize the null space\.
The impact of partial observability on theCSDperformance can be categorized into the following scenarios:
\(\(a\)\)Partially observed IEEE 14\-bus system: unobserved links \(dashed\) are shown for a large cycle\.
\(\(b\)\)Partially observed IEEE 14\-bus system: unobserved links \(dashed\) are shown for a small cycle\.
\(\(c\)\)F1F\_\{1\}scores \(colored heatmap\) in the attack\-magnitude vs\. noise plane for the IEEE 14\-bus system\.CSDperformance curves corresponding toF1F\_\{1\}=0\.8 are shown for comparison: full observability baseline \(red dashed\), missed small cycle \(white dashed\), and missed large cycle \(black dashed\)\.
Figure 11:Partial observability analysis on IEEE\-14 bus system1. 1\.Localized in Missing Cycles: If the attack is applied exclusively within the broken \(missing\) cycles, it becomes mathematically undetectable\.
2. 2\.Localized in Remaining Cycles: If the attack is confined to the observable cycles, detection remains feasible\.
3. 3\.Uniformly Distributed Attack: When an attack is applied uniformly across all links, performance may either improve or degrade depending on the specific cycles lost as follows: - •Loss of Large Cycles: Performance may counterintuitively improve, as the estimation avoids the high generalization errors associated with longer cycles\. - •Loss of Small Cycles: Performance may degrade, potentially substantially, if some of the most accurate components of the null space estimation are not captured\.
While scenarios 1\) and 2\) are deterministic, scenario 3\) demonstrates that the quality of detection under partial observability may be influenced by the topological properties of the remaining sub\-graph\.
The impact of partial observability on detection performance is illustrated in Figs\.[11\(a\)](https://arxiv.org/html/2605.28912#A0.F11.sf1)and[11\(b\)](https://arxiv.org/html/2605.28912#A0.F11.sf2), which depict missed links \(dashed\) pertaining to large and small cycles, respectively\. As shown in Fig\.[11\(c\)](https://arxiv.org/html/2605.28912#A0.F11.sf3), the resultingCSDperformance curves for missed small cycle \(white dashed\) and missed large cycle \(black dashed\) scenarios are evaluated against a full observability baseline \(red dashed\)\. As expected, the unobservability of a small cycle \(white dashed\) may lead to a noticeable reduction in detector efficacy, with the performance curve falling below the baseline due to the loss of the high\-fidelity information inherent in shorter cycles\. In contrast, breaking a large cycle \(black dashed\) counterintuitively improves performance above the baseline, suggesting that excluding the higher generalization errors associated with longer cycles can refine the overall accuracy of the null space estimation\.Similar Articles
Product-Aware Deep Autoencoders for Robust Process Monitoring in Multi-Product Cyber-Physical Systems
This paper presents a Product-Aware Autoencoder for robust anomaly detection in multi-product cyber-physical systems, addressing the blind spot of global models. It demonstrates improved detection accuracy over baseline in stress tests.
Physics-Constrained Digital Twins for Sensor Integrity in Urban Pedestrian Flow: Detecting Stealthy False Data Injection with Conformal Guarantees
This paper introduces physics-constrained digital twins for detecting stealthy false data injection in urban pedestrian flow, using flow conservation and conformal prediction to improve sensor integrity.
Controlled Dynamics Attractor Transformer
The Controlled Dynamics Attractor Transformer (CDAT) combines a mixture von Mises-Fisher attention energy with a Hopfield refinement energy and CANN-inspired excitation-inhibition modulation, providing topology-constrained dynamical systems for stable inference. It achieves state-of-the-art performance on graph anomaly detection and classification benchmarks.
Sparse Autoencoders as Plug-and-Play Firewalls for Adversarial Attack Detection in VLMs
# Paper page - Sparse Autoencoders as Plug-and-Play Firewalls for Adversarial Attack Detection in VLMs Source: [https://huggingface.co/papers/2605.07447](https://huggingface.co/papers/2605.07447) ## Abstract SAEgis detects adversarial attacks on vision\-language models using sparse autoencoders trained for reconstruction, achieving strong performance across domains without additional training\. [Vision\-language models](https://huggingface.co/papers?q=Vision-language%20models)\(VLMs\) have advan
At the Edge of Understanding: Sparse Autoencoders Trace The Limits of Transformer Generalization
This paper proposes using sparse autoencoders to detect out-of-distribution inputs for transformers, including typos and jailbreak prompts, by analyzing spurious concept activations. The method enables a mechanistically grounded fine-tuning strategy to improve LLM robustness.