How to Evaluate True Cost When Table Generation Quality Is the Same

    When multiple systems produce equally valid spreadsheets from natural-language requests, billed model usage is not the full story. This article explains how to define acceptance criteria, measure end-to-end delivery cost, run fair experiments, and choose the lowest qualified delivery cost under stability and governance constraints.

    From “correct output” to “economical delivery”

    In intelligent office workflows, converting natural-language requests into structured spreadsheets is common and has a clear acceptance boundary. A typical example: a user provides expense records and asks the system to aggregate by department and month, compute subtotals and totals, and produce a deliverable spreadsheet in a specified format.

    If several approaches all meet every acceptance criterion, what does that prove?

    First, they can complete the task for this input, these constraints, and this run. Second, once result quality meets the same bar, cost and efficiency become the next selection criteria.

    That does not mean overall capability is identical. A perfect score on one spreadsheet task only shows that the current test was passed; it does not imply equal skill at complex formulas, cross-sheet joins, dirty-data cleanup, or long-text understanding. Likewise, a low bill on one run does not prove the cheapest option over the long term.

    Professional evaluation should therefore separate three layers:

    • Task qualification: whether the artifact meets business requirements.
    • Execution economics: how much money and time one completed task consumes.
    • Long-term usability: whether delivery stays reliable as inputs change, concurrency grows, and exceptions appear.

    Only combining these three moves the work from a successful demo to something engineering-ready.

    Define acceptance criteria before comparing cost

    Cost comparison is valid only if every option delivered equivalent quality. Otherwise a lower bill may simply mean skipped steps, missing fields, or work shifted to humans.

    1. Data completeness: no missing or extra records

    Reconcile input records with output detail: row counts, field coverage, unique identifiers, and duplicates.

    If an expense has date, department, purpose, and amount, the result should keep those fields. Merging two rows with the same amount but different purposes can leave totals correct while distorting the detail.

    Agree in advance how missing fields are handled: keep nulls, flag for confirmation, or refuse generation. The model must not invent dates, departments, or amounts.

    2. Calculation correctness: check displayed values and logic

    Totals, averages, and ratios should be verified with independent calculation, not visual inspection.

    For money, specify decimal places and rounding. Rounding per row then summing can differ from summing then rounding. Business rules must be fixed before outputs can be scored consistently.

    Also distinguish “correct numbers filled in” from “formulas that stay live.” If later edits to detail must update totals automatically, static values fail the task. If the user only needs a fixed report, complex formulas are not required.

    3. Structure and format: follow business constraints

    Acceptance may cover sheet layout, column order, headers, date and currency formats, filter ranges, and frozen panes. Not every visual detail should be a hard requirement.

    Split requirements into:

    • Must-pass constraints: failure if missing, such as wrong amounts or omitted required fields.
    • Experience extras: usability only, such as column width or color consistency.

    This avoids treating “looks pretty” as quality and avoids inflating cost with unnecessary styling.

    4. File usability: inspect the artifact, not the process

    If the deliverable is a spreadsheet file, check that it opens, content is readable, formulas behave as expected, and the file structure is intact.

    A claim that “the file was generated” is not the same as a real, usable file. Acceptance must target the final product, not promises in the reply.

    True cost is not the model invoice

    When quality is similar, bill differences usually come from different execution paths. One path may finish in a single pass; another may analyze, generate, check, and repair. The artifacts can match while process cost does not.

    Decompose cost across the full task chain.

    1. Model inference cost

    This can depend on input length, output length, call count, and the actual billing method. Prices and metering should follow the service contract, not guesses from a model name or “tier.”

    For spreadsheet tasks, repeatedly sending the full source data, keeping oversized history, or requiring long unrelated explanations all add cost. Optimization should drop redundant text first, not drop critical business constraints.

    2. External execution and storage

    File generation may need deterministic programs, temporary compute, object storage, and transfer. These may not dominate, but they must not be ignored just because they are absent from the model bill.

    At volume, retention of temp files, repeated downloads, and repeated computation accumulate. Set a cleanup policy that still matches retention requirements.

    3. Retry and repair cost

    Failure does not always stop the job. Some systems regenerate automatically, some escalate to a stronger path, some need human correction.

    Those steps are delivery cost. A cheap first call that often fails can cost more than a path with a higher first-pass success rate.

    4. Human and operations cost

    Reviewing data, handling exceptions, explaining results, and maintaining rules all consume team time. On high-frequency tasks, a little extra review each time becomes a large burden.

    Use a consistent estimation method and state uncertainty; do not present rough estimates as precise.

    A useful summary:

    Effective task cost = total delivery cost in the evaluation period ÷ number of tasks that passed acceptance

    Total delivery cost must include failed attempts and follow-up work. This is closer to operations than “average cost per model call.” If no task passed, do not report a seemingly normal unit cost.

    Design fair, reproducible comparisons

    Bill differences are meaningful only when test conditions are controlled.

    1. Build a representative task set

    Do not test only one simple aggregation. Cover typical production cases, for example:

    • Clean fields and clear aggregation rules
    • Missing fields or inconsistent names (cleanup)
    • Cross-sheet association
    • Joint requirements on formulas and formatting
    • Duplicates, anomalous amounts, or ambiguous wording

    Each task needs acceptance rules. For ambiguity, specify whether the system must ask the user; unconfirmed guesses are not correct handling.

    2. Keep inputs and execution conditions aligned

    When comparing options, keep source data, user requirements, available capabilities, max retries, and acceptance rules as consistent as possible.

    If one option can run deterministic code and another can only emit text, you are comparing system configurations, not models alone. That comparison can still be useful if the boundary is stated clearly.

    For systems that auto-select a path, record the path when possible. If internals are unavailable, conclusions apply to the overall service, not a specific model.

    3. Run multiple trials and record variance

    One success does not show stability. Run the same task independently multiple times; record pass rate, cost, latency, and retries.

    Do not report only mean latency. The median describes typical experience; high percentiles show slow requests. Watch cost distributions for a few unusually expensive tasks.

    If a run fails, separate input ambiguity, model error, file generation failure, and environment issues.

    4. Keep auditable records

    At minimum log: task ID, input version, rule version, execution option, start/end time, actual cost, attempt count, acceptance result, and failure reason.

    Protect sensitive data. Logs need enough detail to reproduce issues, not a full copy of raw business content.

    Cut unnecessary model spend with deterministic computation

    Not every spreadsheet step needs a model. A sound split: the model interprets intent and semantics; programs do explicit calculation and file operations.

    A typical pipeline:

    Requirement parsing → structured extraction → field and type checks → deterministic calculation → file generation → automatic acceptance → repair or escalate if needed

    The model can recognize “aggregate by month and department”; summing, deduplication, and formatting should prefer deterministic logic.

    This lowers cost and improves explainability: results trace to input rows, and rules can be tested independently. If the model misunderstands, structure checks can catch it before a user opens the file.

    Do not treat model-generated field mappings or plans as trusted instructions. Before execution, check allowed operations, field existence, and unauthorized data access.

    Route by risk and complexity

    When difficulty varies, one execution path is not always economical. Match path to complexity and risk.

    Routine tasks with clear rules and bounded size can use a lower-cost path. Tasks with complex semantics, many constraints, or high business risk should increase validation and, when needed, human review.

    Routing signals should be observable: missing required fields, multi-sheet joins, contradictory requirements, or unclear business definitions.

    A cautious escalation flow:

    1. Check input completeness; confirm with the user if key conditions are missing.
    2. Execute with a path matched to complexity.
    3. Auto-accept the result.
    4. Repair based on the specific failure, not by blindly repeating the whole flow.
    5. After a retry limit, escalate or hand off to a human.

    Auto-routing has its own cost. Classification, extra context, and upgrade calls belong on the ledger. Overly complex routing can erase inference savings.

    Treat data security and governance as selection constraints

    A lower price does not mean a path is ready for production. Spreadsheets often hold customer, personnel, or financial data. Confirm whether that data may be sent to the processing environment.

    Typical controls include minimizing transmitted fields, masking unnecessary identifiers, restricting temp-file access, setting retention, and keeping audit records. Text from external data should not be treated as system instructions, especially notes or attachments that could be mistaken for executable requirements.

    Permissions, logging, exception handling, and human review should match business risk. Governance is part of system cost; do not drop necessary controls to improve a headline price.

    Conclusion: choose the lowest qualified delivery cost, not the lowest list price

    When several options can produce a valid spreadsheet, the question shifts from “who can do it” to “who can deliver stably under the same quality and risk constraints.”

    The decision order is: define acceptance, build a representative task set, test under unified conditions for multiple runs, then jointly assess effective task cost, latency, stability, and governance.

    What is worth optimizing is not an isolated call price, but qualified delivery cost across the full workflow. Splitting work between models and deterministic programs, adding automatic checks, limiting retries, and using moderate routing turns one-off demos into maintainable, auditable, sustainable engineering capability.