Shaping & Monitoring Models through their Internal Representations
Read the original on Hugging Face Trending Papers →The Flow has not summarised this story yet — read it at Hugging Face Trending Papers.
The Flow has not summarised this story yet — read it at Hugging Face Trending Papers.
The paper introduces Mechanistic Shaping, a framework that guides machine learning models during training to adhere to specified rules about the concepts they express and rely on, using internal representations. Experiments across vision, medical imaging, and language tasks with models up to 32B parameters show that this approach reduces targeted undesirable behaviors while maintaining performance. The authors also develop a hierarchy of monitor classes to assess whether shaped concepts remain detectable, identifying three geometric mechanisms of circumvention and demonstrating that most shaped concepts remain monitorable with appropriate probes.
arXiv:2606. 12360v1 Announce Type: new Abstract: Language-model post-training is the main stage at which model behavior is shaped, yet it still largely involves optimization of scalar rewards that summarize diverse desiderata.
Language-model post-training is the main stage at which model behavior is shaped, yet it still largely involves optimization of scalar rewards that summarize diverse desiderata. This abstraction gives practitioners little visibility into what their data actually teaches models, allowing spurious correlations to be learned by a model and inducing undesirable behaviors such as over-stylization and sycophancy.
The paper introduces interpretable weight‑space programming (iWSP), a method where a large language model (LLM) agent builds neural networks by explicitly coding weights and features, avoiding gradient‑based training. iWSP successfully constructs compact, accurate transformers for tasks like arithmetic and sentiment classification, and it is applied to neural encoding models across vision, language, and audition, outperforming existing interpretable baselines and revealing distinct computations in visual cortex, confounds in language fMRI, and acoustic features in auditory ECoG.
The paper introduces Exemplar Partitioning (EP), an unsupervised technique that constructs interpretable feature dictionaries from large language model activations by clustering streamed activations into Voronoi regions defined by exemplars and their averages. EP allows comparison of dictionaries across layers, checkpoints, and architectures, and demonstrates utility in interpreting model behavior, tracking training dynamics, detecting hidden concepts, and enabling targeted interventions. Experiments on Gemma‑2‑2B and Llama‑3.1‑8B show EP can reveal how instruction tuning reorganizes harmful prompt activations, facilitate interventions that alter model responses, and achieve high concept‑detection performance while requiring far fewer construction tokens than comparable methods.
The paper surveys mechanistic interpretability for AI safety, exploring how studying internal representations and computations of neural networks can help evaluate, predict, and control their behavior. It reviews foundational concepts such as features, polysemanticity, transformer computation, and circuits, and surveys methods for feature extraction, circuit discovery, causal verification, and training-data attribution. The authors propose a unified framework for evaluating mechanistic claims, outline six research orientations, and discuss how mechanistic understanding can aid safety through knowledge editing, steering, and monitoring, while also highlighting limitations and open problems.