ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial4 min readDisconfirmAI Editorial

Kepler's Model Factory: Why Small In-House Models Read Financial Numbers Better Than Frontier LLMs

Kepler CEO Vinoo Ganesh describes splitting enterprise document intelligence between frontier LLMs for reasoning and prose, and deterministic code with small in-house models for every number. A fine-tuned classifier achieved 94% accuracy versus 38–46% from frontier models, while processing a 28 MB fund report for $0.15 instead of $185. The article details the full pipeline on Modal: training, search model rebuild, and serving at 250,000+ tokens/sec.

2026-12-03

Enterprise financial documents create a specific failure mode for large language models that has nothing to do with model capability. In a 10-K filing, a table footnote specifying "in thousands" sits a median of 559 tokens away from the figures it governs. Standard OCR turns "thousands" into "th0usands." Inside audit reports, "we" refers to the auditor, not the issuer. A single filing spans 60,000 to 250,000 tokens, and governing definitions in contracts sit dozens of pages from the clauses they control. Regex breaks on this, and frontier LLM context windows get prohibitively expensive across millions of pages.

Vinoo Ganesh, CEO and co-founder of Kepler, an enterprise intelligence company serving investment firms, describes the architectural response: split the workload. Frontier models interpret questions and draft the text. Deterministic code extracts and computes every number with an inspectable citation back to the original page. The models that read every page a firm owns, resolve every entity, and pin every number to its place on the page are built in-house.

This split produces a measurable gap. Kepler's first fine-tuned model, a financial taxonomy classifier trained before moving to Modal (a serverless GPU platform), took 20 minutes and $9 in compute. It achieved 94% accuracy, compared to 38% to 46% from leading frontier models. On cost, running a single 28 MB fund report through a frontier LLM in 8,000-character chunks costs approximately $185. Kepler's specialist model runs it for $0.15, bringing the median cost to $0.0014 per document. From that same report, the extraction model parses 83,798 facts, 45,846 entities, and 9,474 relationships in seconds.

Sign in / Sign up
ReadingResearchRadarInvestment framework

The reasoning behind why small models win here is specific to the task structure. Financial taxonomy classification is not a reasoning problem—it is a pattern-matching problem with a fixed label space. A frontier model's generative strength becomes a liability when the answer must be a single correct category rather than a plausible paragraph. The small model has fewer degrees of freedom to hallucinate, and its narrow training distribution matches the narrow task distribution. The same logic applies to entity resolution and line-item extraction: these are deterministic transformations from document structure to structured output, not open-ended generation.

The architecture extends beyond the model choice to deployment constraints. Kepler's enterprise clients work with sensitive assets—fund financials, LP communications, deal rooms, internal research—that cannot leave their network boundaries. This forced a strict requirement: every model must be completely portable. Weights are bundled offline into versioned artifacts, paired with standard open-source serving engines, and exposed via plain HTTP APIs. Kepler trains and benchmarks each model on Modal, then ships that same artifact into a client's cloud account or on-premises hardware. Ganesh states the principle directly: a firm's most sensitive documents should never have to travel to a model; the models travel to the documents.

The search stack illustrates how far this approach extends. Kepler previously used a third-party managed API for two production models: a dense embedding model and a cross-encoder reranker. Facing a hard migration deadline, the team rebuilt both in-house on Modal. Because the legacy provider did not document their input formatting, token pooling, or projection layers, Kepler engineered exact replicas directly from weight inspection, running evaluation passes against the live API. Across 29,511 test texts, regenerated embeddings matched the live API with a minimum cosine similarity of 0.995. Both models now run inside a single H100 container using custom-compiled FP8 TensorRT-LLM engines, delivering 9.5× the throughput of an L4 GPU for 4.9× the cost, sustaining approximately 30,000 tokens/sec. Moving from vLLM to precompiled TensorRT-LLM engines reduced container boot times from 32 seconds to 8 seconds.

For serving, the core extraction model achieves 250,000+ tokens/sec throughput on a single H100 GPU. Dynamic GPU-pass batching improved small document processing efficiency by 12×, raising throughput from 27 documents/sec to 313 small documents/sec on one GPU. INT8 quantization added an additional ~30% throughput gain. Using GPU snapshots—storing the compiled CUDA kernel cache on a Modal Volume—cut container boot times for fact extraction from 60–75 seconds down to 9–24 seconds.

The training workflow shifted from single blocking runs to parallelized experiment waves. In their first two months on Modal, Kepler executed approximately 200 training and evaluation runs across 40 experiments, benchmarking context windows, parameter scales, and dataset mixtures in parallel. A single scoring pass over the training set covers more than 300 million tokens. OCR pipelines processed 80 CPU-core-hours of document work in about 20 minutes using 50 concurrent containers. Feature precomputation processed 3,750 financial filings across 16 parallel GPUs, writing 1.2 TB of features to Modal Volumes.

Every number in this account is self-reported by Kepler and published by Modal as a customer case study. The accuracy comparison does not specify the exact task definition, dataset split, or whether frontier models were given the same structured output format. The cost figures use a single 28 MB document and may not generalize across document types or complexity levels. What the case study does establish, credibly and in detail, is the architectural reasoning: when the task is deterministic extraction from structured documents with fixed label spaces, a small purpose-built model will be both cheaper and more accurate than a frontier LLM, and the entire ML lifecycle—training, evaluation, serving, and deployment to client infrastructure—can run on a single platform that keeps models portable.

Sources

  • modal.comModal↗
Continue researching →