Training Data Selection with Gradient Orthogonality for Efficient Domain Adaptation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Xiyang, Tian, Yuanhe, Wang, Hongzhi, Song, Yan
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911427130818560
author Zhang, Xiyang
Tian, Yuanhe
Wang, Hongzhi
Song, Yan
author_facet Zhang, Xiyang
Tian, Yuanhe
Wang, Hongzhi
Song, Yan
contents Fine-tuning large language models (LLMs) for specialized domains often necessitates a trade-off between acquiring domain expertise and retaining general reasoning capabilities, a phenomenon known as catastrophic forgetting. Existing remedies face a dichotomy: gradient surgery methods offer geometric safety but incur prohibitive computational costs via online projections, while efficient data selection approaches reduce overhead but remain blind to conflict-inducing gradient directions. In this paper, we propose Orthogonal Gradient Selection (OGS), a data-centric method that harmonizes domain performance, general capability retention, and training efficiency. OGS shifts the geometric insights of gradient projection from the optimizer to the data selection stage by treating data selection as a constrained decision-making process. By leveraging a lightweight Navigator model and reinforcement learning techniques, OGS dynamically identifies training samples whose gradients are orthogonal to a general-knowledge anchor. This approach ensures naturally safe updates for target models without modifying the optimizer or incurring runtime projection costs. Experiments across medical, legal, and financial domains demonstrate that OGS achieves excellent results, significantly improving domain performance and training efficiency while maintaining or even enhancing performance on general tasks such as GSM8K.
format Preprint
id arxiv_https___arxiv_org_abs_2602_06359
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Training Data Selection with Gradient Orthogonality for Efficient Domain Adaptation
Zhang, Xiyang
Tian, Yuanhe
Wang, Hongzhi
Song, Yan
Machine Learning
Artificial Intelligence
Fine-tuning large language models (LLMs) for specialized domains often necessitates a trade-off between acquiring domain expertise and retaining general reasoning capabilities, a phenomenon known as catastrophic forgetting. Existing remedies face a dichotomy: gradient surgery methods offer geometric safety but incur prohibitive computational costs via online projections, while efficient data selection approaches reduce overhead but remain blind to conflict-inducing gradient directions. In this paper, we propose Orthogonal Gradient Selection (OGS), a data-centric method that harmonizes domain performance, general capability retention, and training efficiency. OGS shifts the geometric insights of gradient projection from the optimizer to the data selection stage by treating data selection as a constrained decision-making process. By leveraging a lightweight Navigator model and reinforcement learning techniques, OGS dynamically identifies training samples whose gradients are orthogonal to a general-knowledge anchor. This approach ensures naturally safe updates for target models without modifying the optimizer or incurring runtime projection costs. Experiments across medical, legal, and financial domains demonstrate that OGS achieves excellent results, significantly improving domain performance and training efficiency while maintaining or even enhancing performance on general tasks such as GSM8K.
title Training Data Selection with Gradient Orthogonality for Efficient Domain Adaptation
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2602.06359