Underwrite.ai
AI-powered credit-risk and loan underwriting platform
Built the CatBoost credit-risk model and its SageMaker MLOps, SHAP reason codes, the document-AI and LLM layer, and the Snowflake feature and outcome pipelines behind training and monitoring for Underwrite.ai's consumer-lending flow.
Underwrite.ai: AI-powered credit-risk and loan underwriting
70–90%
Automated (straight-through) decisions
≤ 100 ms
p95 score-and-decide step
about 90%
Document field accuracy without review
4–30%
More approvals at the same bad rate
Stack
Overview
Underwrite.ai builds custom machine-learning credit-risk models for lenders from their own loan history and returns explainable credit decisions through an API. This case study covers the consumer-lending flow, from application intake and data collection to a risk score, a policy decision, human review and outcome monitoring.
The central idea: machine learning predicts risk, a deterministic policy engine makes the configured lending decision, and the LLM helps extract and explain evidence. Generative AI is not allowed to independently approve, decline or price a loan.
The problem
Lenders make decisions from information that arrives from different systems and in different formats, which underwriters reconcile across tools and spreadsheets.
- Inconsistent risk assessment: traditional scorecards and manual rules miss complex relationships.
- Manual document review: income, deposits, liabilities and balances must be extracted and reconciled by hand.
- Limited transparency and auditability: a score alone does not explain a result, and every decision must be reproducible.
My role
I worked at Underwrite.ai as an AI engineer and built three parts of this decision flow: the CatBoost credit-risk model and its MLOps on Amazon SageMaker; the document AI and LLM layer (Amazon Textract and Claude on Amazon Bedrock); and the Snowflake + dbt feature and outcome pipelines behind model training and monitoring.
What I built
Credit-risk model and MLOps
- A CatBoost model with monotone constraints and isotonic calibration, plus a logistic scorecard kept as a transparent challenger.
- A SHAP explanation service that maps material model drivers to approved adverse-action reason codes and flags unmapped features instead of inventing reasons.
- SageMaker Pipelines retraining with Model Registry approvals, shadow testing of candidate models, and Fiddler monitoring for drift and fairness.
Document AI and LLM layer
- Amazon Textract OCR and Claude Sonnet 4 extraction on Amazon Bedrock, with a page-level evidence link per fact and uncertain facts sent to human review.
- Bedrock Guardrails on every Claude call, and adverse-action narrative drafts with a deterministic template fallback.
- A bounded underwriting assistant whose tools check permissions; decision-changing actions need a separate authorized workflow.
Feature and outcome pipelines
- Point-in-time-correct Snowflake + dbt feature models with training–serving parity checks and immutable training snapshots.
- Loan-outcome ingestion, so predicted risk can be compared with observed repayment.
Results
- Model quality: on the out-of-time holdout, CatBoost beat the logistic scorecard by 2 to 4 Gini points, with a KS of 0.30–0.50.
- Approval rate: 4–30% more approvals than the logistic scorecard at the same bad rate, depending on the lender product (back-test on the out-of-time holdout).
- Calibration: expected calibration error (ECE) of 0.01 or lower.
- Automated (straight-through) decisions: 70–90% of applications.
- Time to decision: the score-and-decide step runs at a p95 of 100 ms or less; a full application with documents takes up to about 2 minutes.
- Document extraction: about 90% field accuracy without review, and 99% or more after review.
- Fair lending: an adverse impact ratio of 0.80 or higher.
- Cost: about $0.40–0.50 per 5-page application before the bureau pull.
Tech stack
| Layer | Technologies |
|---|---|
| Frontend | Next.js, React, TypeScript, Tailwind CSS, shadcn/ui, TanStack Query |
| Backend | Kotlin, Spring Boot, Spring Security, Spring Data JPA, Flyway, Python FastAPI (SHAP service) |
| Machine learning | CatBoost, scikit-learn, LightGBM (benchmark), SHAP, Optuna, Fairlearn, SageMaker Training / Pipelines / Model Registry, MLflow, Fiddler |
| Document AI and LLM | Amazon Textract, Claude Sonnet 4 on Amazon Bedrock, Bedrock Guardrails |
| Data | PostgreSQL (Amazon RDS) with RLS, Amazon S3, Snowflake, dbt, Apache Airflow (MWAA), Snowpipe |
| Workflow | AWS Step Functions, Amazon SQS, Amazon EventBridge |
| Infrastructure (team) | Amazon ECS Fargate, Terraform, Jenkins, Datadog, OpenTelemetry |
Related case studies


