LLM Selection and Cost Control: A Practical Guide for Financial Report Analysis

    Financial reports from listed companies often exceed twenty pages and mix narrative discussion, financial statements, footnotes, and risk disclosures. This guide walks through how to evaluate and select large language models for financial report analysis: decomposing the work into measurable subtasks, defining evaluation dimensions, building a reproducible test set, estimating per-task costs including retries, and routing tasks of different difficulty to different model tiers, all while keeping correctness, traceability, cost, and stability in balance.

    1. Why Delegate Financial Report Analysis to a Model

    Annual reports from listed companies typically run more than twenty pages, covering management discussion, financial statements, footnotes, and risk disclosures. Reading every page manually, extracting key figures, and cross-checking them is time-consuming and error-prone. A large language model can take over the information extraction and summarization work, but whether its output is usable depends on three things: whether the conclusions are correct, whether the data can be traced back to specific locations in the source document, and whether the resource consumption per task is controllable.

    Model selection is therefore fundamentally an engineering evaluation problem. The question a team needs to answer is not which model is the strongest overall, but which combination delivers the lowest total cost at acceptable quality under the actual task distribution of the business.

    2. Break the Work into Evaluable Subtasks

    Financial report analysis usually consists of three types of subtasks, and they demand very different model capabilities.

    1. Summary generation: cover business overview, reasons for performance changes, earnings quality, risks, and subsequent events, while controlling length. The evaluation focus is completeness and factual consistency.
    2. Structured extraction: pull metrics such as revenue, net profit attributable to shareholders, operating cash flow, and R&D spending from the statements, and output them in fixed fields. The evaluation focus is numerical accuracy and format compliance.
    3. Location and citation: annotate each figure with its page number or section. The evaluation focus is citation authenticity. A wrong page number counts as a failure just like a wrong number.

    Evaluating the three task types separately prevents a single aggregate score from hiding a weakness in one area. For example, a model may write fluent summaries but reverse the direction of a year-over-year change during extraction—a problem easily masked in an overall score.

    3. Define the Evaluation Dimensions

    Cover at least six dimensions:

    • Correctness: figures match the source text and conclusions contain no factual errors.
    • Traceability: cited page numbers can actually be located in the original document.
    • Format compliance: field names, units, decimal places, and output length follow the agreed specification.
    • Completeness: risk disclosures and subsequent events are not omitted.
    • Cost: input and output token usage per task, multiplied by the corresponding billing rates.
    • Stability: variance across repeated runs of the same input, plus timeout and failure rates.

    The cost dimension deserves a special note. Platforms typically bill by input and output units, and some scenarios add multipliers, time-of-day discounts, or usage quotas. These rules vary by platform and change over time, so teams should rely on actual billing data rather than extrapolating the ratio from a single test to other scenarios.

    4. Build the Evaluation Set

    The evaluation set is the foundation of model selection, and quality matters more than quantity.

    • Select no fewer than twenty financial report samples across different industries and lengths, covering profitable companies, loss-making companies, and companies with highly volatile earnings.
    • Have personnel with a finance background provide gold-standard answers for each question, recording the page where each figure appears.
    • Cross-check the gold answers in two rounds; a third person adjudicates disagreements.
    • Fix the prompt template so every comparison uses identical inputs.

    Here is an example structure for an evaluation record:

    1. {
    2. "doc_id": "report_sample_07",
    3. "task": "extract_metrics",
    4. "gold": {
    5. "revenue_current": {"value": "...", "page": 12},
    6. "net_profit_attr_current": {"value": "...", "page": 12}
    7. }
    8. }

    5. Evaluation Workflow and Sample Code

    The evaluation workflow has four steps: batch invocation, result parsing, comparison against gold answers, and summary statistics. The pseudocode below shows the core logic; the concrete implementation can be swapped for whatever API and programming language the team uses.

    1. for model in candidate_models:
    2. for sample in eval_set:
    3. start = now()
    4. raw = call_model(model, prompt_template(sample.document))
    5. latency = now() - start
    6. record = parse_json(raw) # parse failures count as format errors
    7. for field in gold_fields:
    8. ok_value = close_enough(record[field].value, gold[field].value)
    9. ok_page = record[field].page == gold[field].page
    10. score[model][field] += (ok_value and ok_page)
    11. cost[model] += tokens_in * price_in + tokens_out * price_out
    12. latency_log[model].append(latency)

    Points to watch during implementation:

    • Normalize numbers before comparison: unify units and thousands separators, and accept values within an agreed rounding tolerance.
    • Count parse failures and timeouts separately; never skip them silently, or you will overestimate the model’s usability.
    • Run each model at least three times and record the variance to judge whether results are stable.

    6. Estimate Per-Task Cost

    Per-task cost can be estimated with this formula:

    Unit cost = input tokens × input price + output tokens × output price + retry count × single-run cost

    Retry cost is often overlooked. If a model has a 10% format error rate, one out of every ten tasks requires a retry, and that overhead must be included in the total. Also, for long documents the input volume is usually far larger than the output volume, so the input price has a greater impact on total cost.

    Once you have the unit cost, multiply it by the monthly task volume to get the budget ceiling. When comparing models, also compute the cost per correct field. A model with a lower unit price but a higher error rate may not actually be cheaper, because wrong results require manual review—and that review carries its own labor cost.

    7. Route Tasks by Difficulty

    Not every task needs the most capable model. A common approach is tiered processing:

    1. Rule-based tasks such as formatted extraction and field cross-checking go to cheaper, faster models.
    2. Analytical tasks that require cross-paragraph reasoning—such as judging earnings quality or tracing how risks propagate—go to more capable models.
    3. For key conclusions, use another model or a rule-based script for cross-validation; route to human review when results disagree.

    Routing rules can start with simple feature-based heuristics, such as assigning tiers based on document page count or the number of questions. After routing goes live, continuously monitor accuracy and cost per tier, and adjust thresholds promptly when metrics drift.

    8. Practical Considerations for Deployment

    • Data security: Before disclosure, financial reports may constitute material non-public information. Confirm the permitted scope of data use before sending anything to a model, and apply masking or local deployment according to internal policy.
    • Version management: Model services are updated from time to time. Pin versions or run regression tests regularly to prevent results from changing silently.
    • Human review: For content that informs investment decisions or external disclosure, model output can only serve as a draft; final conclusions must be confirmed by qualified personnel.
    • Audit trail: Save the input, output, and parameters of every call to support later auditing and issue tracing.

    9. Summary

    Model selection for financial report analysis should start from task decomposition and rest on a reproducible evaluation set, weighing correctness, traceability, format compliance, cost, and stability together. Cost calculations must include retry overhead and input volume, and tiered routing ensures that simple and complex tasks each get the model they need. Following this process, a team can reach a defensible selection decision within a limited budget and continuously refine it as the business evolves.