arXiv

LiSeCo: Linear Semantic Control for Language Generation

Title: LiSeCo: Linear Semantic Control for Language Generation

Abstract:

As Large Language Models (LLMs) become increasingly integral to high-stakes applications, there is a growing demand for language generation techniques that offer both computational efficiency and reliable performance assurances. To meet this challenge, we leverage a prevailing perspective that concept semantics within LLMs are linearly encoded in their latent space. Specifically, we posit that natural language generation corresponds to a trajectory traversing this continuous semantic manifold, manifested through the model’s hidden activations.

This conceptual framework enables the application of control theory to text generation within the latent space. Building on this, we introduce Linear Semantic Control (LiSeCo), a lightweight intervention method that operates without gradients. LiSeCo dynamically redirects generation trajectories away from areas associated with unwanted meanings. The method functions by directly intervening, in an online manner, with the activations of the token currently being generated, specifically within the embedding space.

Crucially, LiSeCo goes beyond merely guiding activations toward a target area. By employing classical control theory techniques, it ensures context-dependent precision, guaranteeing that activations are confined to a specific, pre-defined region of the embedding space that aligns with acceptable semantics. The intervention is calculated via a closed-form solution derived from an optimal controller formulation, thereby minimizing any impact on generation latency. This mechanism for controlling activations in embedding space facilitates fine-grained manipulation of the attributes within the generated sequence. Our experiments demonstrate that LiSeCo effectively manages various tasks—including toxicity, sentiment, and language (English/Spanish) steering—while preserving the overall quality of the text.


Source: arXiv Generated at: 2026-06-04 00:00:00 UTC

Related Articles

TechCrunch

Meta’s Oversight Board says account bans lack due process, transparency

Meta’s Oversight Board criticized account bans for lacking due process and transparency, citing inconsistent enforcement...

TechCrunch

Meta rolls out a new AI creator assistant on Facebook

Meta launched an AI creator assistant on Facebook to streamline analytics and content brainstorming. Initially available...

TechCrunch

What to expect from WWDC 2026: Siri’s highly anticipated revamp and Apple Intelligence updates

WWDC 2026 promises a Siri revamp powered by Google’s Gemini and standalone app, plus AI agents in the App Store and Came...

TechCrunch

A burglar used a Waymo to steal yoga clothes in San Francisco — and got away with it

A thief stole yoga clothes using a Waymo, but police failed to catch them because the car’s video data was deleted and b...

Goldman Sachs CEO David Solomon on the Coming Mega IPOs
Bloomberg

Goldman Sachs CEO David Solomon on the Coming Mega IPOs

Goldman Sachs CEO David Solomon anticipates a surge in major IPOs, signaling renewed market confidence and significant o...

What Are A.I. Agents Actually Doing?
New York Times

What Are A.I. Agents Actually Doing?

Arena research shows tech professionals are most likely to use AI agents at work, highlighting a strong industry trend i...