Engineering specifications often ask for more than physics allows. An example is "a lattice that is this stiff, conducts heat this well, and weighs this little." Recent systems hand such requests to teams of language-model agents. One agent parses the request, another plans, and another calls a simulator. When the targets conflict, though, these teams have no principled way to learn which requirement is the obstacle or how much relaxing it would buy. We propose to close that gap with a tool from computational physics, adjoint sensitivity analysis. This is a method that runs one extra "backward" solve to get the derivative of an objective with respect to every design variable at once, at roughly the cost of a single simulation. As a by-product of constrained optimization, it also yields dual variables, also called multipliers. These are numbers that state exactly how much the best achievable objective would improve if each constraint were loosened by one unit. Our claim is that these duals, rather than candidate designs or textual critiques, are the right information to pass from the solver back to the planning agents. With them, agents can renegotiate infeasible or ambiguous specifications in a way that is grounded in physics.
The opportunity matters because the closest existing system leaves this channel empty. AutoMS pairs a Manager/Parser/Generator/Reporter agent team with an evolutionary search over a generative microstructure model. It estimates "local gradients" from past simulations and reweights objectives to escape a "partial satisfaction trap," where easy goals are met and hard ones stall. The approach works, with an 83.8% success rate against 43.7% for NSGA-II on its 17-task suite. However, its gradients are approximate, its simulation cost is high, and the agents never see why a target is unreachable. Exact adjoint machinery already exists in differentiable solvers such as JAX-FEM, but no agent layer reads its output.
Core Claim
The claim is not simply that exact adjoint gradients beat approximate ones. A skeptic would rightly reply that a classical constrained optimizer already uses exact gradients and multipliers, with no agents needed. Our sharper claim is about where the agents earn their keep. When a specification is precise and feasible, an augmented-Lagrangian adjoint optimizer should match any agent system, and we expect to show this. When a specification is infeasible or underdetermined, however, deciding which requirement to give up depends on the user's priorities, which are stated in natural language. The multipliers make that decision tractable.
For a design problem that minimizes $J(\theta)$ subject to performance requirements $g_k(\theta) \le c_k$, the standard sensitivity result at a constrained optimum is
$$\frac{\partial J^*}{\partial c_k} = -\mu_k .$$
Here $J^*$ is the best achievable objective, $c_k$ is the target for requirement $k$, and $\mu_k \ge 0$ is that requirement's multiplier. This follows from the envelope theorem applied to the Lagrangian. A planning agent that receives the vector $\mu$ therefore knows the exchange rate between every pair of requirements. It can then map a statement such as "stiffness is non-negotiable, weight may give up to ten percent" onto a concrete, minimal relaxation. Without this information, the agent can only guess and resimulate.
Research Program
We will build a two-layer system. The physics layer is a differentiable homogenization solver in JAX-FEM: a periodic unit cell with a density parameterization, computing effective stiffness, thermal conductivity, and volume fraction. JAX-FEM supplies the adjoint gradients by automatic differentiation, including for the nonlinear materials it supports. The constrained problem is solved by an augmented-Lagrangian loop, which exposes per-requirement gradients, multipliers, and the angles between objective gradients.
The agent layer follows the role decomposition that has repeatedly beaten monolithic prompting. The motivating evidence includes MACM, whose Thinker/Judge/Executor split raised GPT-4 Turbo from 54.68% to 76.73% on Level 5 MATH. DRC-Coder separated a planner from a programmer and reached 1.000 F1 against 0.631 for zero-shot prompting. Self-collaboration used an Analyst/Coder/Tester team on a shared blackboard. Our team has four roles:
- A Specifier turns the request into explicit requirements and a written priority ordering.
- A Formulator writes the constrained problem for the solver.
- A Negotiator reads the solver's dual report and proposes relaxations, reweightings, or re-orderings consistent with the stated priorities.
- A Verifier checks the final design by independent forward simulation.
The dual report is a short structured record. It lists which constraints are active, their multipliers, which pairs of requirements have nearly opposing gradients, and the predicted first-order gain from each candidate relaxation. It is deliberately numeric and compact.
Two existing lines of work shape this design as constraints rather than as methods to reuse. TextGrad passes natural-language "gradients" backward through LLM graphs. Textual Equilibrium Propagation documents that such feedback explodes past 42,000 tokens or loses its specificity in deep pipelines. Our backward signal is computed exactly by the solver and summarized in a fixed-size record, so it cannot grow with depth.
Prompt Optimization Is a Coin Flip found that inter-agent prompt coupling explains only 0.18–2.15% of variance in feed-forward pipelines. That result tells us not to spend effort on joint prompt optimization. We do not tune prompts at all. The coupling that matters here is physical, and it travels as numbers.
Path-dependent plasticity tasks require storing forward trajectories for the backward solve. For these, we will reuse adjoint checkpointing ideas from adaptive checkpoint adjoint work instead of inventing new memory schemes.
Baselines
The naive reference point is NSGA-II applied directly to the density parameterization under the same simulation budget. AutoMS reports a 43.7% success rate for NSGA-II on its suite, though that figure was obtained in AutoMS's own design space, not ours. A single-LLM monolithic formulator, which writes the problem once and hands it to the optimizer, serves as the no-decomposition reference.
The strongest existing method is AutoMS itself, at an 83.8% success rate and a mean relative error of 0.0140 on the 17-task suite. Its design space, the MIND generative model, differs from our density field, which would confound a head-to-head comparison. We will therefore run it two ways. First, we run AutoMS-style simulation-aware evolutionary search inside our density space with the same agent prompts. Second, if the suite and MIND are available, we run our system on the original suite. Budgets are counted in forward-solve equivalents, with one adjoint solve counted as one forward solve. LLM calls and wall-clock time are reported separately. Every method gets the same LLM, the same number of agent rounds, and the same hyperparameter-tuning budget. Beating AutoMS means higher success at equal or lower simulation budget on the original tasks, and a clear margin on infeasible tasks.
The baseline we consider most dangerous is a well-tuned augmented-Lagrangian adjoint optimizer with no agents. An expert writes the objective and gives it a fixed fallback rule for infeasibility, such as minimizing a weighted constraint violation. On feasible tasks we expect it to tie our system, and we will report that tie as a result.
The key ablation removes the dual report. In this variant, agents still drive the same adjoint optimizer but see only objective values and constraint satisfaction, which is the information AutoMS's agents receive. The ablation isolates whether the multipliers themselves are the active ingredient.
Why not just…?
Why not just run adjoint topology optimization with a fixed objective and skip the agents? On feasible, precisely stated problems this is probably as good as our system, and our experiments are built to show that. The open question is infeasible and underdetermined specifications. There, a fixed fallback rule cannot read "weight may give ten percent but stiffness may not." We will measure the gap on a dedicated infeasible-task split. If the gap is negligible, the agent layer is unnecessary for this problem class, and we will report that.
Why not just let agents run evolutionary search, as AutoMS does? AutoMS's gradients are reconstructed from past rollouts and need repeated high-fidelity simulations. JAX-FEM shows that an adjoint pass gives exact gradients for millions of degrees of freedom, with a 9.1x speedup over a 24-core Abaqus run in its tensile test. The equal-budget comparison inside a common design space tests whether this advantage survives the agent loop.
Why not just send textual critiques upstream, TextGrad-style? Textual feedback is imprecise exactly where precision matters, in exchange rates between physical quantities. TEP also shows that TextGrad's effective update rate falls to 5% at depth. We will run a variant in which the solver's output is passed to the Negotiator as an LLM-written critique instead of numbers, holding everything else fixed.
Why not just prompt one frontier model? The decomposition literature cited above consistently finds large gaps against monolithic prompting. Our monolithic-formulator baseline measures whether that pattern holds when an exact solver does the heavy lifting.
Proposed Experiments
We will use three task sets.
The first is the AutoMS 17-task suite, if it has been released; otherwise we will reconstruct its specification types. It spans Al6061 to TPU, up to five competing objectives, and nonlinear plasticity. Reported metrics are success rate, mean relative error, solver-call budget, and LLM cost.
The second is a new infeasible-specification split. Each task pairs physically incompatible targets with a natural-language priority statement chosen so that exactly one minimal relaxation is correct. We will check that uniqueness offline by sweeping the targets with the adjoint optimizer. Scoring is verifiable: a run counts as correct if its final design meets the non-negotiable requirements and gives up no more than the allowed slack on the others.
The third is a sanity check against JAX-FEM's 3-hole bracket. JAX-FEM reports a 64.2% compliance reduction against a human design, and our system must reproduce roughly this when the specification is feasible.
Three outcomes would decide the question. If the no-dual ablation loses substantially to the full system on the infeasible split while tying it on feasible tasks, the claim holds as stated. If the fixed-rule adjoint optimizer matches us everywhere, the agents add nothing and the claim fails. If our system matches AutoMS's success at a fraction of its simulation budget, exact adjoints pay for themselves even before negotiation is considered. As a final check, a subset of designs will be validated by independent high-resolution forward simulation, to confirm that dual-guided relaxations do not exploit artifacts of the density parameterization.
References
- AutoMS: Multi-Agent Evolutionary Search for Cross-Physics Inverse Microstructure Design
- JAX-FEM: A differentiable GPU-accelerated 3D finite element solver for automatic inverse design and mechanistic data science
- MACM: Utilizing a Multi-Agent System for Condition Mining in Solving Complex Mathematical Problems
- DRC-Coder: Automated DRC Checker Code Generation Using LLM Autonomous Agent
- Self-Collaboration Code Generation via ChatGPT
- TextGrad: Automatic "Differentiation" via Text
- Textual Equilibrium Propagation for Deep Compound AI Systems
- Prompt Optimization Is a Coin Flip: Diagnosing When It Helps in Compound AI Systems
- Adaptive Checkpoint Adjoint Method for Gradient Estimation in Neural ODE