MCP
arXivarXiv
Preprint
Published: July 29, 2026
cs.LG

SDO: Structure-Aware Data Organization for Efficient LLM Post-Training

Abstract
Post-training of large language models is expensive, and existing efficiency improvements mainly focus on selecting informative samples or designing training schedules. However, data organization itself is usually treated as a static preprocessing step: embedding-based grouping methods construct fixed partitions before training and cannot adapt to the evolving sample exposure during optimization. As a result, all samples receive similar exposure despite their different optimization needs, leading to redundant updates for some samples while leaving others under-optimized. To address this problem, we propose SDO (Structure-Aware Data Organization), a plug-and-play data organization framework with an exposure-driven feedback mechanism that organizes mini-batch composition and sample exposure according to representation-space structure. SDO operates epoch by epoch on frozen external embeddings, avoiding model warm-up training overhead: within each epoch, locality-aware batching forms coherent mini-batches via KNN neighborhood traversal; across epochs, exposure-balanced scheduling records per-sample participation and reduces the sampling probability of over-exposed samples to preserve long-term coverage. Across SFT, DPO, and GRPO, SDO accelerates convergence, with the largest gains observed in the early-to-mid phase, producing more coherent gradients and more balanced accuracy across question types without permanently excluding training samples.
0
AI overview
Reviews
Citation graph
References · 30
Structured
This preview uses generator v1; v2 is available

Overview

Addressing the problem that data organization in large language model post-training is often treated as a static preprocessing step and cannot adapt to the dynamic changes in sample exposure during optimization, this paper proposes SDO, a lightweight, pluggable structure-aware data organization framework that accelerates convergence under the three post-training paradigms of SFT, DPO, and GRPO without modifying the learning objective.

Data organization efficiency in LLM post-training and limitations of existing solutions

The post-training stage of large language models is costly, and existing efficiency-optimization work for post-training mainly falls into two directions: high-information sample selection and training schedule design.

The data organization step is currently usually treated as static preprocessing; embedding-based grouping methods build fixed data partitions before formal training begins, and cannot adapt to the constantly evolving sample exposure states during optimization. Under this mode, all samples receive similar amounts of training exposure, which mismatches the differentiated optimization needs of different samples, ultimately causing some samples to receive a large number of redundant updates while others remain under-optimized.

The core positioning of SDO as a lightweight, pluggable data organization framework

SDO is the lightweight, pluggable data organization framework for LLM post-training proposed in the paper. Its core implementation logic is to generate coherent mini-batches via KNN traversal on a frozen embedding space while dynamically balancing sample exposure across training epochs.

The framework's core design feature is that, without any modification to the original training objective, it achieves convergence acceleration under the three mainstream post-training paradigms of supervised fine-tuning (SFT), direct preference optimization (DPO), and generalized relative preference optimization (GRPO). The acceleration is most stable in the early and middle stages of training, and it also produces more coherent gradients, yielding more balanced per-cluster accuracy.

SDO's three-stage operating mechanism and the gradient conflict reduction theory

The complete workflow of the SDO framework consists of three sequential stages. The first stage is data preparation, in which all training samples are mapped into a fixed representation space, and a global exposure tracker is initialized for each sample to record its history of being optimized by the model. The second stage is exposure-tracked local batching, in which the framework organizes semantically neighboring samples into mini-batches with higher gradient coherence while continuously recording each sample's historical optimization exposure. The third stage is exposure-driven dynamic data pool reconstruction, in which the framework reconstructs the training data pool based on the accumulated exposure statistics of all samples, maintaining long-term diversity of the data distribution throughout the training cycle. You can use the three side-by-side regions in the figure to intuitively understand each stage's data flow and core operations.

Fig. 1: Overview of the SDO framework, showing the complete workflow of its three core stages: data preparation, exposure-tracked local batching, and dynamic data pool reconstruction.

For the effect of reducing gradient conflict, the paper provides theoretical support at the theorem level. Under the ideal pure-cluster batching setting, SDO's expected within-batch gradient conflict can be reduced by 2Φ(θ)2\Phi(\theta) compared with the randomly shuffled baseline, while the gradient norm is improved by ∣B∣−1∣B∣Φ(θ)\frac{|B|-1}{|B|}\Phi(\theta) relative to the baseline. In practical deployment, SDO approximates this ideal effect using a K-nearest-neighbor-based batching strategy; the approximation quality depends on the encoder's ability to map semantically similar samples to neighboring regions and on the cluster purity of the final generated batches. The trade-off between neighborhood size and exploration diversity will be elaborated in the later parameter trade-off analysis section.

Experimental validation of SDO under three post-training paradigms

The paper conducted controlled experiments on the three mainstream post-training paradigms of GRPO, DPO, and SFT, tracking core metrics across the early, middle, and late stages of training to verify SDO's actual gains in training efficiency. You can use the comparison curves immediately following to intuitively observe how the baseline methods and the methods with SDO evolve over training steps on the three tasks.

Fig. 2: Comparison of convergence curves under the three post-training paradigms; SDO converges faster than the baseline in all settings.

Gradient behavior analysis experiments show that the baseline method's mean within-batch gradient coherence is only 0.17, exhibiting a sparse, dispersed distribution, whereas with SDO the mean gradient coherence rises to 0.29, with large areas of high coherence emerging—a result fully consistent with the predictions of the gradient conflict reduction theory.

Results from the sample-cluster balance experiments across question types show that SDO improves the distributional balance of individual clusters at all matched training steps; at 5k training steps, all five metrics—B-20% accuracy, Gini coefficient, and max-min performance gap, among others—outperform the baseline, and the efficiency gains come at no cost in sample coverage, consistent with the coverage preservation guarantee given by the theory.

SDO's parameter trade-offs and final conclusions

The neighborhood size K is one of SDO's core hyperparameters, forming a clear trade-off between gradient conflict reduction and sample exploration diversity: a larger K improves the homogeneity of samples within a neighborhood and further reduces gradient conflict, but at the same time reduces the number of distinct sample combinations that can be generated per training epoch. Under the paper's experimental settings, K's performance exhibits the theoretically predicted U-shaped dependence; at the 3k training checkpoint, K=4 achieves the best result, while K=2 and K=8 both show clear declines.

The other core hyperparameter, the exposure update step size ∆τ, controls the rate at which the boundary between hot and cold sample sets is updated. When ∆τ is small, the boundary updates slowly and more samples remain in the fully held-out cold set, achieving the best average performance and sample-cluster balance at a given retention rate; when ∆τ is large, the boundary updates too quickly, pushing large numbers of samples into the hot set prematurely and directly destroying the distributional balance of sample clusters. The paper ultimately selected the most stable intermediate value, ∆τ=2, as the framework's default configuration.

The sample retention rate r directly controls the pruning strength of each training epoch, and its value has a decisive impact on cross-cluster balance. In the paper's validation results, a smaller r more strongly steers the optimizer's update direction toward previously under-explored sample regions, matching the negative-feedback prediction given by the theoretical proposition, and achieves the best all-dimensional per-cluster balance performance at r=0.1; when r is set too high, many over-visited samples are still retained, and the balancing effect is noticeably weakened.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first