STParOpt: An End-to-End Framework for Execution-Aware Parallelism Inference and Optimized CUDA Migration
Meng Wang, Feiyang Wen, Jinshuo Liu, Weiran Pian, Xinya Liu, Juan Deng, Jeff Z. Pan
NeurIPS 2026
TL;DR. We infer loop parallelizability and optimization strategies from execution-aware representations of the C code, using predictive uncertainty to reconcile static and dynamic signals for automated C-to-CUDA migration.
Abstract. Automatically migrating serial C programs to CUDA is important for high-performance computing, yet remains challenging due to the partial observability of data dependencies: critical memory access patterns are difficult to infer from source code alone. Static analyses are often conservative on irregular and pointer-intensive loops, while LLM-based approaches lack explicit execution evidence for memory-access-dependent optimization decisions. To address these limitations, we propose STParOpt, an execution-aware framework that combines static program structure with runtime memory-access features for joint parallelism and optimization inference. STParOpt augments static program graphs with stride-level execution features via cross-attention and uses entropy-guided fusion to adaptively weight static and dynamic evidence. Experiments on standard HPC benchmarks demonstrate that STParOpt outperforms both compiler-based and LLM-based baselines on parallelism detection and CUDA code generation. Notably, STParOpt achieves 96.63 ± 0.23% parallelism detection accuracy across three seeds and 86.1% end-to-end generation correctness, surpassing the strongest compared baselines by 2.06 pp and 11.4 pp, respectively.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) Scientific Claims & Findings This work addresses the central challenge of automated C-to-CUDA migration for irregular HPC loops. The paper proposes STParOpt, a two-stage framework that fuses static program graphs and GDB runtime traces via entropy-guided weighting, jointly predicting loop parallelism and 5 CUDA optimization rules to constrain LLM kernel generation. The claims of the paper are backed by extensive benchmarks: STParOpt hits 96.4% parallel detection accuracy and 86.1% CUDA generation correctness, outperforming compilers, GNNs and LLMs by notable margins. Ablation and disagreement analysis verify that combining static-dynamic signals especially resolves ambiguous pointer loops. All three reviewers confirm the technical pipeline is well-motivated for real HPC porting pain points.
(b) Main Strengths Original uncertainty-driven fusion design: entropy gate prioritizes runtime evidence for ambiguous loops, validated with dedicated conflict sample analysis. Complete evaluation: large OMP_Serial detection dataset + Polybench/Rodinia generation suite, covering polyhedral, graph and LLM baselines with full ablation tests. Great reproducibility: full architecture, hyperparameter, GDB script and LLM prompt details provided in appendix. Practical value: reduces false parallelization of sequential loops and improves GPU kernel speed on memory-bound workloads. Clear structure, layered methods and supplementary case studies to illustrate core logic.
(c) Main Weaknesses & Gaps Statistical inconsistency: text uses single seed while checklist claims 3-run averaging; no std dev for key metrics, hard to judge significance of small performance gains. Underspecified cross-attention: single-key softmax mathematically degenerates, lacks control ablation to prove its value. Profiling overhead & limited generalization: GDB tracing brings heavy offline cost; all tests on small benchmark kernels, no industrial/multi-kernel application results. Flawed speedup evaluation: many human reference kernels underperform serial code, leading to inflated relative speedup values without geometric mean filtering. Missing critical details: undefined multi-task loss formulas, incomplete LLM baseline configs, no annotation agreement for optimization labels. Overstated "zero human intervention" claim; tracing requires handwritten input harnesses, and only 3 fixed input patterns are tested with no OOD dependency risk analysis. Limited CUDA optimization coverage, no proof of disjoint training/test datasets.
(d) Required Revisions to Shift Accept Odds Up Authors must fully resolve all below items in rebuttal to lift this from borderline accept: Fix seed contradiction, report mean ± std for all main result tables to confirm statistical significance of performance improvements. Clarify cross-attention implementation, add ablation comparing it against simple gated residual projection. Add profiling scalability analysis, discuss workarounds for brittle GDB/tree-sitter parsing in complex codebases. Supply multi-kernel/industrial code case studies, confirm no overlapping loops between training and generation datasets. Recalculate geometric mean speedup, filter degenerate slow human references, add STParOpt-no-opt to core generation table. Complete missing specs: full loss math, unified LLM settings across all baselines, optimization label annotation & inter-rater agreement. Tone down "no human intervention" wording; add experiments testing model robustness to unseen input patterns with hidden dependencies. Acknowledge limited optimization scope and outline multi-GPU/advanced tiling future work.
Final justification
After reviewing all three reviewers’ evaluations, full author rebuttal, supplementary experimental results, and follow-up exchanges between reviewers and authors, my final recommendation is Accept. All core critical weaknesses raised by the 3 reviewers have been fully resolved with rigorous supplementary experiments, formal mathematical clarifications, and manuscript revision plans; remaining limitations are minor and do not undermine the paper’s core novelty or practical value.
Read meta-review
Meta-review
(a) Scientific Claims & Findings This work addresses the central challenge of automated C-to-CUDA migration for irregular HPC loops. The paper proposes STParOpt, a two-stage framework that fuses static program graphs and GDB runtime traces via entropy-guided weighting, jointly predicting loop parallelism and 5 CUDA optimization rules to constrain LLM kernel generation. The claims of the paper are backed by extensive benchmarks: STParOpt hits 96.4% parallel detection accuracy and 86.1% CUDA generation correctness, outperforming compilers, GNNs and LLMs by notable margins. Ablation and disagreement analysis verify that combining static-dynamic signals especially resolves ambiguous pointer loops. All three reviewers confirm the technical pipeline is well-motivated for real HPC porting pain points.
(b) Main Strengths Original uncertainty-driven fusion design: entropy gate prioritizes runtime evidence for ambiguous loops, validated with dedicated conflict sample analysis. Complete evaluation: large OMP_Serial detection dataset + Polybench/Rodinia generation suite, covering polyhedral, graph and LLM baselines with full ablation tests. Great reproducibility: full architecture, hyperparameter, GDB script and LLM prompt details provided in appendix. Practical value: reduces false parallelization of sequential loops and improves GPU kernel speed on memory-bound workloads. Clear structure, layered methods and supplementary case studies to illustrate core logic.
(c) Main Weaknesses & Gaps Statistical inconsistency: text uses single seed while checklist claims 3-run averaging; no std dev for key metrics, hard to judge significance of small performance gains. Underspecified cross-attention: single-key softmax mathematically degenerates, lacks control ablation to prove its value. Profiling overhead & limited generalization: GDB tracing brings heavy offline cost; all tests on small benchmark kernels, no industrial/multi-kernel application results. Flawed speedup evaluation: many human reference kernels underperform serial code, leading to inflated relative speedup values without geometric mean filtering. Missing critical details: undefined multi-task loss formulas, incomplete LLM baseline configs, no annotation agreement for optimization labels. Overstated "zero human intervention" claim; tracing requires handwritten input harnesses, and only 3 fixed input patterns are tested with no OOD dependency risk analysis. Limited CUDA optimization coverage, no proof of disjoint training/test datasets.
(d) Required Revisions to Shift Accept Odds Up Authors must fully resolve all below items in rebuttal to lift this from borderline accept: Fix seed contradiction, report mean ± std for all main result tables to confirm statistical significance of performance improvements. Clarify cross-attention implementation, add ablation comparing it against simple gated residual projection. Add profiling scalability analysis, discuss workarounds for brittle GDB/tree-sitter parsing in complex codebases. Supply multi-kernel/industrial code case studies, confirm no overlapping loops between training and generation datasets. Recalculate geometric mean speedup, filter degenerate slow human references, add STParOpt-no-opt to core generation table. Complete missing specs: full loss math, unified LLM settings across all baselines, optimization label annotation & inter-rater agreement. Tone down "no human intervention" wording; add experiments testing model robustness to unseen input patterns with hidden dependencies. Acknowledge limited optimization scope and outline multi-GPU/advanced tiling future work.
Final justification
After reviewing all three reviewers’ evaluations, full author rebuttal, supplementary experimental results, and follow-up exchanges between reviewers and authors, my final recommendation is Accept. All core critical weaknesses raised by the 3 reviewers have been fully resolved with rigorous supplementary experiments, formal mathematical clarifications, and manuscript revision plans; remaining limitations are minor and do not undermine the paper’s core novelty or practical value.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper targets automatic migration of serial C loops to CUDA, framing the core difficulty as partial observability of data dependencies: whether a loop is parallelizable, and which GPU optimizations apply, often cannot be settled from source text because the deciding factor is runtime memory access behavior. The authors propose STParOpt, a two-stage pipeline. In stage one, a static Multi-dimensional Program Graph (encoding AST, data-flow, and control-flow relations, processed with an RGCN) is enriched with dynamic stride features collected via GDB instrumentation over three input patterns; the two signals are combined through an entropy-guided gate that leans on the dynamic branch when the static branch's predictive entropy over parallelism type is high. A hierarchical decision head then predicts parallelism type (independent, reduction, sequential) and, for parallelizable loops, a set of five binary optimization strategies. In stage two, the predicted label and optimization directives are passed as structured constraints to an LLM (Qwen3-Coder) that emits the CUDA kernel. On OMP_Serial the method reports 96.4% detection accuracy and 0.831 macro-F1 for strategy prediction, and on a 79-program Polybench/Rodinia generation suite it reports 86.1% end-to-end correctness, ahead of compiler, learning-based, and LLM detection-then-generation baselines. Ablations remove each component, a disagreement analysis isolates cases where static and dynamic predictions differ, and case studies illustrate handling of indirect-index and loop-carried-dependence loops.
Strengths and weaknesses
On the positive side, the problem is real and the framing is clean. Automatic C-to-CUDA migration of legacy HPC code is a long-standing pain point, and the observation that parallelizability and optimization choice hinge on runtime access patterns that static views abstract away is a sensible motivation for bringing dynamic evidence into the loop. Using static predictive entropy as a proxy for dependency ambiguity, and as the signal that decides how much to trust the dynamic branch, is a reasonable and lightweight idea. The disagreement analysis in Table 4 is the most convincing part of the paper: it directly tests the core hypothesis by showing that the disagreement group carries much higher static entropy (0.89 vs 0.31) and that fusion buys +14.9 pp over static-only precisely on those ambiguous cases. That is a well-designed experiment that ties the mechanism to where it is supposed to help.
The empirical coverage on the detection side is also strong. The authors compare against polyhedral and profiling tools (Pluto, PPCG, DiscoPoP), learning-based methods (Graph2Par, AutoParLLM), and four LLMs under base/static/dynamic/s&d configurations, retraining the learning baselines on the same splits. The stratification by affine, non-affine, and pointer-intensive loops (Figure 2, Table 8) is informative and shows the expected collapse of polyhedral methods on irregular patterns. Ablations cover SPE, the entropy fusion, the stop-gradient, and a shuffled-trace control, and the shuffled-trace result is a nice touch because it rules out the gains being explained by distributional statistics rather than ordered access patterns. Reproducibility is handled well: architecture, hyperparameters and their search ranges, prompts, and the GDB collection script are all documented.
That said, a few issues keep me from being more enthusiastic. The most important is statistical reporting. Section 4.3 and Appendix B.3 both state that all experiments use a single fixed seed of 42, while the checklist (item 7) states that results are averaged over three runs with different seeds. These cannot both be true, and none of the main tables report standard deviations or confidence intervals. Some of the headline gaps are small (for instance 96.4% vs 94.4% for GPT-4.1-s&d on detection, a 2.0 pp difference), so without variance I cannot tell whether they are robust. For a use-inspired paper whose contribution is largely empirical, this needs resolving.
A second concern is that the headline mechanism is described more grandly than its overall effect warrants. The entropy gate is a scalar logistic function of the static entropy, and replacing it with plain concatenation costs only 1.4 pp accuracy overall (Table 3); most of the lift comes from the dynamic features themselves (SPE removal costs 4.3 pp). That is fine, but the paper sells the work as "uncertainty-driven evidence reconciliation" as if the gate were the centerpiece, when the data suggest the dynamic features do most of the work and the gate matters mainly on the ambiguous subset. I would prefer the narrative track the ablation.
Relatedly, the cross-attention component is, as written, degenerate. Equation 3 and the surrounding text say each variable node attends to exactly one stride embedding dx, but attention over a single key/value reduces to returning that value, so CrossAttn collapses to a gated residual projection of dx. The justification that "the attention weight serves as a scalar gate" does not hold when the softmax is over one element (the weight is always 1). Either there is something about the construction I am missing (multiple stride embeddings per variable, perhaps across the K patterns or T iterations), or the cross-attention label oversells a simple gated add. This should be clarified, ideally with a control against the simpler formulation.
The generation results are weaker than the detection results, and the speedup analysis in particular should be read with care. The generation set is 79 programs, which the authors acknowledge. More concerning, in Table 9 several human-crafted references are themselves slower than the serial baseline (durbin, trisolv, myocyte, and jacobi-1d all have human speedup at or below 0.02), yet STParOpt records very large relative speedups against them (durbin S = 239.53). A large ratio against a reference that underperforms serial does not demonstrate expert-level kernels; it mostly reflects that those kernels are poorly suited to GPU or that the reference port is bad. Aggregating arithmetically over such ratios can be misleading, and a geometric mean plus separate handling of the degenerate cases would give a fairer picture.
Finally, a few framing and provenance points. The "without human intervention" phrasing recurs, but the pipeline needs executable harnesses with representative inputs to collect traces, both at training time and, importantly, at inference time for a new loop; for genuinely un-runnable legacy code that is non-trivial human work, and the claim should be scoped to the inference-time reasoning. The five optimization-strategy labels are central to half of Table 1 and to Table 7, yet the annotation protocol and any agreement measurement are not described; only the parallelism labels are said to be manually verified. And since OMP_Serial is built from real OpenMP benchmarks, I would like explicit confirmation that no loops overlap with the Polybench/Rodinia generation set on which disjointness is claimed.
Questions
-
Section 4.3 and Appendix B.3 state a single fixed seed (42), but checklist item 7 states results are averaged over three seeds. Which is correct? Please report per-cell means and standard deviations for at least the headline comparisons in Tables 1, 2, and 3. Criterion: if three-run means with std confirm the small gaps over the strongest baselines (the +2.0 pp over GPT-4.1-s&d on detection, the +14.9 pp on the disagreement subset) are stable, I would raise my score; if the numbers are single-seed with no variance, I would lower it.
-
Equation 3 and the text say each variable node attends to exactly one stride embedding dx, which makes a softmax over a single key trivial (weight 1) and reduces CrossAttn to a gated residual projection of dx. Could you clarify what the attention is actually over (a single dx, or the set of stride embeddings across variables or patterns), and add a control where cross-attention is replaced by a plain gated residual h_static + g * W * dx? If the simpler variant matches, the cross-attention framing should be revised.
-
In Table 9, several human references are slower than serial (durbin, trisolv, myocyte, jacobi-1d at or below 0.02 speedup), yet STParOpt shows very large S against them. Please report geometric-mean relative speedup and separately analyze or exclude kernels whose reference underperforms serial. Does the "exceeds human-crafted on 16/17" claim survive under geometric mean and after removing degenerate references?
-
How were the five strategies (MC, WR, TL, SM, ST) annotated across the roughly 4,000 dynamically annotated loops, and was inter-annotator agreement measured? Separately, STParOpt-no-opt currently appears only in the speedup analysis; please add it to Table 2 (CR/ER/Co/Fast) so the contribution of optimization directives to correctness, not just speedup, is isolated.
-
The dynamic branch uses K = 3 fixed synthetic modes (sequential, alias, random). How sensitive are detection decisions to the choice of patterns, not just their count, and what happens when a loop's true runtime pattern matches none of the three? Also, since OMP_Serial is built from real OpenMP benchmarks, can you confirm there is no loop-level overlap between the OMP_Serial training split and the Polybench/Rodinia generation set?
Limitations
Yes, for the most part. The Threats to Validity section and the checklist cover benchmark coverage, offline trace overhead, the small generation set, and linear scaling of profiling. Three additions would help. First, the statistical-significance statement in the checklist should be reconciled with the single-seed claim in the body, and variance reported (see my questions). Second, the "no human intervention" framing should be scoped: trace collection needs executable harnesses with representative inputs at inference time, which is itself effort for un-runnable legacy code. Third, the relative-speedup aggregates are affected by kernels whose human reference underperforms serial (Table 9); this should be stated as a limitation of the reported speedups.
Final justification
My initial rating was 4. I raise to 5 based on rebuttal and discussion.
Resolved: (1) Seed contradiction corrected; three-seed means with SD meet the criterion I stated (accuracy beats GPT-4.1-s&d in every seed, disagreement-subset gain 15.21 ± 0.18 pp). (2) Degenerate Eq. 3 acknowledged; the control shows cross-attention beats gated residual across seeds. (3) Geometric-mean speedups with degenerate references excluded (30.70x vs 20.80x human) sustain the performance claim; 16/17 claim removed. (4) Annotation kappa 0.864/0.925, no-opt added to Table 2, overlap audited, overclaims narrowed. (5) In discussion, the Table 9 vs rebuttal no-opt discrepancy, pass@3 protocol, and fallback status were clarified. [Edit to match their answers.]
Unresolved, weighed as minor: 79-program generation set; only 3/8 hidden dependencies caught under default input patterns; corrections exist only in rebuttal pending revision.
Weighting: the statistical and methodological issues drove my original hesitation and carried the most weight; the remaining scope limitations are acknowledged and acceptable for a use-inspired paper. Camera-ready must incorporate all corrections.
Formatting concerns
N/A
1 comment
Rebuttal
Thank you for emphasizing reproducibility and evaluation rigor. We address each concern below.
Q1. Three-seed stability and complete repeated-run reporting (correction and supplementary results)
The score-critical results are stable: all three accuracies (96.41/96.62/96.87%) exceed GPT-4.1-s&d (94.4%). On disagreement cases, STParOpt gains 15.21 ± 0.18 pp over static and 18.16 ± 0.18 pp over dynamic.
The seed-42 sentence mistakenly describes one constituent run as the protocol. All trainable models and ablations use . We report mean ± sample standard deviation above; the revision will use this protocol throughout.
Table 1. Main prediction results
- Detection: Acc. 96.63 ± 0.23; IND/RED/SEQ-F1 95.92 ± 0.36 / 98.41 ± 0.11 / 96.37 ± 0.49; Macro-F1 96.90 ± 0.19.
- Optimization: Macro-F1 84.05 ± 0.43; MC/WR/TL/SM/ST-F1 88.65 ± 0.29 / 86.89 ± 0.59 / 76.88 ± 0.60 / 84.02 ± 0.93 / 83.83 ± 1.06.
Table 3. Ablation results
| Method | Acc. | Par Macro-F1 | OPT Macro-F1 |
|---|---|---|---|
| STParOpt | 96.63 ± 0.23 | 96.90 ± 0.19 | 84.05 ± 0.43 |
| w/o SPE | 91.55 ± 0.49 | 91.55 ± 0.61 | 76.62 ± 0.51 |
| w/o entropy fusion | 95.05 ± 0.04 | 95.45 ± 0.11 | 80.72 ± 0.98 |
| w/o stop-gradient | 95.55 ± 0.16 | 95.88 ± 0.12 | 81.61 ± 0.19 |
| shuffled trace | 94.53 ± 0.47 | 94.92 ± 0.37 | 79.20 ± 0.27 |
| mean pooling | 95.10 ± 0.08 | 95.46 ± 0.11 | 80.01 ± 1.53 |
| gated residual | 95.45 ± 0.10 | 95.75 ± 0.10 | 80.31 ± 0.93 |
| concatenation + projection | 95.94 ± 0.13 | 96.28 ± 0.19 | 81.43 ± 0.81 |
Table 4. Static–dynamic evidence analysis
| Group | Size | Entropy | Static (%) | Dynamic (%) | STParOpt (%) |
|---|---|---|---|---|---|
| Agreement | 2420.0 ± 16.1 | 0.314 ± 0.011 | 98.46 ± 0.15 | 98.00 ± 0.08 | 99.82 ± 0.09 |
| Disagreement | 837.0 ± 16.1 | 0.872 ± 0.011 | 72.20 ± 1.04 | 69.25 ± 0.81 | 87.41 ± 0.93 |
| Overall | 3257 | 0.457 ± 0.009 | 91.71 ± 0.38 | 90.62 ± 0.28 | 96.63 ± 0.23 |
Appendix Table 7. Per-strategy STParOpt results
| Strategy | Precision (%) | Recall (%) | F1 (%) | Acc. (%) |
|---|---|---|---|---|
| Memory Coalescing | 89.55 ± 0.14 | 87.76 ± 0.44 | 88.65 ± 0.29 | 94.00 ± 0.14 |
| Shared Memory | 81.91 ± 0.28 | 86.24 ± 1.65 | 84.02 ± 0.93 | 98.73 ± 0.06 |
| Warp Reduction | 89.87 ± 1.65 | 84.12 ± 1.12 | 86.89 ± 0.59 | 96.37 ± 0.19 |
| Stream | 78.11 ± 1.83 | 90.48 ± 0.00 | 83.83 ± 1.06 | 99.77 ± 0.02 |
| Tiling | 79.84 ± 1.72 | 74.19 ± 2.30 | 76.88 ± 0.60 | 98.18 ± 0.04 |
Appendix Table 8. Results by loop type
| Method | Aff F1 (%) | Aff Acc. (%) | Non-Aff F1 (%) | Non-Aff Acc. (%) | Pointer F1 (%) | Pointer Acc. (%) |
|---|---|---|---|---|---|---|
| Pluto | 33.54 | 97.98 | 25.66 | 47.84 | 26.82 | 56.71 |
| DiscoPoP | 39.02 | 98.77 | 30.27 | 47.84 | 38.55 | 77.19 |
| Graph2Par | 45.63 | 94.39 | 50.69 | 82.53 | 41.74 | 64.22 |
| AutoParLLM | 66.95 | 95.85 | 72.10 | 87.26 | 71.02 | 92.40 |
| Qwen-Coder-base | 65.32 | 94.50 | 70.97 | 87.58 | 69.61 | 91.59 |
| Qwen-Coder-s&d | 71.72 | 96.07 | 77.43 | 92.79 | 75.10 | 91.06 |
| STParOpt | 83.64 ± 0.45 | 97.27 ± 0.76 | 87.61 ± 0.35 | 95.99 ± 0.42 | 86.46 ± 0.43 | 96.84 ± 0.77 |
Appendix Table 8 has been recomputed using the standard Micro-F1 formula, , correcting an aggregation error in the original results. Accuracy, method rankings, and conclusions are unchanged. We re-audited all other reported metrics against their underlying records and found no further discrepancies.
Table 2 uses exact pass@3 aggregates because generation APIs provide no fixed seed; across-seed standard deviation does not apply.
Every paired Table 3 comparison favors STParOpt in all three seeds. Given , mean ± sample standard deviation and the consistent direction are the primary evidence.
Q2. Contribution of entropy-aware fusion (clarification and claim revision)
We agree that the narrative overstates entropy fusion. Removing SPE reduces accuracy by 5.08 pp, while removing entropy fusion reduces it by 1.58 pp. The revised claim presents entropy fusion as a targeted mechanism for conflicting evidence, rather than the sole source of the gain.
Q3. Pattern-level cross-attention and aggregation controls (correction and supplementary ablation)
The reviewer is correct that Eq. 3 degenerates as written. The implementation forms ; per head, the static query is , while , with softmax over the three patterns. All reported results use this implementation.
| Pattern aggregation | Detection Acc. (%) | Detection Macro-F1 (%) | OPT Macro-F1 (%) |
|---|---|---|---|
| Mean pooling | 95.10 ± 0.08 | 95.46 ± 0.11 | 80.01 ± 1.53 |
| Gated residual | 95.45 ± 0.10 | 95.75 ± 0.10 | 80.31 ± 0.93 |
| Concatenation + projection | 95.94 ± 0.13 | 96.28 ± 0.19 | 81.43 ± 0.81 |
| Pattern-level cross-attention | 96.63 ± 0.23 | 96.90 ± 0.19 | 84.05 ± 0.43 |
Cross-attention outperforms gated residual in all three seeds on both metrics. These completed results will replace Eq. 3 and extend Table 3.
Q4. Geometric-mean speedup and slow Human references (supplementary analysis)
Nine of the 48 Human CUDA references do not outperform serial execution. We excluded them and recalculated all methods on the same remaining 39-benchmark subset.
| Method | Geometric mean vs. serial |
|---|---|
| PPCG | |
| Qwen3-Coder | |
| Claude-4.5-Sonnet | |
| STParOpt-no-opt | |
| Human CUDA | |
| STParOpt |
STParOpt remains faster than Human CUDA and faster than no-opt. Thus, the conclusion does not depend on the slow Human references.
Separately, we report the completed unfiltered analysis below; Table 2 will include these geometric-mean speedups. Each value is computed over that method’s outputs passing Co.
| Method | Geometric mean vs. serial |
|---|---|
| PPCG | |
| CodeRosetta | |
| BabelTower | |
| LASSI | |
| Qwen-gen | |
| GPT-4.1-gen | |
| Claude-gen | |
| Qwen-det&gen | |
| GPT-4.1-det&gen | |
| Claude-det&gen | |
| STParOpt-no-opt | |
| STParOpt |
The high geometric mean reflects gains across multiple optimization-sensitive kernels, not only the 2mm result:
| Kernel | STParOpt-no-opt | STParOpt | Ratio |
|---|---|---|---|
| 2mm | |||
| 3mm | |||
| symm | |||
| deriche |
Both variants are Co-valid here and differ only in optimization directives; some baselines lack valid timings. We limit speedup claims to these 79 diverse PolyBench/Rodinia workloads with verified serial/CUDA pairs.
Q5. Figure 3 subset and “16/17” claim (clarification and claim revision)
The 17 programs were selected only for visualization; Appendix Table 9 reports all 48. The revised text removes the “16/17” claim and bases the conclusion on full-set results.
Q6. Optimization-label annotation agreement (supplementary analysis)
We used multi-LLM pre-labeling followed by human verification. Three annotators audited 1,000/13,841 loops: exact agreement was 89.7%, with macro/micro of 0.864/0.925. GPT-4.1, Claude 4.5 Sonnet, and Qwen3-Coder voted per label; annotators reviewed blindly, and disagreements were resolved by two-of-three vote plus discussion. The completed definitions and protocol are summarized here and will be added to the revision.
Q7. STParOpt-no-opt in Table 2 (supplementary experiment)
We report the completed STParOpt-no-opt experiment above; it will be added to Table 2. It uses the same parallelism predictions and generation backbone but removes the optimization directives.
| Method | CR (%) | ER (%) | Co (%) | Fast (%) |
|---|---|---|---|---|
| STParOpt-no-opt | 89.9 | 87.3 | 84.8 | 77.2 |
| STParOpt | 89.9 | 88.6 | 86.1 | 81.0 |
Optimization directives preserve CR while improving ER and Co by 1.3 pp and Fast by 3.8 pp.
Q8. Input-pattern sensitivity and hidden dependencies (supplementary experiment)
Detection can be sensitive to pattern choice when dependencies are input-triggered. The three fixed modes detected 3/8 hidden-dependency cases, while expanded inputs detected 7/8; full-test accuracy was 94.0%. If no tested pattern triggers the dependency, the dynamic branch may miss it. A conservative fallback eliminated the remaining unsafe decision by abstaining on 10/50 cases.
Q9. Training–generation dataset overlap (supplementary audit)
A three-level audit found no systematic leakage. We checked file/function names and normalized hashes of tree-sitter-extracted loops (comments removed; identifiers/literals normalized; whitespace collapsed). Manual review found all 14 matches (0.101%) were short idioms, not shared benchmark kernels. The revision will disclose them and remove “completely disjoint.”
Q10. Human-intervention boundary (claim revision)
The revised wording replaces “without human intervention” with “automated given an executable harness and representative inputs,” because preparing these inputs may require human effort for legacy code.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes STParOpt, an execution-aware framework for loop-level C-to-CUDA migration. It combines static program graphs with GDB-collected runtime memory-access traces to predict loop parallelism and CUDA optimization strategies, then uses these predictions as structured constraints for LLM-based CUDA generation.
Strengths and weaknesses
Strengths
- The proposed components are well aligned with the stated challenges: static graphs for structure, runtime traces for dependency ambiguity, entropy-guided fusion for heterogeneous evidence, and optimization directives for LLM generation.
- The paper includes main results, ablations, irregular-loop analysis, static-dynamic disagreement analysis, optimization-directive analysis, and trace-length sensitivity. Even though some experimental settings need clarification, the evaluation is broader than a single main-table comparison.
Weaknesses
- Several details covering both experimental settings and methods are unclear. See the questions below for specific points.
- STParOpt uses runtime traces collected from a small number of input patterns and iterations to resolve dependency ambiguity. While this is useful empirically, these traces are input-specific evidence rather than a sound dependence proof. The paper does not sufficiently analyze how sensitive the method is to input-pattern choice or whether it may incorrectly parallelize loops whose dependencies appear only under unseen inputs.
Questions
- In Eq. 3, each variable node appears to attend to exactly one stride embedding d_x. Under standard softmax attention, this would make the attention weight trivially equal to one, reducing the module to a residual projection of d_x. Do the authors actually keep multiple trace embeddings per variable, or is CrossAttn implemented as a sigmoid-style gate?
- Eq. 8 introduces several loss terms, but their exact definitions are not specified. What are the exact forms of L_par, L_static, L_dynamic, and L_opt in Eq. 8?
- Please specify the exact LLM inference settings for Table 1, including model versions, whether reasoning/thinking modes were enabled, and the prompts/output schema for optimization-strategy prediction.
- What exact model or LLM backend is used for the baselines (especially LASSI) in Table 2? Are the LLM setting exactly the same with STParOpt?
- In Table 2, Since Fast only reports the fraction of cases with speedup ≥ 1, it would be useful to also report (geometric) mean speedup.
- How are the 17 representative benchmarks in Figure 3 selected?
Limitations
yes
Final justification
The rebuttal and follow-up addressed most of my technical concerns, including the cross-attention formulation, loss definitions, LLM settings, deployment risk model, and whether the LLM baselines were sufficiently up to date. The added GPT-5.6-Sol and DeepSeek-V4-Pro experiments further strengthen the empirical evidence, with consistent gains in correctness, Fast rate, and geometric-mean speedup over same-backbone baselines.
My remaining concern is practical deployment: STParOpt remains an empirically validated migration assistant rather than a sound C-to-CUDA transformation system. Nevertheless, the experimental performance is convincing, so I have raised my score.
Formatting concerns
no
5 comments
Rebuttal
Thank you for the careful technical review. Below, we address your concerns by clarifying the method formulation, experimental protocol, and validity boundary of execution-based evidence, which materially improves the paper’s technical precision.
Q1. Input-specific traces and hidden dependencies (clarification and supplementary experiment)
We agree that finite runtime traces are input-specific evidence rather than a formal dependence proof. In STParOpt, they complement static structure for empirical loop classification. In a new 50-case stress test, expanded branch- and alias-triggering patterns achieved 94.0% accuracy, with only a few extreme cases remaining input-sensitive. The revised wording uses “reduce dependency ambiguity,” and the method retains serial execution when the evidence is insufficient.
Q2. Pattern-level cross-attention (correction and supplementary ablation)
The reviewer is correct that Eq. 3 degenerates as written. The implementation forms ; per head, the static query is , while , with softmax over the three patterns. It is not a sigmoid gate, and all reported results use this implementation.
| Pattern aggregation | Detection Acc. (%) | OPT Macro-F1 (%) |
|---|---|---|
| Mean pooling | 95.10 ± 0.08 | 80.01 ± 1.53 |
| Gated residual | 95.45 ± 0.10 | 80.31 ± 0.93 |
| Concatenation + projection | 95.94 ± 0.13 | 81.43 ± 0.81 |
| Pattern-level cross-attention | 96.63 ± 0.23 | 84.05 ± 0.43 |
Cross-attention outperforms gated residual in all three seeds on both metrics. These completed results will replace Eq. 3 and extend Table 3.
Q3. Geometric-mean speedup in Table 2 (supplementary analysis)
We report the completed analysis above; Table 2 will include a Geomean Speedup column. For each method, we compute on its samples that pass Co and take their geometric mean; is the number of such samples.
| Method | Geomean Speedup |
|---|---|
| PPCG | () |
| CodeRosetta | () |
| BabelTower | () |
| LASSI | () |
| Qwen-gen | () |
| GPT-4.1-gen | () |
| Claude-gen | () |
| Qwen-det&gen | () |
| GPT-4.1-det&gen | () |
| Claude-det&gen | () |
| STParOpt-no-opt | () |
| STParOpt | () |
Co failures provide no valid CUDA timing and are excluded from the geometric mean. Representative cases in which both STParOpt and no-opt pass Co are:
| Kernel | No-opt | STParOpt | Ratio |
|---|---|---|---|
| 2mm | |||
| 3mm | |||
| symm | |||
| deriche |
The two variants use the same predictions and generation backbone and differ only in the structured optimization directives. The gain appears across several Co-valid kernels rather than coming only from 2mm.
Q4. Multi-task loss definitions (clarification)
- Parallelism losses: , , and are standard batch-averaged three-class cross-entropies for the fused, static, and dynamic predictions, respectively.
- Optimization loss: is the batch-averaged five-label binary cross-entropy, weighted per sample by .
- Mask and gradients: We use no ground-truth hard mask or additional class weighting. Both and the fused representation supplied to the optimization head are detached.
- Total loss: Eq. 8 combines the three cross-entropies using learned uncertainty weights and adds . The complete definitions are given here and will be incorporated into the revision.
Q5. LASSI backend and inference settings (clarification)
LASSI uses qwen3-coder-next, the same backend as STParOpt, with the same temperature of 0.3 and provider-default top-p.
Q6. LLM inference settings and output schema (clarification)
We used qwen3-coder-next, claude-4-5-sonnet-20250929, deepseek-v3, and gpt-4.1, with thinking disabled, temperature 0.3, provider-default top-p, and no API seed. The output budget was 8K for C inputs of at most 3.2K tokens and 16K otherwise. Optimization prediction uses the appendix prompt and a fixed JSON schema with five binary fields: MC, SM, WR, ST, and TL.
Q7. Selection of the 17 benchmarks in Figure 3 (clarification)
The 17 benchmarks were selected only for figure readability, not by outcome or speedup. Appendix Table 9 reports all 48 benchmarks. The revised text identifies Figure 3 as illustrative and bases the conclusions on the full-set results.
Further questions
Thank the authors for the detailed rebuttal. Most of my questions are addressed. I have a few remaining questions:
-
Input-specific traces and hidden dependencies: I appreciate the conservative fallback, but I am unclear about its deployment semantics. If fallback means preserving the original serial loop, it is safe when triggered. The main risk is when an incorrectly parallelized CUDA kernel passes the available validation inputs and is accepted. Does STParOpt keep the serial implementation as a runtime/compile-time fallback, or does it replace the loop once validation succeeds? Please clarify the practical risk model for unseen inputs.
-
Experiments: Now it is clear that the comparison is fair in Table 1/2. One remaining concern is the currency of the LLM baselines. Tables 1/2 use models such as qwen3-coder-next, Claude 4.5 Sonnet, DeepSeek-v3, and GPT-4.1, but stronger coding/reasoning models are now available. Could the authors add an experiment with some of the strongest currently available coding models (e.g., GPT 5.5 / 5.6-sol, claude Fable 5, Qwen 3.7-max, Deepseek-v4) if feasible?
Response to the Further Questions
Thank you for the thoughtful follow-up. These questions help us clarify the deployment risk model and strengthen the evaluation with current frontier backbones. We address both points below.
Q1. Deployment semantics and risk under unseen inputs
Current behavior. Once a CUDA candidate passes the available validation inputs, it is accepted in our evaluation. The current prototype does not automatically overwrite or deploy the source loop, nor does it provide automatic runtime switching; the original serial code remains unchanged. If tracing is incomplete, the model abstains, or validation fails, the CUDA candidate is rejected and the serial loop remains the implementation.
Risk model. Finite validation cannot exclude an unseen input that activates an unobserved dependence. If an accepted candidate is subsequently deployed and encounters such an input, the current prototype cannot guarantee its detection. We therefore treat the generated kernel as an empirically validated migration candidate, not a sound transformation for all possible inputs. The fallback handles recognized uncertainty but cannot detect every unknown input-dependent case.
Stronger deployment assurance. One practical route is to use runtime precondition guards that dispatch to the retained serial implementation when their conditions are not satisfied. Retaining both implementations alone is insufficient because safe dispatch requires sound, input-checkable conditions. Automatically deriving such guards would require combining execution evidence with symbolic analysis of aliasing, index ranges, and control-flow predicates while controlling guard overhead. This capability is beyond the current prediction-and-generation scope and is not implemented in the prototype.
Our earlier statement about eliminating the unsafe decision referred specifically to the observed stress-test cases, not to all possible unseen inputs.
Q2. Evaluation with current frontier backbones
We agree that evaluating more recent frontier models would strengthen the comparison. We have started full-suite experiments with gpt-5.6-sol and deepseek-v4-pro. We keep the 79 programs, STParOpt predictions, structured optimization directives, prompts, pass@3 protocol, and compilation, correctness, and performance checks unchanged; only the generation backbone is replaced.
The complete generation and validation runs require more than 20 hours. We will post the full CR, ER, Co, Fast, and geometric-mean speedup results in this thread as soon as the runs are complete. Claude Fable 5 is not available through our current API account, so we cannot include it within this timeframe. We will report the complete full-suite results rather than a selectively evaluated subset.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors focus on the challenge of automatically migrating serial C programs to parallel CUDA while preserving correctness and achieving good performance, especially for irregular and pointer intensive loops where static analysis cannot reliably infer loop carried dependencies and memory access patterns. They identify three core issues: 1 dependency ambiguity in irregular loops, 2 unreliable fusion of static and dynamic signals with unequal reliability across loop types, and 3 optimization strategy inference under partial observability where runtime access patterns drive decisions such as memory coalescing and shared memory usage.
To address this, STParOpt introduces an execution aware representation module called STER that builds a Multi dimensional Program Graph from abstract syntax trees, data flow edges and control flow edges, then augments it with stride level execution features through a Stride Pattern Encoder injected using cross attention. An entropy guided fusion mechanism computes the predictive entropy of the static branch and uses it to gate how much dynamic evidence contributes to a fused representation, increasing the weight of dynamic traces when static predictions are ambiguous and reducing it when static structure is confident. A hierarchical decision framework then predicts loop parallelism type independent, reduction or sequential and, conditionally, a vector of optimization strategies covering memory coalescing, warp reduction, tiling, shared memory and streaming, which are translated into structured directives inside the generation prompt for a large language model that emits CUDA kernels or returns the original C code for non parallelizable loops.
Experiments use the OMP_Serial dataset for loop detection, containing 32,570 samples with 3,257 test loops, and dynamic annotations for a subset of train and development data, plus Polybench and Rodinia benchmarks along with 30 non parallelizable loops for end to end generation evaluation, totaling 79 programs. On loop detection, STParOpt reaches 96.4 percent accuracy and 96.7 percent macro F1 and outperforms AutoParLLM by about 5 percentage points and GPT 4.1 s and d by about 2 percentage points. On optimization strategy prediction, STParOpt achieves macro F1 of 0.831 and beats GPT 4.1 s and d and Claude static by 7 to 6 percentage points. On CUDA generation, STParOpt attains 86.1 percent correctness and 81.0 percent Fast rate, where Fast means speedup at least 1, improving over the strongest large language model baseline Claude detection then generation by 11.4 percentage points in correctness and over LASSI by roughly 20 percentage points. Ablations show that removing the Stride Pattern Encoder, entropy fusion, stop gradient gates or coherent stride ordering all degrade performance, and stratified results show strong gains on non affine and pointer intensive loops where polyhedral compilers collapse.
Strengths and weaknesses
I have revised this assessment to evaluate the submission under the authors’ declared contribution type rather than as a General contribution. I therefore assess the paper primarily as an application and systems-oriented research contribution. The relevant criteria are practical problem importance, technical soundness of the implemented workflow, reproducibility, quality of empirical validation within the stated scope, and whether the method provides meaningful utility beyond existing compiler, program-analysis, and LLM-based approaches.
Under this framing, STParOpt makes a credible systems contribution by integrating static program graphs, execution traces, uncertainty-guided fusion, optimization-strategy prediction, and constrained CUDA generation into a single workflow. The paper’s strongest evidence is its consistent loop-level performance across standard benchmark suites and its analysis of irregular and pointer-intensive loops. Its main limitation is that the evidence supports targeted, per-loop CUDA migration rather than end-to-end multi-file or multi-kernel application migration.
On the technical side, the paper is strong and thorough. The method is clearly defined.
The Multi dimensional Program Graph encodes abstract syntax trees, data flow edges distinguishing read after write, write after read and write after write hazards, and control flow edges, giving a rich static representation of loop structure and dependencies.
The Stride Pattern Encoder collects memory address traces via GDB for each memory accessing variable over 50 iterations and three input patterns, computes stride sequences and domain features such as variance, alias degree, directionality and cross iteration reuse, and embeds them using bidirectional LSTM and multilayer perceptron modules.
Cross attention injects dynamic stride features into variable nodes, followed by a second relational graph convolution layer to propagate dynamic information to statement and control nodes, producing execution aware representations.
Entropy guided fusion uses static predictive entropy as a proxy for uncertainty and learns a gate alpha that mixes static and dynamic graph representations, supported by auxiliary supervision on the dynamic branch and stop gradient gating for optimization to stabilize training.
The experimental setup is solid.
Loop detection is evaluated on the OMP_Serial dataset with clearly described splits and metrics, including accuracy and macro F1, and all learning based baselines are retrained on the same splits for fairness.
CUDA generation is evaluated end to end on Polybench, Rodinia and non parallelizable loops, with metrics such as compilation rate, execution rate, correctness and speedup, plus type consistency conditions that penalize incorrect parallelism decisions.
Baselines include polyhedral compilers, dynamic profilers, static learning methods and several large language model based configurations, covering base, static, dynamic and static plus dynamic for detection and direct generation versus detection then generation for CUDA.
Hyperparameters, model sizes, hardware, prompts and GDB instrumentation scripts are described in the method section and appendices with sufficient detail.
Results are convincing within the chosen domain. STParOpt achieves state of the art on loop detection and optimization prediction and significantly improves end to end CUDA generation correctness and performance relative to baselines. Ablations are meaningful and show the importance of the Stride Pattern Encoder, entropy fusion, stop gradient gating and temporal ordering. Static dynamic disagreement analysis demonstrates that entropy guided fusion resolves ambiguous cases where static and dynamic branches disagree.
Main quality weaknesses include the following points.
Dynamic trace collection introduces non trivial offline overhead, on average 200 milliseconds per loop and up to 10 seconds for complex kernels, which may be a practical barrier for very large codebases even though traces can be reused.
The generation evaluation uses 79 programs which is reasonable but not large, so generalization to broader high performance computing codes or real applications is still somewhat open.
The framework depends on GDB instrumentation and tree sitter parsing, and in complex build environments or macro heavy codebases these components could be more brittle than the paper suggests.
The paper is generally clear and well structured.
The problem formulation section defines stages, variables and distributions for static, dynamic and fused representations with clear notation and explanations.
The overview figure shows the static path through Multi dimensional Program Graph and relational graph convolution, the dynamic path through Stride Pattern Encoder, and the entropy fusion and hierarchical decision leading to large language model generation in an intuitive way.
The method section is divided into problem formulation, execution aware representation, entropy guided fusion, hierarchical decision and strategy driven generation, each with equations and textual intuition.
Experiments, baselines and metrics are explained in a dedicated section, and tables present numbers clearly, highlighting the gains of STParOpt.
Appendices add substantial clarity by detailing dependence edge construction, trace collection scripts, domain features, prompt templates, hyperparameter settings, speedup tables and stratified results, which help readers reproduce and understand the system.
Minor clarity issues exist.
Some method parts, especially Stride Pattern Encoder details and entropy fusion, are dense and require careful reading, so the paper targets a fairly expert audience in program analysis and machine learning.
The interplay between static predictive entropy, dynamic supervision and stop gradient gating could benefit from one concrete worked example in the main text to complement the equations.
The end to end generation pipeline, while detailed in prompts in the appendix, might be clearer with a short running example of a specific loop and the resulting optimization directives in the main body.
Overall, clarity is more a strength than a weakness.
Significance is good and fairly high within its niche. The paper addresses a real bottleneck, namely migrating legacy serial C code to CUDA in scientific and engineering workflows, where manual parallelization is costly and error prone. It demonstrates that
Static only methods such as polyhedral compilers and static graph learners struggle on irregular and pointer intensive loops, often overestimating dependencies and missing parallelism.
Large language model only methods, including strong ones like GPT 4.1 and Claude, can generate parallel CUDA code but lack explicit dependency analysis and optimization awareness, and thus frequently produce incorrect or suboptimal kernels.
Combining static structure and dynamic execution via uncertainty guided fusion yields significant gains in detection and generation, especially on non affine and pointer intensive loops where traditional analysis fails.
On loop detection, STParOpt pushes accuracy and macro F1 above 96 percent, surpassing both AutoParLLM and multiple large language model baselines. On generation, it improves correctness and speedup relative to both traditional tools and large language model baselines and behaves conservatively on non parallelizable loops, which is important for safety. These improvements are meaningful for the automatic parallelization and CUDA migration community.
Limitations on significance are as follows.
The work focuses on C to CUDA for relatively small kernels from benchmarks; although these benchmarks are standard, they may not capture the full diversity of large scale scientific applications and modern complex codebases.
Reliance on dynamic profiling and GDB could constrain applicability in production settings where instrumentation overhead, security restrictions or limited access to runtime environments pose challenges.
Extensions to other parallel targets including OpenMP and SYCL are mentioned as future directions but not demonstrated, so broader impact is still potential rather than realized.
The paper is original in how it combines existing ideas into a coherent, domain grounded framework. Program graphs, graph neural networks for loop detection, dynamic profiling, uncertainty based fusion and large language model driven generation all appear in prior work, but STParOpt integrates them in a new way tailored to C to CUDA migration under partial observability. Key original aspects include
The STER module, which integrates a Multi dimensional Program Graph with stride based execution features via cross attention, producing unified loop representations that mix static and dynamic information.
Entropy guided fusion that uses static predictive entropy to adaptively weight static and dynamic signals, reframing parallelism inference as uncertainty driven evidence reconciliation rather than simple concatenation of features.
A hierarchical decision framework that first predicts parallelism type and then conditionally predicts multiple optimization strategies, feeding these as explicit constraints into large language model prompts for CUDA generation.
Static dynamic disagreement analysis and stratified experiments on affine, non affine and pointer intensive loops that carefully dissect where dynamic information contributes most.
The ablation study on the Stride Pattern Encoder, entropy fusion, stop gradient gating and stride sequence ordering is thoughtfully designed and helps explain the role of each component.
Some components follow standard practice, such as using relational graph convolution for program graphs, bidirectional LSTM for stride sequences and text prompts for large language models. Nevertheless, the overall architecture and the idea of uncertainty guided fusion in this context feel fresh and well motivated.
Questions
-
Dynamic trace collection currently averages 200 milliseconds per loop and can go up to 10 seconds for complex kernels, even with early stopping after 50 iterations. Could you provide more detailed analysis of how this scales to larger codebases with many loops and discuss practical strategies such as parallel profiling, sampling or incremental profiling? A clearer scalability story would strengthen both quality and significance.
-
The generation evaluation uses 79 programs from Polybench, Rodinia and non parallelizable loops, which is reasonable but limited. Do you have any preliminary evidence on larger or more diverse applications, for example multi kernel scientific codes or industrial codebases, even if qualitative? Case studies on such codes would help demonstrate that STParOpt is not over tuned to benchmark suites
-
STParOpt uses Qwen3 Coder as the generation backbone. Have you explored using different large language models, for example GPT 4.1 or Claude, with the same constraints and prompts, and if so, how does performance compare? Even limited experiments here would show that STParOpt is portable across models and not tied to a single provider
Limitations
The Threats to Validity section notes several limitations, which is appreciated. These include benchmark coverage, dynamic trace overhead, limited generation sample size and the focus on C to CUDA. I would emphasize the following additional points.
Reliance on GDB and tree sitter instrumentation assumes relatively simple build setups and may be harder to apply to very large, macro heavy or multi language projects without substantial engineering effort.
The evaluation primarily considers single loops and relatively small programs, so behavior on large applications with many interacting loops, complex control flow and global state is still unknown.
The set of optimization strategies considered covers many important CUDA patterns but not the full space of possible optimizations, especially advanced tiling schemes, multi GPU strategies or complex memory hierarchies
Final justification
I updated my assessment to align with the authors’ declared contribution type and evaluate the paper as an application and systems-oriented contribution rather than a General contribution.
Under this framing, STParOpt provides a technically coherent and practically relevant workflow for targeted C-to-CUDA migration. The integration of static program graphs, runtime memory-access traces, entropy-guided fusion, hierarchical parallelism and optimization prediction, and constrained LLM generation is well motivated. The evaluation shows strong loop-level results on OMP_Serial and the selected Polybench, Rodinia, and non-parallelizable-loop generation benchmarks. The reported gains are particularly relevant for irregular and pointer-intensive loops, where static analysis alone is often insufficient.
The rebuttal resolves my main questions. The profiling-cost distribution provides a clearer view of offline tracing overhead, the controlled experiments across Qwen3-Coder, GPT-4.1, and Claude 4.5 Sonnet support portability of the predicted constraints across generation backbones, and the added application-derived cases provide limited but useful evidence beyond the primary benchmark suite. The authors also appropriately narrow the claim to per-loop, single-kernel migration with an executable harness and representative inputs.
The main remaining limitations are the dependence on GDB and tree-sitter instrumentation, potential engineering overhead in macro-heavy or multi-file codebases, input-dependent runtime traces, and the absence of full application-level or multi-kernel migration evaluation. These limitations prevent a stronger accept recommendation, but they do not outweigh the paper’s technical quality, practical motivation, and empirical evidence within its stated scope.
I therefore retain a Borderline Accept rating.
Formatting concerns
none
1 comment
Rebuttal
Thank you for emphasizing practical scalability and broader applicability. Below, we address your concerns by connecting the loop-level method more clearly to realistic profiling and larger-codebase workflows, thereby strengthening the paper’s practical scope.
Q1. Profiling cost and scalability to larger programs (clarification and analysis)
The profiling cost is a one-time offline cost to launch the prepared program under GDB, reach the target loop, collect traces for iterations, and then terminate execution.
| Statistic | P50 | P90 | P99 | Mean | Max |
|---|---|---|---|---|---|
| Per-loop latency | 120 ms | 380 ms | 4.2 s | 200 ms | 10 s |
For large programs, candidate-loop functions and their dependencies can be reduced to minimal executable units and then analyzed directly.
Q2. Generation-backbone portability (supplementary experiment)
We added a controlled backbone-portability experiment. STParOpt predictions, optimization constraints, prompt, temperature, and output budget were fixed; only the generation backbone was replaced.
| Generation backbone | CR (%) | ER (%) | Co (%) | Fast (%) | Geomean Speedup |
|---|---|---|---|---|---|
| Qwen3-Coder | 89.87 | 88.61 | 86.08 | 81.01 | 15.50× |
| GPT-4.1 | 91.14 | 91.14 | 87.34 | 83.54 | 15.54× |
| Claude 4.5 Sonnet | 93.67 | 92.41 | 91.14 | 87.34 | 15.90× |
Stronger backbones mainly improve feasibility and correctness, while aggregate speedup changes little. On the 41 kernels valid for all three backbones, the geomeans are 14.37×, 15.41×, and 14.47×, respectively. This suggests that the backbone primarily affects whether the constraints are translated into correct CUDA code, whereas performance is largely determined by the target kernel and STParOpt's predicted optimization strategies.
We selected Qwen3-Coder for open-weight availability and lower inference cost, not because STParOpt depends on it.
Q3. Larger applications and evaluation scope (clarification and limitation)
We provide preliminary quantitative evidence on three application-derived Rodinia workloads:
| Workload | Code characteristic | Speedup vs. serial |
|---|---|---|
| Hotspot3D | 3D neighbor stencil with boundary branches | 2.69× |
| SRAD | Repeated neighbor-dependent diffusion updates | 9.64× |
| Myocyte | Adaptive ODE workload with fine-grained parallelism | 1.05× |
These cases cover distinct memory-access and control-flow patterns. The modest Myocyte gain also shows that STParOpt does not imply large acceleration when parallelism is fine-grained. This is application-derived evidence, not end-to-end multi-kernel migration; our revised claim remains limited to the evaluated single-file, single-kernel setting. Project-level migration additionally requires multi-file integration, cross-kernel data movement, synchronization, and scheduling and remains future work.
Q4. Robustness of GDB/tree-sitter instrumentation (clarification and limitation)
We agree that macro-heavy, multi-file, or multi-language projects require additional engineering. The current frontend assumes that the target C unit can be isolated and compiled with accessible build metadata.
- If the build is complex: We preserve compiler flags, macro definitions, include paths, and source mappings through
compile_commands.json, and build the profiling unit with-gand-O0/-Og. - If dynamic tracing fails: We retain static-only inference by setting ; a missing trace is never treated as evidence of independence.
- If parsing or execution still fails: We mark the unit as unsupported. Compiler-IR or instrumentation-based tracing and broader language support remain future work.
Q5. Concrete main-text running example (planned clarification)
We will extend Figure 1 with a compact evaluated pointer-aliasing example. It will trace the loop from static ambiguity and three pattern-specific traces through fusion to the predictions, generation directives, and CUDA output. A separate annotation will clarify that stop-gradient is applied only during training.
Q6. CUDA optimization coverage (limitation)
The revised scope is limited to the five evaluated strategies; advanced/asynchronous tiling, complex memory-hierarchy tuning, kernel fusion, cross-kernel scheduling, and multi-GPU execution remain limitations and future work.
Comments on the paper
1 comment
This is a gentle reminder to please carefully read the authors’ rebuttal and update your review accordingly before the rebuttal deadline. Your updated assessment is critical for us. If you have any new comments or revised opinions after reading the rebuttal, kindly record them in the system. Please let me know if you encounter any technical issues. Thank you very much for your time and valuable efforts!
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Author Response to the Meta-Review
Thank you for the constructive meta-review. We address each required revision below; full tables are in the cited responses.
1. Statistical consistency and stability.
The seed-42 sentence mistakenly described one constituent run as the protocol; all trainable models and ablations used seeds {42, 2026, 10086}. STParOpt achieves 96.63 ± 0.23% detection accuracy, 96.90 ± 0.19% parallelism Macro-F1, and 84.05 ± 0.43% optimization Macro-F1; every ablation favors STParOpt in all three seeds. Given n=3, mean ± sample SD and consistent direction are primary. Tables 1, 3, 4, 7, and 8: Reviewer 1k2f, Q1. Table 2 reports exact pass@3 aggregates rather than three-training-seed results, so training-seed mean ± SD is not applicable.
2. Cross-attention formulation and controls.
Eq. 3 degenerates as written because it collapses the pattern dimension. The implementation retains three pattern-specific embeddings and applies softmax across them; all results use this non-degenerate implementation. Against mean pooling, gated residual, and concatenation + projection, cross-attention achieves 96.63 ± 0.23% detection accuracy and 84.05 ± 0.43% optimization Macro-F1, winning across all seeds. We will correct Eq. 3 and present entropy fusion as a targeted mechanism for conflicting evidence, not the sole source of the gain. Controls: Reviewer mXGK, Q2; Reviewer 1k2f, Q3.
3. Generation speedup and STParOpt-no-opt.
Further speedup analyses support the original conclusion. Across each method's Co-valid outputs, STParOpt reaches 15.50× geometric-mean speedup versus 5.42× for STParOpt-no-opt. After removing nine Human CUDA references at or below serial performance, the same 39-case subset gives 30.70× for STParOpt, 20.80× for Human CUDA, and 13.64× for no-opt. Full tables and representative kernels: Reviewer mXGK, Q3; Reviewer 1k2f, Q4 and Q7.
4. Robustness to unseen inputs and hidden dependencies.
A 50-case stress test evaluates branch- and alias-triggered dependencies. Expanded inputs increase hidden-dependency detection from 3/8 to 7/8, with 94.0% overall accuracy. A conservative fallback retains serial execution when evidence is insufficient, eliminating the remaining unsafe decision. Runtime traces therefore reduce, rather than formally resolve, dependency ambiguity. Details: Reviewer mXGK, Q1; Reviewer 1k2f, Q8.
5. Profiling cost and frontend robustness.
Tracing is a one-time offline cost and stops after T=50 iterations. Per-loop latency is 120 ms at P50, 380 ms at P90, 4.2 s at P99, 200 ms on average, and 10 s maximum. Complex builds retain flags, macros, include paths, and source mappings. If tracing fails, STParOpt uses static-only inference; missing traces never imply independence. Unsupported cases are reported. Details: Reviewer gp85, Q1 and Q4.
6. Application evidence and evaluation boundary.
We provide evidence on target loops from three application-derived Rodinia programs. The generated kernels achieve 2.69× on Hotspot3D, 9.64× on SRAD, and 1.05× on Myocyte, covering a 3D stencil, neighbor-dependent diffusion, and an adaptive ODE workload. Each sample independently maps one serial loop to one validated CUDA kernel. Source applications may have multiple stages, but we do not evaluate end-to-end multi-kernel migration or jointly optimize cross-kernel data movement, synchronization, or scheduling. We limit the claim to per-loop, single-generated-kernel evaluation; repository-level validation of multi-file industrial codebases remains future work. Details: Reviewer gp85, Q3.
7. Losses, LLM settings, and label quality.
We now provide complete loss definitions and unified LLM settings. The parallelism losses are batch-averaged three-class cross-entropies; the optimization loss is five-label binary cross-entropy with the stated detached weight. Complete reductions, mask, and stop-gradient behavior appear in Reviewer mXGK, Q4; model versions, inference settings, LASSI backend, and JSON schema appear in Reviewer mXGK, Q5–Q6. Three annotators audited 1,000/13,841 loops, yielding 89.7% exact agreement and macro/micro Cohen's kappa of 0.864/0.925 (Reviewer 1k2f, Q6).
8. Training–generation overlap.
We performed a three-level provenance and normalized-loop audit. No systematic leakage was found: all 14 matches (0.101% of training loops) were manually verified as short idioms, not shared benchmark kernels. We will disclose them and remove “completely disjoint.” Details: Reviewer 1k2f, Q9.
9. Claim and scope revisions.
We narrow both claims. “Without human intervention” becomes “automated given an executable test harness and representative inputs.” The optimization claim is limited to the five evaluated strategies; advanced tiling, kernel fusion, cross-kernel scheduling, and multi-GPU execution remain future work. Details: Reviewer 1k2f, Q10; Reviewer gp85, Q6.