Steer-to-Detect:探测隐藏表示以检测LLM生成文本
Steer-to-Detect: Probing Hidden Representations for Detection of LLM-Generated Texts
AI总结:
本文提出Steer-to-Detect框架,通过改进的隐藏表示分离能力,有效检测LLM生成文本,理论和实验均表现出色。
摘要:
大语言模型(LLM)的快速发展使得机器生成文本与人类文本区分变得困难。尽管近期研究探索利用语言模型内部表示揭示更深层的检测信号,但这些原始特征在类别间重叠显著,限制了判别能力。为解决这一挑战,我们提出Steer-to-Detect(S2D),一个两阶段框架用于检测LLM生成文本。第一阶段,S2D学习一个转向向量,将其注入冻结的观察者LLM的隐藏状态,生成具有改进类别分离能力的表示。第二阶段通过基于转向表示的假设检验进行检测。我们建立了有限样本、高概率的I型和II型误差保证,提供了该过程的理论刻画。实验表明,S2D在多种设置中均表现出强大且一致的性能,包括分布外场景和对抗扰动情况。
英文摘要:
The rapid advancement of large language models (LLMs) has made machine-generated text increasingly difficult to distinguish from human-written text. While recent studies explore leveraging internal representations of language models to uncover deeper detection signals, these raw features often exhibit substantial overlap between classes, limiting their discriminative power. To address this challenge, we propose Steer-to-Detect (\texttt{S2D}), a two-stage framework for detecting LLM-generated text. In the first stage, \texttt{S2D} learns a steering vector that is injected into the hidden states of a frozen observer LLM, producing representations with improved class separability. In the second stage, detection is performed via a hypothesis testing procedure based on the steered representations. We establish finite-sample, high-probability guarantees for Type I and Type II errors, providing a theoretical characterization of the procedure. Empirically, \texttt{S2D} achieves strong and consistent performance across a range of settings, including out-of-distribution scenarios and adversarial perturbations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。