[论文解读] Less is Enough: Synthesizing Diverse Data in Feature Space of LLMs
本文提出 Feature Activation Coverage (FAC) 用于在可解释的 SAE 基于特征空间中量化数据多样性,并提出 FAC Synthesis—a 覆盖引导的数据生成框架,通过填补缺失的任务相关特征以提升多任务及多模型族的后训练性能。
The diversity of post-training data is critical for effective downstream performance in large language models (LLMs). Many existing approaches to constructing post-training data quantify diversity using text-based metrics that capture linguistic variation, but such metrics provide only weak signals for the task-relevant features that determine downstream performance. In this work, we introduce Feature Activation Coverage (FAC) which measures data diversity in an interpretable feature space. Building upon this metric, we further propose a diversity-driven data synthesis framework, named FAC Synthesis, that first uses a sparse autoencoder to identify missing features from a seed dataset, and then generates synthetic samples that explicitly reflect these features. Experiments show that our approach consistently improves both data diversity and downstream performance on various tasks, including instruction following, toxicity detection, reward modeling, and behavior steering. Interestingly, we identify a shared, interpretable feature space across model families (i.e., LLaMA, Mistral, and Qwen), enabling cross-model knowledge transfer. Our work provides a solid and practical methodology for exploring data-centric optimization of LLMs.
研究动机与目标
- 推动在大模型后训练中对数据多样性的需求,并超越基于文本的多样性度量,聚焦于任务相关特征。
- 提出基于稀疏自编码器特征空间的模型感知多样性度量(FAC)。
- 开发 FAC Synthesis,通过定向数据生成Identify 并填补缺失的任务相关特征。
- 在理论上界定后训练的泛化误差并将其与特征覆盖和采样联系起来。
- 在多任务和多模型族上经验验证 FAC Synthesis,展示数据效率与 SAE 特征的跨模型迁移性。
提出的方法
- 将 Feature Activation Coverage (FAC) 定义为在生成数据中被激活的任务相关 SAE 特征的分数。
- 在模型内部激活上训练稀疏自编码器 (SAE) 以获得可解释的潜在特征。
- 把目标函数公式化为最小化 anchor 数据与生成数据的 SAE 特征分布之间的 KL 散度(式 (Eq. 3))。
- 识别缺失的特征 F_miss,即在 anchor 数据中存在而在生成数据中不存在的特征,并通过引导生成来激活它们。
- 使用两步合成策略:(i) 构建对比特征感知提示,以产生能够强/弱激活每个缺失特征的对;(ii) 在这些对上生成样本并通过 SAE 激活(阈值 delta)进行筛选。
- 提供基于 PAC-Bayesian 与互信息的分析以界定采样误差并将其与数据不确定性联系起来(第6节)。
实验结果
研究问题
- RQ1RQ1: 通过覆盖引导的合成数据在微调后是否能提升模型性能?
- RQ2RQ2: SAE 发现的缺失特征与模型性能之间是否相关?
- RQ3RQ3: SAE 识别的缺失特征在不同语言模型之间是否具有可迁移性?
- RQ4RQ4: 这些解释与综合是否对人类是合理的?
- RQ5RQ5: 所提出框架对超参数选择是否敏感?
主要发现
- FAC 与后续性能高度相关(Pearson r = 0.95, Spearman ρ = 0.90)。
- FAC Synthesis 仅需 2,000 个合成样本就可达到与 MAGPIE 相当的性能,而 MAGPIE 需要超过 150K 的样本。
- 在 Toxicity Detection、Reward Modeling、Behavior Steering 与 Instruction Following 的实验中,相对于基线呈现一致的改进。
- SAE 特征具有跨模型迁移性,表明存在跨模型族(LLaMA、Mistral、Qwen)的共享特征空间。
- 采用对比 prompts 的两步合成比单步生成带来更高的 FAC,从而提高特征激活的可靠性。
- 超参数分析表明中等解码温度与特征阈值可获得最佳性能,数据效率以 DES 量化。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。