← Lab /AI/ML

Adversarial FEM programs can boost solver iterations up to 247,367×

CloakFEM can automatically generate runnable FEM code that dramatically amplifies solver computation

AI/ML arXiv 3 Nov 2026 Attack Prototype evidence

Published as “CloakFEM: Agentic FEM Code Generation for Red-Teaming Computational Resource Exhaustion”

Why it matters

The work reveals that shared or service-based FEM simulation platforms are vulnerable to DoS attacks via crafted inputs, motivating the need for runtime monitoring and hardened solver configurations.

Summary

CloakFEM can automatically generate runnable FEM programs that amplify solver iterations up to 5,752.72×, exposing a computational denial-of-service attack surface. Across three FEM stacks, 17 problem classes, and 1,068 seeds, the method outperforms five generic black-box baselines, achieving median amplification of about 2.6× (up to 127× at the 90th percentile). The evidence comes from a large-scale empirical evaluation with concrete iteration counts and baseline comparisons.

What they found 2

  1. Maximum amplification of solver iterations observed is 5,752.72×, from 43 to 247,367 iterations.

    “In the most extreme case, solver iterations increase from 43 to 247,367, a 5,752.72× amplification.”

  2. CloakFEM (GPT) achieves median amplification of 2.62×, far exceeding evolutionary search.

    “CloakFEM (GPT) reaches median amplification 2.62×, P90 156.0×, and a 67.9% rate above 1.5×; evolutionary search reaches 1.14×, 6.47×, and 29.9%, respectively.”

Caveats 2

  • The distributions of benign and adversarial iteration counts overlap substantially, limiting simple runtime thresholds for detection.
  • Their distributions have an overlap coefficient of 0.62, showing that a single iteration threshold has limited discriminative power.

What’s new here 4

  • First systematic study of efficiency (resource-exhaustion) attacks on FEM solvers.
  • Domain-guided LLM-agent framework that maps heterogeneous FEM inputs to a solver-independent intermediate representation with a deterministic validity gate.
  • Automatic generation of syntactically valid, runnable adversarial FEM programs across multiple solver stacks.
  • Cross-solver replay analysis distinguishing problem-intrinsic from implementation-specific vulnerability sources.