TL;DR
As the LLM landscape diversifies, developers frequently deploy multiple models in production, generating a wealth of multi-LLM log data. This paper introduces LLMFusionBench, a massive benchmark of 103M tokens from 20 diverse models, and FusionFactory, a unified framework that systematically fuses LLM capabilities at three distinct pipeline stages: query-level routing, thought-level prompting, and model-level distillation. The key takeaway is that reusing high-quality reasoning traces as thought-level guidance yields the best overall performance boost, consistently outperforming individual models.
What Problem Does This Paper Address?
Different Large Language Models (LLMs) excel at different tasks—for instance, one model might dominate at code generation while another shines at factual retrieval. To harness these complementary strengths, practical applications often invoke multiple models, leaving behind rich serving logs.
However, existing methods for combining LLMs typically look at just one stage in isolation (like query routing or model distillation) and often rely on internal model states (logits) that are completely inaccessible when using commercial, API-based models. This paper addresses the lack of a systematic, API-compatible framework to evaluate and exploit multi-LLM logs across different intervention points in the LLM serving pipeline.
Methods
The authors propose FusionFactory, a framework operating across three distinct fusion stages:
- Query-level Fusion (Early Fusion): A lightweight router dynamically selects the optimal LLM and response mode (direct vs. chain-of-thought) before generation. It optimizes for a user-defined balance of performance, cost, and response quality.
- Thought-level Fusion (Mid Fusion): Operating during generation, this stage uses an LLM to distill abstract "thought templates" (concise reasoning summaries) from top-performing historical logs. These templates are retrieved based on query similarity and injected as few-shot demonstrations for new queries, providing non-parametric guidance without changing model weights.
- Model-level Fusion (Late Fusion): Occurring after response collection, a single base model is fine-tuned via supervised fine-tuning (SFT) on the highest-quality responses aggregated across the multi-LLM log, acting as a form of black-box knowledge distillation.
Datasets
The authors introduce LLMFusionBench, a large-scale benchmark specifically designed for LLM fusion research:
- Scope: 14 tasks spanning 6 domains (Math, Code, Commonsense Reasoning, World Knowledge, Reading Comprehension, and Popular benchmarks like MMLU/GPQA).
- Data Volume: Contains aligned responses from 20 open-source LLMs ranging from small (7B–12B) to large (up to the 671B DeepSeek-R1), totaling 103 million tokens.
- Rich Metadata: Unlike ordinary datasets, it stores structured serving logs including model identities, response modes (direct vs. reasoning-augmented), inference costs, task-specific performance, and LLM-as-judge quality scores.
Key Insights and Ideas
- Thought-level fusion is the sweet spot: Reusing distilled reasoning patterns as few-shot prompts provides the best overall performance gains (+12.7% for small models over zero-shot). It avoids the parameter compression bottlenecks of distillation and the rigid single-model limitations of routing.
- Model-level distillation struggles to generalize: Directly compressing heterogeneous multi-LLM logs into a single model's parameters via SFT often underperforms. The authors hypothesize this is due to overfitting to specific response styles and difficulty abstracting across diverse tasks.
- Query routing reigns supreme for cost-efficiency: Query-level fusion via GraphRouter achieved a ~10× cost reduction compared to the "Best LLM" baseline while maintaining or exceeding its performance, making it ideal for budget-constrained production environments.
- Factual recall resists fusion: Domains requiring strict factual recall (like World Knowledge) see minimal improvement from fusion, whereas reasoning-heavy domains (Math, Code) benefit significantly from diverse reasoning styles.
Key Results
- Overall Performance: FusionFactory configurations consistently beat the best individual LLM across all 14 benchmarks.
- Thought-level Wins: The
Thought-Full-Hybrid-70Bconfiguration achieved the highest average performance (0.615), outperforming the Best LLM baseline (0.600) and strong response-level fusion baselines like LLM-Blender (0.603). - Routing Efficiency: Under the "Performance First" routing scenario, GraphRouter achieved a reward score of 0.602 at a fraction of the cost (0.0184), compared to the Best LLM's score of 0.546 at a cost of 0.1850.
Limitations and Future Work
- Noisy Logs: Low-quality, biased, or hallucinated log data can propagate through the fusion pipeline, leading to suboptimal routing or flawed thought templates. Stronger log-quality filtering mechanisms are needed.
- Single-Turn Focus: The current benchmark focuses primarily on single-turn queries. Real-world logs often feature multi-turn interactions, long-context documents, and tool-use traces, which introduce more complex failure modes.
- Adaptive Fusion: A promising future direction is developing hybrid fusion strategies that dynamically choose the fusion level based on query difficulty (e.g., routing simple queries early, but invoking thought-level fusion for complex reasoning tasks).
Summary updated