How to Evaluate High-Performance vs. Lightweight LLM Releases
When a large model ships both a high-performance and a lightweight edition, evaluation should focus on real task loops—extraction, code generation, tool use, validation, and reporting—plus cost, latency, controllability, and safety, not parameter counts or public leaderboards. This article uses a trade-record backtest system as a technical case study and outlines a reusable engineering approach. It is not investment advice.
When a large model ships a high-performance edition and a lightweight edition together, evaluation should not stop at parameter count or public benchmark scores. It should return to a real task loop: whether the model can reliably complete data extraction, code generation, tool calling, result validation, and report output, and whether the two editions form a reasonable split among cost, latency, controllability, and safety. The following technical practice—a trade-record backtest analysis system—shows how to assess dual-edition capability and offers a reusable engineering method. The practice discusses implementation only and is not investment advice.
1. Core conclusion: dual editions are about task layering
High-performance and lightweight editions are not simply “strong vs. weak.” They are a task split. The high-performance edition is better for complex planning, cross-table analysis, long-context understanding, code generation, and report writing. The lightweight edition is better for field extraction, format conversion, batch validation, interactive confirmation, and low-latency batch work. Measure each on task success rate, time to first token, completion latency, tool-call success rate, long-context stability, unit-task cost, human review cost, and safety/compliance. Scoring a single public question set easily hides retries, checkpoints, data quality, and confirmation cost in real workflows.
A more reasonable strategy is “lightweight first, upgrade when complex”: use the lightweight edition for extraction, classification, formatting, and progress summaries; upgrade to the high-performance edition when the job needs complex database design, cross-table analysis, anomaly attribution, or long reports. That controls cost while keeping high-quality output available.
2. Practice case: from trade records to a backtest system
2.1 Goals and boundaries
The goal is to read local trade records, extract symbols, pull daily and intraday bars, store them in a normalized database, and produce an objective backtest report. Boundaries: raw records are used for technical analysis only; sensitive fields are redacted; credentials never enter prompts; model output must be spot-checked by a human; extreme model conclusions must not be used as decisions.
2.2 Export and redaction
After exporting a spreadsheet from the trading software, drop account numbers, names, and other sensitive columns. Keep trade time, symbol, side, price, quantity, fees, and similar fields. Spreadsheets often have merged cells, inconsistent dates, nulls, duplicate rows, and mixed amount formats. Map fields and validate types before any model analysis. Store originals in object storage and structured results in a relational database. In environments such as Baidu AI Cloud, object storage, relational databases, logging, and monitoring can serve as generic infrastructure for originals, structured data, and job state, which helps reproduction and troubleshooting.
2.3 Convert tables to structured text instead of feeding the whole sheet
Feeding a spreadsheet directly often causes column shifts, type errors, and missed rows. Convert the table to structured markup first—for example, per-row field: value or delimited text—plus field descriptions, null rules, and date formats. Spot-check the first rows for column alignment, then extract the symbol list. The conversion is for stable parsing by both the model and scripts, not for appearance.
2.4 Stepwise prompts and human confirmation
Do not hand “extract symbols, pull data, build the database, backtest, write the report” to the model in one shot. Split into four steps: (1) extract a structured symbol array only; (2) confirm symbols with a human; (3) pull daily and minute bars for that list; (4) backtest and report. Each step has acceptance criteria, such as matching symbol count, no duplicates, and unified code format. Pseudocode:
def step_extract_symbols(records_text):prompt = "Extract the symbol list from the trade records. Output a structured array only, no explanation."resp = call_model(prompt, records_text, temperature=0)symbols = parse_json(resp)return deduplicate_and_normalize(symbols)def step_ingest_bars(symbols, job_id):for i, symbol in enumerate(symbols):update_job(job_id, progress=i/len(symbols), message="fetch " + symbol)data = fetch_json(endpoint, params={...}, credential=get_credential())validate_and_upsert(data)
2.5 Database conventions and observable progress
The local database should be extensible and auditable. Core tables: securities, trade records, daily bars, minute bars, ingest jobs, and data-quality checks. Daily and minute bars use (symbol, time) as the unique key and upsert idempotently. The job table stores status, progress, message, and timestamps for UI or logs. Example DDL:
CREATE TABLE securities(symbol TEXT PRIMARY KEY,name TEXT,market TEXT,updated_at TIMESTAMP);CREATE TABLE trade_records(id TEXT PRIMARY KEY,symbol TEXT NOT NULL,side TEXT CHECK(side IN ('buy','sell')),trade_time TIMESTAMP NOT NULL,price NUMERIC NOT NULL,quantity NUMERIC NOT NULL,fee NUMERIC DEFAULT 0,source_file TEXT,ingested_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);CREATE TABLE daily_bars(symbol TEXT NOT NULL,trade_date DATE NOT NULL,open NUMERIC, high NUMERIC, low NUMERIC, close NUMERIC,volume NUMERIC,PRIMARY KEY(symbol, trade_date));CREATE TABLE minute_bars(symbol TEXT NOT NULL,bar_time TIMESTAMP NOT NULL,open NUMERIC, high NUMERIC, low NUMERIC, close NUMERIC,volume NUMERIC,PRIMARY KEY(symbol, bar_time));CREATE TABLE ingest_jobs(job_id TEXT PRIMARY KEY,job_type TEXT NOT NULL,target TEXT,status TEXT NOT NULL,progress NUMERIC DEFAULT 0,message TEXT,started_at TIMESTAMP,updated_at TIMESTAMP);
Inject credentials via environment variables or a secret manager. Do not put them in prompts, the repo, or plaintext in the database. Strip credentials and irrelevant paths from API docs before giving them to the model.
3. How the two editions split the workflow
The lightweight edition fits step-one symbol extraction, field normalization, duplicate checks, job progress summaries, and simple script generation. The high-performance edition fits schema design, complex backtest logic, cross-table analysis, anomaly attribution, and long reports. In production, upgrade when needed: validate lightweight structured output with rules; if validation fails or complexity crosses a threshold, call the high-performance edition. That keeps the lightweight model off high-risk reasoning and keeps the high-performance model off cheap batch work.
4. Stability: treat “hangs” as an engineering problem
Long silent periods can come from long context, waiting on tools, API timeouts, network jitter, or blocked scripts. Mitigations: timeouts and retry caps; queued jobs; heartbeats and stage logs; manual abort and resume; idempotent writes; structured-only model output; snapshots of failed-task context. When comparing editions, record time to first response, completion time, retry count, and human interventions. Those metrics reflect availability better than a one-off demo.
5. Evaluation: regress on a real task set
Build a small eval set from real workflows: symbol extraction, table conversion, schema creation, data-fetch scripts, backtest metrics, report generation, and anomaly attribution. Fix inputs, outputs, and acceptance criteria. Run both editions, and log success rate, latency, cost, human fixes, and safety incidents. Regression-test before release and keep sampling after. Only when quality, latency, cost, stability, controllability, and safety sit on one table can a dual-edition launch be judged professionally.
