DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixtures

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Gualdoni, Eleonora, Laguna, Sonia, Bethune, Louis, Monteiro, Joao, Ablin, Pierre, Cuturi, Marco
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913112795381760
author Gualdoni, Eleonora
Laguna, Sonia
Bethune, Louis
Monteiro, Joao
Ablin, Pierre
Cuturi, Marco
author_facet Gualdoni, Eleonora
Laguna, Sonia
Bethune, Louis
Monteiro, Joao
Ablin, Pierre
Cuturi, Marco
contents Multi-domain fine-tuning of large language models requires improving performance on target domains while preserving performance on constrained domains, such as general knowledge, instruction following, or safety evaluations. Existing data mixing strategies rely on fixed heuristics or adaptive rules that cannot explicitly enforce preservation of such capabilities. We propose DynaMiCS, a dynamic mixture optimizer that casts multi-domain fine-tuning as a constrained optimization problem. At each update, DynaMiCS performs short domain-specific probing runs to estimate a slope matrix of local cross-domain effects, capturing how training on each fine-tuning dataset affects each evaluation domain. These estimates are then used to compute mixture weights through optimization over the probability simplex, with the objective of improving target-domain performance while keeping constrained-domain losses below reference levels. Across multi-domain fine-tuning scenarios with varying numbers of target and constrained domains, DynaMiCS achieves stronger target-domain improvements and higher constraint satisfaction than fixed-mixture baselines, at lower computational cost and without reference models, per-example scoring, or manually tuned mixture weights.
format Preprint
id arxiv_https___arxiv_org_abs_2605_10770
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixtures
Gualdoni, Eleonora
Laguna, Sonia
Bethune, Louis
Monteiro, Joao
Ablin, Pierre
Cuturi, Marco
Machine Learning
Multi-domain fine-tuning of large language models requires improving performance on target domains while preserving performance on constrained domains, such as general knowledge, instruction following, or safety evaluations. Existing data mixing strategies rely on fixed heuristics or adaptive rules that cannot explicitly enforce preservation of such capabilities. We propose DynaMiCS, a dynamic mixture optimizer that casts multi-domain fine-tuning as a constrained optimization problem. At each update, DynaMiCS performs short domain-specific probing runs to estimate a slope matrix of local cross-domain effects, capturing how training on each fine-tuning dataset affects each evaluation domain. These estimates are then used to compute mixture weights through optimization over the probability simplex, with the objective of improving target-domain performance while keeping constrained-domain losses below reference levels. Across multi-domain fine-tuning scenarios with varying numbers of target and constrained domains, DynaMiCS achieves stronger target-domain improvements and higher constraint satisfaction than fixed-mixture baselines, at lower computational cost and without reference models, per-example scoring, or manually tuned mixture weights.
title DynaMiCS: Fine-tuning LLMs with Performance Constraints using Dynamic Mixtures
topic Machine Learning
url https://arxiv.org/abs/2605.10770