How to Systematically Evaluate New Large Language Models in Real-World Development Projects
This article presents a project-based framework for assessing the practical development capabilities of a newly released large language model. Using personal trading data backtesting as a case study, it examines data validation, task decomposition, market-data API testing, database design, backtest rules, process transparency, common failure modes, and a reusable evaluation workflow. The aim is to help developers determine whether a model can support reproducible and verifiable engineering work, rather than merely answer knowledge questions or produce demo code.
When evaluating a newly released large language model, it is easy to fall into two traps: focusing only on whether it can answer a few knowledge questions, or judging it solely by whether a demo video shows it generating a piece of code in one attempt. For real development work, a model’s value is not limited to whether it can write code. It also depends on whether it can understand complex requirements, decompose tasks sensibly, use external data correctly, surface risks promptly, and gradually deliver a runnable, verifiable system after multiple revisions.
Rather than simply asking whether a model is “smart,” it is more useful to design a project close to real work and test it. This article uses personal trading data backtesting as a case study and attempts to build a relatively complete evaluation framework covering data preparation, historical data acquisition, system design, strategy backtesting, and report generation.
Why Use a Real Project for Model Evaluation
Real projects usually combine unstructured input, external data dependencies, business rules, and technical implementation. Compared with simple question answering, they reveal a model’s overall capability more effectively.
Consider personal trading record analysis. The raw data often comes from a spreadsheet exported from brokerage or trading software. Fields may include trade date, security code, security name, buy/sell direction, execution price, quantity, fees, and transaction amount. On the surface, this looks like a simple data analysis task. In practice, implementation raises at least the following issues:
- Different software exports use inconsistent field names and formats.
- Date, time, amount, and quantity fields may have mixed types.
- The same security may be bought and sold multiple times, so position cost must be calculated accurately.
- Historical quotes, adjusted prices, and suspension information need to be obtained from external data sources.
- Backtest results must distinguish between actual fills and theoretical fills.
- The final conclusions should not report only returns; they must also analyze risk, drawdown, and trading behavior.
The value of this kind of task is that it tests a model’s language understanding, code generation, tool use, error recovery, and ability to respect business boundaries at the same time.
Step 1: Verify That the Model Correctly Understands the Raw Data
Before programming begins, the data input problem must be handled. In practice, giving a spreadsheet directly to a model and asking it to complete the entire analysis often leads to omissions. The model may read only some rows, ignore hidden columns, misjudge date formats, or lose context when processing a large number of records in sequence.
A more reliable approach is to first convert the file into a clearly structured text format, then ask the model to perform checks in stages. For example:
- Count the total number of rows and valid records.
- List all field names.
- Identify the data type of each field.
- Check for null values, duplicates, and outliers.
- List all security codes that appear.
- Randomly sample several rows for manual verification.
- Generate a data quality report.
This stage should not move directly into backtesting. The model first needs to prove that it “understands the data,” not merely generate a program that looks plausible.
For financial data, pay particular attention to the following details:
- Quantity fields should not be assumed to be integers by default.
- Amount fields require decimal precision.
- Dates and times should be normalized to a standard format.
- Buy and sell directions must be explicitly mapped.
- Costs such as fees and stamp duty cannot be simply ignored.
- Security codes should retain leading characters so that they do not change after being converted to numbers.
If the model makes errors during basic data cleaning, any later backtest report is not credible, even if its format looks polished.
Step 2: Break Complex Requirements into Verifiable Tasks
The original requirement is usually something like: “Read the trading records, obtain historical market data, build a database, complete the backtest, and output a report.” Although this description is complete, it is too broad for a model and can easily cause the task to spiral out of control.
A more reasonable approach is to divide the system into several independent stages, each with clear inputs, outputs, and acceptance criteria.
1. Trade Record Identification
The input is cleaned trading data, and the output is a standardized trade table. Acceptance checks include:
- Have all traded instruments been identified?
- Are buy and sell directions correctly distinguished?
- Is execution time preserved?
- Is transaction amount calculated?
- Is the original data row number recorded for traceability?
2. Market Data Acquisition
The input is a list of security codes, and the output is daily or minute-level market data. Acceptance checks include:
- Does the data cover the time range involved in the trading records?
- Are there missing trading days?
- Is the data source and retrieval time recorded?
- Can failed requests be retried?
- Can empty data and API exceptions be distinguished?
3. Local Storage
Market data and trade data should be stored separately, with clear data relationships. At minimum, the following types of tables can be designed:
- Trade record table
- Instrument reference table
- Daily market data table
- Minute market data table
- Data acquisition log table
- Backtest result table
Database design should not aim only for “can write data.” It should also consider future extension, such as multiple accounts, different strategies, different data frequencies, and multiple backtest runs.
4. Backtest Calculation
The backtest module should define execution rules explicitly, including:
- Whether to fill at the open price, close price, or the next bar.
- Whether slippage is considered.
- How to handle cases where price limits prevent execution.
- How to handle trading suspensions.
- How fees and taxes are calculated.
- How orders are handled when funds are insufficient.
- What execution order applies when multiple orders occur at the same time.
If these rules are not defined in advance, the model can easily make its own assumptions and produce results that look precise but cannot be reproduced.
Step 3: Test the Model’s Ability to Use Data Interfaces
If the project needs to call external market data interfaces, the model should not be asked only to write the main program directly. A more reliable method is to first organize the interface documentation and require the model to generate an independent test script for each interface.
The test script should verify at least the following:
- Whether a connection can be established successfully.
- Whether request parameters conform to the specification.
- Whether returned fields are complete.
- Whether returned data types are stable.
- Whether empty results can be identified.
- Whether request failures produce clear error messages.
- Whether rate limits or insufficient permissions produce appropriate prompts.
- Whether data can be converted into a unified internal format.
It is recommended to generate a structured report after testing each interface, recording the interface name, test time, request conditions, number of returned rows, field list, exception information, and conclusion. The benefit is that the main system can use interfaces that have already been verified, avoiding the accumulation of all uncertainty until the final stage.
At the same time, external data sources should not be treated as absolutely reliable. Production-grade programs need caching, retries, rate limiting, checkpoint/resume, and local backup mechanisms. For critical data, raw responses or data snapshots should also be retained for future review.
Step 4: Observe Whether the Model Is Transparent About Its Process
In complex tasks, whether a model can show a clear execution process is often more important than whether it can generate complete code in one attempt.
A qualified development assistant model should be able to explain:
- Which step is currently being executed.
- Which input files are being used.
- Which intermediate results have been produced.
- Which operations have been completed.
- Where uncertainty exists.
- What recovery approach was used after a failure.
If a model produces no output for a long time, or appears to remain in a running state, developers have difficulty determining whether it is processing, stuck in a loop, or has already failed. In practice, large tasks can be split into shorter tasks, and each step can be required to output logs and interim results.
For example, complete only the data table design first, then generate the table creation script separately; test data acquisition for one instrument first, then expand to all instruments; calculate the return of a single trade first, then implement full position management. This not only makes errors easier to find but also significantly reduces the probability that the model will make changes that progressively degrade the solution.
Step 5: Focus on Common Model Failure Modes
New models may show strong code generation capabilities in complex development tasks, but the following risks still require attention.
1. Code Looks Complete but Has Not Been Verified
A model may generate many functions, classes, and configuration files without actually running them. Developers should require it to execute tests step by step rather than accepting static code.
2. Inventing Interfaces That Do Not Exist
When interface documentation is incomplete, a model may infer function names or parameters from common naming conventions. All external interfaces must be based on actual documentation and test results.
3. Ignoring Boundary Conditions
For example, a sell trade may be treated by default as a complete close, ignoring partial sells; unfilled orders may be treated as filled; missing market data may be filled directly with zero. Such handling can seriously distort results.
4. Overinterpreting Results
High returns in a backtest report do not mean the strategy is effective. The model should also output metrics such as maximum drawdown, volatility, win rate, profit/loss ratio, holding period, trading frequency, and the impact of trading costs, and it should clearly state that the results do not represent future performance.
5. Mistaking Model Judgment for Investment Advice
Large models can help organize data, perform calculations, and generate analysis, but they cannot replace investment decisions. Especially in financial scenarios, the system must clearly define data scope, calculation assumptions, and result limitations.
How to Build a Reusable Evaluation Method
Overall, the following workflow can be used to evaluate a new model’s capabilities in development scenarios:
- Prepare a real but de-identified dataset.
- Write clear project goals and constraints.
- Ask the model to output an implementation plan first, without immediately writing all the code.
- Execute stage by stage, with acceptance criteria for each stage.
- Manually sample input data, API calls, and calculation results.
- Record the model’s error types, recovery speed, and number of revisions.
- Compare one-shot generation, step-by-step generation, and human-assisted generation.
- Finally, score the model across four dimensions: correctness, stability, maintainability, and explainability.
The most important question is not how many keystrokes the model can save, but whether it can make the development process more reliable. If a model can proactively identify data risks, add test cases, retain logs, and accept step-by-step correction, then it is truly suitable for participating in complex projects.
Conclusion
Evaluating a new generation of large language models cannot stop at whether it answers quickly or whether its code looks plausible. A more valuable test places the model inside a real software engineering workflow and examines its overall performance when facing dirty data, external dependencies, business rules, and uncertainty.
Using a trading data backtesting system as an example, the safest practical path is: confirm the data first, then verify the interfaces; design the structure first, then write the functionality; complete small-scale tests first, then expand the processing scale; output intermediate results first, then generate the final report.
For developers, a large language model is better viewed as a highly efficient collaborative assistant than as an unsupervised automated programmer. Only by establishing clear task boundaries, testing mechanisms, and human review processes can a model’s generative capability be turned into stable, maintainable, and reproducible engineering output.
