Evaluating Lightweight LLMs for Office Scenarios: Methodology and Cost Practices
This article explores the methodology and cost practices for evaluating lightweight large language models in office scenarios. It introduces a three-dimensional framework focusing on quality, cost, and latency. Topics include deconstructing API pricing structures, designing representative task sets from real traffic, implementing an automated and manual scoring system, and applying model routing strategies to balance quality and cost effectively.
Evaluating Lightweight LLMs for Office Scenarios: Methodology and Cost Practices
1. Why “Office Infrastructure Models” Are the New Focus
Over the past two years, the main battleground of the LLM competition has been at the flagship parameter scale. However, when it comes to daily enterprise use, the vast majority of requests actually hit lightweight models: document summarization, meeting minutes, format conversion, email drafting, table understanding, information extraction, and more. These tasks share three common characteristics: high call frequency, medium inference complexity, and latency sensitivity.
This dictates a completely different selection logic for “office infrastructure models” compared to flagship models:
- High cost weight: When call volumes reach tens of millions of tokens daily, unit price differences balloon into significant monthly bills.
- High quality floor: Missing key conclusions in summaries or extracting fields incorrectly will directly pollute downstream workflows.
- Latency is an experience metric: For assistant features embedded in office suites, a first-token delay exceeding a few seconds will significantly reduce usage rates.
Therefore, evaluating lightweight models cannot just stare at a single leaderboard score; it requires establishing a three-dimensional framework of “quality-cost-latency.”
2. Deconstructing Pricing: The Real Cost Behind the Sticker Price
Lightweight model API billing typically includes several price items that must be analyzed individually during evaluation:
- Standard input unit price: The most common billing item, usually charged per million tokens.
- Output unit price: Since autoregressive generation consumes more compute, output prices are generally several times higher than input prices (typically 3 to 5 times).
- Cached input unit price: When a request prefix hits the server-side KV cache, the input price may drop to a fraction of the standard price.
- Time-based pricing: Some service providers apply different rates for off-peak and peak hours, with price differences reaching 100% or more.
This means that the lowest nominal unit price does not equal the lowest actual bill. Consider a typical engineering case: an internal knowledge base Q&A system where the system prompt plus retrieved context is about 8,000 tokens, the user query is about 200 tokens, and the model output is about 500 tokens. If the prompt template is fixed, the prefix cache hit rate can exceed 90%, making the actual input-side cost approach the cache price rather than the standard price. Conversely, if context is dynamically concatenated differently for each request, caching becomes virtually useless.
A rough formula for estimating monthly costs can be written as:
Monthly Cost = Daily Requests × 30 × [(Standard Input Tokens × Input Unit Price)+ (Cached Tokens × Cache Unit Price)+ (Output Tokens × Output Unit Price)] / 1,000,000
When comparing models, it is recommended to first calculate your business’s “input/output ratio” and “prefix reuse rate,” and then plug these into each provider’s pricing rules to calculate the business equivalent unit price, rather than directly comparing official sticker prices.
3. Evaluation Methodology: How to Design the Task Set
Price is just the entry ticket. The real question a benchmark must answer is: on real tasks, whose quality is sufficient and whose cost is acceptable. A reproducible evaluation process should include the following steps.
3.1 Task Set Construction: Sampling from Real Traffic
The task set should cover the typical capability dimensions of office scenarios:
- Long document summarization: Tests information compression and key point retention.
- Structured extraction: Extracting fields from contracts, receipts, and resumes to test instruction following and format stability.
- Format conversion and rewriting: Tests fidelity to Markdown, tables, and other structures.
- Multi-turn dialogue and tool understanding: Tests context tracking.
- Basic reasoning: Simple calculations and schedule planning tasks.
It is recommended to have no fewer than 100 samples per dimension, preferably sourced from desensitized real business logs, to avoid using public test sets that could lead to “overfitting to the benchmark.”
3.2 Scoring System: Automated + Manual Sampling
For structured tasks (e.g., field extraction), exact match or F1 score can be used directly. For open-ended generation tasks (e.g., summarization), a common industry practice is “LLM-as-a-judge”—using a stronger judge model to score candidate outputs based on predefined dimensions:
rubric = {"Accuracy": "Is the summary factually consistent with the source text without hallucination?","Completeness": "Are key conclusions, numbers, and responsible parties retained?","Conciseness": "Is redundant information removed?","Format": "Is the output template strictly followed?",}
After automated scoring, it is crucial to manually sample 10% to 20% of the results to calibrate the judge model’s own biases and verify whether the consistency rate differences between models fall within statistically significant intervals.
3.3 Latency and Stability Measurement
Easily overlooked in evaluations is the latency distribution rather than just the average. It is recommended to record P50/P95 first-token latency and total time, sampling separately during peak and off-peak hours, as queuing delays for some providers increase significantly during peak times. Additionally, record failure rates, throttling frequency, and output truncation rates. These “non-quality metrics” often impact the user experience in production environments more than a 1-point difference in benchmark scores.
4. Quality-Cost Tradeoff: How to Draw Final Conclusions
After completing the evaluation, it is recommended to present the results in a 2D plot: the horizontal axis represents the business equivalent unit price, and the vertical axis represents the comprehensive task score. In practice, you will typically find three types of models:
- Quality leaders with moderate prices: Suitable as the default primary model.
- Ultra-low price, slightly lower quality: Suitable for high-frequency tasks less sensitive to quality (e.g., internal log summarization).
- No advantage in either price or quality: Eliminate immediately.
Going a step further, a model routing strategy can be adopted in engineering: use rules or a small classifier to determine request complexity, routing simple requests to low-cost models and complex requests to high-quality models, thereby diluting costs while ensuring overall quality. This routing layer can be deployed in a self-built gateway or general gateway cloud products, combined with object storage, logging services, and monitoring to form an observable, rollback-capable call chain.
5. Best Practices and Common Pitfalls
Finally, here are some practical takeaways:
- Calculate the bill before testing: Use your business’s real I/O ratio to calculate the equivalent price; don’t be misled by sticker prices or cache prices alone.
- Task sets should be “dirty”: Colloquial expressions, typos, and overly long documents found in real business data are the key to distinguishing a model’s robustness.
- Focus on output stability: A model with a high format error rate will consume the money you saved during the post-processing phase.
- Re-evaluate periodically: Model versions iterate continuously. It is recommended to re-run the core task set quarterly to prevent your selection conclusions from expiring.
- Maintain a multi-vendor adaptation layer: Abstract a unified calling interface in your code so that switching models is a one-line configuration change, not a refactor.
The competition among lightweight models is essentially a competition of “usable intelligence per unit cost.” For enterprises, establishing an in-house evaluation and routing system holds far more long-term value than chasing a specific “king of cost-performance.”
