NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Secure Distributed Optimization Under Gradient Attacks

Shuhua Yu, Soummya Kar

This paper, titled "Secure Distributed Optimization Under Gradient Attacks," presents a robust framework for multi-agent systems to reach a consensus on an optimal solution even when a portion of the network is actively trying to sabotage the process.

TL;DR

The authors introduce CLIP-VRG, a decentralized algorithm that enables a network of agents to converge to an exact global minimum despite arbitrary "gradient attacks" on a fraction of the nodes. By combining local variance reduction with a clever clipping mechanism, the method guarantees almost sure convergence as long as the number of compromised agents doesn't exceed a threshold determined by the problem's condition number.

What Problem Does This Paper Address?

In standard distributed optimization, a group of agents (like sensors or mobile devices) works together to minimize a collective cost function without a central server. They "talk" only to their immediate neighbors. However, most existing algorithms assume every agent is honest.

In the real world, an adversary might hijack a subset of these agents. Instead of providing true gradients based on local data, these compromised nodes provide "garbage" or adversarial information—known as a gradient attack. This is often the result of malicious data injection. The challenge is: how can the honest agents ignore this "noise" and find the true optimal solution when they don't know which of their neighbors are compromised?

Methods

The authors propose CLIP-VRG (Clipped Variance Reduced Gradient). The algorithm relies on three main pillars:

  1. Local Variance Reduction: Each agent maintains a recursive gradient estimator ($v_i^t$). Instead of just using the latest noisy stochastic gradient, they blend it with previous estimates. This "smooths out" the natural randomness of the data.
  2. Clipping: To prevent an attacker from sending a massive, "explosive" gradient that pulls the whole network away from the truth, CLIP-VRG applies a clipping operator. If a gradient estimate's magnitude exceeds a threshold ($\gamma_t$), it is scaled down.
  3. Decaying Thresholds and Stepsizes: Both the clipping threshold and the learning rate (stepsize) decrease over time. This allows the algorithm to be aggressive early on and become more precise as it nears the solution.

What’s new? Unlike "Byzantine-robust" methods that often require a central server or specific network topologies (like a complete graph), CLIP-VRG works in a peer-to-peer setting on any connected network. It is also unique in applying clipping directly to a variance-reduced estimator, which allows for convergence to the exact minimizer rather than just a neighborhood of it.

Datasets

The authors evaluated CLIP-VRG using three distinct setups:

  • Synthetic 2D Grid: A network of 625 agents performing heterogeneous parameter estimation (simulating temperature sensors). 100 agents were subjected to persistent gradient attacks.
  • Fashion-MNIST: A binary classification task (distinguishing "pullover" vs. "coat") across 100 agents in a random geometric graph. 25 agents were compromised.
  • CIFAR-10: A more complex image classification task ("cat" vs. "dog") on a 15-agent cycle network, with 3 agents under attack.

Key Insights and Ideas

  • The Condition Number Matters: The paper identifies a tight theoretical bound for security. The fraction of attacked agents $\rho$ must satisfy $\rho < 1/(1 + \kappa)$, where $\kappa$ is the condition number of the cost function. Essentially, if your problem is "harder" (poorly conditioned), you can tolerate fewer attackers.
  • The "Common Minimizer" Assumption: The proof assumes that all honest agents share at least one common optimal point. While this is common in many machine learning tasks (like training on i.i.d. data), it’s a critical requirement for achieving exact convergence in this framework.
  • Almost Sure Convergence: Most papers in this field prove "mean-square convergence" (it works on average). This paper proves "almost sure" convergence, meaning that in virtually every single execution of the algorithm, the agents will reach the correct answer.

Key Results

  • Resilience to Divergence: In the synthetic grid experiment, the standard Distributed Stochastic Gradient Descent (DSGD) completely failed, diverging or stalling far from the truth. CLIP-VRG successfully drove the estimation error to zero.
  • Accuracy Preservation: On the Fashion-MNIST dataset, even with 25% of the network attacking the process, CLIP-VRG maintained a test accuracy nearly identical to the "no-attack" scenario.
  • Efficiency: While CLIP-VRG converges slightly slower than non-secure methods (a "security tax"), it reaches the same level of final precision, whereas undefended methods fail to obtain a workable classifier under attack.

Limitations and Future Work

  • Data Heterogeneity: The current model assumes a common minimizer. If agents have very different local datasets (non-i.i.d.), they might not share a minimizer. The authors suggest that "gradient tracking" techniques could be integrated in the future to handle this.
  • Non-Convexity: The theoretical guarantees currently apply to convex and smooth functions. Extending this to the non-convex landscapes of deep neural networks remains an open challenge.
  • Attack Model: The paper assumes "gradient attacks" where the agent still follows the communication protocol but sends bad data. It does not fully cover "Byzantine" attacks where an agent might send different malicious messages to different neighbors simultaneously.

Summary updated

BibTeX
@article{yu2023secure,
  author = {Shuhua Yu and Soummya Kar},
  title = {{Secure Distributed Optimization Under Gradient Attacks}},
  journal = {IEEE Trans. Signal Process.},
  year = {2023},
  url = {https://openreview.net/forum?id=elQgZ0bI2e},
}
Figure