Mechanistic interpretability of large language models with applications to the financial services industry
Ashkan Golgoon, Khashayar Filom, and Arjun Ravi Kannan

TL;DR
This paper applies mechanistic interpretability to large language models like GPT-2 to understand their internal decision processes, especially for financial compliance tasks, using attention analysis and causal interventions.
Contribution
It pioneers the use of mechanistic interpretability techniques to analyze LLMs in financial applications, identifying key attention heads involved in specific tasks.
Findings
Attention heads 10.2, 10.7, 11.3 are positively involved in task completion.
Heads 9.6 and 10.6 negatively influence the task.
Activation patching helps localize task-specific components.
Abstract
Large Language Models such as GPTs (Generative Pre-trained Transformers) 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.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Activation Patching · Cosine Annealing · Linear Layer · Weight Decay · Softmax · Multi-Head Attention · Dense Connections · Discriminative Fine-Tuning
