A Methodology for Benchmarking 10 Lightweight Models Across 7 Task Categories
This article presents a methodology for comparing ten lightweight large language models across seven task categories. It explains why a single composite score is misleading, how to cluster the tasks into four underlying capabilities, and how to design metrics, control experimental variables, and track cost. Readers will learn how to build a repeatable evaluation pipeline that produces a task-family-to-model mapping instead of a single ranking.
1. Why Lightweight Model Comparisons Need a New Methodology
In real engineering work, putting ten lightweight large models that focus on low latency and low cost on the same table and comparing them across seven task categories is a highly representative selection scenario. The original question looks like a simple “which one is stronger,” but from an engineering perspective it actually mixes three separate questions: the capability ceiling, output quality per unit of cost, and stability after switching tasks. If you do not separate these three, the evaluation conclusions are almost certainly distorted.
The core selling points of lightweight models usually come down to three things: shorter response latency, lower invocation cost, and easier high-concurrency deployment. The trade-off is that long-context retention, complex instruction following, and the stability of multi-step reasoning all degrade. So the first principle of evaluation design is: do not rank by a single composite score. Instead, build a three-dimensional matrix of “task family — metric — constraint.”
Start by clustering the seven task categories according to their capability dependencies:
- Retrieval and knowledge localization: character search, which tests long-context recall and entity disambiguation;
- Classification and extraction: review classification, which tests adherence to a label taxonomy and handling of boundary samples;
- Structured data processing: site data collection and cleaning, which tests format stability and fault tolerance;
- Content localization: web page translation into Chinese, which tests terminology consistency and layout preservation;
- Multimodal generation: explainer animation, which tests storyboard planning and script executability;
- 3D and code generation: turret modeling and corridor scene construction, which test geometric constraints and code runnability.
After clustering, you will find that the seven tasks actually stress only four underlying capabilities: long-context retrieval, instruction following, structured output, and code/geometry reasoning. Evaluation resources should be weighted toward these four capabilities rather than spread evenly.
2. Metric Design for the Seven Task Categories
1. Character Search: Recall First, Precision as a Safety Net
The typical input for this task is a plot summary or a character profile, and the model is asked to locate the character’s source, relationships, and key events. Recommended metrics are: Top-1 hit rate, Top-3 hit rate, entity disambiguation accuracy, and “refusal appropriateness” (whether the model clearly states uncertainty when information is insufficient). A common failure mode of lightweight models is “confident fabrication,” so refusal appropriateness must be counted in the total score.
2. Review Classification: Look at Boundary Samples, Not Overall Accuracy
Overall accuracy is meaningless when classes are imbalanced. Use macro-averaged F1, and separately construct three types of difficult samples: sarcasm, mixed intent, and disputed multi-label samples. During evaluation, fix the label taxonomy and prompt template, and record the label-out-of-bounds rate (the proportion of labels outside the output set). This is a key signal for judging instruction following.
3. Site Data Processing: Field-Level Consistency and Fault Tolerance
Have the model extract fields from page structures and normalize them into a fixed schema. Metrics include field-level accuracy, type error rate, and whether the fallback strategy is reasonable when nodes are missing. In engineering, “parseability” matters more: whether the output can be consumed directly by downstream programs, not whether it looks right to the human eye.
A sample output constraint can be written as:
{"schema": "item.v1","fields": {"title": "string","author": "string|null","published_at": "ISO8601|null"},"on_missing": "null"}
4. Web Page Localization: Terminology Consistency Plus Structure Preservation
Localization tasks are easily misled by “overall fluency.” The right approach is to provide a fixed glossary and measure terminology consistency rate, omission rate, and tag/placeholder retention rate. Broken placeholders directly cause front-end rendering failures, which is a blocking defect and should be treated as an automatic veto.
5. Explainer Animation: Storyboard Executability
Do not evaluate “whether the copy is good”; evaluate “whether the script can run.” Metrics are: storyboard count compliance rate, deviation between the sum of single-shot durations and the target duration, the proportion of renderable elements in scene descriptions, and whether a structured script that can be consumed by the rendering pipeline was output.
6. 3D Modeling and Scene Construction: Dual Verification of Geometry and Runtime
Turret modeling and corridor scenes are essentially “generating geometry with code.” Evaluation must be automated: whether the generated code runs, whether the bounding box dimensions fall within the given range, whether the part count meets the requirement, and whether materials and orientation match the constraints. Human review serves only as a fallback, not as the primary metric.
3. Experiment Workflow and Cost Control
A reproducible experiment requires fixing four things: the prompt template, randomness control parameters, the input sample set, and the scoring script. If any one of them drifts, the conclusions are invalid. Use stratified sampling to build 200 to 500 samples, with no fewer than 30 per task category, and keep 10% as adversarial samples.
On the cost side, record three quantities: average number of calls per task, average input and output size, and failure retry rate. The real advantage of lightweight models often shows up as lower end-to-end cost driven by a low retry rate, not the unit price itself.
For engineering deployment, you can wrap model invocation in a unified adapter layer to hide the differences:
def run_task(model_adapter, prompt, schema):for attempt in range(3):out = model_adapter.call(prompt, temperature=0)if schema.validate(out):return out, attemptreturn None, 3
The value of a unified adapter layer is that evaluation code and business code are reused, and switching models does not change the business.
4. How to Write Conclusions Without Misleading
The final report should provide a mapping of “task family — recommended model — applicable constraints,” not a single overall ranking. For example: for retrieval, prefer models with high recall and low fabrication; for structured processing, prefer models with stable output and high parseability; for code and geometry, prefer models with high executability. At the same time, the evaluation boundaries must be stated: sample size, prompt version, and scoring script version.
If you need to store evaluation data and artifacts, you can use object storage for samples and results, a message queue to decouple scoring tasks, a container platform for parallel load testing, and a logging service with monitoring and alerting to track failure rates and latency distributions. This turns the whole evaluation from a one-off script into selection infrastructure that supports continuous regression, so capability regressions become visible as soon as models are updated.
