Mechanistic interpretability of large language models with applications to the financial services industry

被引:0
作者
Golgoon, Ashkan [1 ]
Filom, Khashayar [1 ]
Kannan, Arjun Ravi [1 ]
机构
[1] Discover Financial Serv, Riverwoods, IL 60015 USA
来源
5TH ACM INTERNATIONAL CONFERENCE ON AI IN FINANCE, ICAIF 2024 | 2024年
关键词
Mechanistic Interpretability; Large Language Models (LLMs); Transformer Circuits; FinTech; Natural Language Processing;
D O I
10.1145/3677052.3698612
中图分类号
F8 [财政、金融];
学科分类号
0202 ;
摘要
Large Language Models exhibit remarkable capabilities across a broad spectrum of applications. Nevertheless, due to their intrinsic complexity, these models present substantial challenges in interpreting their internal decision-making processes. This lack of transparency poses critical challenges when it comes to their adaptation by financial institutions, where concerns and accountability regarding bias, fairness, and reliability are of paramount importance. Mechanistic interpretability aims at reverse engineering complex AI models such as transformers. In this paper, we are pioneering the use of mechanistic interpretability to shed some light on the inner workings of large language models for use in financial services applications. We offer several examples of how algorithmic tasks can be designed for compliance monitoring purposes. In particular, we investigate GPT-2 Small's attention pattern when prompted to identify potential violation of Fair Lending laws. Using direct logit attribution, we study the contributions of each layer and its corresponding attention heads to the logit difference in the residual stream. Finally, we design clean and corrupted prompts and use activation patching as a causal intervention method to localize our task completion components further. We observe that the (positive) heads 10.2 ( head 2, layer 10), 10.7, and 11.3, as well as the (negative) heads 9.6 and 10.6 play a significant role in the task completion.
引用
收藏
页码:660 / 668
页数:9
相关论文
共 44 条
[1]  
[Anonymous], 1968, The Fair Housing Act
[2]  
Bartz Diane, 2023, REUTERS
[3]  
Bowman SR, 2023, Arxiv, DOI [arXiv:2304.00612, DOI 10.48550/ARXIV.2304.00612, 10.48550/arXiv.2304.00612]
[4]  
California Civil Code, 2018, California Consumer Privacy Act
[5]  
Chughtai B, 2023, Arxiv, DOI arXiv:2302.03025
[6]  
Conmy A, 2023, ADV NEUR IN
[7]  
Consumer Financial Protection Bureau (CFPB), 2012, Unfair, Deceptive, Or Abusive Acts Or Practices
[8]  
Douglas M R., 2023, arXiv, DOI DOI 10.48550/ARXIV.2307.05782
[9]  
Elhage Nelson, 2021, Transformer Circuits Thread
[10]  
Federal Communications Commission (FCC), 1991, Telephone Consumer Protection Act