How to Choose a Large Language Model: A Reproducible Evaluation Framework and Writing Practices
A practical guide to building a repeatable LLM evaluation system. Instead of relying on annual "best model" rankings, it defines five quantifiable dimensions, a four-step blind review workflow, and engineering techniques for enforcing hard writing constraints with post-processing validation, plus scenario-specific advice for writing, coding, and UI generation.
How to Choose a Large Language Model: A Reproducible Evaluation Framework and Writing Practices
At the end of every year, technical communities publish a flood of “model of the year” selections. They make for lively reading, but their reference value for developers and enterprise technical decision-makers is often limited: the conclusions depend heavily on personal preference, the evaluation samples are not public, and the task distribution is not transparent. What is actually worth keeping is not “who ranks first,” but a reproducible and transferable selection method.
This article strips away specific product references and abstracts these annual selections into a general engineering problem: faced with large model services that keep iterating, how do you build a stable evaluation system and apply its conclusions to concrete scenarios such as writing, coding, and front-end generation?
1. Why “Best of the Year” Cannot Be Reused Directly
The conclusions of annual selections usually rest on three implicit premises: a specific usage scenario, specific prompting habits, and a specific point in time. If any one of them changes, the ranking can flip.
A more realistic problem is task distribution mismatch. Someone who mainly writes long-form content and someone who mainly performs repository-level refactoring have almost orthogonal definitions of a “good model.” The former cares about style consistency and factual constraints; the latter cares about state retention in long contexts and the stability of tool calls.
The recommendation is therefore to downgrade conclusions to clues and upgrade methods to assets. The framework below aims to make evaluation results hold on your own task distribution.
2. Five Quantifiable Evaluation Dimensions
2.1 Instruction Following
This is the model’s ability to drop no items and refrain from unauthorized expansion under multiple constraints. Measurable indicators include the constraint hit rate, the out-of-bounds generation rate, and the compliance rate for negative constraints. Negative constraints (for example, forbidding a certain sentence pattern or a certain layout element) are where problems surface most easily, because models tend to “over-help.”
2.2 Style Transfer
Given several sample texts, can the model extract transferable style features rather than perform surface-level word substitution? Three points matter in evaluation: whether the sentence-length distribution is close to the samples, whether term density is consistent, and whether the narrative perspective remains stable.
2.3 World Knowledge and Hallucination Rate
The focus is not the amount of knowledge, but whether the model admits uncertainty when it is uncertain. A closed-book test built from a “verifiable fact set” can be used to count incorrect assertions and assess the reasonableness of refusals to answer.
2.4 Long-Horizon Tasks and Logical Consistency
For scenarios such as multi-step refactoring and cross-file changes, observe whether the model keeps its goal from drifting in a long context and whether it repeats steps that are already complete.
2.5 Front-End and Interaction Aesthetics
This covers the structural soundness of generated interfaces, spacing and hierarchy, accessibility, and responsive behavior. This dimension is the most subjective, so scoring against a fixed checklist is preferable to relying on an overall impression.
3. A Reproducible Evaluation Workflow
Step 1: Build a private task set. Draw 30 to 50 tasks from real work, covering four categories: writing, summarization, refactoring, and interface generation, with no fewer than 5 tasks per category, and keep the key points of the expected output.
Step 2: Fix the inputs. Use exactly the same prompts and parameters for all candidate services on the same task to avoid “tuning bias.”
Step 3: Run a double-blind review. Hide the source, score by dimension, and send samples with a divergence of more than two points to a second review.
Step 4: Regress. Rerun the task set after a model version update, record score changes, and build your own time series instead of depending on external leaderboards.
An illustrative scorecard structure:
{"task_id": "w-017","category": "writing","scores": {"instruction_following": 4,"style_transfer": 5,"factuality": 4,"long_task_consistency": 3,"ui_aesthetics": null},"notes": "One out-of-bounds generation on a negative constraint"}
4. Engineering System-Level Writing Constraints
The original text notes that three prohibition-style prompts significantly improved the look of the output. This can be generalized in engineering terms: write style requirements as verifiable hard constraints rather than vague requests to “make the writing better.”
Actionable constraints fall into three layers. The first is the sentence layer, which forbids specific structures and specific punctuation. The second is the structure layer, which limits the number of heading levels and the nesting depth of lists. The third is the content layer, which requires that every argument be followed by evidence or an example.
Writing constraints (example)1. Do not use contrastive "not ... but ..." sentence patterns.2. Do not use em dashes.3. Do not output multi-level structured templates; express the body in continuous paragraphs.4. Add one piece of evidence or an example after each conclusion.5. Explicitly mark uncertain facts as pending verification.
What needs emphasis is that hard constraints should work together with post-processing validation. Use a script to count occurrences of forbidden punctuation and sentence patterns, and trigger an automatic rewrite if the check fails. This is more stable than simply piling on prompts.
5. Scenario-Specific Recommendations
For writing and summarization, prioritize instruction following and factuality, with dual validation from prohibition constraints and a checklist of key points.
For coding and refactoring, prioritize long-horizon consistency, split the task into small commits, and require each step to state the scope of changes and the verification method.
For interface generation, prioritize aesthetics and accessibility, and use a fixed checklist covering semantic tags, contrast, keyboard reachability, and breakpoint adaptation.
On the enterprise side, the recommendation is to connect evaluation to a unified gateway, observe call quality with logging services and monitoring alerts, and store evaluation samples and version records in object storage to form auditable selection evidence. If elastic compute is needed to run batch evaluations, a container platform can scale on demand and avoid one-off resource waste.
6. Common Pitfalls
Judging only by overall impression rather than dimension scores, so that the experience drops sharply after a version change with no way to locate the cause.
Substituting public leaderboards for a private task set, where a mismatched task distribution invalidates the conclusions.
Treating prompts as a one-off trick, with no version management or regression, so style drift goes unnoticed.
Ignoring cost and latency constraints and evaluating quality alone, which ultimately prevents deployment in production.
7. Conclusion
The value of annual selections is that they point you toward certain capability dimensions, not that they provide a final answer. Combining evaluation dimensions, a private task set, a blind review workflow, hard constraints, and post-processing validation gives you a selection asset that keeps appreciating as models iterate. The same method applies to unified evaluation and governance of multi-model access on Baidu AI Cloud.
