paper-with-me

홈 › Papers

Large Language Models Encode Semantics and Alignment in Linearly Separable Representations

2025-07-13 · Baturay Saglam, Paul Kassianik, Blaine Nelson, Sajana Weerawardhena, Yaron Singer, Amin Karbasi arxiv

Understanding the latent space geometry of large language models (LLMs) is key to interpreting their behavior and improving alignment. Yet it remains unclear to what extent LLMs linearly organize representations related to semantic understanding. To explore this, we conduct a large-scale empirical study of hidden representations in 11 autoregressive models across six scientific topics. We find that high-level semantic information consistently resides in low-dimensional subspaces that form linearly separable representations across domains. This separability becomes more pronounced in deeper layers and under prompts that elicit structured reasoning or alignment behavior$\unicode{x2013}$even when surface content remains unchanged. These findings motivate geometry-aware tools that operate directly in latent space to detect and mitigate harmful and adversarial content. As a proof of concept, we train an MLP probe on final-layer hidden states as a lightweight latent-space guardrail. This approach substantially improves refusal rates on malicious queries and prompt injections that bypass both the model's built-in safety alignment and external token-level filters.

📄 PDF Abstract BibTeX arXiv:2507.09709

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Crossing Variational Autoencoders for Answer Retrieval

2020-05-06 · ACL 2020 6 · Wenhao Yu, Lingfei Wu, Qingkai Zeng, Shu Tao 외

Answer retrieval is to find the most aligned answer from a large set of candidates given a question. Learning vector representations of questions/answers is the key factor. Question-answer alignment and question/answer s…

Retrieval

Differential syntactic and semantic encoding in LLMs

2026-01-08 · Santiago Acevedo, Alessandro Laio, Marco Baroni arxiv

We study how syntactic and semantic information is encoded in inner layer representations of Large Language Models (LLMs), focusing on the very large DeepSeek-V3. We find that, by averaging hidden-representation vectors …

A Unified Graph Language Model for Multi-Domain Multi-Task Graph Alignment Instruction Tuning

2026-05-12 · Haibo Chen, Xin Wang, Jiaheng Chao, Ling Feng 외 arxiv

Leveraging Graph Neural Networks (GNNs) as graph encoders and aligning the resulting representations with Large Language Models (LLMs) through alignment instruction tuning has become a mainstream paradigm for constructin…

A Multi-level Alignment Training Scheme for Video-and-Language Grounding

2022-04-22 · Yubo Zhang, Feiyang Niu, Qing Ping, Govind Thattai

To solve video-and-language grounding tasks, the key is for the network to understand the connection between the two modalities. For a pair of video and language description, their semantic relation is reflected by their…

RetrievalSemantic SimilaritySemantic Textual Similarity

Probing Visual Concepts in Lightweight Vision-Language Models for Automated Driving

2026-03-06 · Nikos Theodoridis, Reenu Mohandas, Ganesh Sistu, Anthony Scanlan 외 arxiv

The use of Vision-Language Models (VLMs) in automated driving applications is becoming increasingly common, with the aim of leveraging their reasoning and generalisation capabilities to handle long tail scenarios. Howeve…