AIAny
Icon for item

UniSteer: Text-Guided Flow Matching in Activation Space for Versatile LLM Steering

Learns a text-conditioned flow (a conditional velocity field) in LLM residual activations to steer frozen models at inference by partially transporting and regenerating activations under target textual conditions — enabling unified control over persona, style, truthfulness, compositional constraints, and activation-space classification.

Introduction

Most activation-based steering methods for LLMs use fixed steering directions or task-specific intervention modules, which struggle to express fine-grained concepts or compositional constraints. UniSteer takes a different tack: learn a single, text-conditioned velocity field in the model's residual activation space and use flow inversion at inference to move activations toward states that reflect a target textual condition before reinjecting them into the frozen model. The result is one conditional model that handles multiple steering tasks without per-target intervention engineering.

Key Findings
  • Learned universal conditional velocity field: UniSteer trains a single conditional model that maps natural-language conditions to a velocity field over residual-stream activations, so you don't need a separate intervention for every behavior — this reduces per-target engineering effort.
  • Flow inversion + partial transport: During inference UniSteer partially transports source activations toward a latent state and regenerates them under the desired textual condition, then injects them back into the frozen LLM. This enables controllable modification while retaining most of the original model's generation capabilities.
  • Versatile control and classification: The same conditional model supports behavioral steering (persona/style), truthfulness steering, fine-grained concept steering, multi-constraint instruction following, and activation-space classification via reconstruction energy, demonstrating broad applicability across tasks and models.
  • Empirical validation: Experiments on three target LLMs show consistent improvements across steering and classification tasks, indicating the method generalizes beyond a single architecture.
Who it's for and trade-offs

Great fit if you need flexible, text-driven behavioral control of a frozen LLM without fine-tuning per-target interventions — for example, applying persona/style changes, enforcing constraints, or performing activation-space classification. Look elsewhere if you lack white-box access to residual activations (UniSteer requires activation hooks) or need a zero-cost, zero-latency solution: the method adds inference-time compute for flow inversion and may require an additional conditional model and calibration for new target concepts. It is complementary to (not a replacement for) fine-tuning when long-term model updates or dataset-level corrections are required.

Where It Fits

Compared with fixed-direction interventions and task-specific adapters, UniSteer emphasizes generality: one conditional controller maps arbitrary text conditions to activation transformations. This places it between lightweight prompt-based control (lower overhead, less precise) and full model fine-tuning (higher permanence and cost).

Methodology (brief)

UniSteer formulates steering as conditional flow matching in activation space: it learns a conditional velocity field over residual activations conditioned on natural-language descriptions. At inference, it performs flow inversion by partially transporting activations toward a learned latent and reconstructing them under the target condition before reinjection. For classification, it ranks candidate textual labels by reconstruction energy to select the best match.

Information

  • Websitearxiv.org
  • AuthorsYingdong Shi, Ruiming Zhang, Changming Li, Zhiyu Yang, Kaixing Zhang, Jingyi Yu, Kan Ren
  • Published date2026/05/28

More Items

Transfers RL-induced policy shifts from a smaller 'weak' teacher to a stronger target by using the teacher's post-/pre-RL log-ratio as a dense implicit reward applied on the student's on-policy states. Enables reuse of RL supervision without running RL rollouts on the target, improving sample/time efficiency.

Explores unsupervised visual pretraining on visually rich documents to improve language-model intelligence; shows visual-pretrained models outperform text-only counterparts on the same corpora. Key aspects: direct use of images/layouts (no OCR-only pipeline), scalable across backbones and benchmarks.

Provides IdeaGene-Bench, a dataset and evaluation suite for scientific-lineage reasoning and lineage-grounded idea generation, representing papers as minimal, typed Idea Genome objects and GenomeDiffs that record inheritance, mutation, loss, import and novel insertion. Includes 1,961 lineage traces, IG-Exam (42 task types) and IG-Arena with a Population-Evolution Score for generation.