Skip to content

Introduction

Output Drift in Financial LLMs Workshop

Welcome to the Output Drift in Financial LLMs Workshop! This hands-on workshop teaches you how to measure and analyze non-determinism in large language model (LLM) outputs for financial applications.

Why This Matters

Financial institutions deploying AI systems must ensure:

  • Regulatory Compliance: Consistent, auditable AI decisions
  • Risk Management: Predictable behavior in production
  • Trust & Reliability: Stakeholder confidence in AI-driven recommendations

This workshop is based on peer-reviewed research demonstrating that even at temperature=0.0, LLMs exhibit output drift—up to 35% variance in some tasks—threatening compliance workflows.

New: interactive results explorer

Explore the DFAH-Bench results, play with the replay metrics live in your browser, and drive a real local model through the benchmark — no install needed: Open the Live Explorer

What You'll Learn

By the end of this workshop, you will:

  • Understand output drift and its implications for financial AI systems
  • Set up and run reproducible LLM experiments across multiple providers
  • Measure drift using industry-standard metrics (consistency, Jaccard similarity, schema violations)
  • Analyze cross-provider reliability patterns
  • Implement best practices for deterministic AI deployments

Tip

This workshop is hands-on and collaborative. We encourage you to experiment, ask questions, and share your findings with other participants. The framework is designed to be extensible—feel free to add your own tasks and providers!

Workshop Structure

Lab Description Duration
Lab 0: Workshop Pre-work Install prerequisites and set up your environment 15 min
Lab 1: Understanding Output Drift Learn the theory and see real examples of drift 20 min
Lab 2: Setting Up Your Environment Configure API keys and run environment tests 15 min
Lab 3: Running Your First Experiment Execute experiments and understand the framework 30 min
Lab 4: Analyzing Drift Metrics Interpret results and generate visualizations 25 min
Lab 5: Cross-Provider Testing Compare reliability across different AI providers 30 min
Lab 6: Extending the Framework Add custom tasks and integrate with your workflows 30 min
Lab 7: Replayable Financial Agents Run agent benchmarks from the ICLR 2026 paper 30 min
Lab 8: DFAH-Bench — Replay Determinism & Audit Bundles Reproduce the DFAH-Bench paper from the checked-in replay corpus (no LLM needed) 25 min

Total Duration: Approximately 3.5-4 hours

Research Foundation

This workshop is based on three papers from the same research line:

"DFAH-Bench: Benchmarking Observable Agent Instability in Financial Decision-Making" arXiv preprint (announcement pending) | Every number reproduces from this repository: make reproduce-paper

"Replayable Financial Agents: A Determinism-Faithfulness Assurance Harness for Tool-Using LLM Agents" ICLR 2026 FinAI Workshop (The 2nd ICLR Workshop on Advances in Financial AI) | arXiv:2601.15322

"LLM Output Drift: Cross-Provider Validation & Mitigation for Financial Workflows" Presented at the ACM ICAIF 2025 AI4F Workshop | arXiv:2511.07585

Key Findings (v1, Output Drift): - Even at temperature=0.0, frontier models exhibit 5.5-35% output variance - 7-20B models (Granite-3-8B, Qwen2.5-7B, GPT-OSS-20B) achieve 100% determinism at T=0.0 - RAG tasks show the highest drift (56.25% consistency at temperature=0.2) - Structured output tasks (SQL, summarization) maintain better determinism

Key Findings (v2, Replayable Agents, 4,705 runs): - Decision determinism and accuracy are not detectably correlated (r = -0.11, p = 0.63) - Small models achieve high determinism via pattern matching, not reasoning - Frontier models show "same conclusion, different reasoning" (decision det. > signature det.) - No model simultaneously achieves high determinism AND high accuracy

Key Findings (v3, DFAH-Bench, 8,127 replay episodes): - Among 912 decision-stable case groups (DAR ≥ 0.9), 21.8% hide trajectory divergence (TAR < 0.9) that outcome-only evaluation cannot see; 19.4% diverge strongly (TAR < 0.7) - Trajectory divergers: 55.6% of Claude Sonnet 4's and 56.6% of Gemini 2.5 Pro's stable cases vary in tool path - The DAR-TAR gap, evidence-contact divergence (ECD), and decision concentration bias (DCB) expose three distinct failure modes invisible to accuracy metrics - Fully reproducible: the raw corpus (8,129 episodes, minus 2 single-replay case groups = 8,127 analyzed) ships in this repo; make reproduce-paper regenerates every paper number and fails loudly on any mismatch

Community Validation (Paul Merrison, FINOS): - Determinism is model-specific, not size-based - Gemma2-9B: 100% deterministic (new Tier 1 candidate) - Mistral-7B: Task-dependent (33% RAG, 100% SQL) - Architecture and training matter more than parameter count

Prerequisites

Required: - Python 3.11+ - Basic command line proficiency - Understanding of APIs and environment variables

Recommended: - Familiarity with LLMs and prompt engineering - Basic knowledge of financial concepts - Experience with data analysis (pandas, visualization)

API Access (at least one): - Ollama (free, local) - IBM watsonx.ai (trial available) - OpenAI, Anthropic, or other providers

Target Audience

This workshop is designed for:

  • AI/ML Engineers building production LLM systems
  • Risk & Compliance Officers evaluating AI deployments
  • Financial Technologists integrating AI into workflows
  • Researchers studying LLM reliability and non-determinism
  • Product Managers planning AI-powered financial products

Getting Help

If you encounter issues or have questions:

  1. Check the Troubleshooting Guide
  2. Review the API Reference
  3. Ask workshop facilitators or teaching assistants
  4. Open an Issue on GitHub
  5. Submit a Pull Request with improvements

Repository Structure

output-drift-financial-llms/
├── run_evaluation.py       # Main experiment orchestrator (v1 Output Drift)
├── run_dfah_demo.py        # DFAH demo (no LLM needed)
├── Makefile                # make reproduce-paper / make test-bench
├── REPRODUCIBILITY.md      # Exact environment, commands, disclosed caveats
├── COMMUNITY_FINDINGS.md   # Independent validation results
├── docs/                   # Workshop documentation (labs 0-8)
├── bench/                  # DFAH-Bench library (v3)
│   ├── metrics/            # DAR/TAR, ECD, DCB, SCDR implementations
│   ├── spec/               # Replay episode schema + task ontologies
│   ├── provenance/         # Hash-chained, Ed25519-signed audit bundles
│   └── stats/              # Bootstrap CIs, significance tests
├── harness/                # v1 framework core
│   ├── deterministic_retriever.py
│   ├── task_definitions.py
│   └── cross_provider_validation.py
├── providers/              # LLM providers (watsonx, anthropic, gemini)
├── econometrics/           # Replayable Agents (v2) - benchmarks & metrics
│   ├── benchmarks/         # 3 financial agent benchmarks (50 cases each)
│   │   └── results/run_logs/  # Raw replay corpus: 8,129 episodes
│   └── agentic/            # Trajectory determinism & faithfulness metrics
├── scripts/                # Replay analysis + reproduce_paper.py
├── tests/                  # 143-test suite (offline, no API keys)
├── results/                # Reference CSVs behind every paper number
├── data/                   # Test datasets & generators
├── examples/               # Audit trails + domain-extension example
└── requirements.txt        # Python dependencies

Reproducibility & Citations

The v1 drift experiments are pinned at release v0.1.0 (commit c19dac5):

git clone https://github.com/ibm-client-engineering/output-drift-financial-llms
git checkout v0.1.0

The DFAH-Bench (v3) paper reproduces from main — the raw replay corpus is checked in, and one command regenerates every published number:

make reproduce-paper   # fails loudly on any mismatch (B=10,000 bootstrap, seed=42)

If you use this framework in your research, please cite:

@article{khatchadourian2026replayable,
  title={Replayable Financial Agents: A Determinism-Faithfulness Assurance Harness for Tool-Using LLM Agents},
  author={Khatchadourian, Raffi},
  journal={arXiv preprint arXiv:2601.15322},
  year={2026},
  eprint={2601.15322},
  archivePrefix={arXiv},
  doi={10.48550/arXiv.2601.15322}
}

@article{khatchadourian2025output,
  title={LLM Output Drift: Cross-Provider Validation \& Mitigation for Financial Workflows},
  author={Khatchadourian, Raffi and Franco, Rolando},
  journal={arXiv preprint arXiv:2511.07585},
  year={2025},
  eprint={2511.07585},
  archivePrefix={arXiv},
  doi={10.48550/arXiv.2511.07585}
}

A citation entry for DFAH-Bench: Benchmarking Observable Agent Instability in Financial Decision-Making will be added when its arXiv announcement completes.

Replayable Agents: arXiv:2601.15322 | Output Drift: arXiv:2511.07585

License

This project is licensed under the MIT License. See LICENSE for details.

Contributors & Acknowledgments

This workshop and framework were developed by Raffi Khatchadourian and Rolando Franco in IBM Financial Services in collaboration with researchers focused on responsible AI deployment in regulated industries.

Special thanks to the open-source community and the contributors who helped build and test this framework.


Ready to Begin?

Start with Lab 0: Workshop Pre-work to set up your environment!