Paper
Action Schema Neural Networks: Generalized Policies for Stochastic Planning Problems in the Wargaming Domain

Stochastic shortest-path problems have been of interest to the automated planning community for many years. Traditionally, policy solutions to these problems have been found with admissible heuristics such as LM-Cut, which approximate the best action in the current state to give the highest probability of reaching a goal state in a delete relaxation of the problem. Though successful, these heuristics face scalability problems as the state spaces of these stochastic problems grow.

Toyer et al. proposed Action Schema Networks (ASNets), deep neural networks that learn a policy for a whole problem domain: trained on small problems, they can be applied to larger ones. Given the current state, an ASNet returns an action to take. This article is a case study applying the technique to a fighter-jet wargame, with five trial experiments.

The planning problem

A stochastic shortest-path problem (SSP) is a tuple (S, A, T, C, G, s₀): states, actions, a transition function, action costs, goal states, and an initial state. A policy π(a | s) chooses an action in each state, and here the aim is to maximize the probability of reaching the goal. LM-Cut, run through the SSiPP planning tool, solves each problem on its own but scales poorly as problems grow. An ASNet is trained by supervised learning, with LM-Cut providing the labels (the best action in each state), and then reused on problems it has not seen.

The wargame domain

We wrote the domain in PPDDL, the probabilistic planning language. Two teams, red and blue, each field the same number of fighters, and every fighter is randomly a 4th- or 5th-generation aircraft. Fighters queue in a line and the front two duel each round. Exactly one of the two is destroyed, the survivor stays at the front, and the next fighter in the destroyed one's team steps up.

Each round blue chooses one of three actions: a short-range strike, a long-range strike, or a stealth strike. The chance blue wins the duel depends on the action and on the generations of the two fighters. Blue wins when every red fighter is destroyed with at least one blue fighter alive, which earns a reward of 1. If all blue fighters are destroyed, the problem is a dead end.

Top: a blue queue and a red queue of 4th- and 5th-generation fighters facing each other; the front two duel each round. Bottom: a grid of the chance blue wins a duel for each matchup and blue action. While blue has fighters in reserve, stealth is the strongest or joint-strongest action in every matchup (70%, 70%, 90% and 30%), but once blue is down to its last fighter stealth drops to 30%, 30%, 70% and 10%, so the best action depends on the state of the battle.
The game and its odds. Stealth looks like the safe choice until blue's last fighter is in front, when its odds fall sharply, so no single action is best in every state and the policy has to depend on the battle.

Training setup

The ASNet has three hidden layers of 16 units with dropout of 0.25 in each. We train for 10 epochs with minibatches of 128 and a learning rate of 0.01. The framework default is a learning rate of 0.0001 and 300 epochs, and we changed both to cut convergence time. Each scenario is solved 30 times with different random seeds, so results are reported as wins out of 30.

The trials differ in the problem sizes used for training and testing, counted in fighters per team:

TrialTraining problemsTest problems
13 fighters (5 scenarios)3 fighters (15 scenarios)
24 fighters (5 scenarios)4 fighters (15 scenarios)
3mixed 3 and 4 (6 scenarios)3 and 4 (30 scenarios)
4small problems5 fighters (15 scenarios)
5mixed 3 and 4 (6 scenarios)5 to 13 fighters

Results on unseen scenarios

On test problems of the same size as the training problems (Trials 1 to 3), the ASNet trails its LM-Cut teacher slightly, as expected of a student. In Trials 4 and 5, which test on larger battles than the network was trained on, it wins more often.

Grouped bars of average wins out of 30 for each trial. ASNet: 19.25, 21, 20, 26.5, 27.55. LM-Cut: 22.69, 22.69, 21.94, 22.69, 21.34. LM-Cut wins more in trials 1 to 3; ASNet wins more in trials 4 and 5, which test on larger battles than it was trained on.
Average wins out of 30 on test scenarios. The ASNet reaches 26.50 in Trial 4 and 27.55 in Trial 5, against 22.69 and 21.34 for LM-Cut.

We offered two speculative explanations: larger battles simply give more chances, or the network exploits the order of the fighters in each queue, which LM-Cut ignores. No variance or significance tests were run, so these remain open questions for future trials.

Runtime

In Trial 5 we also timed both methods as the battles grew from 3 to 13 fighters per team.

Seconds per scenario on a log scale against fighters per team from 3 to 13. Both lines climb steadily. The ASNet takes 0.040 s at 3 fighters and 20.4 s at 13; LM-Cut takes 0.00017 s at 3 and 7.87 s at 13, so LM-Cut is faster at every measured size. Training the ASNet took a further 5,573 seconds once.
Seconds per scenario. Both methods slow down as battles grow, and LM-Cut is faster at every size we measured.

Measured runtime grows steeply for both methods, from 0.040 s to 20.4 s for the ASNet and from 0.00017 s to 7.87 s for LM-Cut. The ASNet also needs a one-time training cost of about 5,573 seconds. The paper's argument is a projection: if the ASNet's total time flattens while LM-Cut's keeps growing exponentially, the two would cross at about 18 fighters per team. That crossover is an extrapolation from fitted trend lines and was not measured.

Takeaway

In Trials 1 to 3 the ASNet learned roughly LM-Cut's behavior, with similar cost and win rate. In Trials 4 and 5 the networks trained on small battles won more often than LM-Cut on larger ones. Future work includes larger problems with more compute, a search over network architecture and regularization, and more trials to probe whether ASNets capture the order of the fighters.

A note from 2026

Months after this work I found an error in my understanding of the framework. The LM-Cut results were fed to the network as extra feature vectors concatenated to the standard inputs, to give the search some direction, while the training labels came from the optimal solution, which was calculated exhaustively. The results themselves still hold, but comparing the network to LM-Cut is somewhat malformed. The cases where the network did better most likely mean it learned a policy closer to the true optimum than LM-Cut's delete-relaxed one.

The full paper has the tables and the complete PPDDL domain description.