Many things people divide only have value in sequence. A software module is useless without the libraries it builds on, an advanced course is useless without its prerequisite, and an accessory is useless without the base item. We call such goods precedence-complementary: each item counts for an agent only if the agent also holds the item's prerequisites. Standard fair-division algorithms ignore this. In practice the prerequisite structure is rarely written down, and has to be inferred from usage or execution logs.
This note proposes a simple bridge between two literatures. The classic fair-division algorithm hands items one at a time to an agent nobody envies. Causal discovery recovers a "topological order" of variables, meaning an order in which every cause comes before its effects. We claim that feeding the fair-division algorithm items in a valid topological order of the prerequisite graph gives a strictly stronger fairness guarantee than usual. That guarantee degrades smoothly, and measurably, as the learned order gets worse. Both procedures are iterative "peel a source and commit" loops over a directed acyclic graph, and they fail in the same way: one early mistake corrupts everything after it. The research program uses that shared failure mode to design an allocation rule that is honest about order uncertainty.
Core Claim
The setting has items $M$ arranged in an unknown prerequisite graph $D$, which is a directed acyclic graph over items. Agents value items through a prerequisite valuation:
$$v_i(S) = \sum_{g \in S} w_i(g)\,\mathbf{1}[\mathrm{Anc}_D(g) \subseteq S],$$
Here $w_i(g) \ge 0$ is agent $i$'s standalone weight for item $g$, and $\mathrm{Anc}_D(g)$ is the set of ancestors of $g$ in $D$. These valuations are monotone, so the classic envy-cycle elimination procedure still guarantees EF1 (envy-freeness up to one good) in any item order. That procedure, analyzed in Multiple Birds with One Stone, keeps a graph of who envies whom, rotates bundles around any cycle, and gives the next item to an agent nobody envies.
Under these valuations EF1 is nearly vacuous. Removing a root item from an envied bundle can wipe out the value of a whole chain, so almost any envy can be excused that way. The meaningful notion is envy-freeness up to one leaf (EFL). It requires that envy toward a bundle $A_j$ disappear after removing some single item of $A_j$ that has no descendants inside $A_j$.
The first claim is a short argument we will formalize. If items are processed in a topological order of $D$, envy-cycle elimination guarantees EFL. The reason is that each newly added item is necessarily a leaf of its recipient's bundle, and the recipient was unenvied just before receiving it. Bundle rotations preserve the property, because it depends only on the bundle and not on who holds it.
The second claim is quantitative. When the order is learned and imperfect, EFL violations and "stranded" items are controlled by the number of inverted ancestor pairs between the learned and true orders. A stranded item is one held by an agent who lacks its prerequisites, so it yields no value to anyone. The third claim is algorithmic. Grouping items whose relative order is statistically uncertain into blocks, and allocating each block whole, restores a guarantee of "envy-free up to one block" at a controllable welfare cost.
Position Relative to Prior Work
Three lines of fair-division work come close but differ in what carries the structure. Fair Division Under Cardinality Constraints topologically sorts the envy graph of agents to set picking orders across known item categories. It never orders the items themselves. Fair Division of a Graph and Welfare Loss in Connected Resource Allocation require bundles to be connected in a known, undirected item graph. Connectivity is symmetric, whereas prerequisites are directed: a parent has standalone value and a child does not. That asymmetry is exactly what makes leaves safe to remove. FAIRFORMER learns allocations with a transformer that treats items as an unordered set, so by construction it cannot see precedence.
On the ordering side, peeling methods supply the order estimator, and their documented weakness motivates our robustness analysis. TOPIC selects the next node by compression gain. TABORDER learns order scores in context and evaluates them with topological divergence $d_{\mathrm{TOP}}$. Sink-peeling by residual independence follows Identifiability of Causal Graphs using Functional Models. All of these suffer from cascading errors once an early commitment is wrong.
Two further papers supply method. Incremental Topological Ordering and Cycle Detection with Predictions frames a predicted order through consistency, robustness, and smoothness; we import that language for allocation quality as a function of $d_{\mathrm{TOP}}$. Fair Ordering (Tommy) batches events whose precedence probability falls below a threshold, treating them as ties; our block construction reuses this idea for items.
Research Program
The theory component has three parts. The first proves the EFL guarantee under a correct order. The second proves a smoothness bound of the form
$$\#\{\text{EFL violations}\} + \#\{\text{stranded items}\} \le c \cdot I(\hat\pi, D),$$
where $I(\hat\pi, D)$ counts ancestor–descendant pairs that the learned order $\hat\pi$ inverts and $c$ is a constant to be determined. The linear form is expected because each inversion can break at most the leaf property of one allocation step and strand at most the inverted descendant. The third part characterizes the block rule. Given pairwise precedence probabilities $p_{gh}$, items are merged into blocks whenever their order confidence falls below a threshold $\tau$. The blocks are then allocated in topological order as super-items. Envy-cycle elimination then gives envy-freeness up to one block. We will bound the welfare loss of lumping as a function of block size.
The estimation component produces $p_{gh}$ by bootstrap-resampling the order learner, using the bagging tooling in debeire24clear_Bagged_TimeSeries_Causality and the discovery implementations in causality-lab. The order learners are TOPIC-style compression peeling and TABORDER-style scores.
The empirical component is semi-synthetic, because no dataset in the file pairs logged item dependencies with agent valuations. We take real graph shapes as item prerequisite graphs: Sachs from OCDB, REGED from the TOPIC suite, and synthetic additive-noise and Gaussian-process DAGs following TABORDER. We simulate observational logs from these graphs and learn orders from the logs. Agent weights $w_i$ are drawn from FAIRFORMER's uniform, Pareto, and correlated distributions, at its $10 \times 20$ and $30 \times 60$ agent-by-item sizes.
Baselines
The naive reference is envy-cycle elimination in a random item order, which is the default when precedence is ignored. It guarantees EF1 but not EFL, and it should strand many items. Beating it means fewer EFL violations and higher Nash welfare (the geometric mean of agent utilities) at every instance size.
The upper reference is envy-cycle elimination in the true topological order. It isolates the value of order knowledge, and our method should approach it as data grows.
The strongest structural competitor is the two-stage pipeline. It learns a single point-estimate order with TOPIC- or TABORDER-style peeling, then runs topological envy-cycle elimination. It uses the same logs, the same learner, and the same compute as our method; the only difference is that our method adds bootstrap blocks. Beating it means a better trade-off curve of EFL violations against Nash welfare as $\tau$ varies, at matched learner budget. On the ordering side, the file's strongest reported figure is TOPIC's F1 of 0.5 on 500-node REGED within 48 hours (TOPIC). That level of accuracy implies many inversions, which is the regime where we expect blocking to matter.
The strongest allocation-quality competitor is FAIRFORMER, given the same weight distributions but no graph, followed by its EF1 repair step. It reports roughly 96–97% of optimal Nash welfare on unstructured additive valuations (FAIRFORMER). No reported result was found on Lacuna for any method under prerequisite valuations. We will therefore compute optimal Nash welfare under EF1 by exhaustive integer programming on small instances and report every method as a fraction of it.
The ablation that isolates our key ingredient replaces the precedence-probability blocks with blocks of the same sizes formed at random. This tests whether uncertainty-targeted lumping, rather than lumping itself, drives any gain.
Why not just…?
Why not just learn the graph once and allocate? This is the real threat, and it is exactly the two-stage baseline. If point-estimate orders are accurate, blocks add nothing but lumping cost. The smoothness bound predicts where the two-stage approach breaks down: at the inversion counts that real-data learners actually produce. The generalization gap reported in OCDB suggests that regime is common. If two-stage matches our method across $d_{\mathrm{TOP}}$ levels, we will report that blocking is unnecessary.
Why not just cluster co-used items without caring about direction? Undirected co-occurrence clusters would lump parents with children. Direction is what identifies leaves, the items that can be separated or excused without collapsing value. We will run an undirected-clustering variant with matched block sizes. We expect it to lose welfare by over-lumping high-value parents, and we will show whether it does.
Why not just solve an integer program for the best fair allocation? For small instances we do, and use the result as the ceiling. Exact solvers scale poorly at production size, as POP documents. More importantly, an integer program needs the graph as input, so it inherits order errors anyway.
Why not just rely on EF1, which envy-cycle elimination already guarantees for monotone valuations? Under prerequisite valuations EF1 can be satisfied by removing a root item that silently erases a whole chain. We will report the fraction of EF1 allocations that violate EFL to show how much the weaker notion hides.
Proposed Experiments
The decisive check has three parts. First, plot EFL violations and stranded items against the measured inversion count $I(\hat\pi, D)$, across learners and sample sizes, and test whether the relationship is linear as predicted. Second, trace the curve of Nash welfare against EFL violations as the threshold $\tau$ varies, and compare it with the two-stage and random-block baselines. Third, compare the order-agnostic baselines, random-order envy-cycle elimination and graph-blind FAIRFORMER, against true-order envy-cycle elimination on the stranded fraction, to confirm that order matters at all.
The idea fails if either of two things happens. If blocks never beat the two-stage pipeline at matched fairness, the block rule adds nothing. If stranded items under random order are negligible on realistic graph shapes, the whole problem is not worth solving.
References
- Multiple Birds with One Stone: Beating 1/2 for EFX and GMMS via Envy Cycle Elimination
- Fair Division Under Cardinality Constraints
- Fair Division of a Graph
- Welfare loss in connected resource allocation
- FAIRFORMER: A transformer architecture for discrete fair division
- Information-Theoretic Causal Discovery in Topological Order
- Inducing Causal Order through Tabular In-Context Learning
- Identifiability of Causal Graphs using Functional Models
- Incremental Topological Ordering and Cycle Detection with Predictions
- Fair Ordering
- OCDB: Revisiting Causal Discovery with a Comprehensive Benchmark and Evaluation Framework
- Solving Large-Scale Granular Resource Allocation Problems Efficiently with POP