Production LLM Systems at Scale - Lessons from Financial Services, Legal Tech, and ML Infrastructure

nubank,_harvey_ai,_galileo_and_convirza · Tech · 2024 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Production LLM and small-language-model systems across finance, legal, evaluation, and call analytics

The panelists describe how production LLM systems must move beyond prototypes into high-volume, high-stakes workflows where cost, latency, evaluation reliability, human oversight, and modular architecture determine whether the system can be trusted.

Constraints:

Architecture

Across the four cases, teams converge on decomposing LLM applications into narrow production modules. Nubank proves workflows with large models, then routes modules through cheaper or lower-latency models using centralized telemetry. Convirza breaks call-analysis questions into small fine-tuned SLM adapters that emit structured outputs for dashboards and reports. Harvey exposes complex legal workflows as typed subcomponents with citations, confidence, and human orchestration. Galileo replaces expensive LLM-as-judge loops with smaller evaluator models and feedback-tuned metrics.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  production-workflow-request["Production workflow request"] --> task-decomposition-layer["Task decomposition layer"]
  task-decomposition-layer["Task decomposition layer"] --> model-selection-layer["Model selection layer"]
  model-selection-layer["Model selection layer"] --> specialized-slm-adapters["Specialized SLM adapters"]
  specialized-slm-adapters["Specialized SLM adapters"] --> structured-output-layer["Structured output layer"]
  model-selection-layer["Model selection layer"] --> telemetry-proxy["Telemetry proxy"]
  telemetry-proxy["Telemetry proxy"] --> evaluation-platform["Evaluation platform"]
  structured-output-layer["Structured output layer"] --> evaluation-platform["Evaluation platform"]
  evaluation-platform["Evaluation platform"] --> human-feedback-loop["Human feedback loop"]
  task-decomposition-layer["Task decomposition layer"] --> human-orchestration-panel["Human orchestration panel"]
  structured-output-layer["Structured output layer"] --> human-orchestration-panel["Human orchestration panel"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Production workflow request A customer action, legal workflow, call-analysis question, or evaluation task entering the system. Task decomposition layer
Task decomposition layer Breaks broad workflows into typed, narrow modules with explicit inputs and outputs. Production workflow request, Model selection layer, Human orchestration panel
Model selection layer Chooses large models, open models, SLMs, fine-tuned variants, or inference engines per task. Task decomposition layer, Specialized SLM adapters, Telemetry proxy
Specialized SLM adapters Fine-tuned small models or narrow prompts answering specific classification, rating, extraction, or entailment questions. Model selection layer, Structured output layer, Evaluation platform
Structured output layer Converts narrow model answers into dashboard data, reports, action payloads, or typed API outputs. Specialized SLM adapters, Human orchestration panel, Evaluation platform
Telemetry proxy Centralizes metrics for latency, throughput, cost, and workflow steps. Model selection layer, Evaluation platform
Evaluation platform Runs human, LLM, and small-model evaluation; tracks hallucination, quality, and false-positive feedback. Specialized SLM adapters, Structured output layer, Telemetry proxy, Human feedback loop
Human feedback loop Collects dogfooding, user feedback, beta validation, evaluator review, and false-positive corrections. Evaluation platform, Human orchestration panel
Human orchestration panel Lets users inspect progress, confidence, citations, and intervene in complex legal or production workflows. Task decomposition layer, Structured output layer, Human feedback loop

Data flow

A production task begins as a customer workflow, legal process, evaluation request, or call-analysis question. Teams first decompose it into narrow sub-tasks, then select a model class for each step based on quality, latency, throughput, and cost. Specialized SLMs or larger models produce structured outputs, while telemetry proxies, evaluation platforms, and human feedback loops measure quality and feed corrections back into prompts, fine-tuning datasets, or evaluator metrics.

3 supporting quotes
“Every organization emphasizes breaking monolithic systems into narrow, specialized components. This enables targeted optimization, clearer evaluation, and easier maintenance.”summary, stated
“Instead, they evaluate on four dimensions: quality, throughput, latency, and cost.”summary, stated
“Users author baseline metrics with criteria, but these evolve through feedback on false positives.”summary, stated

Why this architecture

The shared architectural argument is that production tasks are rarely best served by one large prompt. Decomposition gives each module a measurable contract; model routing lets teams spend model capacity only where quality requires it; and human/evaluation loops catch the real-world failures that prototype metrics miss.

3 supporting quotes
“This economic constraint drives their interest in smaller models. Abhishek notes that production AI assistants naturally decompose into "a lot of small narrow things,"”summary, stated
“They break complex workflows into sub-components with clearly defined inputs and outputs, treating language model systems as strict APIs with defined types and guarantees.”summary, stated
“The discrepancy between prototype and production performance has underlined the critical need for robust evaluation tooling.”summary, stated

Models used: small language models · fine-tuned small language models · OpenAI models · GPT-4o mini · open source models · 500 million parameter DeBERTa models · 2-8 billion parameter evaluator models · BERT-style models

Scale

Alternatives considered (roads not taken)

Prompting large language models for all call-analysis questions

Rejected because: Convirza found the prompt sizes and inference economics infeasible for customer-scale phone-call analysis.

“The cost dynamics of LLMs proved prohibitive; even with decreasing token costs, the prompt sizes required to achieve desired results were economically unfeasible for their customers.”summary, stated

Single question-answer interactions for legal workflows

Rejected because: Harvey users needed complicated multi-step legal processes with typed subcomponents, citations, and human inspection.

“Users don't want single question-answer interactions; they need to perform complicated, multi-step processes.”summary, stated

Legacy NLP metrics such as ROUGE and BLEU for long-form legal or generative outputs

Rejected because: The panelists found classical metrics provided essentially no useful signal for modern generative tasks.

“For evaluation, they've found that classical NLP metrics (ROUGE, BLEU) provide essentially no signal for their use cases.”summary, stated

Always using LLM-as-judge evaluation at production scale

Rejected because: Galileo observed that LLM-judge loops could double calls and produce unsustainable evaluation cost.

“The motivation is the same as for application development: the cost of intelligence has decreased dramatically.”summary, implied

Patterns

workflow-decomposition (architecture)

The cases repeatedly break broad workflows into narrow modules with explicit contracts, allowing independent model selection, evaluation, and human intervention.

“Every organization emphasizes breaking monolithic systems into narrow, specialized components. This enables targeted optimization, clearer evaluation, and easier maintenance.”summary, stated

model-routing (architecture)

Nubank and others evaluate model choices per module across quality, throughput, latency, and cost, rather than standardizing on one model class.

“For any given module in their pipeline, they'll experiment with everything from GPT-4o mini to non-fine-tuned open source models to fine-tuned variants, combined with various inference engines.”summary, stated

fine-tuning-adaptation (model-adaptation)

Convirza and Galileo both adapt smaller models to narrow production tasks, using existing datasets or feedback to beat broad prompting economics.

“The fine-tuning process was remarkably straightforward: "it was literally just clicking the big red button and sitting there for 10 minutes." The fine-tuned SLMs outperformed their best-crafted prompts for LLMs.”summary, stated

eval-driven-development (quality)

The teams build evaluation into release and improvement loops, from human review and beta feedback to small-model hallucination checks and false-positive feedback.

“Their release process is gradual: internal metrics must be nominal, user feedback (thumbs up/down) is monitored, external evaluation systems are consulted, and beta testers provide real-world validation.”summary, stated

human-in-the-loop-gate (governance)

Harvey and Galileo keep humans in review, intervention, dogfooding, beta validation, and false-positive correction loops.

“For complex, long-running workflows, Daniel emphasizes the importance of human-in-the-loop orchestration panels—allowing humans to intervene when the system encounters issues”summary, stated

cost-aware-routing (operations)

The panel treats cost as a first-class routing and architecture constraint, especially for high-volume calls and evaluation loops.

“The quality-latency-cost tradeoff: This fundamental triangle appears in every discussion. Different use cases demand different trade-offs—real-time user interactions prioritize latency, batch processing can trade time for quality, and high-volume systems are cost-sensitive.”summary, stated

Tradeoffs

Use specialized SLMs for narrow production tasks

Chose Fine-tuned small models and narrow adapters over Large general-purpose LLM prompts for every task.

Rationale: Narrow models can match or beat large-model prompts for constrained tasks while improving latency, throughput, and cost.

“Each SLM serves a single, narrow purpose—acting as an adapter that answers one specific question with high accuracy.”summary, stated
“Small models exceeding expectations: Multiple panelists express surprise at how well small models perform when fine-tuned for narrow tasks. The "delta between small language models and large language models is not as big as everyone thinks."”summary, stated

Modularize complex legal workflows

Chose Subcomponents with defined inputs, outputs, citations, and human inspection over A single opaque legal assistant response.

Rationale: Strict module contracts and user transparency make high-stakes legal workflows more verifiable and controllable.

“They break complex workflows into sub-components with clearly defined inputs and outputs, treating language model systems as strict APIs with defined types and guarantees.”summary, stated

Optimize after product-market fit

Chose Large-model prototyping followed by module-level latency and cost optimization over Prematurely optimizing every workflow before validating usefulness.

Rationale: Nubank first proves a workflow with larger models, then replaces expensive steps with cheaper or lower-latency models where the workflow is known to matter.

“Their methodology follows a clear pattern: rapidly reach product-market fit (PMF) with larger models like OpenAI, then systematically optimize for latency and cost once the workflow is proven.”summary, stated

Use smaller evaluator models for scale

Chose Small entailment or token-probability evaluator models over Chain-of-thought LLM judging for every evaluation case.

Rationale: Many production evaluation tasks do not require deep reasoning, and smaller evaluators can deliver comparable accuracy at lower cost.

“By not relying on chain-of-thought and instead using token-level probabilities, they achieve high accuracy with dramatically lower compute costs.”summary, stated

Gotchas (what bit them)

Large-model prompting can be economically infeasible even when token prices are falling.

Root cause: High-volume, long-context workflows multiply prompt size and calls across millions of customer interactions.

Resolution: Decompose questions and fine-tune specialized small models for narrow outputs before optionally using LLMs for narrative reports.

“even with decreasing token costs, the prompt sizes required to achieve desired results were economically unfeasible for their customers.”summary, stated

Prototype evaluation can miss production behavior shifts.

Root cause: Controlled local environments do not reproduce real-world user data and evolving application contexts.

Resolution: Use robust evaluation tooling, production telemetry, and real-world feedback rather than relying on prototype checks.

“They've observed a consistent pattern: prototypes work in controlled environments but behave differently when they meet real-world data. The discrepancy between prototype and production performance has underlined the critical need for robust evaluation tooling.”summary, stated

LLM-as-judge can become a hidden production cost center.

Root cause: Putting a judge model in every evaluation loop effectively doubles or multiplies LLM calls at high query volume.

Resolution: Use smaller evaluator models, token-probability methods, and feedback-tuned metrics for narrow evaluation tasks.

“one organization with 10 million queries per day saw evaluation costs exceed seven figures within eight months simply because they had an LLM-as-judge in the loop”summary, stated

Classical NLP metrics may provide no useful signal for legal-grade generation.

Root cause: ROUGE/BLEU-style overlap metrics do not capture correctness, legal reasoning, or usefulness in complex generated work products.

Resolution: Use human evaluation, citations, confidence indicators, beta feedback, and task-specific external evaluators.

“For long-form text generation, human evaluation remains the gold standard. Daniel notes that even Google uses human evaluators alongside automated metrics when shipping new search algorithm versions.”summary, stated

Evaluation

The panel describes evaluation as multi-layered: module-level quality, throughput, latency, and cost checks; human review for long-form or legal outputs; user feedback and beta validation; and smaller automated evaluator models for scalable hallucination or RAG checks.

Metrics: quality · throughput · latency · cost · thumbs up/down feedback · RAG hallucination detection · false-positive feedback · human evaluator judgments

3 supporting quotes
“Instead, they evaluate on four dimensions: quality, throughput, latency, and cost. For any given module in their pipeline, they'll experiment with everything from GPT-4o mini to non-fine-tuned open source models to fine-tuned variants, combined with various inference engines.”summary, stated
“• Internal dog-fooding: Engineers and internal users provide initial feedback”summary, stated
“These feedback mechanisms are powered by small, fine-tunable language models.”summary, stated

Outcomes

The strongest scale figures are Convirza's millions of phone calls, Galileo's 10 million-query/day evaluation anecdote, and Nubank's strict internal latency and transaction-cost constraints.

3 supporting quotes
“The fine-tuning process was remarkably straightforward: "it was literally just clicking the big red button and sitting there for 10 minutes." The fine-tuned SLMs outperformed their best-crafted prompts for LLMs.”summary, stated
“Because credit card decisioning has been core to their business for years, they have extensive tooling for ML telemetry and metrics.”summary, stated
“The discussion reflects an industry maturing from experimentation to production, with shared lessons emerging around architecture, evaluation, and the strategic use of model sizes appropriate to specific tasks.”summary, stated