Researchers submitting deep learning jobs to shared GPU clusters need runtime estimates to request time limits, choose hardware, and budget compute. Large language models (LLMs) offer a tempting shortcut: describe the job and ask. We introduce PreRun, a benchmark for predicting deep learning training and inference runtime from information available before execution. PreRun contains 801 training and 1,884 inference records of language and vision models collected on a GPU cluster, paired with workload configurations and explicitly defined timing targets. It also includes 64 text-generation configurations measured under standardized conditions, each in three separate program launches. We compare three LLMs (Qwen3.5-9B, GPT-OSS-120B, and Claude Opus 5.5) with regression baselines and evaluate analytical estimates on a supported forward-pass subset. On 16 held-out generation configurations, the open-weight LLMs underestimate latency by 90-99% on average without examples. Claude's zero-shot mean absolute error is 4.5 times that of a Random Forest fit on 32 configurations. Five labeled examples substantially reduce Claude's generation error, but their benefit varies across timing targets. We will open-source our data and evaluation pipeline upon acceptance.
Figures & tables
Figure 1: Overview of PreRun. GPU measurements produce workload–runtime records. Predictors receive pre-execution descriptions; fitting records supply regressor training and five-shot examples. Measured query runtimes enter scoring only. Error and coverage are evaluated separately for each timing target and collection.
Figure 2: An actual development example from controlled generation, using synthetic token inputs. Each launch excludes two warmups and averages ten timed calls. The reported runtime averages the three launch means; generation may stop before the output limit.
Timing target
Total used
Fitting
Development
Held-out
Historical training runs
Custom training loop (s)
586
465
121
–
Trainer-reported runtime (s)
215
170
45
–
Historical inference runs
Forward pass (ms)
643
484
159
–
Causal LM forward sum (ms)
667
502
165
–
Table 1: Data used in the reported comparisons. Historical rows count records; the controlled row counts configurations, each measured in three separate program launches. Fitting data supply learning and examples. Historical evaluation uses development records; controlled generation additionally has a held-out partition. A dash means no reported held-out evaluation. Trainer runtime is reported by Hugging Face Trainer; forward sums exclude other generation-loop work.
Training duration
Inference duration
Custom loop n=121
Trainer n=45
Forward pass n=159
Causal LM forward sum n=165
Encoder–decoder forward sum n=41
Generation call n=7
Method
MAPE
Within factor 2
MAPE
Within factor 2
MAPE
Within factor 2
MAPE
Within factor 2
MAPE
Within factor 2
MAPE
Within factor 2
Median
149.8
43
50.5
80
87.0
53
150.2
43
135.0
56
24.8
100
OLS
30.9
92
27.6
98
46.6
81
22.6
100
21.8
100
8.7
100
Ridge
30.9
92
27.6
98
46.9
80
22.7
100
21.9
100
6.6
100
Random Forest
36.4
84
33.0
100
34.5
89
7.6
100
7.1
100
6.6
100
Table 2: Historical development results ( n : records). Both metrics are percentages. MAPE: mean absolute percentage error on valid predictions (lower is better). Within factor 2: predictions between half and twice measured runtime (higher is better; failures count as misses). † : partial coverage; –: no predictions. Bold: lowest full-coverage MAPE, including rounding ties. Trainer: Hugging Face Trainer. MAE and coverage: Appendix E .
Method
MAE (ms)
MAPE (%)
Signed RE (%)
Within factor 2 (%)
Median
667.2
64.3
25.3
50.0
OLS
80.8
6.0
1.6
100.0
Ridge
83.3
6.2
1.6
100.0
Random Forest
59.9
5.0
1.5
100.0
LightGBM
64.6
4.6
3.1
100.0
LightGBM (leaf 20)
667.2
63.6
24.0
50.0
Table 3: Generation-call duration on the controlled holdout (16 configurations; full coverage). MAE: mean absolute error (ms/batch); MAPE: mean absolute percentage error; RE: signed relative error (positive: overprediction). Within factor 2 accepts 50–200 ms for a measured 100 ms. All except MAE are percentages. LightGBM uses minimum leaf size 4 unless specified. Bold: lowest MAE/MAPE.
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
Method
Coverage
MAE (s)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
121/121
486.64
149.80
69.84
95.85
42.98
OLS
121/121
163.39
30.86
21.54
13.81
91.74
Ridge
121/121
161.94
30.94
22.85
13.69
91.74
Random Forest
121/121
221.37
36.43
23.15
11.56
84.30
LightGBM (leaf 20)
121/121
236.91
45.65
23.23
27.48
86.78
NN lookup
80/121
274.53
53.29
14.95
24.29
53.72
Appendix
Table 4: Custom training loop, historical dev split. Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (s)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
45/45
336.62
50.54
47.65
13.43
80.00
OLS
45/45
163.32
27.56
23.95
14.14
97.78
Ridge
45/45
164.01
27.61
24.50
14.19
97.78
Random Forest
45/45
136.81
33.00
28.13
18.10
100.00
LightGBM (leaf 20)
45/45
162.12
27.52
25.85
10.64
100.00
NN lookup
43/45
210.49
45.74
37.88
14.96
84.44
Appendix
Table 5: Trainer-reported runtime, historical dev split. Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
159/159
20.11
87.01
70.29
30.78
52.83
OLS
159/159
10.64
46.56
34.95
13.95
81.13
Ridge
159/159
10.71
46.86
35.76
14.23
79.87
Random Forest
159/159
9.89
34.54
25.05
5.95
89.31
LightGBM (leaf 20)
159/159
5.63
29.44
16.41
9.95
92.45
NN lookup
159/159
15.30
62.61
45.61
14.15
73.58
Appendix
Table 6: Forward pass, historical dev split. Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
165/165
1482.99
150.23
72.40
109.17
43.03
OLS
165/165
419.85
22.59
23.01
6.22
100.00
Ridge
165/165
415.57
22.65
23.03
6.30
100.00
Random Forest
165/165
191.36
7.56
5.07
0.90
100.00
LightGBM (leaf 20)
165/165
186.04
7.33
5.61
0.32
100.00
NN lookup
0/165
–
–
–
–
0.00
Appendix
Table 7: Causal LM forward sum, historical dev split. NN lookup abstains on every query, so NN lookup + LightGBM equals LightGBM. Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
41/41
629.97
134.98
50.19
103.37
56.10
OLS
41/41
193.12
21.76
23.98
3.83
100.00
Ridge
41/41
187.87
21.86
23.63
4.11
100.00
Random Forest
41/41
85.86
7.12
6.29
2.15
100.00
LightGBM (leaf 20)
41/41
79.60
7.94
7.17
1.60
100.00
NN lookup
0/41
–
–
–
–
0.00
Appendix
Table 8: Encoder–decoder forward sum, historical dev split. NN lookup abstains on every query, so NN lookup + LightGBM equals LightGBM. Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
7/7
203.54
24.82
13.32
13.74
100.00
OLS
7/7
103.95
8.73
7.84
8.06
100.00
Ridge
7/7
68.23
6.62
6.54
4.18
100.00
Random Forest
7/7
72.25
6.59
6.19
4.99
100.00
LightGBM (leaf 20)
7/7
255.28
26.73
22.52
1.66
100.00
NN lookup
5/7
156.89
13.96
5.02
11.76
71.43
Appendix
Table 9: Generation call, historical dev split (seven runs from six configuration groups; exploratory). Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
16/16
667.24
64.29
53.90
25.32
50.00
OLS
16/16
80.84
5.96
4.63
1.59
100.00
Ridge
16/16
83.26
6.20
4.49
1.62
100.00
Random Forest
16/16
59.91
4.97
4.09
1.48
100.00
LightGBM
16/16
64.63
4.61
4.17
3.09
100.00
LightGBM (leaf 20)
16/16
667.24
63.60
53.33
23.98
50.00
Appendix
Table 10: Controlled holdout, all metrics (16 configurations, milliseconds per batch). LightGBM (leaf 4) is the setting used in the main results. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
16/16
659.16
66.13
46.68
28.41
50.00
OLS
16/16
103.66
7.94
7.24
3.20
100.00
Ridge
16/16
95.64
8.00
7.55
3.18
100.00
Random Forest
16/16
69.14
5.79
5.25
3.37
100.00
LightGBM (leaf 4)
16/16
82.94
6.39
4.90
1.50
100.00
LightGBM (leaf 20)
16/16
659.16
65.42
46.18
27.03
50.00
Appendix
Table 11: Controlled collection, development partition (16 configurations). One GPT-OSS zero-shot response is invalid. Coverage and within-factor-two accuracy use all 16 queries; its error metrics use the 15 valid predictions. Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
8/8
879.91
38.96
42.18
-38.96
50.00
OLS
8/8
127.04
6.49
4.49
0.88
100.00
Ridge
8/8
129.57
6.48
4.45
-0.82
100.00
Random Forest
8/8
92.83
5.04
3.55
1.17
100.00
LightGBM (leaf 4)
8/8
106.02
5.15
4.13
2.42
100.00
LightGBM (leaf 20)
8/8
891.42
39.62
42.80
-39.62
50.00
Appendix
Table 12: Controlled holdout, Qwen2.5-0.5B configurations only (eight configurations; exploratory). Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Median
8/8
454.57
89.61
82.89
89.61
50.00
OLS
8/8
34.64
5.44
4.65
2.31
100.00
Ridge
8/8
36.95
5.92
4.73
4.06
100.00
Random Forest
8/8
26.99
4.90
4.09
1.79
100.00
LightGBM (leaf 4)
8/8
23.24
4.06
4.17
3.76
100.00
LightGBM (leaf 20)
8/8
443.07
87.58
80.93
87.58
50.00
Appendix
Table 13: Controlled holdout, T5-small configurations only (eight configurations; exploratory). Errors are computed over valid predictions, and within-2 × accuracy counts failures as misses. Median APE and signed RE are percentages.
Method
Coverage
MAE (ms)
MAPE (%)
Med. APE
Signed RE
Within factor 2 (%)
Direct LightGBM
42/42
11.91
18.08
13.48
3.83
100.00
Analytical estimate
42/42
22.81
56.04
60.29
-56.04
26.19
Learned correction
42/42
2.75
14.45
6.78
3.62
100.00
Stacking
42/42
5.47
12.07
8.55
3.31
100.00
Appendix
Table 14: FP32 forward-pass study: 42 dev runs (40 text encoders and two ViT runs). All learned methods receive the same static features. Median APE and signed RE are percentages.
Contrast
Common n
Δ MAE (ms), 95% CI
Δ MAPE (pp), 95% CI
OLS − Median
16
[-827.28, -366.57]
[-84.69, -35.46]
Ridge − Median
16
[-822.54, -366.96]
[-84.52, -35.46]
Ridge − OLS
16
[-13.15, 17.22]
[-0.64, 1.08]
Random Forest − Median
16
[-849.59, -384.12]
[-84.44, -36.99]
Random Forest − OLS
16
[-83.89, 35.33]
[-4.53, 2.32]
Random Forest − Ridge
16
[-88.31, 33.84]
[-4.90, 2.24]
Appendix
Table 17: Paired error differences, part 1 of 3. CI: confidence interval; pp: percentage points. Intervals use 10,000 paired bootstrap samples of the 16 configurations and are not adjusted for multiple comparisons. Endpoints are rounded to two decimal places.
Contrast
Common n
Δ MAE (ms), 95% CI
Δ MAPE (pp), 95% CI
Qwen zero-shot − LightGBM (leaf 4)
16
[854.50, 1587.58]
[92.19, 95.82]
Qwen zero-shot − NN lookup
16
[810.53, 1571.31]
[85.86, 92.33]
Qwen five-shot − Median
16
[-261.85, 63.28]
[-37.11, 20.74]
Qwen five-shot − OLS
16
[270.97, 725.24]
[23.86, 84.88]
Qwen five-shot − Ridge
16
[272.34, 715.21]
[24.16, 84.16]
Qwen five-shot − Random Forest
16
[276.85, 761.43]
[24.52, 86.18]
Appendix
Table 18: Paired error differences, part 2 of 3. Definitions and interval construction follow Table 17 .
Contrast
Common n
Δ MAE (ms), 95% CI
Δ MAPE (pp), 95% CI
GPT-OSS five-shot − Qwen zero-shot
16
[-1084.46, -322.49]
[-64.78, -14.60]
GPT-OSS five-shot − Qwen five-shot
16
[-285.52, 331.01]
[-31.43, 26.38]
GPT-OSS five-shot − GPT-OSS zero-shot
16
[-944.29, -244.06]
[-55.97, -6.36]
Claude zero-shot − Median
16
[-599.32, -192.31]
[-72.54, -20.55]
Claude zero-shot − OLS
16
[68.07, 327.82]
[6.87, 18.88]
Claude zero-shot − Ridge
16
[60.38, 332.90]
[6.18, 19.13]
Appendix
Table 19: Paired error differences, part 3 of 3. Definitions and interval construction follow Table 17 .
Large language models cannot estimate how long their own tasks take. We investigate this limitation through four experiments across 68 tasks and four model families. Pre-task estimates overshoot actual duration by 4--7× (p<0.001), with models predicting human-scale minutes for tasks completing in seconds. Relative ordering fares no better: on task pairs designed to expose heuristic reliance, models score at or below chance (GPT-5: 18% on counter-intuitive pairs, p=0.033), systematically failing when complexity labels mislead. Post-hoc recall is disconnected from reality -- estimates diverge from actuals by an order of magnitude in either direction. These failures persist in multi-step agentic settings, with errors of 5--10×. The models possess propositional knowledge about duration from training but lack experiential grounding in their own inference time, with practical implications for agent scheduling, planning and time-critical scenarios.
Today's large language models (LLMs) increasingly interact with time: AI agents schedule tasks, coordinate with people and other AI systems, and even decide how long to think. Yet LLMs only ever encounter time secondhand---in descriptions rather than experience. Does this hinder their reasoning and decisions that involve time? Our paper traces this question from a model's knowledge to its actions through four successive evaluations. We find that models know the rules of time, which can be read, but struggle to predict durations, which must be lived; while they are highly accurate (92.0-97.5%) on a collection of questions built from the theorems of various time-related literatures, they underestimate their own completion times by up to 99.5% and fail to identify which tasks will take them longer to run. And while they are better at estimating durations of human tasks, their duration judgments change based on how an event is worded, magnifying similar human biases by up to 1.3×. Moving from estimation to action, we find that some LLMs disregard time costs completely when answering user queries, ignoring a 1,200-fold increase in wait time entirely. Together, our experiments reveal new challenges posed to LLMs as they navigate a dimension they cannot directly perceive, and highlight how their blind spots can even be simple cognitive abilities that humans take for granted.
Ryan Liu, David Lee, Icey Siyi Ai +3
Department of Computer Science, Princeton University · Department of Operations Research and Financial Engineering, Princeton University · Department of Industrial Engineering and Operations Research, Columbia University +3
As diffusion large language models (dLLMs) become more capable, they are moving from research settings to real-world serving, where request management (such as scheduling and resource allocation) relies on accurate estimation of per-request inference cost. However, common cost proxies fall short for dLLMs: output length ignores that one forward pass can unmask multiple tokens, and denoising-step count ignores the heterogeneous per-step costs. We observe that the block-autoregressive generation mechanism induces a two-dimensional execution structure over output blocks and within-block denoising steps, whereas these proxies collapse it into a scalar, discarding information essential for characterizing the cost. Motivated by this insight, we propose the Denoising Workload Surface (DWS), which preserves this two-dimensional block-step structure as a probability surface to weight the heterogeneous per-step costs. We then design a coarse-to-fine training scheme that enables a lightweight prompt-only predictor to accurately predict the complex DWS. This predictor runs efficiently even on a single CPU core, avoiding GPU contention with the serving model. Since DWS decouples request-dependent execution behavior from deployment-specific cost factors, the predictor transfers across hardware configurations without retraining. In real-world serving experiments, DWS reduces cost-prediction error by up to 2.50× over scalar-based predictors, while the DWS-guided shortest-job-first scheduler reduces end-to-end latency by up to 1.92× for online chatbots.
Haoyu Zheng, Fangcheng Fu, Binhang Yuan +6
Wuhan University · Shanghai Jiao Tong University · The Hong Kong University of Science and Technology +2