CBMAS: Cognitive Behavioral Modeling via Activation Steering
Ahmed H. Ismail, Anthony Kuang, Ayo Akinkugbe, Kevin Zhu, Sean O'Brien
TL;DR
CBMAS tackles diagnosing and controlling cognitive biases in LLMs by introducing continuous activation steering and bias trajectory analysis across model depth via $alpha$-sweeps. It builds layer-specific steering directions from contrastive prompts and tracks their effects with Bias Response Curves, computing metrics such as $Delta_logit$ and $Delta_prob$, as well as $KL$ divergence to quantify shifts while monitoring fluency. The key contributions are a practical diagnostic framework, release of contrastive datasets for Sycophancy, Reassurance, Satisficing, and Deference, and empirical demonstrations of tipping points and layer-site dependencies. This work advances cognitive interpretability and provides tools for safer, more controllable LLM deployment.
Abstract
Large language models (LLMs) often encode cognitive behaviors unpredictably across prompts, layers, and contexts, making them difficult to diagnose and control. We present CBMAS, a diagnostic framework for continuous activation steering, which extends cognitive bias analysis from discrete before/after interventions to interpretable trajectories. By combining steering vector construction with dense α-sweeps, logit lens-based bias curves, and layer-site sensitivity analysis, our approach can reveal tipping points where small intervention strengths flip model behavior and show how steering effects evolve across layer depth. We argue that these continuous diagnostics offer a bridge between high-level behavioral evaluation and low-level representational dynamics, contributing to the cognitive interpretability of LLMs. Lastly, we provide a CLI and datasets for various cognitive behaviors at the project repository, https://github.com/shimamooo/CBMAS.
