Benchmarking Lightweight LLMs in a Multi-Model Agent Framework: How Small Models Handle Complex Collaborative Tasks

    This article evaluates four lightweight large language models (under 30B parameters) running inside a fixed agent framework (DSH) on the same complex task: building a collaborative creative studio system with five core states, three user roles, drag-and-drop interactions, and persistent state. While all four models eventually delivered passing results, their execution times ranged from 17 minutes to over an hour, revealing major differences in action planning, tool-call efficiency, retry behavior, and context management. The article analyzes why "fast" models are not always fast and "stable" models are not always stable, and distills three practical lessons for agent engineering: don't select models based on benchmark scores alone, match retry mechanisms to task characteristics, and make context compression a core framework capability.

    Benchmarking Lightweight LLMs in a Multi-Model Agent Framework: How Small Models Handle Complex Collaborative Tasks

    As agent applications grow more complex, a model’s raw intelligence is no longer the only metric that matters. When the same task, the same assets, and the same acceptance criteria are handed to different lightweight LLMs, their actual efficiency and process behavior often diverge dramatically. In this experiment, we fixed the agent framework and varied only the model, observing how four mainstream lightweight models performed when building a collaborative creative studio system — and drawing conclusions with general relevance for agent engineering.

    1. Experiment Design: Fixed Framework, Swappable Models

    To isolate the impact of model differences on final agent outcomes, the experiment used an identical runtime environment across all runs. The agent framework was DSH — a general-purpose testing environment supporting browser operations, context management, tool calling, and automatic retries. The task assets consisted of six open-access images from the Metropolitan Museum of Art, plus seed data for project members, versions, and comments. Each model had to autonomously complete five core states: project overview, mood board, asset-anchored comments, version approval, and publish preview. The page needed to support interactions for three roles (creative director, designer, client), including asset drag-and-drop, comment anchoring, version switching, and approve/reject actions — with no state loss after a page refresh.

    All four models were lightweight solutions with parameter counts under 30 billion, from different vendors, connected through a unified API. Each model received the same 262K context window and a 200K task budget, paired with Playwright MCP for browser automation. The desktop viewport was 1440×1000 and the mobile viewport was 390×844. Each run allowed only one fix attempt after the first-version screenshot, and every model had to submit code, screenshots, logs, a review report, and performance metrics.

    2. Results Overview: Same Completion, Very Different Journeys

    All four models ultimately delivered systems that passed acceptance, but their paths to get there differed dramatically:

    • Model A (known for speed and low latency) finished in just 17 minutes, with almost no retries, compact action turns, and efficient tool calls.
    • Model B (positioned as a balanced option) failed its first execution; after a system error triggered an automatic rerun, it took a cumulative 1 hour 12 minutes to succeed.
    • Model C (emphasizing multimodality and long context) did not require a full rerun, but experienced 3 internal automatic retries, for a total execution time of 88 minutes.
    • Model D (designed for ultra-long context) failed twice in a row under the default retry policy, succeeding only after extended backoff waits — cumulative time to first success: 1 hour 4 minutes.

    Judging by the final products, all four versions met the acceptance criteria. But the intermediate process data — action turns, error recovery paths, tool-call frequency — is what truly deserves attention.

    3. Deep Dive: Why “Fast” Models Aren’t Always Fast, and “Stable” Models Aren’t Always Stable

    3.1 Action Turns and Tool-Call Efficiency

    Model A’s 17-minute efficiency was no accident. Its logs show a tendency to plan multiple actions at once and then execute them in batches — for example, iterating through all asset images to extract metadata first, then creating the project structure and comment anchors in one pass. Model C implemented the same full feature set, but every operation came with a think–modify–verify loop, resulting in nearly 40% more tool calls than Model A. This directly reflects differences in task decomposition and action-compression capability.

    3.2 Sensitivity to Retry Strategies

    The failures of Model B and Model D stemmed from the same class of problem: at certain steps, the model called a non-existent DOM selector or attempted to access a resource that had not finished loading. The difference was in recovery: Model B reset the entire browser session after its first failure, while Model D kept trying within the existing session. This exposes insufficient “attribution ability” in lightweight models when facing environmental feedback — they cannot precisely determine whether a failure is a code logic error or a transient network fluctuation, leading to either overreaction or underreaction.

    3.3 The Hidden Cost of Context Management

    All models were allocated a 262K context window, but actual utilization varied enormously. Model A used only about 60% of its context because it excelled at compressing intermediate results into structured summaries. Model D nearly filled its entire window, causing noticeably slower token generation in the final stages. Context management is not just a capacity problem — it is a compression-strategy problem. The ability to proactively discard irrelevant history while retaining key state nodes is an important invisible lever for agent efficiency.

    4. Three Lessons for Agent Engineering

    4.1 Model Selection Can’t Rely on Benchmark Scores Alone

    Marketing labels like “lightweight,” “high-speed,” and “long context” only reflect static single-turn inference capability. In real agent tasks, a model must make continuous decisions, perceive environmental changes, and recover from errors. A model that scores slightly slower on benchmarks but plans actions more robustly may actually finish the end-to-end task faster.

    4.2 Retry Mechanisms Must Match Task Characteristics

    For long-chain tasks, blindly increasing retry counts amplifies the cost of failure. A more reasonable approach is layered retries: fast retries for idempotent operations, pause-and-context-check for state-changing operations, and a degradation strategy for global failures. Model D failed twice in a row on the same interface precisely because the default retry interval was too short — it only succeeded after extended backoff.

    4.3 Context Compression Should Be a Core Framework Capability

    Rather than stuffing all historical tokens into the model, the framework layer should implement automatic summarization, key-state caching, and tool-result pruning. For example, convert full HTML returned by tools into extracted text nodes, and compress operation logs into event-type-plus-parameter summaries. This both reduces decision noise for the model and extends the effective lifespan of a limited context window.

    5. Conclusion

    This evaluation was not about declaring which model is “better,” but about revealing the multi-factor nature of agent system performance. Under the same DSH framework and acceptance criteria, Model A’s high efficiency came from its strong action planning and context compression, while the other models also completed the task through retries, backoff, and internal adjustments — just at a higher time cost. For developers, the real takeaway is this: when selecting a model, measure end-to-end completion time and failure-recovery success rate in real task environments, rather than relying solely on static benchmark scores. As agent frameworks mature, the adaptation layer between models and tools will offer more optimization headroom than the models themselves — and that is the core value of running cross-model evaluations like this one.