Mechanistic interpretability strives to explain model behavior in terms of bottom-up primitives. The leading paradigm is to express hidden states as a sparse linear combination of basis vectors, called features. However, this only identifies which text sequences (exemplars) activate which features; the actual interpretation of features requires subjective inspection of these exemplars. This paper advocates for a different solution: rule-based descriptions that match token patterns in the input and correspondingly increase or decrease the likelihood of specific output tokens. Specifically, we extract rule-based descriptions of SAE features trained on the outputs of attention layers. While prior work treats the attention layers as an opaque box, we describe how it may naturally be expressed in terms of interactions between input and output features, of which we study three types: (1) skip-gram rules of the form "[Canadian city]... speaks --> English", (2) absence rules of the form "[Montreal]... speaks -/-> English," and (3) counting rules that toggle only when the count of a word exceeds a certain value or the count of another word. Absence and counting rules are not readily discovered by inspection of exemplars, where manual and automatic descriptions often identify misleading or incomplete explanations. We then describe a simple approach to extract these types of rules automatically from a transformer, and apply it to GPT-2 small. We find that a majority of features may be described well with around 100 skip-gram rules, though absence rules are abundant even as early as the first layer (in over a fourth of features). We also isolate a few examples of counting rules. This paper lays the groundwork for future research into rule-based descriptions of features by defining them, showing how they may be extracted, and providing a preliminary taxonomy of some of the behaviors they represent.
Context-Aware Rule Mining Using a Dynamic Transformer-Based Framework
University of Minnesota(明尼苏达大学);Cornell University(康奈尔大学);Northeastern University(东北大学);University of Rochester(罗切斯特大学);University of Miami(迈阿密大学);University of California San Diego(加利福尼亚大学圣迭戈分校)
NASP-T: A Fuzzy Neuro-Symbolic Transformer for Logic-Constrained Aviation Safety Report Classification
Faculty of Science and Technology (REALTEK)(科学与技术学院);Norwegian University of Life Sciences (NMBU)(挪威生命科学大学);Dresden International University (DIU)(德累斯顿国际大学)
Laughing Hyena Distillery: Extracting Compact Recurrences From Convolutions
Mila and Université de Montréal(米拉研究所和蒙特利尔大学);Stanford University(斯坦福大学);The University of Tokyo(东京大学);Purdue University(普渡大学);Vrije Universiteit Amsterdam(阿姆斯特丹自由大学);Carnegie Mellon University and Meta AI (FAIR)(卡内基梅隆大学和Meta AI(FAIR));University of Buffalo, SUNY(纽约州立大学布法罗分校);University of Chicago and Together Computer(芝加哥大学和Together Computer)
Extracting Angina Symptoms from Clinical Notes Using Pre-Trained Transformer Architectures
Brown University(布朗大学);The Warren Alpert Medical School, Brown University(布朗大学沃伦·阿尔珀特医学院);School of Public Health, Brown University(布朗大学公共卫生学院);Providence VA Medical Center(普罗维登斯退伍军人事务医疗中心);Rhode Island Quality Institute(罗德岛质量研究所)
WebFormer: The Web-page Transformer for Structure Information Extraction
Facebook AI;Santa Clara University(圣克拉拉大学);Google Research(谷歌研究院);University of Science and Technology of China(中国科学技术大学);Sun Yat-sen University(中山大学);Rochester Institute of Technology(罗切斯特理工学院)
Case-Based or Rule-Based: How Do Transformers Do the Math?
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);National Key Laboratory of General Artificial Intelligence, BIGAI(北京智源人工智能研究院通用人工智能国家重点实验室)
Extracting Social Support and Social Isolation Information from Clinical Psychiatry Notes: Comparing a Rule-based NLP System and a Large Language Model
Weill Cornell Medicine(威尔康奈尔医学院);Icahn School of Medicine at Mount Sinai(西奈山伊坎医学院);Mayo Clinic(梅奥诊所);Columbia University Vagelos College of Physicians and Surgeons(哥伦比亚大学瓦格洛斯内科医生与外科医生学院);New York State Psychiatric Institute(纽约州精神病学研究所)
An End-to-end Chinese Text Normalization Model based on Rule-guided Flat-Lattice Transformer
Tsinghua-CUHK Joint Research Center for Media Sciences, Technologies and Systems(清华-中大媒体科学技术与系统联合研究中心);Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);The Chinese University of Hong Kong(香港中文大学);Databaker (Beijing) Technology Co., Ltd(标贝(北京)科技有限公司)
A Systematic Benchmark of Machine Transliteration Models for the Tajik-Farsi Language Pair: A Comparative Study from Rule-Based to Transformer Architectures
Institute of Computational Mathematics and Information Technologies(计算数学与信息科技学院);Kazan Federal University(卡兹安联邦大学)
From Rule-Based Models to Deep Learning Transformers Architectures for Natural Language Processing and Sign Language Translation Systems: Survey, Taxonomy and Performance Evaluation
United Arab Emirates University(阿联酋大学);Emirates Center for Mobility Research(阿联酋移动性研究中心)
Business as Rulesual: A Benchmark and Framework for Business Rule Flow Modeling with LLMs
Zhejiang University of Technology(浙江工业大学);Zhejiang Key Laboratory of Visual Information Intelligent Processing(浙江省视觉信息智能处理重点实验室);University of Aberdeen(阿伯丁大学);University of Birmingham(伯明翰大学)