ChemSteer: Controllable Molecular Generation via Locally Linear Steering in Chemical Language Models
Abstract
The Linear Representation Hypothesis (LRH) holds that concepts are encoded along linear directions in the activation space of pretrained models. It was formulated for semantic concepts in natural language, where a concept and its negation define a natural axis. Chemical properties are more complex because they are determined by valence, ring systems, scaffold symmetries and synthesizability constraints. As such, a single global direction cannot control these properties across the entire expanse of chemical space. We argue that property control in chemical language models is better described as locally linear because the representation manifold is curved, so a linear direction is valid only within a limited neighborhood, and different structural families require different directions. We test this directly and find that the angle between local steering directions increases systematically as the chemical similarity between their molecular neighborhoods decreases, across datasets and properties. This motivates ChemSteer, which uses spectral co-clustering to partition molecules into locally linear regions and latent dimensions into incoherent subspaces simultaneously, extracts a steering direction within each region, and superposes them into a single global vector with exactly zero interference. We validate on QM9, ZINC250K, MOSES and ChEMBL. ChemSteer increases QED to 0.92--0.95, reduces synthetic accessibility to , and steers effectively toward higher LogP, without retraining or fine-tuning.
Create a lesson
Related papers
Predicting End-to-End Fine-Tuning Time for Generative Language Models
Shared title terminologycs.LGBreno Beleza, Felipe Lima, Isis Carvalho et al.
Looking Back to Forget: Self-Anchored Unlearning Along the Generation Trajectory of Diffusion Language Models
Shared title terminologycs.LGRuihao Pan, Suhang Wang
Model Completed Anchored Q Iteration: Value Iteration on a Learned Local Model for Input Constrained Control
Shared title terminologycs.LGDhruv Singh Kushwaha, Zoleikha Abdollahi Biron
SAT: Structure-Aligned Tokenization with Chemical Knowledge for Explainable SMILES Language Models
Shared title terminologycs.LGHyeonseok Kang, Goun Pyeon, Sangkeun Jung
Mid-JEPA: Learning Representations and Control through Multiscale Goal Decomposition
Shared title terminologycs.LGJiazhe Hu, Donghai Hong, Jingqi Wang et al.
Linear Attention Has Superlinear Capacity
Shared title terminologycs.LGHao Guo, Sudhaunshu Hardikar, Simon Dennis et al.