Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Training Data Selection with Gradient Orthogonality for Efficient Domain Adaptation

About

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.

Xiyang Zhang, Yuanhe Tian, Hongzhi Wang, Yan Song• 2026

Related benchmarks

TaskDatasetResultRank
General Capability RetentionGSM8K, MMLU, ARC-C
GSM8K68.5
14
Domain AdaptationMedQA, LegalBench, FinQA
MedQA Score64.1
14
Showing 2 of 2 rows

Other info

Follow for update