arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.06378cs.CL
收藏

语义正则表达式:通过结构化语言自动解释LLM特性

Semantic Regexes: Auto-Interpreting LLM Features with a Structured Language

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Apple(苹果公司)

Angie Boggust, Donghao Ren, Yannick Assogba, Dominik Moritz, Arvind Satyanarayan, Fred Hohman

AI总结:

语义正则表达式通过结构化语言自动解释LLM特性,提供精确且简洁的特征描述,提升模型可解释性分析的准确性和一致性。

摘要:

自动化可解释性旨在将大型语言模型(LLM)的特性翻译成人类可理解的描述。然而,自然语言特征描述可能模糊、不一致,并需要手动重新标记。为此,我们引入了语义正则表达式,即对LLM特征的结构化语言描述。通过结合捕捉语言和语义模式的基本元素以及用于上下文化、组合和量化的修饰符,语义正则表达式产生精确且富有表现力的特征描述。在定量基准和定性分析中,语义正则表达式在准确性上与自然语言相当,同时产生更简洁且一致的特征描述。其内在结构提供了新的分析类型,包括量化特征复杂性跨层、将自动化可解释性从对单个特征的洞察扩展到模型整体模式。最后,在用户研究中,我们发现语义正则表达式有助于人们构建准确的LLM特征心理模型。

英文摘要:

Automated interpretability aims to translate large language model (LLM) features into human understandable descriptions. However, natural language feature descriptions can be vague, inconsistent, and require manual relabeling. In response, we introduce semantic regexes, structured language descriptions of LLM features. By combining primitives that capture linguistic and semantic patterns with modifiers for contextualization, composition, and quantification, semantic regexes produce precise and expressive feature descriptions. Across quantitative benchmarks and qualitative analyses, semantic regexes match the accuracy of natural language while yielding more concise and consistent feature descriptions. Their inherent structure affords new types of analyses, including quantifying feature complexity across layers, scaling automated interpretability from insights into individual features to model-wide patterns. Finally, in user studies, we find that semantic regexes help people build accurate mental models of LLM features.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑