Ai4
AI-assisted summary of Beyond the Black Box: Interpretability of Llms in Finance With Barclays Investment Bank — original source. Check the original for full context.
Source published:
Detailed notes
## Background This video was published on YouTube by Ai4 on August 28, 2025. It features Hariom Tatsat, Vice President of AI Quant at Barclays Investment Bank, discussing how mechanistic interpretability can open the black box of large language models to ensure transparency, regulatory alignment, and precise output control in financial applications.
## TL;DR Hariom Tatsat addresses the critical enterprise challenge where 86% of Generative AI projects remain stuck in the proof-of-concept phase due to a lack of model explainability. He details how Barclays leverages mechanistic interpretability and Sparse Autoencoders (SAEs) to peek inside an LLM's residual stream and resolve feature polysemanticity. The talk illustrates three practical financial use cases: steering models for credit risk sentiment analysis, using internal feature activations as signals for predictive stock trading, and dynamically triggering RAG to prevent hallucinations when domain-specific activation is low. Ultimately, these techniques allow financial institutions to control, explain, and safely deploy LLMs without expensive model retraining.
## Atmosphere & style The presentation carries an authoritative, pragmatic, and intellectually grounded tone tailored for financial technologists and AI practitioners. Tatsat delivers a clear, structured narrative that smoothly connects high-level AI research concepts to concrete, real-world banking challenges. Utilizing intuitive analogies—such as comparing traditional interpretability to tracking a diet while mechanistic interpretability acts as direct brain intervention—the delivery feels insightful, precise, and forward-looking.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=aZbXdcbx93E&t=4s) About 86% of enterprise generative AI projects remain stuck in the proof-of-concept (PoC) phase due to a lack of explainability, which 68% of industry leaders view as critical for production deployment. - [03:24](https://www.youtube.com/watch?v=aZbXdcbx93E&t=204s) Traditional AI interpretability evaluates models externally, whereas mechanistic interpretability looks directly at internal neurons, layers, and residual streams to reverse-engineer model representations. - [03:24](https://www.youtube.com/watch?v=aZbXdcbx93E&t=204s) Mechanistic interpretability enables direct model steering, allowing teams to manipulate internal activations and alter model outputs without fine-tuning or retraining. - [05:11](https://www.youtube.com/watch?v=aZbXdcbx93E&t=311s) Sparse Autoencoders (SAEs) address the issue of polysemanticity by decomposing mixed neuron activations into distinct, human-interpretable feature vectors. - [07:40](https://www.youtube.com/watch?v=aZbXdcbx93E&t=460s) Barclays applied SAE feature steering to credit risk sentiment analysis, making models selectively sensitive to credit terms and improving benchmark classification accuracy. - [10:18](https://www.youtube.com/watch?v=aZbXdcbx93E&t=618s) Internal SAE feature activations generated from financial news can be fed into decision trees to create transparent, explainable stock movement signals. - [12:25](https://www.youtube.com/watch?v=aZbXdcbx93E&t=745s) Monitoring internal financial feature activation levels acts as a guardrail against hallucinations, automatically triggering Retrieval-Augmented Generation (RAG) when activation falls below a threshold. - [14:23](https://www.youtube.com/watch?v=aZbXdcbx93E&t=863s) Mechanistic interpretability provides a viable framework for highly regulated financial institutions to safely move Generative AI applications from PoC to production.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=aZbXdcbx93E&t=4s) Introduction and the Imperative for Interpretability in Finance
Hariom Tatsat, Vice President on an AI team at Barclays in New York, opens the talk by introducing his team's focus on applied research and generative AI. A couple of months prior, they published a paper titled "Beyond the Black Box: Interpretability of LLMs in Finance," which generated significant interest across both buy-side and sell-side institutions. The core objective of their research is to look behind the scenes of large language models to make them practical and transparent for financial applications, leveraging foundational research from organizations like OpenAI and Anthropic.
Tatsat frames the problem by pointing out a major bottleneck in enterprise AI adoption: while there is massive experimentation, an estimated 86% of generative AI projects remain stuck in the proof-of-concept (PoC) phase and fail to transition to production. Surveys indicate that roughly 68% of industry leaders view explainability as critical to building the confidence required for deployment. In financial settings where real capital is at stake, common workarounds like trial-and-error prompt engineering are insufficient and risky.
``` [ Traditional AI Interpretability ] ( Examines Inputs & Outputs Externally) │ ▼ ┌─────────────────────────────────────────────────┐ │ Black Box LLM │ └─────────────────────────────────────────────────┘ ▲ │ [ Mechanistic Interpretability ] ( Peeks Inside Residual Stream & SAEs) ```
- **Speaker:** Hariom Tatsat, VP, AI Quant Team at Barclays Investment Bank. - **Paper Inspiration:** OpenAI's 2017 discovery of a single "sentiment neuron" that retained sentiment classification ability even when isolated from the rest of the network. - **Production Gap:** 86% of enterprise GenAI projects are stuck in PoC due to a lack of explainability. - **Leadership Sentiment:** ~70% (specifically 68%) of leaders cite explainability as essential for deploying AI models.
[03:24](https://www.youtube.com/watch?v=aZbXdcbx93E&t=204s) What is Mechanistic Interpretability?
Tatsat explains mechanistic interpretability (which he colloquially abbreviates as "mech interp") by drawing an analogy to neuroscience. Unlike conventional machine learning interpretability techniques (such as feature relevance or SHAP values) that treat models as black boxes and observe them strictly from the outside, mechanistic interpretability looks directly inside the model's "brain" at the neuron and layer levels.
To illustrate the distinction, Tatsat uses a medical analogy: if a patient suffers from high blood sugar or diabetes, traditional interpretability acts like tracking their external diet to infer patterns. Prompt engineering is like telling the patient "don't eat sugar." Mechanistic interpretability, by contrast, goes directly into the brain to locate the specific neural feature driving the sugar craving and actively turns down its activation. This ability to go beyond observation to direct model manipulation is known as "steering."
- **Definition:** Analyzing and reverse-engineering the internal representations (neurons, layers, and residual streams) of language models. - **Key Advantage:** Enables precise control ("steering") of model outputs without retraining or fine-tuning.
[05:11](https://www.youtube.com/watch?v=aZbXdcbx93E&t=311s) Unraveling Concepts with Sparse Autoencoders (SAEs)
Modern LLMs possess billions or trillions of parameters, yet they must represent an infinite array of real-world concepts. This leads to a phenomenon known as **polysemanticity**, where a single neuron or feature vector fires in response to multiple unrelated concepts (for instance, firing simultaneously for Michael Jordan, astrophysics, and general geography). To isolate individual concepts, researchers apply **Sparse Autoencoders (SAEs)**.
An SAE functions by tapping into a specific layer's residual stream within the LLM. It projects the dense internal representations into a much wider, sparse neural network layer, effectively decomposing mixed representations into interpretable feature directions. For instance, when asking a model "What is the capital of France?", the SAE uncovers separate, decoupled features representing concepts like "Eiffel Tower," "wines," and "Paris." To make these mathematical features human-readable, researchers pass sample text corpora through the model and assign labels based on which semantic patterns trigger maximum feature activation.
- **Polysemanticity:** The challenge where individual neurons respond to multiple, distinct concepts. - **Residual Stream:** The internal vector space through which information flows between LLM layers. - **Sparse Autoencoder (SAE):** A wider neural network applied to an internal LLM layer to isolate orthogonal, monosemantic features. - **Feature Labeling (Neuronpedia):** Automated attribution tools (such as DeepMind's Neuronpedia) run sentences through features to assign human-readable labels based on maximum activation.
[07:40](https://www.youtube.com/watch?v=aZbXdcbx93E&t=460s) Use Case 1: Credit Risk Sentiment Analysis & Model Steering
Turning to practical applications, Tatsat outlines how Barclays applied mechanistic interpretability to credit risk sentiment analysis. Using DeepMind's open-source Neuronpedia platform, the team identified feature vectors that selectively activate on credit risk concepts. By artificially boosting the activation of these credit risk features (a process called "steering"), they made the LLM "obsessive" about credit risk indicators without altering its weights or modifying the base prompt.
When evaluated on credit sentiment scoring tasks (scaling sentiment from -10 to 10), the steered model naturally prioritized credit-relevant keywords, altering its score and providing clearer domain-specific rationale. When tested across thousands of human-annotated financial sentences, the credit-steered model consistently outperformed the non-steered base model across five distinct sentiment categories.
- **Tooling:** Leveraged Google DeepMind's *Neuronpedia* to locate pre-trained SAE features related to credit risk. - **Mechanism:** Steering directly modifies internal activations to increase sensitivity to specific domains. - **Result:** Improved benchmark accuracy on credit risk sentiment classification over standard, non-steered baseline LLMs across thousands of test sentences.
[10:18](https://www.youtube.com/watch?v=aZbXdcbx93E&t=618s) Use Case 2: Extracting Financial Signals for Trading
In trading environments, black-box recommendations are unacceptable—traders require transparent rationale before acting on model output. The team tested whether internal SAE activations could serve as explicit, explainable signals for predictive trading models. They processed financial news headlines through SAEs to monitor 50 to 100 domain-specific features (such as Named Entity Recognition tags and financial term detectors).
The team then fed these feature activation levels into a decision-tree model to predict stock price movements (up versus down). The decision tree highlighted highly intuitive and interpretable features as the strongest predictors: 1. **Locations and Geographical Entities:** Named Entity Recognition (NER) for places proved surprisingly powerful in signal generation. 2. **Financial Terminology:** Specific vocabulary related to corporate actions and market metrics. 3. **Stock Ticker Symbols:** Explicit company identifiers.
Tatsat notes that ongoing work includes scaling up dataset sizes, incorporating more feature dimensions, and applying SAEs to larger base LLMs.
- **Methodology:** Passed financial news through SAEs to capture ~50–100 active features, using their activation states as inputs for a decision-tree classifier. - **Primary Feature Predictors:** Locations/NER, financial terms, and stock tickers.
[12:25](https://www.youtube.com/watch?v=aZbXdcbx93E&t=745s) Use Case 3: Conditional Activation for Hallucination Reduction
The final application addresses hallucination detection and mitigation in financial chatbots. The underlying principle is simple: when a user asks a finance-specific question (e.g., regarding earnings reports or regulatory filings), finance-related features within the LLM should naturally activate. If a query yields abnormally low activation across relevant domain features, the system detects a potential domain disconnect or lack of knowledge.
Barclays developed a "first line of defense" dynamic guardrail: if the proportion of active financial features falls below a configurable threshold (e.g., 20%), the system automatically flags the response and triggers Retrieval-Augmented Generation (RAG) to inject verified external document context. Comparing non-augmented outputs with conditionally activated RAG outputs showed marked improvements in context, citations, and factual accuracy.
- **Detection Threshold:** Monitored average feature activation on domain prompts; low activation indicates insufficient internal knowledge. - **Remediation:** Dynamically triggers RAG retrieval when internal domain activations fall below set thresholds. - **Outcome:** Significantly reduced hallucinations on complex tasks like evaluating earnings reports and regulatory filings.
[14:23](https://www.youtube.com/watch?v=aZbXdcbx93E&t=863s) Concluding Thoughts on Transparency in Financial AI
Closing the presentation, Tatsat re-emphasizes that in highly regulated sectors like finance—where substantial capital is on the line—explainability is non-negotiable. While frontier model providers routinely launch larger foundation models (referencing releases like GPT-5 or Anthropic's Claude 3.5/4 series), interpretability research often receives less attention than raw scale.
Referencing statements by Anthropic CEO Dario Amodei on the importance of AI safety and interpretability, Tatsat concludes that Sparse Autoencoders and mechanistic techniques provide a viable path toward transparent, trustworthy AI in financial services.
- **Core Takeaway:** Mechanistic interpretability using SAEs enables granular inspection, domain-specific steering, and robust guardrails without expensive retraining. - **Industry Alignment:** Aligns with safety-first research paradigms to bring Generative AI from experimental PoC to production-grade compliance.
## Notable quotes > [00:04](https://www.youtube.com/watch?v=aZbXdcbx93E&t=4s) Beyond the Black Box: Interpretability of LLMs in Finance — Hariom Tatsat
> [03:24](https://www.youtube.com/watch?v=aZbXdcbx93E&t=204s) mech interp — Hariom Tatsat
> [03:24](https://www.youtube.com/watch?v=aZbXdcbx93E&t=204s) don't eat sugar — Hariom Tatsat
> [03:24](https://www.youtube.com/watch?v=aZbXdcbx93E&t=204s) steering — Hariom Tatsat
> [05:11](https://www.youtube.com/watch?v=aZbXdcbx93E&t=311s) polysemanticity — Hariom Tatsat
> [05:11](https://www.youtube.com/watch?v=aZbXdcbx93E&t=311s) Eiffel Tower — Hariom Tatsat
> [05:11](https://www.youtube.com/watch?v=aZbXdcbx93E&t=311s) wines — Hariom Tatsat
> [05:11](https://www.youtube.com/watch?v=aZbXdcbx93E&t=311s) Paris — Hariom Tatsat
> [07:40](https://www.youtube.com/watch?v=aZbXdcbx93E&t=460s) obsessive — Hariom Tatsat
> [12:25](https://www.youtube.com/watch?v=aZbXdcbx93E&t=745s) first line of defense — Hariom Tatsat
## Mentioned Hariom Tatsat, Barclays Investment Bank, OpenAI, Anthropic, DeepMind, Neuronpedia, GPT-5, Claude 3.5, Claude 4, Dario Amodei, Sparse Autoencoders (SAEs)
## Video description Hariom Tatsat, Vice President, AI Quant, Barclays Investment Bank
Abstracts
Can we open the black box of large language models and make AI in finance truly transparent?
As financial institutions adopt LLMs for tasks like trading, compliance, and advisory, the need for transparency is more critical than ever. Understanding how these models internally reason about financial topics is key to ensuring trust and regulatory alignment.
This session covers how mechanistic interpretability can reveal internal patterns in LLMs related to financial reasoning—such as risk and credit events—and how modifying these patterns can steer model outputs without retraining. Practical examples will illustrate how this approach enhances control and explainability.
Join the session to explore cutting-edge interpretability techniques that bring clarity to Generative AI behavior in finance.
[Source](https://www.youtube.com/watch?v=aZbXdcbx93E)