Grafy News
Try Grafy free

New DecisionReplay corpus enables offline AI model ensembling

Researchers have released DecisionReplay, a dataset and simulator for testing AI ensembles and routers without the cost of live model calls.

Illustration for the news story: New DecisionReplay corpus enables offline AI model ensemblingSource: Grafy Research Lab

Researchers have introduced DecisionReplay, a comprehensive dataset and deterministic simulator designed to facilitate the testing of AI model ensembles, routers, and cascades. This tool allows developers to evaluate complex multi-model strategies offline, eliminating the need for expensive and time-consuming live API calls to commercial providers.

What is the DecisionReplay dataset?

According to the research by Dean Ariel and Seffi Cohen from Ben-Gurion University of the Negev, DecisionReplay is a large-scale corpus containing the outputs of 17 different commercial decision models. Unlike previous routing benchmarks that primarily store generated text and correctness scores, DecisionReplay provides the full probability vectors for every answer option across 35 different benchmarks.

The dataset covers five distinct task areas and includes 267,716 questions distributed across 106,845 requests. Crucially, the researchers have included metadata for every call, such as token counts, actual billed costs, and measured latency. This granularity allows for a much more precise simulation of how different orchestration policies—such as combining models or routing requests to specific endpoints—perform in terms of both accuracy and economic efficiency.

How does the offline simulator work?

DecisionReplay includes a deterministic simulator that can replay any policy that selects, combines, or cascades models. Because the dataset contains the complete probability distributions for every model on every item, researchers can test new algorithmic approaches to model orchestration without actually querying the models again.

This modular design enables the simulation of three primary families of methods:

  1. Ensembles: Combining the outputs of multiple models to improve accuracy.
  2. Routers: Selecting a single model for a specific request based on expected performance or cost.
  3. Cascades: Using a sequence of models, typically starting with a cheaper model and only invoking a more powerful one if the first fails or lacks confidence.

By using this simulator, researchers can investigate how different selection or combination rules impact log loss, accuracy, and total cost within a controlled, five-fold protocol.

What are the key findings on model ensembling?

Through experiments using the DecisionReplay corpus, the authors found that simply pooling all available models does not necessarily lead to superior results. In fact, according to the study, pooling all models loses 2.7 accuracy points compared to simply using the single best model for a given benchmark. While "stacking" (a more advanced ensemble method) can gain 1.0 accuracy point over the best single model, it does so at a cost that is 3.4 times higher.

A significant reason for this lack of improvement is that commercial models tend to be "wrong together." The researchers observed that the errors of these models are correlated at an average of 0.45. Specifically, when two models both arrive at an incorrect answer, they choose the same wrong option in 72% of those cases. This high error correlation suggests that adding more models to an ensemble provides diminishing returns if those models share similar training data or architectural weaknesses.

Can routing and cascades reduce costs?

The research highlights that effective routing and cascading can significantly optimize the balance between performance and expense. The authors found that a "ridge router"—a method that directs queries to the most appropriate model—can match the accuracy of the best single model per benchmark while only incurring 64% of the associated cost.

In terms of cascades, the study explored "certified early exit" strategies. This method allows a system to stop processing a request once a certain confidence threshold is met. The researchers found that this approach can cut the cost of a stacked ensemble by 43% without changing the final answer, although it does not necessarily reduce the measured latency. These findings suggest that intelligent orchestration is a viable path for developers looking to scale AI applications without exponential increases in API expenditures.

How does this relate to AI development in practice?

For developers building production-grade AI applications, the ability to test model orchestration strategies is critical. Most current workflows involve a trial-and-error approach with live API calls, which is both slow and expensive. DecisionReplay provides a sandbox for fine-tuning the logic that decides which model should handle a specific user prompt.

In a workspace like Grafy Chat, where users can interact with multiple models side by side, the principles discussed in this paper—such as choosing the right model for a specific task or using a judge to select the best response—are highly relevant. While DecisionReplay is a research tool for offline simulation, the insights it provides regarding model correlation and cost-effective routing can inform how developers build more efficient multi-model agents and automated workflows.

Frequently asked questions

What makes DecisionReplay different from previous routing benchmarks?

Previous benchmarks like RouterBench or LLMRouterBench primarily focus on routing by storing generated text and correctness scores. DecisionReplay is unique because it stores the full probability vectors for every answer option, along with precise metadata for every call, including billed cost and measured latency, allowing for much deeper simulation of ensemble and cascade policies.

Why does pooling multiple models often lose to a single best model?

Pooling multiple models often results in lower accuracy because commercial models exhibit high error correlation. The researchers found that when models make mistakes, they frequently choose the same incorrect option. Because the models are often wrong in the same way, combining their outputs does not provide the diversity needed to cancel out errors and improve the final result.

Can cascading models help reduce the cost of AI applications?

Yes, cascading can significantly reduce costs by using cheaper models for simpler tasks and only invoking expensive models when necessary. The study demonstrated that a certified early exit strategy can reduce the cost of a stacked ensemble by 43% without altering the accuracy of the answers, providing a way to maintain performance while optimizing expenditure.


Source: Grafy Research Lab — DecisionReplay: A Corpus and Offline Simulator for Ensembling Decision Models