← Latest papers
📊 statistics

DUET: Optimizing Training Data Mixtures via Feedback from Unseen Evaluation Tasks

The paper introduces DUET, a novel global-to-local algorithm that combines influence functions with Bayesian optimization to theoretically and empirically optimize LLM training data mixtures for unseen evaluation tasks using only feedback, without requiring prior knowledge of the task data.

Original authors: Zhiliang Chen, Gregory Kang Ruey Lau, Chuan-Sheng Foo, Bryan Kian Hsiang Low

Published 2026-05-15
📖 5 min read🧠 Deep dive

Original authors: Zhiliang Chen, Gregory Kang Ruey Lau, Chuan-Sheng Foo, Bryan Kian Hsiang Low

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: Cooking in the Dark

Imagine you are a chef (the AI developer) trying to create the perfect soup (the Large Language Model, or LLM). You have a pantry full of different ingredients: Wikipedia articles, math textbooks, medical journals, and trivia questions.

Usually, to make the best soup, you need to know exactly what your customers want to eat. If they love spicy food, you add more chili. If they want something healthy, you add more vegetables.

But here is the catch: In the real world, you often don't know what your customers want before you serve them.

  • Maybe your customers are chatting with your AI in a private, encrypted room. You can't see what they are saying (the "unseen evaluation task").
  • You only get a noisy, coarse feedback after they eat: a star rating, a thumbs up/down, or how long they stayed in the chat. You don't get a detailed recipe critique; you just get a vague "It was okay" or "It was great."

The paper asks: How do you figure out the perfect mix of ingredients (training data) when you can't see the customers' plates, only their vague ratings?

The Old Way: Guessing and Checking

Previously, methods to fix this were like trying to find the best soup recipe by:

  1. Blindly guessing: Trying every possible combination of ingredients (too expensive and slow).
  2. Assuming you know the customers: Using fancy math that requires you to see the customers' actual orders (which you can't do because of privacy).
  3. Picking random "good" ingredients: Selecting high-quality data points without knowing if they match the specific customer's taste.

These methods failed in this specific "blind" scenario because they needed more information than the chef was allowed to have.

The Solution: DUET (The Smart Tasting Loop)

The authors introduce DUET, a new method that acts like a smart, iterative tasting loop. It combines two powerful techniques:

1. The "Global" Taster (Bayesian Optimization)

Think of this as a smart compass. Instead of guessing randomly, the compass looks at your past ratings (feedback) and says, "Hey, last time we added more Math books, the rating went up. Let's try adding even more Math and less Trivia."

  • It doesn't know the exact recipe, but it learns the direction to move based on the noisy feedback (the star ratings).
  • It constantly updates its map of "what works" based on the feedback loop.

2. The "Local" Chef's Knife (Data Selection)

Once the compass says, "Let's try 60% Math and 40% Science," you still need to pick which specific Math and Science pages to use. You don't want to use pages with typos or boring content.

  • DUET uses a technique called Influence Functions (IF). Imagine this as a quality filter.
  • Before you even start cooking, the filter scans your Math and Science pantry and marks the "best" pages (those that help the model learn the most) and the "worst" pages (noise or nonsense).
  • When the compass tells you to use 60% Math, the knife cuts out the best 60% of Math pages, ignoring the junk.

How DUET Works Together

DUET is a Global-to-Local algorithm. It works in a cycle:

  1. Global Step: The "Smart Compass" (Bayesian Optimization) looks at the feedback from the last round and suggests a new ratio of ingredients (e.g., "Try 50% Wikipedia, 50% News").
  2. Local Step: The "Quality Filter" (Data Selection) grabs the absolute best pages from Wikipedia and News to match that ratio.
  3. Cooking: The AI is trained on this new, high-quality mix.
  4. Feedback: The AI is deployed. Users interact with it (in the dark/encrypted). The system collects the noisy ratings.
  5. Repeat: The compass uses those new ratings to suggest an even better ratio for the next round.

Why It's Special

  • It works in the dark: It doesn't need to see the actual user conversations. It only needs the "star ratings."
  • It handles noise: User ratings are often inconsistent (one person gives 5 stars, another gives 3 for the same answer). DUET is designed to ignore the noise and find the true signal.
  • It's efficient: Instead of trying every possible recipe, it quickly narrows down to the best one.

The Results

The authors tested DUET on various tasks, including:

  • In-Domain: Tasks where the training data matches the test (e.g., training on TruthfulQA and testing on TruthfulQA).
  • Out-of-Domain: Tasks where the training data is different from the test (e.g., training on Wikipedia and Math, but testing on Medical questions).

The Finding: Even when the test task was completely different from the training data (Out-of-Domain), DUET figured out that mixing in certain "unrelated" data (like general Wikipedia text) actually helped the AI answer medical questions better. It outperformed all other methods that tried to mix data without this feedback loop.

The Bottom Line

DUET is like a chef who can't see the customers but can hear their applause. By listening to the applause and using a smart filter to pick the best ingredients, the chef can eventually cook the perfect soup, even without ever seeing the menu.

Note on Limitations: The paper focuses specifically on fine-tuning (teaching an existing AI new tricks) and does not claim this method works for pre-training (teaching an AI from scratch) or clinical medical uses, though the authors suggest it could potentially be adapted for pre-training in the future.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →