mlsanityData to 7 Oct 2026

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

arXiv 2407.11215 ↗First posted 15 Jul 2024cs.LG cs.AI cs.CEcited by 5

Not on the map. Why?

Abstract (arXiv)

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. 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.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 21 of its 43 references that are in the map. First posted on arXiv 15 Jul 2024.

Builds on

21 of 43 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  3. 2022Emergent Abilities of Large Language Modelscited by 2,483
  4. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  6. 2023BloombergGPT: A Large Language Model for Financecited by 923
  7. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  8. 2023Large Language Modelscited by 774
  9. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  10. 2024Large Language Models: A Surveycited by 506
  11. 2023Large Language Model Alignment: A Surveycited by 241
  12. 2023Large Language Models in Finance: A Surveycited by 223
9 more
  1. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
  2. 2024Rethinking Interpretability in the Era of Large Language Modelscited by 110
  3. 2024Universal Neurons in GPT2 Language Modelscited by 100
  4. 2023A Survey on Fairness in Large Language Modelscited by 91
  5. 2023Cognitive Mirage: A Review of Hallucinations in Large Language Modelscited by 83
  6. 2023Eight Things to Know about Large Language Modelscited by 73
  7. 2022Formal Algorithms for Transformerscited by 70
  8. 2024Unified View of Grokking, Double Descent and Emergent Abilities: A Perspective from Circuits Competitioncited by 23
  9. 2024Towards Uncovering How Large Language Model Works: An Explainability Perspectivecited by 22

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 1.

5 papers.