B-Type Architecture

PID × FSM × LLM Reliability-Oriented Control Stack


Architectural Intent

The B-Type architecture is designed to explicitly separate control execution from reliability judgment.

Rather than embedding adaptation logic directly into the control loop,
B-Type introduces a layered structure in which:

This separation ensures that reliability constraints dominate performance optimization.


Layered Architecture Overview

flowchart TD
    R[Reference]
    P[Plant]

    PID[Inner Loop\nFixed PID Controller]
    FSM[Middle Layer\nReliability FSM]
    LLM[Outer Layer\nLLM Design Support]

    R --> PID
    PID --> P
    P --> PID

    PID --> FSM
    FSM --> PID

    FSM -. redesign rules .-> LLM
    LLM -. update parameters .-> FSM

Inner Loop: PID Controller

Role

The PID controller forms the core real-time control loop.

Design Characteristics

Design Rationale

The PID loop must remain stable regardless of higher-layer decisions.

In B-Type, the PID controller is never optimized aggressively.
It exists to guarantee a minimum safe control authority.


Middle Layer: FSM (Reliability Guard)

Role

The FSM supervises the PID loop and determines whether adaptive actions are permitted.

FSM Responsibilities

Representative FSM States

Key Principle

The FSM must explicitly support
“the decision to block adaptation.”

This is the defining difference between A-Type and B-Type.


Outer Layer: LLM (Design-Time Intelligence)

Role

The LLM operates outside the real-time control loop and acts as a design assistant.

Typical Functions

Non-Responsibilities

The LLM influences design evolution, not instantaneous control.


Information Flow and Time Scales

Layer Time Scale Responsibility
PID Continuous / real-time Stabilization and tracking
FSM Discrete / supervisory Reliability-based mode selection
LLM Offline / asynchronous Redesign and explanation

This strict separation prevents unstable feedback between learning, supervision, and control.


Architectural Guarantees

The B-Type architecture guarantees that:

  1. The control loop remains stable even if adaptation is disabled
  2. Adaptive behavior is constrained by explicit reliability metrics
  3. Long-term degradation does not lead to uncontrolled compensation
  4. System behavior remains interpretable and explainable

Relation to A-Type Architecture

B-Type should be understood as a supervisory envelope placed around the A-Type adaptive mechanisms.


Summary

The B-Type architecture formalizes a key control principle:

Performance optimization must never override reliability constraints.

By layering PID, FSM, and LLM with clearly separated roles and time scales,
B-Type provides a robust foundation for adaptive control under long-term plant degradation.


The next section details: