JJava Stack Lab
论文雷达 · arXiv AI

ESSI:面向稀疏自编码器概念的计算高效语义搜索

摘要

稀疏自编码器(SAE)可以将扩散模型的激活分解为可解释的特征,但要用这些特征来引导模型,必须先确定哪些特征对应给定的语义概念。现有“概念到特征”方法依赖网格搜索,或对冻结的 UNet 反复做前向计算,代价很高。作者提出 ESSI:用分割掩码把 SDXL 激活标注为概念或非概念,对 SAE 特征排序,并二分搜索最小的特征集;该特征集要能让线性分类器仍可区分正负样本,且性能不低于阈值。然后复用这个分类器校准引导强度。作者在概念插入和物体遗忘两类任务上评估了同一组选定特征;与先前工作相比,ESSI 的成本相当或更低,且在插入和移除两类任务上表现都不错。

查看原始标题和摘要

ESSI: Computationally Efficient Semantic Search for Sparse Autoencoder Concepts

Sparse autoencoders (SAEs) decompose diffusion model activations into interpretable features, but steering a model with them requires identifying which features map to a given semantic concept, if any. Existing methods for this concept to feature task are expensive, relying on grid searches or repeated passes through the frozen UNet. We propose Efficient Semantic Sparse Identification (ESSI). Using segmentation masks to label SDXL activations as concept or non-concept, ESSI ranks SAE features and binary-searches for the smallest set on which a linear classifier still separates positive from negative samples while not falling below a performance threshold, then reuses that classifier to calibrate the steering strength. We evaluate the same selected features on both concept insertion and object unlearning. Compared with prior work, ESSI is as cheap or cheaper, and performs well on both insertion and removal.

核心要点

  • ESSI 用分割掩码把 SDXL 激活标注为概念或非概念,用于给 SAE 特征排序
  • 通过二分搜索寻找最小的特征集,使线性分类器在不低于性能阈值的前提下仍能区分正负样本
  • 复用选出的分类器来校准引导强度,避免额外的网格搜索或对冻结 UNet 的反复前向计算
  • 在同一组选定特征上同时评估概念插入与物体遗忘,成本与先前方法相当或更低

为什么值得后端工程师关注

这项工作把扩散模型的可解释性研究从依赖昂贵网格搜索的做法,推进到更节省计算成本的流程;但它的对象是扩散模型(SDXL)的激活与 SAE 特征,与 Java 后端服务的日常开发没有直接关系,只在从事生成式模型平台、推理优化或模型可解释性基础设施时值得关注。