Mind Control of LLMs via Closed-Loop Stimulation: Out-of-Distribution Robustness
Kasra Fallah, Rudramani Singha, Hannah Ghanei, Paul Sajda, James Anderson, Erfan Zabeh
Abstract
Brains and large language models need not be considered equivalent systems to reveal an interpretable commonality: both exhibit high-dimensional, nonlinear dynamics whose behavior can only be modeled imperfectly. This creates a shared challenge whenever we seek to intervene in their dynamics. A controller may either rely on a model identified around a particular operating regime and risk failure as the system moves away from that regime, or explicitly account for uncertainty and a changing internal state. Neurostimulation has confronted an analogous problem for decades. The limitations of fixed, open-loop stimulation have motivated closed-loop and state-dependent approaches that condition intervention on the ongoing state of the neural system. Inspired by this principle, we formulate LLM steering as a feedback-control problem in which the network's internal state, rather than a fixed intervention alone, determines how the system is perturbed. We further account for the mismatch between tractable dynamical models and the nonlinear transformer they approximate through robust control. As one principled realization of this framework, we develop an H∞-based steering controller that limits sensitivity to disturbances and linearization mismatches. Across multiple steering benchmarks, the controller improves performance over existing baselines, with particularly pronounced gains under out-of-distribution conditions and varying length complexities. Beyond controller performance, we introduce robust steerability, Srob, a pre-deployment measure of tolerance to dynamics mismatch; across model-task pairs, it exhibits task-specific structure and varies systematically with model scale. Beyond robust LLM steering, our measure asks not merely whether control is possible, but how much uncertainty it can survive; a principle that may span artificial and biological neural systems.
Create a lesson
Related papers
Learning Time-Varying Connectomes for Stable Behavior Across Development
Christof Fehrman, Jacob J. Morra, Eva A. Naumann
Synchronized Hearts, Desynchronized Brains: A Nonlinear Dynamics Perspective for Function and Failure
Irene Pellini, Simon Bauer, Seba Contreras et al.
A minimal E/I circuit model explains differential recovery from amblyopia under TTX and reverse occlusion
Lawrence Udeigwe
When Model Complexity Matters in Cross-Subject Naturalistic fMRI Prediction
Junhao Zhao, Jacob Kang, Colin Kurniawan et al.
Fly Whiskers Meet LiDAR: Robust Navigation under Sensor Failure
Ali Mahzarnia, Homayoun Jamshidi
Evolved Spiking Neural Networks for EEG Seizure Detection: Calcium Dynamics and Delay Mechanics
Tuba Aksoy