---
title: "Agentic Credit Analysis"
description: "Credit risk evaluation for Ramp Card customers is hard because financial statements vary in structure and require expert judgment, which does not scale. Traditional cashflow data misses signals like unpaid invoices that only appear in financial statements. The agentic pipeline uses large language model reasoning with deterministic scaffolding to extract and aggregate line items using Ramp’s semantic definitions, with industry-specific exceptions. It reads spreadsheet logic directly for structured files and runs multiple OCR passes for scans, while deterministic code recalculates metrics like EBITDA and flags fallbacks. In a benchmark of 200 analyst-reviewed statements, recall improved by a median of 3.7pp on income statements and 5.9pp on balance sheets, enabling a machine learning model to automate over 30% of formerly manual credit reviews."
---

# Agentic Credit Analysis

[Ramp](https://yomu.fyi/company/ramp) · Blake Williams, Rohan Goel, Jake Pappo, Avery Geller, Mueed Rehman · Oct 22, 2026

**Type:** Problem & solution

## Summary

Credit risk evaluation for Ramp Card customers is hard because financial statements vary in structure and require expert judgment, which does not scale. Traditional cashflow data misses signals like unpaid invoices that only appear in financial statements. The agentic pipeline uses large language model reasoning with deterministic scaffolding to extract and aggregate line items using Ramp’s semantic definitions, with industry-specific exceptions. It reads spreadsheet logic directly for structured files and runs multiple OCR passes for scans, while deterministic code recalculates metrics like EBITDA and flags fallbacks. In a benchmark of 200 analyst-reviewed statements, recall improved by a median of 3.7pp on income statements and 5.9pp on balance sheets, enabling a machine learning model to automate over 30% of formerly manual credit reviews.

## Context

Ramp is a corporate card and spend management platform that must evaluate credit risk for thousands of business customers. Financial statements contain critical risk signals not found in bank account data, but manual underwriting does not scale.

## Approach / What changed

An agentic pipeline processes financial statements: a language model extracts line items and time periods, using Ramp’s semantic definitions for aggregation. For structured files it reads underlying calculation logic; for unstructured files it runs multiple OCR passes with cross-checking. Deterministic scaffolding recalculates aggregate metrics like EBITDA in code, falls back to parsed figures when inputs are unavailable, and excludes duplicate line items. Analyst corrections are fed back into the system to improve future reviews. The spread financials feed a machine learning model that automates credit decisions.

## Takeaways

- The pipeline uses deterministic code to recalculate aggregate metrics like EBITDA rather than relying solely on model extraction, which prevents hallucinations and ensures alignment with internal credit policies.
- For spreadsheet-based financials, the pipeline reads the underlying calculation logic instead of raw values, enabling more accurate extraction than OCR-based approaches.
- In a benchmark of 200 analyst-reviewed statements, the pipeline improved recall by up to 5.9 percentage points while keeping precision flat, enabling automation of over 30% of formerly manual credit reviews.

## FAQ

### How does the pipeline handle different file formats?

For structured files like digital PDFs and spreadsheets, the pipeline reads the underlying logic used to derive line items rather than raw values. For unstructured files like images and scans, it runs multiple OCR passes, with each pass checking the last to prevent hallucinations.

### How does the pipeline prevent the model from hallucinating?

Deterministic scaffolding verifies calculations, avoids double-counting, and reconciles duplicate figures. Key metrics like EBITDA are recalculated in code according to Ramp's semantic definitions rather than trusting the model's extracted values directly, and fallbacks are flagged when inputs are unavailable.

### What metrics were used to evaluate the agent's performance?

The team built a benchmark of 200 credit analyst-reviewed income statements and balance sheets. They measured accuracy, recall, and precision within a 5% tolerance, with the primary goal of producing reliable inputs for credit risk decisions rather than exact figure reproduction.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [Credit Analysis](https://yomu.fyi/topic/credit-analysis), [Fintech](https://yomu.fyi/topic/fintech), [Machine Learning](https://yomu.fyi/topic/machine-learning)

- Source: [Ramp](https://builders.ramp.com/post/credit-analysis-using-semantics)
- Source URL: https://builders.ramp.com/post/credit-analysis-using-semantics
- Ingested by Yomu: 2026-10-22T21:00:13.751Z

[Read original post](https://builders.ramp.com/post/credit-analysis-using-semantics)
