Soft Acyclicity for Lifted Weighted Logic via Random Feedback Sets

Many relations we want to reason about probabilistically are almost hierarchies: "is a kind of," "is preferred to," "depends on." A weighted first-order logic, meaning a set of logical rules with numeric weights that define a probability distribution over possible worlds, should be able to say "this relation is probably acyclic, and the more it cycles the less likely the world." It currently cannot do this at scale. Plain first-order logic cannot express acyclicity at all. The one result that adds it, Weighted First Order Model Counting with Directed Acyclic Graph Axioms, adds it only as a hard constraint, so any world with a single cycle gets probability zero. We propose a soft version and argue it is principled. A world's weight is multiplied by the probability that a random set of vertices, each included independently with probability $\mu$, is a directed feedback vertex set: a set of vertices whose removal destroys every directed cycle. DAGs pay nothing. A world with one long cycle pays little. Worlds with many disjoint cycles pay roughly multiplicatively.

This construction has a practical payoff. Its partition function, the normalizing sum over all worlds, should reduce exactly to the existing hard-DAG counting algorithm. That keeps computation polynomial in the domain size, which is what "domain liftable" means. In the limit of small $\mu$ it also approximates the natural but harder penalty $\exp(-\lambda k^*)$, where $k^*$ is the size of the minimum feedback vertex set. The minimum feedback vertex set is the central object of parameterized graph algorithms (Directed Feedback Vertex Set Problem is FPT). We will build the soft constraint, prove or refute its liftability, characterize how far it sits from the minimum-feedback-set penalty, and test whether it is a better model of real intransitive data than the hard projection used in recent AI-feedback work.

Core Claim

Write $R$ for a binary relation on a domain of size $n$. We introduce a fresh unary predicate $S$, marking "excused" vertices, and a defined relation $R'(x,y) \leftrightarrow R(x,y) \wedge \neg S(x) \wedge \neg S(y)$. We impose the hard DAG axiom on $R'$ and give $S$ weight $\mu$ when true and $1-\mu$ when false. Summing out $S$ gives each world $x$ the factor

$$ A_\mu(x) = \Pr_{S \sim \mathrm{Bern}(\mu)^n}\left[\, S \text{ hits every directed cycle of } R_x \,\right] = \sum_{j} c_j(x)\, \mu^j (1-\mu)^{n-j}, $$

where $c_j(x)$ is the number of feedback vertex sets of size $j$ in world $x$. The defining sentence uses two variables, so the whole model stays inside the fragment that Weighted First Order Model Counting with Directed Acyclic Graph Axioms proves liftable. That fragment is first-order logic with two variables and counting quantifiers ($C^2$) plus a DAG axiom. We therefore expect the soft model's partition function to cost the same $O(n^{2u})$ as the hard one, with $u$ the number of 1-types (the distinct ways a single element can satisfy the unary predicates). We are explicit that this liftability is close to a corollary. The reason to do the work is what follows it.

The first question is semantic. $A_\mu$ is a counting quantity, so it rewards worlds with many ways to break their cycles, not only small ways. As $\mu \to 0$, $A_\mu(x) \approx c_{k^*}(x)\,\mu^{k^*}$. That recovers the minimum-feedback-set penalty with $\lambda = \log(1/\mu)$, but multiplied by the number of minimum solutions. This multiplicity factor is the precise gap between the cheap semantics and the "ideal" one.

The second question is computational. Is the min-penalty $\exp(-\lambda k^*(x))$ itself liftable? Counting worlds by their minimum feedback set size requires an existence check per world, which the inclusion-exclusion over sources inside the existing algorithm does not provide. We conjecture it is #P-hard to compute over domain size even for simple $C^2$ theories. The paired results would be a liftable soft semantics, a hardness result for the min semantics, and a bound on the distortion between them.

The same construction applies to arcs. A binary "excused-edge" predicate $E$ with $R'' = R \wedge \neg E$ gives a soft feedback-arc-set semantics, the arc-deletion analogue of the vertex version. This matches the deconfliction step in Taming the Judge: Deconflicting AI Feedback for Stable Reinforcement Learning.

Research Program

The theoretical track has three parts. We first verify that the defined-relation encoding meets the hypotheses of the DAG-axiom result. Specifically, the axiom must be allowed on a predicate constrained by a universal two-variable equivalence with an unweighted, freely summed unary $S$. We check this by brute-force agreement on all small domains before trusting the derivation. We then derive the arc version and a mixed version with both excused vertices and excused edges.

Second, we attempt the hardness proof for the min-penalty. The natural route is a reduction from counting a #P-hard quantity over digraphs into a sum $\sum_x \exp(-\lambda k^*(x))$ evaluated at polynomially many $\lambda$, followed by interpolation. If the reduction fails, the fallback is a fixed-parameter result: for each fixed bound $K$ on $k^*$, a lifted count of worlds with $k^* \le K$. This would mirror how the parameterized algorithm of Directed Feedback Vertex Set Problem is FPT isolates exponential cost in $k$.

Third, we bound the multiplicity distortion $c_{k^*}(x)$ on structured world classes. Tournaments and planar digraphs are natural candidates; the relevant extremal combinatorics for planar digraphs appears in Acyclic Subgraphs of Planar Digraphs. The goal is to know when the cheap semantics is a faithful stand-in.

The empirical track uses the liftability where it actually matters: normalizing a model fit to many small observed relational structures of varying size. Our main dataset is LLM-judge preference graphs. Following the DGR setup, each user query from WildChat-1M has a pool of $G$ candidate responses compared pairwise by a judge. Each query yields one small directed graph, possibly cyclic. We fit a weighted theory to these graphs. The theory combines a soft asymmetry rule, a per-candidate quality predicate, and the soft acyclicity factor with learnable $\mu$. The likelihood of an observed graph needs the domain-level partition function $Z(G)$, which lifting gives for every pool size at once. It also needs a per-instance numerator, which is exact by enumeration over $2^G$ excuse sets because $G$ is small. The posterior marginal $\Pr(S(v)=1 \mid R)$ then says how likely each candidate is to be the source of intransitivity. Combined with the posterior quality predicate, this gives a calibrated purified score that can replace DGR's net-win score after hard feedback-arc-set removal.

Baselines

The naive reference point is raw pairwise win counts on the uncorrected judge graph, the "PREF" signal in DGR. On Arena-Hard 2.0, Taming the Judge reports an overall score of 51.4 for PREF against 49.0 for the untrained base model.

The strongest existing method is DGR itself. It computes a minimum feedback arc set on each preference graph, deletes those arcs, and scores candidates by out-degree minus in-degree. The same paper reports 52.7 overall on Arena-Hard 2.0 with Qwen3-14B under GRPO, and states that DGR beat random cycle-breaking and Elo-style ranking. We will rerun DGR on identical judge graphs, with the same policy model, the same reinforcement-learning algorithm and the same number of training steps. Our method only replaces the reward computation and gets no extra tuning budget beyond fitting $\mu$ on a held-out split. Beating it means a higher Arena-Hard 2.0 overall score than DGR in our own rerun, across at least three seeds.

A second strong competitor is a Bradley–Terry model, which gives each candidate a latent score and makes pairwise outcomes logistic in the score difference. It absorbs intransitivity as noise with no cycle structure at all, so it tests whether explicit acyclicity buys anything. We fit it per instance with the same held-out regularization tuning.

A third baseline is an ordinary weighted rule set with a soft transitivity rule $\neg R(x,y) \vee \neg R(y,z) \vee R(x,z)$. This rule needs three variables, so it falls outside the known liftable fragment. We evaluate it by brute-force grounding on the small pools, which keeps the comparison fair.

The ablation that isolates our key ingredient replaces the random-excuse factor $A_\mu$ with the exact min-penalty $\exp(-\lambda k^*)$. On small pools this can be computed by enumeration, with $\lambda$ tuned identically. If the min-penalty fits held-out judge graphs as well or better, the multiplicity factor is harmless and our semantics is justified as its liftable proxy. If it fits clearly better, our semantics is a convenience that costs accuracy, and we will report that.

Why not just…?

Why not just ground the theory and penalize the minimum feedback set with a MaxSAT solver? On small preference pools this is feasible, and it is exactly our ablation, so the experiments will show whether it wins on fit. What it cannot do is normalize. MaxSAT returns one best world, not a probability over worlds, so it cannot learn $\mu$ or give calibrated marginals. Grounded exact inference also hits memory walls as structures grow; AND/OR Cutset Conditioning reports bucket elimination needing 100 times the available 1GB on 100-variable networks. The lifted route is the only one in the file that gives a polynomial-in-$n$ partition function under acyclicity-type constraints.

Why not just use soft transitivity, which already penalizes intransitive triples? This is a real threat. In tournaments every cycle implies a 3-cycle, so transitivity violations and cycles are closely linked. Two things separate the approaches. Transitivity penalizes the number of bad triples, so one bad candidate in a large pool is charged many times, whereas the excuse semantics charges it once. Transitivity is also not known to be liftable. Our experiment compares held-out likelihood and downstream reward quality against the brute-force transitivity model. If transitivity matches us on complete tournaments, we will say that our advantage is confined to sparse or incomplete comparison graphs and to lifting.

Why not just project onto a DAG, as DGR does? Hard projection discards uncertainty about which arcs are wrong. It also offers no knob for how intransitive a given judge is, even though DGR's own finding that judge accuracy correlates with conflict rate at $r = 0.98$ suggests that this degree carries signal. The head-to-head reward comparison above settles whether the posterior version helps. If it does not beat DGR, the soft semantics remains a modeling contribution but not an alignment one.

Why not just learn embeddings and ignore cycles? On relations with clean logical structure, rule-guided models generalize where embeddings collapse. Neural Probabilistic Logic Learning for Knowledge Graph Reasoning reports zero-shot FB15k-237 MRR of 0.4425 against RotatE's 0.006. Even so, we treat Bradley–Terry as the embedding-style competitor and let the numbers decide.

Proposed Experiments

The first check is correctness. For domains up to about six elements, we compare the lifted partition function of the soft-acyclicity theory, in both its vertex and arc versions, against brute-force enumeration of all relations and excuse sets, over a grid of $\mu$ and of the other formula weights. Any mismatch falsifies the liftability claim.

The second is scaling. We measure wall-clock time of the lifted count against domain size up to several hundred elements and confirm polynomial growth matching $O(n^{2u})$. Grounded counting serves as the reference until it fails. There is no reported runtime result on Lacuna for WFOMC-DAG, so this curve is itself new.

The third quantifies distortion. On random digraphs, tournaments and planar digraphs, we compute $\log A_\mu(x)$ against $-\lambda k^*(x)$ exactly for small $n$. We report the correlation, and how much the multiplicity $c_{k^*}$ varies, as $\mu$ shrinks. For larger $n$ we obtain $k^*$ from a PACE-style heuristic solver, using the reduction-rule-plus-annealing design of Hust-Solver; no reported PACE score is found on Lacuna for it.

The fourth is the preference-data study. We compare held-out pairwise log-likelihood and calibration of our fitted model against Bradley–Terry, soft transitivity and the min-penalty ablation on WildChat judge graphs. Agreement of each purified ranking with a stronger held-out judge serves as a cheap proxy for reward quality. Only if our model wins on the proxy do we run the full GRPO comparison against DGR's reported 52.7 on Arena-Hard 2.0, with MT-Bench and WritingBench as secondary scores.

The decisive outcome is threefold: lifted counts that match brute force exactly; a distortion analysis showing when the random-excuse semantics tracks the minimum feedback set; and a measurable gain in held-out fit over both hard projection and soft transitivity. Lacking the third, the work stands as a theory result, a liftable soft semantics paired with a hardness boundary, and should be reported as such.