Organizations: Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China · University of Chinese Academy of Sciences, Beijing, China
Training large language models (LLMs) requires choosing both a batch size and a parallel configuration. Existing systems make these decisions in isolation, tuning parallelism for throughput and batch size for convergence, but neither objective alone determines training efficiency. We present LIBRA, a lightweight runtime framework that co-tunes batch size and parallel configuration to minimize end-to-end time. LIBRA treats throughput and convergence as two noisy objectives and searches their joint space using parallel noisy expected hypervolume improvement (qNEHVI). To make this runtime search efficient, we propose hierarchical pruning, which removes infeasible and low-throughput parallel configurations through system-level performance estimation and then narrows batch-size candidates through critical-batch-size-aware convergence monitoring. We further design acquisition-guided parallel evaluation (AGPE), which evaluates surviving candidates concurrently across GPU groups in order of their acquisition values. On clusters of up to 256 GPUs, LIBRA reduces time-to-convergence by 31.1% on average over state-of-the-art methods, while runtime tuning accounts for only 0.3-3.5% of overall time.
Figures & tables
Model (target loss)
GPUs
Tuning goal
Throughput (K tok/s)
Tokens to target (B)
Time (h)
Code LLaMA 34B ( Lval→2.25 )
128
Throughput
154.16
70.93
127.80
Convergence
58.41
33.28
158.28
Thr.&Conv.
121.02
38.55
88.48
LLaMA-2 70B ( Lval→2.22 )
256
Throughput
82.35
88.76
299.42
Convergence
24.66
34.82
392.28
Thr.&Conv.
58.8
41.32
195.22
Table 1. Configurations selected under three tuning objectives: throughput, convergence, and both (Thr.&Conv.). All configurations reach the same target loss for a given model, so total training time is directly comparable.
Figure 1. Comparison of constant GBS, GBS ramp-up, GBS ramp-up with parallel tuning (PT), and joint co-tuning for LLaMA-2 13B. The curves show validation loss over E2E time and mark GBS changes and time to target. Validation loss over time for four policies. Joint co-tuning reaches the target first by selecting GBS and parallel configuration together.
Method
Parallelism Search
Convergence Optimization
GBS-Parallel Co-tuning
Online Tuning
Alpa ( Zheng et al., 2022 )
\ding 51
\ding 55
\ding 55
\ding 55
Aceso ( Liu et al., 2024 )
\ding 51
\ding 55
\ding 55
\ding 55
ASHA ( Li et al., 2020 )
\ding 55
\ding 51
\ding 55
\ding 51
BOHB ( Falkner et al., 2018 )
\ding 55
\ding 51
\ding 55
\ding 51
Handcrafted ramp-up ( Llama Team, 2024 )
\ding 55
\ding 51
\ding 55
\ding 55
Branched training ( Merrill et al., 2025 )
\ding 55
\ding 51
\ding 55
\ding 55
Table 2. Comparison of existing methods and LIBRA.
Figure 2. Overview of LIBRA’s key design. Overview of LIBRA's hierarchical pruning, Bayesian co-tuning, and acquisition-guided parallel evaluation workflow.
Figure 3. Overview of hierarchical pruning in LIBRA. The first level ranks layouts for each GBS and GPU count. The second follows the progress of distinct batch sizes from a common checkpoint. A four-stage diagram of performance estimation from sparse intra-batch measurements, throughput ranking and pruning, convergence monitoring from a shared checkpoint, and CBS-aware GBS pruning.
Workload
Search space
Measured profiles
Coverage
7B@64 GPUs
19,872
84
0.42%
13B@64 GPUs
11,264
68
0.60%
34B@128 GPUs
15,360
92
0.60%
70B@256 GPUs
24,576
98
0.40%
Table 3. Comparison of the feasible search space and measured profiles across workloads.
Figure 4. Evaluation placement and cost. (a) Schematic showing how AGPE reduces idle GPU bubbles relative to naive static first-fit placement. (b) Total GPU-hour cost of sequential evaluation, naive static first-fit placement, and AGPE. A GPU-group timeline compares naive static first-fit placement with AGPE, and a bar chart compares the GPU-hour cost of sequential evaluation, naive static first-fit placement, and AGPE across four workloads.
Role
Information
User inputs
Training task, GPU allocation, feasible parameter ranges, target validation loss
Fixed recipe
Model, data order, optimizer, learning-rate schedule, sequence length
Decisions
GBS and DP/TP/PP/CP/MBS configuration
Observations
Throughput, monitored loss progress, resource demand, completion status
Figure 5. E2E time to the target validation loss and runtime adaptation. (a) LLaMA-2 7B on different GPU counts. (b) Different models on 64/64/64/128/256 GPUs. (c) Stage time and how GBS changes across different stages. Three plots compare E2E time across GPU and model scales and show per-stage runtime adaptation for LLaMA-2 13B.
Figure 6. Comparison of HPO baselines and LIBRA. Grouped bars compare the E2E time of ASHA, BOHB, and LIBRA on LLaMA-2 7B and 13B.
Figure 7. Comparison of predicted throughput in LIBRA’s performance estimation (Sec. 4.2 ) with measured throughput. Measured and predicted throughput curves across representative profiling points for LLaMA-2 7B and 13B.
Model size
Search-space size (Full/Feasible/O1/O2)
Evaluation cost
Sequential
LIBRA
Reduction
7B
1.52M/19,872/96/7
67.2
18.4
72.6%
13B
1.52M/11,264/72/6
118.4
31.6
73.3%
34B
1.91M/15,360/88/7
211.2
54.8
74.1%
70B
2.44M/24,576/96/8
384.7
96.8
74.8%
Table 5. Search-space size and evaluation cost after hierarchical pruning and AGPE. Full, Feasible, O1, and O2 denote the unfiltered space and the spaces after the feasibility check, offline pruning, and online pruning. Cost is in GPU-hours; Reduction is relative to sequential evaluation.
Figure 8. Runtime overhead of LIBRA, measured as additional critical-path time divided by E2E training time across different models and GPU counts. The bars show profiling, monitoring, scheduling, and reconfiguration. Breakdown of LIBRA runtime overhead across GPU counts and model sizes.
Figure 9. Comparison of two multi-objective optimization methods: qNEHVI and Goodput. (a) The configurations selected by both methods lie on the Pareto frontier. (b) Normalized local time for the observed candidates at the checkpoint. A Pareto plot and normalized local-time bars show that short monitoring selects GBS 256 over the GBS 128 Goodput choice and rejects GBS 512.
Figure 10. Ablation study for LLaMA-2 7B and 13B. Grouped bars show normalized E2E time after removing qNEHVI, either pruning level, AGPE, or early stopping.