Large and Small Model Collaboration: Selection Criteria and Engineering Practices
This article explores the engineering practices of collaborating between large and small AI models. It covers the rationale behind the division of labor, key metrics for model selection such as instruction following and execution efficiency, and standards for writing implementation guide documents. Additionally, it provides a task-based division of labor, the boundaries of multimodal capabilities, steps to establish a custom evaluation process, and common misconceptions to avoid in AI-assisted development.
1. Why Large-Small Model Collaboration is Needed
In practical development, larger parameter models are better suited for requirement understanding, architecture design, and solution decomposition. Smaller parameter models offer faster execution speeds and lower per-call costs, making them ideal for completing repetitive implementations based on established plans. Combining them creates a division of labor: “the planning end thinks it through, while the execution end builds it.”
The boundaries of model capabilities must also be clarified. Reasoning ability primarily helps models process logical chains, such as multi-step decision-making and constraint deduction. Parameter scale correlates with the internalized knowledge of the model; many domain knowledge gaps cannot be filled by reasoning alone, and web searches only cover a fraction of the needed information. Therefore, knowledge-intensive and creative tasks usually rely on larger models, while implementation tasks prioritize execution stability.
2. Two Core Metrics for Model Selection
1. Instruction Following
The value of the execution end lies in delivering strictly according to specifications. If a small model tends to improvise, it can easily cause issues like unauthorized modifications, adding features without permission, or ignoring prohibitions. The cost of rework often far exceeds the model’s inference cost itself.
To evaluate this, prepare a set of tasks with clear boundaries, such as “only modify a specific function without changing the interface signature,” and track the following metrics:
- Whether modifications are strictly confined to the specified scope;
- Whether existing interfaces and tests are preserved;
- Whether the output format meets the requirements.
Models with high instruction following perform stably in such tests. Even if the solution is not elegant, the subsequent process can reliably take over.
2. Execution Efficiency
Small tasks do not require long, deep thinking. If the execution end engages in long reasoning rounds for every iteration and has a slow output speed, waiting times will quickly accumulate during extensive regression testing and batch modifications.
During evaluation, record three metrics:
- The time taken for a single task from initiation to completion;
- The effective code output per unit of time;
- Extra rounds consumed due to rework.
Synthesizing these three metrics provides a closer representation of the actual development experience than merely looking at nominal speeds.
3. Writing Standards for Implementation Guide Documents
The quality ceiling of the execution end is determined by the task document. The more complete the document output by the planning end, the less the execution end needs to guess. A qualified implementation guide document typically includes the following:
- Tech Stack and Versions: Language versions, framework versions, dependency ranges.
- Directory Structure: Module division and file locations.
- Interface Conventions: Input/output formats, field meanings, error handling methods.
- Boundary Conditions: Handling rules for null values, timeouts, concurrency, permissions, etc.
- Testing Requirements: Use cases and assertions that must be covered.
- Acceptance Criteria: Completion conditions that can be checked item by item.
- Prohibitions: Files that cannot be modified, dependencies that cannot be introduced.
Here is a template example:
# Task: User List Pagination Query## Tech Stack- Language version: Keep consistent with the existing project- Data access: Reuse existing encapsulation layer, no new dependencies## Directory Structure- New files: Pagination-related files under the user module- Do not modify: All files under the auth module## Interface Conventions- Input: page (starts from 1, default 1), size (default 20, max 100)- Return: items list, total count, page, size## Boundary Conditions- Return parameter error when page is less than 1- Truncate to 100 when size exceeds the maximum## Testing Requirements- Cover four scenarios: first page, last page, out-of-bounds page, empty results## Acceptance Criteria- All tests pass- Prohibited directories remain unmodified- Interface return structure matches the convention
Before submitting the document to the execution end, use a simple check logic to confirm the structure is complete:
required_sections = ["Tech Stack", "Directory Structure", "Interface Conventions", "Boundary Conditions", "Testing Requirements", "Acceptance Criteria", "Prohibitions"]read task documentfor each required_section in required_sections:if required_section does not exist in the document, record it as missingif missing items exist:return to the planning end for completion, do not send to the execution end
This step seems simple but can intercept a large amount of rework caused by document gaps.
4. Task-Based Division of Labor
When selecting the execution end, the choice should be based on the task type, not on the model’s parameter size or brand.
| Task Type | Recommended Execution End | Reason |
|---|---|---|
| Requirement analysis, architecture design | Larger parameter model | Requires complex reasoning and knowledge coverage |
| Solution decomposition, writing implementation docs | Larger parameter model | Document quality determines execution quality |
| Boilerplate code, repetitive implementation | Small model | Clear instructions, prioritizing speed |
| Batch testing and regression | Small model | Many rounds, short per-round duration needed |
| UI detail adjustments | Small model | Small tasks, low ROI for deep reasoning |
| Complex problem troubleshooting | Larger parameter model | Requires multi-step deduction |
For simple tasks, avoid launching multiple sub-tasks for preliminary research. The time spent on research and thinking may far exceed the task itself, creating a scenario of “setting up an entire research team for a minor modification.”
5. Boundaries of Multimodal Capabilities
Some models possess image generation capabilities and can handle asset generation in the workflow. Note the following when using them:
- Asset generation is suitable for quickly producing placeholder resources during the prototyping phase, reducing wait times for art assets.
- Generated results usually require post-processing, such as background removal, size unification, and format compression. These steps can be completed using standard image processing scripts.
- Pay attention to the licensing scope and style consistency of assets; assets for official release still require manual review.
- If the model lacks image generation capabilities, you can first build prototypes using geometric shapes and procedural drawing, then gradually replace them with formal assets.
The value of multimodal capabilities lies in reducing tool switching and extra costs. Whether to introduce them depends on whether they shorten the overall delivery cycle.
6. Establish Your Own Evaluation Process
There is no standard answer applicable to all teams. Testing with your own samples is more reliable than referencing others’ conclusions. The recommended process is as follows:
- Select ten to twenty representative tasks covering the project’s main scenarios.
- Attach the same implementation document to each task to ensure consistent comparison conditions.
- Record pass rates, boundary violation counts, time consumed, and rework rounds.
- Summarize results by task type to form an internal division of labor table for the team.
- Re-test after model version updates, as new versions may alter previous conclusions.
7. Common Misconceptions
- Misconception 1: Believing that larger parameters always mean better execution. The key to the execution end lies in following specifications; overly strong divergent capabilities may lead to unauthorized modifications.
- Misconception 2: Believing that the more concise the document, the better. Gaps in the document translate into guesses by the execution end, resulting in higher rework costs.
- Misconception 3: Looking only at single-response speed. You should measure the total time of the entire task loop, including waiting, rework, and manual review.
- Misconception 4: Treating one type of capability as the default solution for all requirements. Capability selection should return to the task itself.
