Engineering Financial-Grade LLMs: From Answering Questions to Delivering Verifiable Work Products

    This article examines the engineering practices behind financial-grade large language models, focusing on four attributes that matter in production: deliverability, factuality, safety governance, and cost. It explains what end-to-end delivery means in finance workflows, how to treat hallucination as a measurable metric with a three-layer defense across input, generation, and verification, why safety filtering at the training-data stage involves a quantifiable capability tradeoff, and how prefix caching, tiered routing, and TTL selection reshape the cost structure. A practical deployment checklist is included.

    1. From “Answering” to “Delivering”: New Model Requirements in Finance

    Over the past two years, the most common gap our team has hit when deploying LLMs in finance is not that “the model can’t talk.” It is that once the model finishes talking, the business team still has to redo the work. Financial modeling, investment analysis, and industry research reports share one trait: the output is not a block of text but an artifact that can be reviewed, traced, and delivered. That shifts the evaluation standard from “is the answer fluent?” to “can the artifact enter the downstream workflow as-is?”

    End-to-end delivery means at least four things in engineering terms:

    • Task closure: from reading source material, confirming definitions and units, and setting assumptions, through generating table structures, computing metrics, and writing conclusions, with no manual context shuffling in between.
    • Structural control: output must have a stable structure (sections, tables, fields, units, time ranges) so programs can parse it and run secondary checks.
    • Verifiable process: key numbers must trace back to input material or be explicitly labeled as assumptions, avoiding “right conclusion, unknown source.”
    • Usable delivery: formatting aligns with existing business templates, reducing rework on layout and definitions.

    On general office and document-understanding benchmarks, the new generation of finance-oriented models scored 64.4, described officially as the current best result. For developers, the value of such a score is not the ranking. It is that it indirectly indicates combined capability in document structure understanding, table manipulation, and multi-step instruction following, which is exactly what research-report and modeling pipelines depend on underneath.

    2. Factual Accuracy: Treating Hallucination as a Measurable, Governable Engineering Metric

    Financial content tolerates factual errors extremely poorly. One wrong year-over-year definition, one nonexistent time range, and the entire report loses credibility. Factual accuracy therefore has to enter the development process as a measurable metric, not something you pray for with prompts.

    One internal stress test design is worth borrowing. It deliberately selects error-prone samples and tracks two metrics:

    • Single-claim error rate: answers are decomposed into atomic facts and judged one by one, measuring how often errors occur.
    • Share of answers containing errors: an answer counts as failing if it contains at least one factual error, measuring how widespread errors are.

    In that test, the single-claim error rate dropped from 23.4% in the previous generation to 8.3%, and the share of answers containing errors was about 42.4% of the previous generation. The official statement also stresses that this test deliberately concentrates on error-prone cases, so the numbers do not represent overall performance in everyday use. That distinction matters a lot in practice: stress tests are for relative comparison between versions and regression monitoring, while production behavior must be evaluated separately against real business distributions.

    Three layers of defense are recommended:

    1. Input layer: normalize definitions and units, validate time ranges, explicitly flag missing fields
    2. Generation layer: structured output constraints + citation placeholders + hand numeric computation to deterministic tools
    3. Verification layer: extract atomic facts -> check via rules and retrieval in parallel -> fall back and rewrite on failure

    One point deserves emphasis: moving numeric computation out of “the language model doing mental math” and into a deterministic calculation engine is one of the fastest ways to cut the factual error rate. The model owns modeling approach and explanation; computation and lookups belong to the program. The separation of responsibilities is the point.

    3. Safety Governance: Subtracting at the Training-Data Stage

    The stronger the capability, the higher the misuse risk. A sounder approach is not filtering only at the output side but moving governance upstream into the data stage: identifying and removing network attack and defense related data during both mid-training and reinforcement learning, reducing misuse potential at the source.

    The official comparison is instructive. On a self-developed hard attack-and-defense benchmark, the unfiltered version solved 90.5% of problems at pass@3, while the final released version reached 81.0%. These numbers expose the inherent cost of safety governance: there is a quantifiable tradeoff between capability and safety. pass@3 means at least one pass across three samples, so it measures the ceiling of latent capability. The roughly 9.5 percentage point drop in the released version buys a more controllable risk surface.

    The takeaway for enterprises: safety policy should be configurable, auditable, and regression-testable. Put safety evaluation into continuous integration, run a fixed sample set on every model or policy change, and keep diff reports between versions. That avoids both extremes: cutting capability to the point of uselessness for the sake of safety, or opening up risk for the sake of capability.

    4. Cost Structure: Scheduling Room Created by Caching and the High-Speed Tier

    Price and throughput directly determine architecture choices. The new generation is cheaper overall than the previous one: the standard tier costs 13 CNY per million input tokens and 68 CNY per million output tokens; the high-speed tier is 2x that price; the previous generation was 20 CNY input and 100 CNY output. More notable, the cache-hit price dropped to 1.30 CNY per million tokens, roughly one tenth of the standard input price.

    Tier Input Output Cache hit Cache write (5min) Cache write (1h)
    Standard 13.00 68.00 1.30 13.00 26.00
    High-speed 26.00 136.00 1.30 26.00 52.00
    Previous generation 20.00 100.00 2.00 20.00 40.00

    (Unit: CNY per million tokens)

    Three optimization strategies follow directly:

    1. Prefix stabilization: put system prompts, definition notes, templates, and long documents at the request prefix and keep them byte-level stable to maximize cache hits. In research-report work, reuse rates for tens of thousands of characters of source material are very high, and at roughly one tenth of the standard input price the cost benefit is significant.
    2. Tiered routing: send interactive Q&A to the high-speed tier for latency, and batch modeling plus overnight report generation to the standard tier for cost, with a unified gateway handling canary release and fallback.
    3. Cache lifecycle matching: 5-minute and 1-hour writes are priced differently, so pick the TTL by session activity and avoid paying high write costs for long-tail sessions.

    5. Deployment Checklist

    • Build a business-distribution evaluation set, separate from the stress test, one for production experience and one for version regression.
    • Enforce structured output (JSON or fixed section templates) and keep field-level citations.
    • Hand numeric work and lookups to deterministic tools; let the model do modeling and explanation only.
    • Wire safety evaluation and cost monitoring into continuous integration, producing version diff reports.
    • Use prefix caching, tiered routing, and TTL policy to push per-task cost into a workable range.

    Overall, this upgrade of the finance-oriented model is not about a single benchmark number. It is about simultaneous improvement in four engineering properties: deliverable, verifiable, governable, and affordable. For developers, the real payoff comes from rebuilding workflows around those properties, not from swapping in a stronger model. Running on a cloud environment such as Baidu AI Cloud, with container platforms, object storage, logging, and monitoring and alerting capabilities, you can go further and turn cache hit rate, factual error rate, and safety regression results into observable metrics that continuously drive iteration.