Model Collaboration in Practice: Planning with Large Models and Executing with Small Models
This article describes a practical model collaboration pattern in which a larger model handles requirement analysis, architecture design, and task decomposition, while a smaller, faster model executes the resulting implementation specification. It examines instruction following, execution speed, and multimodal/toolchain costs; shows how to build a task-based benchmark for model selection; and highlights common pitfalls teams should avoid.
1. Background: From a Single Model to Division of Labor
In real development work, more teams are splitting a task into two stages. In the first stage, a larger-parameter model with stronger capabilities performs requirement analysis, architecture design, and task decomposition, and produces an implementation specification. In the second stage, a smaller, faster model implements the items in that specification one by one. This combination separates reasoning depth from execution efficiency and lets each type of model handle the work it is best suited for.
This division of labor leads to a direct conclusion: the quality of the implementation specification determines the quality of the execution model’s output. Small models are good at completing repetitive work according to clear steps, but they cannot replace earlier design judgment. Therefore, when evaluating a collaboration setup, teams need to look at two levels at the same time. First, can the execution model strictly follow instructions? Second, can the response speed of the entire chain support daily iteration?
2. Dimension 1: Instruction Following
The execution stage requires rigor and predictability. If a model tends to add features on its own, change interfaces without authorization, or expand the scope of changes, code review and regression testing become difficult even if a single output looks good. The most important thing for an execution model to avoid is “acting on its own,” not a lack of capability.
2.1 Elements an Implementation Specification Should Contain
A usable implementation specification usually contains the following four types of information.
- Tech stack and versions: language, framework, runtime version, and the allowed dependency scope.
- Module boundaries: the responsibility and input/output of each module, plus files that must not be modified.
- Test boundaries: which functions need unit tests, which integration tests depend on external services, and which scenarios are out of scope.
- Acceptance criteria: conditions that can be checked by machine or by a person, such as return codes, field formats, and performance thresholds.
Below is an example template:
## Task: User Profile Update API### Technical Constraints- Language: Python 3.11; Web framework follows the project's existing version- Do not add third-party dependencies### Implementation Scope- Modify the update_profile function in services/profile.py- Do not modify database migration files### Acceptance Criteria- Return 400 when a request field is missing; the error message includes the missing field name- Unit tests cover three scenarios: normal path, missing field, and duplicate submission- All existing project tests pass
The more specific the specification, the less room the execution model has to improvise, and the easier the result is to verify. Conversely, if the specification only says “implement the user profile update feature,” the execution model must decide many details on its own, and the risk of scope creep rises significantly.
2.2 How to Assess Instruction Following
Three observations are useful during evaluation. First, did the model change only the contents listed in the file list? Second, did it satisfy every acceptance criterion rather than only the main functionality? Third, when information is insufficient, does it ask questions or mark assumptions, or does it directly fill in the gaps itself? A model that can mark assumptions and avoid expanding scope on its own is better suited to the execution role.
3. Dimension 2: Execution Speed
Speed is mainly reflected in two areas. The first is first response time, meaning the delay from receiving an instruction to starting output. The second is the amount of effective content the model can output per unit of time. The implementation stage often requires repeated cycles of “modify code, run tests, read errors, modify again.” If every round involves a long reasoning process, overall efficiency drops quickly.
Consider a simple UI style adjustment. The task only requires changing a few style properties, but if the model first starts multiple subtasks for research, planning, and solution comparison, most of the time is spent on reasoning and only a small proportion on the actual change. When selecting a model, reasoning depth should match task complexity.
3.1 Speed Requirements in Batch Testing Scenarios
Batch testing amplifies latency. Suppose one test round requires the model to read a large log and suggest changes. If the model performs long reasoning every time, after dozens of cycles the waiting time may far exceed the actual coding time. In this case, whether the model can quickly produce structured, continuous output matters more than the depth of a single answer.
You can judge whether speed is adequate from three points:
- Can simple tasks be completed within an acceptable time?
- After test logs are returned, can the model directly provide executable changes?
- Is long output continuous and stable, without frequent interruptions or pauses?
4. Dimension 3: Multimodal Capabilities and Toolchain Costs
Some tasks require image capabilities, such as game asset creation, UI prototypes, and icon generation. Image generation usually also requires post-processing, such as background removal and transparent channel generation. There are two common approaches to these requirements.
- Built-in multimodal capability: the model generates images directly in the same session and completes basic post-processing, resulting in the shortest call chain.
- External image service or local deployment: generate images through a separate image service, or deploy an image model locally. This approach is flexible but introduces additional overhead.
External solutions mainly have three types of cost. The first is call fees, such as billing by quota or credits. The second is hardware and maintenance cost for local deployment, including GPU resources, environment upgrades, and model updates. The third is toolchain management cost, including installation and version control of command-line tools, as well as writing and maintaining skill wrappers for the model.
When selecting a model, these hidden costs should be included in total cost of ownership. A low-unit-price solution may not be cheaper in practice if it requires maintaining three additional tools.
Below is a simple example of assigning models by task type:
def run_task(task, planner, coder, image_tool):"""Select an execution path based on task type."""if task["type"] == "planning":return planner.plan(task["requirement"])if task["type"] == "codegen":return coder.execute(task["spec"])if task["type"] == "asset":return image_tool.generate(task["prompt"])raise ValueError(f"Unknown task type: {task['type']}")
The key point in this code is the routing logic. Each task type has a clear executor, which makes it easier to track costs, compare results, and replace individual components.
5. Build Your Own Selection Benchmark
There is no unified scoring standard for coding ability. Performance can vary widely across projects, languages, and teams. Therefore, the most reliable method is to run a small-scale benchmark using your own tasks.
5.1 Design a Task Set
It is recommended to select 10 to 20 representative tasks covering the following types:
- Adding new features;
- Modifying existing code;
- Writing additional unit tests;
- UI or style adjustments;
- Configuration and script changes.
Each task should include an implementation specification and acceptance criteria that can be checked automatically or manually.
5.2 Record Key Metrics
| Metric | Meaning | Recording method |
|---|---|---|
| First-pass rate | Proportion of tasks that meet acceptance criteria without rework | Passed tasks divided by total tasks |
| Out-of-scope changes | Number of times content outside the file list is modified | Count during review |
| First response time | Interval from instruction sent to first output | Record request and response timestamps |
| Time per task | Total time from start to acceptance completion | End time minus start time |
5.3 Automated Evaluation Example
import timefrom statistics import meandef evaluate(model, tasks, check):"""Run the model on the same task set and return first-pass rate and average elapsed time."""results = []for task in tasks:start = time.time()output = model.execute(task["spec"])elapsed = time.time() - startpassed = check(output, task["acceptance"])results.append({"passed": passed, "elapsed": elapsed})pass_rate = sum(r["passed"] for r in results) / len(results)avg_time = mean(r["elapsed"] for r in results)return pass_rate, avg_time
Keep conditions consistent during evaluation. Conclusions are comparable only when the same batch of tasks uses the same implementation specifications and the same acceptance scripts. If different models use different prompts or context, the results cannot be compared directly.
6. Common Pitfalls
Pitfall 1: Using planning ability as a substitute for execution ability. Planning determines direction, while execution determines completion. A model that is good at designing architecture is not necessarily good at implementing requirements item by item.
Pitfall 2: Looking only at single-run results. A model that performs well on one task is not necessarily suitable for long batch operations. Observe its stability and out-of-scope change frequency across repeated tasks.
Pitfall 3: Ignoring operational costs. Call fees saved by local deployment may be offset by hardware, maintenance, and troubleshooting. Time cost should also be included when calculating costs.
Pitfall 4: Assigning all tasks to the same model. Assigning models by task type is usually more efficient than choosing one model for everything. Planning, coding, and asset generation have different capability requirements.
7. Summary
The core of large-model and small-model collaboration is to give judgment to the large model, give repetitive execution to the small model, and connect the two with an implementation specification. When selecting models, teams should consider three dimensions together: instruction following determines whether output is reliable, execution speed determines iteration efficiency, and toolchain cost determines long-term investment. The final conclusion should come from your own task set and benchmark tests, not from a single impression or someone else’s experience.
