Programming and 3D Large Model Selection: Evaluation Metrics and Checklists
This article provides a comprehensive evaluation framework for selecting programming and 3D generation large models. It covers configuration records, key evaluation metrics for function-level and repository-level programming tasks, and 3D generation metrics. Additionally, it outlines how to measure inference acceleration, calculate unit task costs, and apply a scoring table to make objective, data-driven model selection decisions.
1. Scope and Configuration Records
This article targets enterprise AI platform and R&D leads, explaining how to evaluate candidate models on your specific tasks. Public leaderboard scores are only suitable as an initial screening reference because they are affected by evaluation scripts, sampling temperatures, tool-calling frameworks, and model versions.
Every metric must have a clearly defined calculation method. When the team reproduces the evaluation, the following table should be used as a standard attachment for each run; otherwise, results from different runs cannot be compared.
| Record Field | Example | Description |
|---|---|---|
| Model Name and Version | Candidate Model A, version number and release date | Scores may change after a same-named model is updated |
| Sampling Parameters | temperature=0.2, top_p=0.95, n=20 | n must be greater than or equal to k |
| Evaluation Parameters | Report both k=1 and k=5 | Shows the benefit of multiple samplings |
| Timeout Setting | 10 seconds per problem execution | Timeouts are counted as failures |
| Agent Framework | Framework name and version number | Mandatory for repository-level tasks |
| Tool Budget | Max steps 50, max commands 200 | Different budgets mean resolution rates are not directly comparable |
| Evaluation Script | Script version number and file hash | Confirms the script has not been altered |
| Random Seed and Hardware | Seed value, GPU model and quantity | Used to reproduce inference speed |
Public tasks may already exist in the training data, which will inflate scores. It is recommended to use both public datasets and internally built private datasets, keeping the private datasets unpublished.
2. What Metrics to Look for in Programming?
1. What Baseline for Function-Level Code Generation?
HumanEval contains 164 problems. Each problem provides a function signature and a docstring, judged by unit tests. The full version of MBPP has about 1,000 problems, primarily described in natural language, with a different difficulty distribution than HumanEval. The primary metric for both is pass@k, which is the probability that at least one out of k samples passes all tests.
In practice, sample n solutions for each problem (where n ≥ k) and use the unbiased estimator:
pass@k = 1 − C(n−c, k) / C(n, k)
Here, c is the number of samples that pass the tests out of n, and C represents combinations. This estimator was introduced by Chen et al. in the 2021 HumanEval paper. Finally, average the results across all problems.
For example, for a problem where n=20 and c=3. When k=1, pass@1 = 1 − C(17,1)/C(20,1) = 1 − 17/20 = 0.15, which is the same as c/n. When k=5, pass@5 = 1 − C(17,5)/C(20,5) = 1 − 6188/15504 ≈ 0.60. The pass probability increases significantly as k grows, so you must specify k when reporting.
Benchmark scores also depend on the language scope and execution environment. If only Python is tested, the conclusions cannot be directly generalized to Java or Go. The team should first perform deduplication checks and then use a custom dataset for secondary validation.
2. What Baseline for Repository-Level Tasks?
SWE-bench constructs tasks from real GitHub repository issues and their corresponding fix patches. The model must locate the problem in the repository and submit a patch. If the patch passes the relevant tests, it is considered resolved. The primary metric is the resolved rate.
SWE-bench Verified is a manually filtered set of 500 problems with clear descriptions and reliable tests, making it more suitable for horizontal comparisons than the full set. In the full set, some descriptions are unclear or tests are unstable, meaning the same patch could be judged as passed or failed.
The resolved rate also depends on the agent framework and tool budget, such as the maximum number of steps and the runtime per problem. The same model might yield vastly different resolution rates under two different frameworks. Reports must specify the framework version, tool budget, and runtime limits. The team should also record failure types (e.g., localization failure, incomplete patch, test timeout) to determine which step the model struggles with.
3. What Metrics to Look for in 3D Generation?
3D generation lacks a unified public benchmark like HumanEval, so teams need to define their own metrics. The following metrics can be directly integrated into your evaluation plan.
1. Core Metrics
- Generation Success Rate: The proportion of outputs that can be loaded by standard tools and contain non-empty geometry. This is the denominator for other metrics.
- Geometry Quality: If a reference model exists, calculate the Chamfer distance and F-score. A smaller distance is better; a larger F-score is better. Thresholds must be determined on the team’s own validation set.
- Topology and Manifold: Watertightness, number of non-manifold edges, and number of self-intersecting faces. These metrics determine whether the asset can be used for 3D printing, physics simulation, or certain rendering pipelines.
- Texture Consistency: Render from multiple viewpoints and compare image similarity between adjacent viewpoints, or use manual scoring to check for seams and color shifts.
- Physical Manufacturability: For printing tasks, check if minimum wall thickness, overhang angles, and dimensions fall within the printer’s specifications.
- Human Rating Protocol: At least 3 raters score independently in a double-blind manner. Before scoring, define clear judgment examples for each grade and report inter-rater reliability, such as Krippendorff’s alpha.
2. Sample Size and Confidence Intervals
3D evaluation is costly, and small sample sizes make conclusions susceptible to random factors. It is recommended to prepare at least 100 prompts or reference images per task category and calculate a 95% confidence interval for metrics like the success rate and average score. If the confidence intervals of two models significantly overlap, you cannot definitively conclude which is better.
To calculate the confidence interval, use the bootstrap method: resample the per-sample scores of each model with replacement 1,000 times, and take the 2.5th and 97.5th percentiles as the interval endpoints.
3. 3D Asset Checklist
The table below lists inspection items before an asset is added to the library. The thresholds are suggested starting points and should be adjusted by the team based on the use case.
| Inspection Item | Criteria | Tool/Method | Pass Threshold | Record Field |
|---|---|---|---|---|
| Format Readable | Can be imported by the target engine or loader | trimesh, Blender, or engine import logs | 100% | format, version, loader |
| Face Count Budget | Triangle count does not exceed scene budget | Count triangles | No more than project budget | face_count |
| Watertight | Each edge belongs to exactly two faces | trimesh is_watertight | 100% for printing tasks | watertight result |
| Non-manifold Edges | No edges shared by three or more faces | MeshLab or trimesh detection | 0 for printing tasks | non_manifold_edges |
| Self-intersection | Mesh faces do not intersect each other | Collision detection or CAD inspection tools | 0 for printing tasks | self_intersections |
| Normal Direction | All face normals point consistently | Mesh repair tools | 0 flipped faces | flipped_faces |
| Size and Units | Bounding box size deviation from specs | Read bounding box | Deviation ≤ 2% | bbox, unit |
| UV and Mapping | No UV island overlap, texture resolution meets standard | Render check or UV analysis tools | Overlap rate below team setting | uv_overlap, texture_res |
| Texture Consistency | No obvious seams or color shifts across viewpoints | Multi-view rendering + human rating | Average score ≥ 4 (out of 5) | rater_scores |
| License and Copyright | Model and training data licenses are traceable | Manual verification | Must pass | license_ref |
4. Inference Acceleration and Unit Task Cost
1. Inference Acceleration Metrics
Evaluating inference acceleration requires looking at both speed and quality. Common metrics include:
- Time To First Token (TTFT): Time from request to the first output token returned. Suitable for interactive scenarios.
- Throughput (tokens/s or tasks/hour): Output volume completed per unit time. Suitable for batch tasks.
- P95 Latency: 95% of requests are completed within this time. Better reflects tail-end experience than the average.
- Cache Hit Rate: Hit ratio of prefix caching or result caching.
- Batch Size and Concurrency: Throughput and latency usually constrain each other and must be reported together.
The acceleration ratio is defined as: Acceleration Ratio = Baseline Time / Optimized Time. However, this ratio is only meaningful if quality metrics do not drop significantly. For example, if quantization increases speed by 40% but the code pass rate drops by 8 percentage points, it is not a success. Teams should set an upper limit for quality degradation before comparing speeds.
2. Unit Task Cost Formula
Unit task cost refers to the average cost per accepted task. The formula is:
C_success = (C_infer + C_human) / N_accepted
Where:
- C_infer is the total cost of all inference calls, including initial calls and failed retries.
- C_human is the hours spent on manual review and repair multiplied by the hourly wage.
- N_accepted is the number of tasks that pass acceptance.
The calculation for a single inference call depends on the billing model:
- GPU Billing: Single cost = GPU price × occupation time per call (in hours).
- Token Billing: Single cost = (Input tokens × Input price) + (Output tokens × Output price).
3. Cost Example
The following numbers are hypothetical, used to demonstrate the calculation process, and do not represent any real model’s performance.
Assume the GPU price is $2.50/hour, and a single generation takes 90 seconds. The cost per inference call is 2.50 × 90 / 3600 = $0.0625.
A batch contains 1,000 tasks. There are 1,000 initial calls, with 700 passing. The 300 failed tasks are retried once, with 150 passing. There are 1,300 total inference calls and 850 accepted tasks.
- C_infer = 1300 × 0.0625 = $81.25
- Each accepted task requires 3 minutes of manual review at $40/hour. C_human = 850 × 3 / 60 × 40 = $1,700
- C_success = (81.25 + 1700) / 850 ≈ $2.10
In this scenario, human cost accounts for over 95% of the total cost. If the occupation time is reduced from 90 to 60 seconds, the inference cost drops to about $54.17, and C_success becomes roughly $2.06, a decrease of less than 2%. Therefore, reducing manual review time is generally more effective than switching to a cheaper inference solution.
5. Selection Scoring Table and Conclusion
1. Scoring Table
The following table is based on a 100-point scale. Weights and thresholds can be adjusted by business needs, but every dimension should be retained.
| Dimension | Weight | Metric | Threshold (Suggested Start) | Data Source | Veto Item |
|---|---|---|---|---|---|
| Programming Functional Correctness | 25 | Private dataset pass@1, supplemented by HumanEval, MBPP | ≥ 95% of the current model in use | Private and public dataset eval logs | None |
| Repo-level Fix Capability | 15 | SWE-bench Verified resolved rate | ≥ 90% of same-framework baseline | Eval logs and failure type stats | None |
| 3D Geometry and Topology | 15 | Watertight rate, proportion of 0 non-manifold edges | 100% for printing, others by use case | 3D checklist results | Printing tasks fail watertight check |
| 3D Visual Consistency | 10 | Texture consistency average score | ≥ 4 (out of 5) | Human rating sheets | None |
| Unit Task Cost | 15 | C_success | ≤ project budget cap | Inference bills and work hour logs | None |
| Latency and Throughput | 10 | P95 latency, throughput | P95 ≤ business SLA | Stress test reports | None |
| Data and Compliance | 10 | License documentation for model and training data | Materials complete and traceable | Vendor docs and legal review | License unclear and intended for commercial delivery |
Scoring rules are as follows:
- For metrics where higher is better: Dimension Score = Weight × min(1, Actual Value ÷ Threshold).
- For metrics where lower is better: Dimension Score = Weight × min(1, Threshold ÷ Actual Value).
- Weighted Total Score = Sum of all dimension scores.
- If any veto item is triggered, the candidate is directly disqualified and excluded from ranking.
2. Conclusion and Notes
It is recommended to set the acceptance threshold at a weighted total score of no less than 80, with no veto items triggered. This number is a starting point; the team should test two or three candidate models before deciding whether to adjust it.
When using the scoring table, note the following:
- All results must be accompanied by the configuration records from Section 1. Scores without configuration records should not be included in the scoring table.
- If the sample size is insufficient, look at the confidence interval before the mean.
- Public leaderboards can only narrow down candidates and cannot replace actual testing on team tasks.
- Licensing issues for 3D assets should be confirmed early in the evaluation phase, not checked right before delivery.
