← All writing

Small language models beside the control loop

Emmanuel Akinwale (JOATLABS)

An interactive guide to the proposed research architecture: supervisory SLMs, signal tokenization, and a deterministic boundary between model proposals and hardware actuation.

A supervisory compute module sends proposals through a separate validation gate to a control board with its own local loop.
AI-generated concept illustration of the proposed separation between supervision, validation, and hardware control; not a prototype photograph.

Give adaptation and actuation different jobs

A hardware control loop may need a predictable response every few microseconds. A language model reasons on a very different schedule. My Supervisory Small Language Models paper explores an architecture that gives each a distinct job: deterministic code handles fast actuation, while a smaller, domain-specific model proposes changes at a slower supervisory cadence.

The research question is whether that separation can provide useful adaptation while preserving an independently enforced control boundary. The paper presents an architecture and six hypotheses for evaluation. It does not establish those hypotheses through completed hardware experiments.

This companion post offers a visual way into the ideas. The published paper remains the full technical source, and the explorer below lets you inspect examples without starting with a PDF or slide deck.

Explore the architecture

Select a tier to inspect its responsibilities. In the Guardrail section, move the proposed-current slider above the example bound and switch between rejection and clamping. In HTM tokens, adjust the voltage or hover around a temperature boundary to compare direct thresholding with a dwell-and-deadband rule.

The controls illustrate the paper’s examples in your browser. They do not run an SLM, execute firmware, connect to equipment, or provide evidence of hardware safety. Open the full explorer for more space, especially on a phone.

Interactive explorer Open full explorer ↗
Interactive research illustration. The browser controls simulate examples from the paper; no model or physical hardware is running.

Three tiers, with an explicit control boundary

Tier 1 is the deterministic actuation layer: conventional control code owns the physical outputs. The paper discusses a 10–100 kHz control range here. Tier 2 hosts the supervisory model and supporting translation and optimization work, with a proposed 100 ms–1 s cadence. Tier 3 coordinates wider system objectives over a multi-second horizon.

Those ranges describe the proposed division of work. They are not measured performance results for a deployed prototype. Model size, quantization, memory use, and worst-case inference time all need evaluation on the selected hardware.

Between a model proposal and actuation sits a deterministic guardrail. The model proposes parameters; independently specified checks determine whether a proposal is admissible. The fast controller retains ownership of its loop.

The explorer’s three-tier diagram: a farm-level orchestrator sends policies to supervisory node models, which feed deterministic controllers that own PWM, DAC, and GPIO outputs.
The proposed three-tier architecture, captured from the interactive explorer. Cadences are design ranges rather than benchmark results.

Turn signals into a useful, stable vocabulary

The Hardware Translation Matrix, or HTM, is the paper’s proposed bridge from numerical telemetry to symbolic state. A reading can carry magnitude, rate-of-change, and noise information, giving the supervisory layer a bounded vocabulary for the condition of the device.

The explorer makes one design problem visible: a noisy signal near a threshold can switch labels repeatedly. Its temperature example uses a dwell rule before entering the high state and a lower exit threshold before returning to nominal. You can compare that behavior with a direct threshold while the same illustrative signal moves.

These rules also have tradeoffs. Filtering can reduce switching, but it can introduce detection delay or conceal a short event. Useful evaluation needs to measure both the stability of the tokens and the events they miss.

A proposal still needs an independent decision

The guardrail demonstration uses the paper’s example current field and 120 A bound. One mode rejects an out-of-bounds proposal and shows fallback; the other demonstrates the separate listing’s clamp behavior. Corrupted syntax illustrates another failure path. The value is an example from the paper, not a recommended operating limit for other equipment.

A bound on one parameter is only one part of a control contract. Timing, stale telemetry, missing outputs, startup state, coupled constraints, and recovery behavior also matter. The research needs to establish how the complete boundary behaves when those conditions fail, rather than treating a plausible model answer or a passing browser example as proof.

Connect local decisions to system objectives

The paper distinguishes a component’s local objective, L(x), from the wider system objective, G(x). A battery node’s thermal constraints and a solar installation’s output target can pull in different directions. Policy envelopes are the proposed way to communicate wider goals while keeping the local operating boundary explicit.

The same supervisory idea extends to optimization. A model could propose a search range, a fitness weighting, or a solver choice, while a numerical method such as particle swarm optimization performs the search. Whether that helps requires comparison against the numerical method alone, including cost, latency, constraint violations, and failure cases.

The explorer’s solar, networking, and protocol examples develop those research directions. Its compression, energy-yield, and safety hypotheses remain claims to evaluate, rather than demonstrated results.

What comes next

TinyStudio is the intended experimentation platform for this research. The next useful evidence is a reproducible comparison: a baseline controller, the same controller with supervisory proposals, and a clear record of disturbances, accepted and rejected actions, deadlines, and fallback outcomes.

That work should make it possible to ask concrete questions. Did supervision improve the chosen objective? What happened when inference was late or wrong? Did communication loss change the local behavior? Could another person reproduce the result from the retained setup and data?

The explorer helps explain the architecture and inspect its examples. Experiments are what will determine which parts earn a place in a working system. The full paper and the TinyStudio research page are linked below.

Continue exploring.

Read the Supervisory Small Language Models research paper →

Follow the TinyStudio research project →