Back to list

Tech Blog · Paper Reviews

[Paper Review] When LLM agents take on process control, control theory comes first

Professor Skogestad's group assigned one LLM operator agent to each control loop and left the priorities between loops to deterministic rules. When the same 7B model was given every constraint at once, the barn temperature fell to −32.6°C.

Jul 21, 2026 · OPTI-X

If you hand a process to an LLM, it may lose track of what to protect first at the moment several constraints collide. Nogueira and Skogestad of the Norwegian University of Science and Technology (NTNU) addressed this not with a new AI technique but with a long-established method of control structure design. They assigned one LLM agent to each control loop and fixed the priorities between loops in code.

The problem the paper addresses

A process has several constraints that must hold at the same time. The paper's test case, a dairy barn, must keep CO2 below 1,000 ppm (health limit 3,000 ppm) and the indoor temperature at 5–20°C (freeze-protection floor 0°C). Only two things can be manipulated: a ventilation fan and an electric heater. In deep winter, more ventilation lowers CO2 but also lowers the temperature, so the two constraints cannot both be met.

The authors give two reasons why general-purpose LLMs struggle with domain-specific tasks: it is hard to supply a narrow context precisely, and it is hard to bound the task being asked. They point out that enriching the context through document retrieval (RAG) can miss rarely occurring information, such as the site-specific conditions that differ from one unit to the next. So they split the problem into small pieces and gave each agent only a task that a short prompt can fully describe.

What they did: carrying the control structure over into agents

The starting point is advanced regulatory control (ARC). ARC has each loop defend one constraint, and when several loops want the same manipulated variable, MIN/MAX selectors decide the priority. The priorities are not recomputed during operation; they are fixed at the design stage.

The paper carries this structure over into agents with two correspondence rules. Each PI controller becomes one operator agent, and the logic that ties the loops together, such as selectors and overrides, becomes one orchestrator agent. An operator agent knows only its own constraint, setpoint and priority; it cannot see the other agents' states or the chain structure.

They first checked that the carried-over structure matches the original. When the agents' decision part was replaced by PI blocks, the trajectories matched the original PI chain bit for bit. Any later difference between architectures can therefore be attributed to the agents themselves, not to the decomposition.

Four steps to build the agents

Loop design and priorities come first, and the LLM goes inside them

01Control structure designLoops, selectors and overrides decided by the plant-wide control design procedure
02Per-loop operator agentsOne LLM per loop, responsible for a single constraint
03OrchestratorApplies the MIN/MAX priority chain in code
04Supervisory agent (optional)Adjusts only chain parameters on a slow cycle, cannot write manipulated values
Source: Nogueira & Skogestad, arXiv 2606.30877, Section 2.5.2

Four architectures were compared. A is the existing PI chain; B puts Qwen 2.5 7B operator agents in place of the PIs and keeps a rule-based orchestrator. C adds a Claude Opus 4.7 supervisory agent to B. D is a control experiment in which a single 7B model is given every constraint and both manipulated variables.

What the LLM was given, and what it was not

The operator agents do not output fan or heater values as numbers. At each sample, an agent classifies its constraint's state as one of three, idle, active or saturated, and writes a one-sentence rationale. The number is computed by the agent's code from the classification and preset values.

The reason for this change was a failure in the early design. When the LLM was asked to output the number directly, about 60% of the saturated MAX agents produced values in the wrong direction (3B model). The model read "CO2 is high" not as "increase ventilation" but as "reduce something."

The prompt has three layers: a system prompt shared by all agents (about 1,400 tokens), a per-agent identity (80 tokens), and the per-sample state (140 tokens). The per-sample state contains the measurement, setpoint, degree of violation and a recommended state computed by a rule; the LLM may change the recommended state based on the trend or recent history.

Two more mechanisms were added. An integral term that accumulates the degree of constraint violation (the role of the I in PI) sits in the code, and the classification history of the last 12 samples is placed in the prompt so the agent can notice its own oscillation. LLM output passes a format check and a rate-of-change limit, and on error it is replaced by the rule-based value.

Who decides what

Conflicts between loops are settled by code, regardless of the LLM output

LLM
Code (deterministic logic)
Operator tier
Classifies the constraint state into 3 levels, one-sentence rationale
Converts the classification into fan/heater values, with direction, integral and rate limits
Supervisory tier (C)
Classifies the operating regime every 10 minutes, proposes 3 tuning values
Range-checks the proposed values; the freeze-protection guard is always on
Conflicts between loops
Not involved
Decided by MIN/MAX priority
Rationale sentences
Logged at every sample
Never sent to the equipment, kept only as a record for people to read
Source: Nogueira & Skogestad, arXiv 2606.30877, Section 2.5.5

Results: a four-day scenario and extreme cold

A four-day (96-hour) scenario mixing winter cold and summer heat was run at five-minute intervals. The interval follows the barn's time constants of 5–7 minutes, and the authors describe it as close to the cadence of an operator glancing at a SCADA panel. The six operator agents called the LLM 6,912 times, with zero format-check failures and zero fallbacks to the rule-based value. The operator model ran offline on a single 24 GB consumer GPU, and the four-day scenario took about one hour of GPU time.

Four-day scenario results

Bar = heater energy · the existing PI chain had the best control performance

ArchitectureCO2 above 1,050 ppm (h)Below 3.5°C (h)Heater energy (kWh)
A. Existing PI chain0.330.17
103
Rule-based agents (no LLM)8.503.67
422
C. LLM agents2.420.83
440
Source: Nogueira & Skogestad, arXiv 2606.30877, Table 7

In this scenario, none of the three architectures spent any time below 0°C. The authors built the scenario so that a well-tuned PI chain would be close to optimal, and the PI chain was indeed the best. Compared with the rule-based agents, the LLM agents cut the number of state changes at the 5°C boundary from 132 to 70, a 47% reduction. In exchange, heater energy was about four times that of the PI chain. The authors explain that splitting the state into three levels causes frequent switching at the boundary, and each switch adds heater on-time.

In a test under the original case conditions, with the outdoor temperature taken down to −40°C, the effect of the decomposition became clear. A, B and C all ran the heater at maximum and cut back the fan. The lowest indoor temperature was −6 to −8°C, and the time below 0°C was similar at 3.4–3.6 hours.

Time below 0°C in the extreme-cold test

Outdoor temperature 0 → −40 → +15°C, 20.5-hour test

A. Existing PI chain
3.62h
B. LLM operators + rule orchestrator
3.38h
C. LLM operators + LLM supervisor
3.40h
D. One 7B model handles everything
7.75h
Source: Nogueira & Skogestad, arXiv 2606.30877, Table 8 and Section 2.6.4

D issued commands without format errors and kept CO2 at or below 950 ppm. But it kept ventilating, and the indoor temperature fell to −32.6°C. The same 7B model behaved much like the PI chain when given a single constraint, and lost the priorities when given all of them.

Limitations stated by the paper

The results for C come from a single run. Because the variance across repeated runs has not yet been measured, the authors advise treating C's position as indicative. The heater energy gap and the boundary oscillation are left for future work. As next steps, they propose adding a margin at the boundary or having the LLM also output a continuous value.

They also report that under extreme cold, C's time below freezing was closer to the rule-based variant than to the PI chain. Adding an agent is a structural change, not a configuration change. If a new agent's priority is set wrongly, the order changes without any error, and the LLM cannot correct a poorly designed chain. Field deployment and validation in other operating regimes are also listed as remaining work.

What to look at on the plant floor

The authors summarize that in this architecture the PI tuning step is replaced by a prompt engineering and context curation step. They also note that while PI tuning has a mature literature, prompt engineering for control agents is still at an early stage. On the factory floor, who takes on this design work and how it is verified becomes a new task.

What to look at on the plant floor

When bringing LLM agents onto the factory floor

StructurePeople set loop design and priorities first
The LLM judges only its own constraint inside a fixed structure
OutputThe LLM classifies instead of giving numbers
Code computes direction and size; rationales are used only as a record
ExpectationsPI is still the benchmark for control performance
What this case delivered was not performance but a logbook-like record of reasons

What this paper shows is not that an LLM controls better than PI. It shows that when code holds the priorities, a 7B model running offline can take the operator role without breaking the control chain.

References

Could this work for your process?

Talk to us