Commute Your Domains: Trajectory Optimality Criterion for Multi-Domain Learning
Alexey Rukhovich, Alexander Podolskiy, Irina Piontkovskaya
TL;DR
The paper tackles how the order of multi-domain data exposure affects training outcomes by introducing a Lie-bracket framework over gradient vector fields. It derives a local optimality criterion and an explicit second-order expansion showing how noncommuting losses can bias training trajectories, often favoring single-domain focus unless a zero-projection condition holds. The authors validate their theory with a toy quadratic MDL and a bilingual LLM pre-training setup, demonstrating that the direction and magnitude of performance changes align with predictions from the Lie-bracket-based quantity $P(L_i-L_j,\sum_k w_k L_k;L)$. While providing a principled tool for analyzing data mixing, the work stops short of prescribing an explicit optimal schedule and acknowledges limitations related to optimizers and stochasticity, pointing to future work on online data mixing and broader domain settings.
Abstract
In multi-domain learning, a single model is trained on diverse data domains to leverage shared knowledge and improve generalization. The order in which the data from these domains is used for training can significantly affect the model's performance on each domain. However, this dependence is under-studied. In this paper, we investigate the influence of training order (or data mixing) in multi-domain learning using the concept of Lie bracket of gradient vector fields. By analyzing the infinitesimal effects of changing the training order, we identify regions in the parameter space where altering the order between two training domains can benefit the target loss. We validate the predictions of our theoretical framework on the influence of training order (or data mixing) both on a toy example and bilingual LLM pre-training.
