Flow-Constrained Hierarchical Policy
Implementation & benchmark of arXiv:2607.29041 — Baseball, An Extensive-Form Game-Theoretic Duel
Source paper: Baseball, An Extensive-Form Game-Theoretic Duel arXiv:2607.29041 ⓘ · analyzed Aug 31, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Parameterize a tree-structured policy through realization weights satisfying sequence-form flow conservation, instead of independently predicting probabilities at every node. Conditional action probabilities are recovered by dividing a child sequence weight by its parent weight, guaranteeing globally consistent probabilities and avoiding invalid or contradictory branch masses. This is suitable for hierarchical RL policies, adaptive computation trees, and neural routers with sequential gating decisions.
Formulas
Mathematical statement
The paper's Batter realization plan uses the sequence set S_B=[\varnothing,S,T,SS_2,ST_2,SS_3,ST_3,TS_4,TT_4,TS_5,TT_5]. A realization weight x_s is assigned to every action sequence s, including the empty sequence x_{\varnothing}. The displayed constraint matrix E has the flow form x_{\varnothing}=1 and, for each information-set row, parent mass equals the sum of child masses; for example x_{\varnothing}-x_S-x_T=0, x_S-x_{SS_2}-x_{ST_2}=0, and x_T-x_{TS_4}-x_{TT_4}=0. In compact form, Ex=b with x\ge0, where E is the sequence-form incidence matrix and b fixes the root realization weight. For any parent sequence s with children s\circ a, the behavioral probability is p(a\mid s)=x_{s\circ a}/x_s when x_s>0, and child weights sum to x_s. The transferable property is that linear flow constraints encode all consistency requirements of a sequential policy, while the conditional policy remains locally interpretable.
Implementation notes
Use this at the output head of a hierarchical policy or neural router whose decisions form a known finite tree. Define one learnable logit z_s for each sequence/node s and produce nonnegative realization weights by a differentiable tree recursion rather than solving a linear program on every batch. Set x_{\varnothing}=1. For each visited parent s, compute local probabilities p(a|s)=softmax(z_{s,a}); assign x_{s\circ a}=x_s p(a|s). This automatically satisfies Ex=b and x\ge0. If the network must output all realization weights jointly, project an unconstrained vector onto the flow polytope with a small differentiable quadratic program, minimizing \|x-u\|_2^2 subject to Ex=b and x\ge0; the recursive softmax version is cheaper and should be the MVP. During a forward pass, use p(a|s) for sampling or routing, while x_s is the probability mass reaching the node. Weight node losses by x_s to obtain reach-weighted training, and optionally add \lambda\sum_s(\sum_a x_{s\circ a}-x_s)^2 when using an unconstrained ablation. For MoE, interpret each internal node as a gate and each leaf as an expert; cap or prune experts based on x_s while preserving total routed mass. The paper supplies the exact flow structure; the neural logits and temperature are learned. First test on a 4-level hierarchical classifier and a sparse-MoE toy language model, comparing independent sigmoid gates, flat softmax routing, and recursive flow routing. Record validation accuracy, load imbalance, dead branches, gradient variance, and routing FLOPs. The expected signal is no invalid branch probabilities, fewer dead experts, lower gradient variance, and equal or better accuracy at a fixed active-expert budget.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.