← Latest papers
🤖 machine learning

One Algorithm, Two Goals: Dual Scoring for Parameter and Data Selection in LLM Fine-Tuning

This paper introduces DualSFT, a one-shot algorithm that unifies parameter and data selection for LLM fine-tuning by deriving a shared gradient-based scoring rule from a bilevel optimization framework, thereby enabling more efficient and coordinated co-selection than traditional separate strategies.

Original authors: Xinrui Chen, Liu Yang, Ou Wu

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

Original authors: Xinrui Chen, Liu Yang, Ou Wu

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

Imagine you have a giant, highly trained library of knowledge (a Large Language Model, or LLM) that knows everything about the world. Now, you want to teach this library a specific new skill, like writing computer code or solving math problems. This process is called "fine-tuning."

Usually, to teach this library, you have two choices:

  1. Read every single book in the library again (using all your data).
  2. Rewrite every single page in the library (updating all the parameters).

Both of these are incredibly expensive, slow, and require massive amounts of computer power. To save money, researchers usually try to be efficient in just one way: either they pick only the best books to read (Data Selection) OR they pick only the most important pages to rewrite (Parameter Selection).

The problem? Doing just one of these is like trying to learn a new language by only reading the best books but rewriting every page, or rewriting only the best pages but reading every single book. It's still wasteful.

The Paper's Big Idea: "DualSFT"
The authors of this paper propose a new method called DualSFT. Think of it as a "smart librarian" who solves both problems at once with a single, clever trick.

Here is how it works, using a simple analogy:

1. The "One-Stop Shop" Scorecard

Imagine you are hiring a team for a big project. You need to pick the best workers (Data) and decide which tools they should use (Parameters).

  • Old Way: You hire a "Worker Scout" to find the best people, and a separate "Tool Scout" to find the best tools. They don't talk to each other. They might pick a great worker who needs a tool the Tool Scout didn't choose, or vice versa. It's messy and redundant.
  • DualSFT Way: The authors realized that the "best worker" and the "best tool" are actually connected. They created one single scorecard that looks at both at the same time.

2. The "Interaction Matrix" (The Secret Sauce)

The paper explains that there is a hidden mathematical relationship between the data (the books) and the parameters (the pages).

  • Imagine a giant grid where the rows are your training examples (books) and the columns are the model's parameters (pages).
  • The authors found a way to calculate a "score" for every single cell in this grid.
  • If you add up the scores across a row, you instantly know which books are the most useful.
  • If you add up the scores down a column, you instantly know which pages are the most important to update.

It's like having a single magic map. If you look at the map horizontally, it tells you where to dig for gold (data). If you look at it vertically, it tells you where to build a road (parameters). You don't need two different maps; you just need to read the same one differently.

3. The "One-Shot" Trick

Usually, to pick the best data and parameters, you might have to run the training process, stop, check the results, pick new data, run it again, and repeat. This takes forever.

DualSFT is a "One-Shot" method.

  • Step 1: The model takes a quick "warm-up" walk (a short practice session) to get a feel for the task.
  • Step 2: It looks at the "magic map" (the gradient interaction matrix) described above.
  • Step 3: In one single glance, it picks the top 10% of books to read and the top 5% of pages to rewrite.
  • Step 4: It goes straight to the final training using only those selected books and pages.

4. Remembering the Past (Not Forgetting)

A common problem with teaching a smart model a new skill is that it starts to forget its old skills (like how to write a poem or answer general questions). This is called "catastrophic forgetting."

DualSFT includes a special "memory guard" called CWSD.

  • Imagine the model is a student learning math. The "memory guard" is a teacher who whispers, "Hey, don't forget how to write a story while you're learning math!"
  • This guard uses a special technique to ensure the model keeps its original personality and general knowledge while learning the new task, without needing to re-read the entire original library of books.

The Results

The authors tested this on models of different sizes (from 3 billion to 9 billion "neurons").

  • Efficiency: They used much less data and updated far fewer parameters than standard methods.
  • Performance: Despite using less, the models actually performed better at the new tasks (like coding and math) than models that tried to use more resources but less smartly.
  • Balance: They found the perfect balance between learning the new skill (Plasticity) and keeping the old skills (Stability).

Summary

In short, DualSFT is a new algorithm that stops treating "choosing data" and "choosing parameters" as two separate jobs. Instead, it treats them as two sides of the same coin. By using a single mathematical trick to score both at the same time, it saves time, saves money, and produces smarter, more efficient AI models that don't forget what they already know.

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 →