Neural Agent Compiler: Learning to Schedule Soft Dependencies
Authors: Bo Yan, Peng Wang, Zihan Chen, Ziwen Kan, Zhen Tan, Huiyuan Chen, Bo Sun, Shuai Shao, Tianlong Chen, Song Wang
Organizations: University of Central Florida · University of Virginia · Stevens Institute of Technology · Amazon · Meta · The University of North Carolina at Chapel Hill
Large language model agents accomplish complex tasks by coordinating multiple reasoning steps and tool operations, which form dependencies among their operations. Existing orchestration methods primarily consider hard dependencies that determine when an operation can legally begin, but overlook soft dependencies, i.e., information that is not required for execution but may improve an already executable operation. We identify soft-dependency scheduling as an important problem in agent execution. To this end, we introduce Neural Agent Compiler (NAC), a learned scheduler that predicts the task-quality and resource consequences of three execution modes and selects the highest-utility legal mode at a scheduling boundary. NAC represents the executable continuation, pending information event, and resource state in a shared memory, and uses a utility function to adapt the consequence predictions to different resource preferences. Across AppWorld, WebShop, and τ2-bench, NAC achieves 276/417 AppWorld task completions, a 74.69 WebShop Task Score, and 59/100 τ2-bench successes. Additional studies show that the learned scheduler reduces execution work, establishing soft-dependency scheduling as a promising solution for orchestrating tool-using agents.
Figures & tables
Figure 1: The same release decision acquires native meaning at each commit boundary. NAC selects among three legal ways to incorporate pending evidence into itinerary construction, product selection, and software-application execution; the panels show the corresponding information and commitment boundaries.
Figure 2: Neural Agent Compiler at one scheduling boundary. The native interface supplies the ready continuation, designated information event, public state, and legal modes. Typed encoders form a shared memory; three action queries read it through a deliberation block; a shared readout predicts quality and resource consequences. Calibrated utility and legality produce the directive that the native executor applies.
Gemma 4 31B IT
GPT-OSS-20B
Method
TGC/417
SGC/139
Tokens (M)
TGC/417
SGC/139
Tokens (M)
ReAct
191
48
64.596
55
3
≥ 109.503
Plan-and-Execute
50
4
30.388
27
1
≥ 153.653
Full-Code-Reflexion
97
20
13.706
36
8
14.035
IPFunCall
1
0
38.590
10
1
≥ 30.458
CodeAct
14
0
≥ 42.878
4
0
≥ 12.202
Table 1: Complete AppWorld comparisons with published agent methods. Each actor panel covers the same 417 challenge tasks and 139 scenarios, scored by native assertions. ≥ marks returned-usage lower bounds. Appendices B.1 and D.1 give execution budgets, full costs and paired statistics.
Method
Score
Tokens (M)
Calls (k)
Rule
45.29
0
0
BC
47.22
9.259
16.879
PG-Transformer
50.72
1.632
2.380
PG-RNN
51.26
0.681
1.500
BC+PG
49.65
3.238
5.035
LATS
77.98
1,076.394
222.822
Table 2: WebShop performance on all 500 test tasks. NAC uses typed memory, action-query reading, consequence prediction, and calibrated release (Eq. 3 ); its training-selected controller is reported. Tokens and calls describe selected deployment. BC/PG tokens count policy inputs and calls count forward passes; LATS and NAC count language-model input/output tokens and requests. LATS uses native search reward. Appendices A.5 and B.2 give execution and acquisition costs.
Method
Successes
Rate (%)
Max. steps
LLMAgent
41/100
41.0
30
ReAct
36/100
36.0
30
NAC
59/100
59.0
200
Table 3: τ2 -bench on the same 100 held-out tasks. The population contains 20 airline, 40 retail and 40 telecom tasks. Native success counts retain failed trajectories. Each row gives its executed step allowance.
Figure 3: Matched WebShop work savings. Bars show control minus the full controller for the 500-task population and five retained fits. Labels retain the native endpoint units; the logarithmic axis is descriptive because time, native operations and continuation tokens have different scales.
Figure 4: WebShop response to delay price. The two lines share the same delay-price axis; ACT choices use the left scale and selected deployment time uses the right scale. Points average the five retained fits over all 500 tasks.
Figure 5: ScienceAgentBench program-generation work. Narrow bars compare adaptive and fixed SPEC generation on 100 tasks in 69 data-directory groups. Values average five fitting initializations; savings are fixed SPEC minus adaptive.
Figure 6: One consequence readout, six delay prices. Utility gains over fixed SPEC use all 500 native WebShop tasks and 20 initializations. Each fit reselects actions from fixed predictions with its original calibration margin. Bars are joint empirical fit–task simultaneous 95% intervals over all 18 fixed-action–price contrasts. Both policies are valued at the displayed price.
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
Symbol
Meaning
x,P,L,b
User request, remaining agent program, observed execution ledger, and resource budget
ω,ϕ(ω),o
Information event, its public description, and its returned observation
s−,s+
Visible state before and after the designated observation
A,a,m(a),a∗
Execution modes, one mode, native legality mask, and selected directive
XN,XE,xR
Operation rows, information-event rows, and resource row
N,E,dN,dE,dR
Row counts and native input widths
Appendix
Table 4: Shared compiler notation. The same symbols describe every native interface and fitted instance.
Component
TravelPlanner
AppWorld
WebShop
Input widths
57/24/51
35/22/6
768/768/9
Three type encoders
7,752
5,406
49,728
Type vectors and action queries
192
192
192
Attention projections and scales
4,224
4,228
4,132
Residual/readout normalization
128
128
128
Feed-forward map
4,192
4,192
4,192
Appendix
Table 5: Measured controller parameters. Input widths are operation/event/resource widths; WebShop uses the corresponding product/goal/statistic types. The fixed MPNet encoder is accounted for separately. The stored auxiliary branch in TravelPlanner and AppWorld has zero coefficient in both fitting and selection.
Setting
TravelPlanner
AppWorld
WebShop
Training states
27
90
6,000
Optimizer
Adam
Adam
AdamW
Learning rate
0.003
0.003
0.0008
Weight decay
0
0
0.01
Batch
Full
Full
256
Training duration
200 updates
200 updates
100 epochs
Appendix
Table 6: Fitting settings of the selected compiler instances. The paragraphs below define the target units, objectives, native actions, and calibration rules.
System
TGC/417
Tokens (M)
Requests
Task time (ks)
ReAct
191
64.596301
8,668
127.164
Plan-and-Execute
50
30.387994
4,362
112.646
Full-Code-Reflexion
97
13.706327
1,548
78.542
IPFunCall
1
38.590123
5,959
93.066
CodeAct (timed)
13
≥ 45.341099
7,108
136.174
LLMCompiler
0
2.868727
2,252
33.843
Appendix
Table 7: AppWorld resources associated with the complete Gemma comparisons. Each row binds native task completions and resources to the same campaign. Time is task-summed kiloseconds; CodeAct uses a complete timed replication. Counts include all physical attempts. Token lower bounds retain missing-response coverage.
Scope
States
Tokens
Requests
Native steps
Client s
Encoding s
Training and calibration
6,500
8,146,299
15,981
178,179
74,787.04
15,415.14
Three-action test collection
500
700,403
1,241
13,724
8,112.21
941.60
Selected deployment (five-fit mean)
500
216,928.2
373.8
9,096.8
2,539.87
725.22
Selected deployment (single controller)
500
221,952
377
9,045
–
–
Appendix
Table 8: WebShop learning and recurring deployment resources. Collection covers all three branches. The five-fit mean and single selected controller each charge the shared producer once. Client seconds sum model requests; encoding seconds record the associated text encoding. Dashes mark timing fields outside the single-controller receipt.
Controller
Median
Range
Peak
NAC
80.33
38.62–92.26
636.89
Uniform attention
87.06
45.20–99.00
636.89
Utility-only target
44.03
25.61–60.24
636.89
Pooled MLP
40.53
23.25–47.15
628.25
Appendix
Table 9: Additional WebShop initialization-fit resources: 15 fits per row, 60 in total. Wall times use cached inputs and are in seconds; peak allocated CUDA memory is in MiB. Each row reports the median, observed range, and largest memory peak.
Method
TGC/417
SGC/139
Rechecked
CodeAct
4
0
417/417
Appendix
Table 10: Completed CodeAct retest on AppWorld. The GPT-OSS-20B retest of CodeAct ( Wang et al., 2024 ) covers all 417 challenge tasks and 139 scenarios, with same-response action decoding and native execution feedback. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Task failures remain in the denominator. Retained attempts record at least 12.202 million model tokens and 4,213 generation requests.
Method
TGC/417
SGC/139
Rechecked
IPFunCall
10
1
417/417
Appendix
Table 11: Completed IPFunCall retest on AppWorld. The GPT-OSS-20B retest of the released IPFunCall agent ( Trivedi et al., 2024 ) covers all 417 challenge tasks and 139 scenarios. Public API selection and function calling retain the registered native execution limits. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Retained attempts record at least 30.458 million model tokens and 6,141 generation requests.
Method
TGC/417
SGC/139
Rechecked
LLMCompiler
0
0
417/417
Appendix
Table 12: Completed LLMCompiler retest on AppWorld. The GPT-OSS-20B retest instantiates the released planner, dependency execution and joiner stages ( Kim et al., 2024 ) on all 417 challenge tasks and 139 scenarios. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Retained attempts record at least 65.414 million model tokens and 15,439 generation requests. Compatible retained histories preserve effective planner/executor text and author-parsed joiner decisions.
Method
TGC/417
SGC/139
Rechecked
IPFunCall
7
0
417/417
Appendix
Table 13: Completed Gemma IPFunCall retest on AppWorld. The Gemma-4-31B-IT retest of the released IPFunCall agent ( Trivedi et al., 2024 ) covers all 417 challenge tasks and 139 scenarios. Public API selection and function calling retain the registered execution limits. All 417 terminal database states were independently re-evaluated with the native AppWorld assertion scorer. Retained attempts record at least 51.258 million model tokens.
Reference
Successes
Gain (pp)
Simultaneous 95% CI
Holm p
ReAct
191/417
20.38
[12.47,28.30]
2.39×10−9
Plan-and-Execute
50/417
54.20
[46.40,61.99]
4.62×10−33
Full-Code-Reflexion
97/417
42.93
[33.73,52.12]
3.46×10−20
IPFunCall
1/417
65.95
[58.28,73.61]
3.61×10−35
CodeAct
14/417
62.83
[55.09,70.56]
9.63×10−35
LLMCompiler
0/417
66.19
[58.50,73.88]
3.61×10−35
Appendix
Table 14: AppWorld TGC differences on the complete population. Effects are NAC minus each reference in percentage points. Intervals cover all six contrasts; tests receive Holm correction.
Reference
Successes
Gain (pp)
Simultaneous 95% CI
Holm p
ReAct
48/139
11.51
[2.38,20.64]
0.0052
Plan-and-Execute
4/139
43.17
[33.15,53.18]
5.20×10−18
Full-Code-Reflexion
20/139
31.65
[20.75,42.56]
7.78×10−10
IPFunCall
0/139
46.04
[35.97,56.12]
6.51×10−19
CodeAct
0/139
46.04
[35.97,56.12]
6.51×10−19
LLMCompiler
0/139
46.04
[35.97,56.12]
6.51×10−19
Appendix
Table 15: AppWorld SGC differences on the complete population. Effects are NAC minus each reference in percentage points. Intervals cover all six contrasts; tests receive Holm correction.
Framework / release rule
Pass/180
Time (ks)
Tokens (M)
NAC executor + fixed ACT
129
17.395
9.526
NAC executor + fixed WAIT
124
14.288
9.333
NAC executor + fixed SPEC
128
64.204
≥ 9.724
NAC executor + learned scheduling
125
10.333
9.655
Appendix
Table 16: Internal TravelPlanner framework and scheduling ablation on 180 requests. Each row shares the constraint-aware NAC itinerary executor, actor, upstream observations, construction procedure and native scorer. Fixed-rule controls retain the framework and prescribe one release mode; adaptive scheduling uses the learned controller.
Endpoint
Effect
Simultaneous 95% CI
Utility gain
0.023703
[0.013514,0.033892]
Time saving
0.710762
[0.220673,1.200851]
Appendix
Table 17: Adaptive release improves utility and reduces selected work relative to fixed SPEC. All 500 WebShop tasks and five fitted controllers contribute at the original calibrated operating point. Each endpoint retains the complete three-fixed-release family, with joint seed–task simultaneous intervals and conditional Holm-adjusted tests. Utility gain is adaptive minus SPEC; time saving is SPEC minus adaptive in seconds per task.
Margin
Calib. utility
Task Score
Test utility
Task seconds
ACT/WAIT/SPEC
Calibrated
0.591809
73.7967
0.602515
3,693.67
72.4/420.8/6.8
0.02
0.589600
74.0962
0.607302
3,611.65
114.6/371.8/13.6
Appendix
Table 18: Supported release-margin sensitivity at fixed WebShop weights. All test500 tasks contribute to every row. Counts and resources average five fitted policies; calibration utility uses the disjoint calibration500 population.
Delay price
Utility gain over fixed SPEC
Joint simultaneous 95% CI
Holm p
0
0.016275
[0.008716,0.023834]
3.60×10−4
0.0025
0.017808
[0.009350,0.026266]
3.60×10−4
0.005
0.019779
[0.010459,0.029099]
3.60×10−4
0.01
0.023703
[0.011907,0.035500]
3.60×10−4
0.02
0.035409
[0.017520,0.053298]
3.60×10−4
0.04
0.069937
[0.034702,0.105171]
3.60×10−4
Appendix
Table 19: Utility of reselected release versus fixed speculation across all six recorded prices. The same consequence predictions and original calibration margins select actions on all 500 WebShop tasks across five fits. The complete 18 fixed-action–price contrasts determine every interval and adjusted test.
Study
Population
Positive contrast
Effect
Simultaneous 95% CI
Margin selection
WebShop test500
margin 0.02 vs calibrated utility
+0.004788
[0.000806,0.008769]
Margin selection
WebShop test500
margin 0.02 vs WAIT utility
+0.008881
[0.000267,0.017496]
Price response
WebShop test500
reselected release vs fixed SPEC at pt=0.04
+0.069937
[0.034702,0.105171]
Price response
WebShop test500
reselected release vs fixed WAIT at pt=0.04
+0.036925
[0.009049,0.064801]
Initialization
WebShop test500, 20 fits
full controller vs fixed SPEC utility
+0.022590
[0.012794,0.032386]
Distinct inputs
WebShop distinct495, 20 fits
full controller vs fixed SPEC utility
+0.031305
[0.016349,0.046261]
Appendix
Table 20: Positive sensitivity support retained for the unified release graph. Every row uses a complete native population and its registered paired uncertainty family. Effects are reported only for contrasts with a positive simultaneous interval under the declared operating point.
Endpoint
Compiler
IPFunCall
Effect (pp)
Simultaneous 95% CI
Holm p
TGC
276/417
7/417
64.51
[54.92,73.62]
0.00028
SGC
64/139
0/139
46.04
[33.81,58.99]
0.00028
Appendix
Table 21: Complete native completion support under the Gemma IPFunCall retest. The same 417 tasks form 139 scenarios. Effects are compiler minus IPFunCall in percentage points. Simultaneous 95% intervals retain all fourteen contrasts from the six original references and this retest across TGC and SGC; 20,000 scenario bootstrap draws condition on frozen decisions. Two-sided scenario sign flips use 50,000 draws and Holm adjustment over the same family.
Submission
TGC
SGC
Original
4/417 (1.0%)
0/139 (0.0%)
Typed quantity
5/417 (1.2%)
0/139 (0.0%)
Appendix
Table 22: Native answer-submission check for CodeAct ( Wang et al., 2024 ) . Both rows cover the same 417 AppWorld tasks with GPT-OSS-20B and the official evaluator. Public quantity typing converts the generated answer “15 hours” to the numeric value 15 in one task. That task uses 10 model calls and 9 environment calls, including one additional supervisor submission, within the recorded 40/40 limits.
Reference
Evaluation version
TGC/417
Gain (pp)
Joint 95% CI
Holm p
Plan-and-Execute
original campaign
27
9.59
[4.56,14.63]
2.37×10−5
Full-Code-Reflexion
original campaign
36
7.43
[1.66,13.21]
0.0055
IPFunCall
complete native retest
10
13.67
[7.96,19.37]
2.78×10−8
CodeAct
complete native retest
4
15.11
[9.56,20.66]
5.46×10−11
LLMCompiler
complete native retest
0
16.07
[10.51,21.62]
1.36×10−12
Appendix
Table 23: Scenario-paired task-completion support with complete GPT-OSS retests. The independently fitted shared controller completes 67/417 tasks. All contrasts use the same 417 task IDs in 139 scenarios. IPFunCall, CodeAct and LLMCompiler use the independently rescored complete retests in Appendix B ; Plan-and-Execute and Full-Code-Reflexion retain their original campaigns. Each row retains its executed budget from Appendix D.1 . Joint 95% intervals use 50,000 scenario-cluster bootstrap draws (seed 20261008) and the maximum standardized deviation across all six TGC contrasts. Exact scenario sign-flip tests receive Holm correction across that six-reference family.
Native endpoint
Observed count
Total checks or tasks
Recorded actions accepted by the visibility guard
1,896
1,896
Required-target removal triggers guard rejection
1,396
1,396
ACT work starts before optional evidence release
500
500
First native click starts before optional evidence release
500
500
Appendix
Table 24: Native legality and optional-evidence timing on the complete 500-task population. Each required-target intervention holds the recorded action and all other visible fields fixed and removes its bound target before evaluating the actual guard. Step and intervention counts aggregate the same 500 trajectories; timing endpoints use one paired observation per task.
Method
TGC/417
SGC/139
Tokens (M)
Requests
Task time (ks)
ReAct
55
3
≥ 109.503
17,231
≥ 53.78
Plan-and-Execute
27
1
≥ 153.653
21,930
79.03
Full-Code-Reflexion
36
8
14.035
1,879
29.81
IPFunCall
10
1
≥ 30.458
6,141
≥ 96.59
CodeAct
4
0
≥ 12.202
4,213
≥ 49.63
LLMCompiler
0
0
≥ 65.414
15,439
≥ 109.886
Appendix
Table 25: Complete AppWorld evaluation with GPT-OSS-20B. Task and scenario success counts use native assertions on 417 tasks and 139 scenarios. IPFunCall, CodeAct and LLMCompiler use independently rechecked complete retests (Appendix B ); their all-attempt cost ledgers remain open, and ≥ marks recorded lower bounds.
Reference
Gain
Simultaneous 95% CI
Holm p
Plan-and-Execute
9.59
[4.59,14.60]
2.37×10−5
Full-Code-Reflexion
7.43
[1.67,13.19]
0.0055
IPFunCall
14.63
[8.84,20.42]
7.21×10−9
CodeAct
16.07
[10.55,21.58]
1.36×10−12
LLMCompiler
16.07
[10.55,21.58]
1.36×10−12
Appendix
Table 26: Original-campaign task-completion contrasts for the independently fitted GPT-OSS controller. All 417 tasks form 139 paired scenarios. Effects are NAC minus original reference campaigns in percentage points. Simultaneous intervals and Holm tests preserve the original six-reference TGC family.
Stage
Population / fits
Comparison and endpoint
Effect [95% interval]
Native work
WebShop 500 / 5
Fixed SPEC; operations saved per task
0.9184[0.7784,1.0584]
Consequence fitting
WebShop 500 / 5
Direct utility; operations saved per task
0.0812[0.0112,0.1512]
Repricing
WebShop 500 / 5
Delay price 0.01→0.04 ; seconds saved per task
0.620[0.202,1.039]
Value prediction
WebShop 500 / 20
Direct utility; reduction in gap-error growth, ×103
1.335[0.130,2.540]
Preparation
ScienceAgentBench 100 / 5
Fixed SPEC; model tokens saved per task
2,659.14[1,579.67,4,351.39]
Appendix
Table 27: Mechanism evidence for neural agent compilation. Each row links a controlled comparison to its measured endpoint. Population entries give native tasks and fitting initializations. Intervals are 95% simultaneous intervals from the corresponding complete comparison family. ScienceAgentBench pairs 69 data-directory groups. Full native comparisons and operating conditions appear in Appendices C.2 – C.5 and D.3 .
Control
Endpoint
Saving/task
Joint 95% CI
ACT
Seconds
5.804
[3.109,8.498]
ACT
Tokens
37.436
[25.637,49.234]
SPEC
Seconds
9.016
[5.447,12.585]
SPEC
Tokens
35.712
[24.010,47.414]
Appendix
Table 28: The shared release graph reduces selected native SQL work. All 1,534 tasks, 11 databases and five uniform-sampling fits contribute. Saving is fixed control minus adaptive per task. Joint seed–database simultaneous intervals preserve the full twelve-contrast family of two fitting recipes, three fixed actions and two resource endpoints. Exact sign flips enumerate all 2,048 database assignments; Holm correction spans all twelve tests. Every displayed Holm-adjusted p=0.01172 . Endpoints cover selected accepted branch model work.
Cohort
n
Score
95% CI
Official
500
74.64
[71.64,77.64]
Fresh
500
75.76
[72.74,78.67]
Appendix
Table 29: Native support for one independently fitted public-state instance. Each row covers all 500 tasks. Simultaneous 95% intervals resample task IDs for 20,000 draws, seed 20261011, with Bonferroni coverage over the two cohort means. They condition on the frozen controller, actor and native execution recipes.
School of Artificial Intelligence, Nanjing University, China · National Key Laboratory for Novel Software Technology, Nanjing University, China · Nanjing University, China