Auditing the Context-Free Assumption in 3D Part Grammars with Dependence Logic

Part grammars describe an object as a tree of choices: a chair is a back, a seat and a base, and each of these comes in several alternative styles. Almost every such grammar quietly assumes that once the parent is fixed, the choices for sibling parts are made independently. That is the "context-free" assumption, and it is what keeps parsing cheap. Real objects break it. Swivel chairs have five-star bases and no legs, and arm style tends to follow back style. When the assumption fails, a parser is free to assemble trees that are locally plausible and globally incoherent. We propose to state these assumptions in a logic built for exactly this job and test them against data. Where they fail, the grammar is refined only at the failing points, and the result is checked for whether that targeted refinement improves fine-grained 3D part segmentation.

The logic comes from a community that has rarely talked to vision researchers. Team semantics, a way of evaluating logical formulas over a whole set of records rather than a single record, has native atoms for "y is determined by x" and "y and z are independent given x" (Probabilistic Team Semantics). A dataset of annotated part hierarchies is precisely such a set of records. The core idea fits in two sentences. Treat a category's annotated parse trees as one team and write the grammar's hidden independence assumptions as dependence and independence atoms over it. Then use the atoms that fail to decide where the grammar must stop being context-free, producing a compact, readable list of structural dependencies that a parser can enforce.

Core Claim

We claim that a part grammar refined only at the sibling groups where team-semantic independence atoms fail will beat three alternatives on PartNet. The first is a context-free grammar decoder. The second is a decoder with dense learned pairwise potentials. The third is a refinement chosen by likelihood gain without explicit atoms. We expect the gains to appear in structural coherence and small-part recall, and to be largest when training data is scarce, while the refined grammar's dependency list stays small enough to read. If the dense-potential or likelihood-driven baselines match it, the honest conclusion is that the logic's value lies in specification and audit rather than accuracy, and the experiments are designed to tell those outcomes apart.

Positioning

Two sources motivate the gap. The Dagstuhl reports on dependence logic present team semantics as a bridge to databases, statistics and verification, but never to vision (Dependence Logic: Theory and Applications; Logics for Dependence and Independence: Expressivity and Complexity). Likewise, the logic-and-learning seminar surveys neuro-symbolic methods without touching part hierarchies (Logic and Learning). This is the duplicated-effort pattern the TAMC editors describe, where communities rebuild the same structures in separate vocabularies (TAMC preface).

On the vision side, Park and Zhu's attributed And-Or grammar couples parts, pose and attributes through hand-designed pairwise terms in an energy function (Attributed Grammars). We keep the grammar but replace a guessed set of couplings with ones that are tested and stated explicitly.

Zhang et al. induce And-Or templates by block pursuit driven by log-likelihood gain (Learning AND–OR Templates). Their criterion becomes one of our ablations.

Submodular field grammars make image grammars tractable, but only for non-recursive grammars (Submodular Field Grammars). Our grammars are non-recursive by construction, since PartNet hierarchies have bounded depth, so we inherit tractability rather than solve that open problem.

The method draws on three results. From Probabilistic Team Semantics we take three things:

  • the conditional independence atom;
  • the locality theorem, which says a formula's truth depends only on the variables it mentions, so each atom can be checked on a small projection of the data;
  • a negative result: model checking quantifier-free formulas with the marginal identity atom over multisets of records is NP-complete.

That negative result constrains the design. Marginal identity is used only offline, as an estimated audit statistic, and never as a constraint inside inference.

Research Program

PartNet supplies hierarchies up to seven levels deep over 26,671 shapes (PartNet). Its per-category templates already form And-Or graphs. For each category we build a multiteam, meaning one record per training shape. Each record has three kinds of variables for every node:

  • which alternative was chosen at the node's OR branch;
  • whether each optional child is present;
  • how many instances of each repeated child appear.

The context-free assumption becomes a finite family of atoms. Sibling choices are independent given the parent's choice. Where a dependence looks deterministic, we use the stronger functional-dependence atom ("this choice is determined by that one").

Each atom is estimated on its local projection, as the locality theorem licenses, using a conditional-independence test with false-discovery control across the family. A failed atom marks a sibling group that has to be modeled jointly. Refinement then merges each dependent group into a single node whose alternatives are the jointly observed combinations. When a combination is fully determined, it collapses to a functional dependence, which keeps the grammar small.

Parsing uses a standard point backbone for per-point part scores, followed by top-down dynamic programming over the refined grammar. The cost grows exponentially only in the size of the largest merged group, and we report that size for every category.

We also run the audit on 3DCoMPaT200, which pairs part hierarchies with 293 material classes. Part–material dependencies there serve as a second test bed. Where independences are expected from how compositions were generated, they also serve as a sanity check that the audit does not invent structure.

Baselines

The naive reference is the flat point network evaluated in PartNet. The strongest reported fine-grained semantic segmentation there is PointCNN at 46.4% mIoU, against roughly 64% at the coarse level (PartNet). We retrain it on our splits with its published settings, and our own backbone uses the same architecture so that every grammar variant shares identical features. Beating it means a fine-grained mIoU gain beyond seed variance, plus lower structural-violation rates, under an identical backbone and training budget.

The second baseline is a context-free grammar decoder on the same backbone, using the PartNet template unrefined. This isolates the value of refinement from the value of having any grammar at all. The PartNet template plays here the role that the category-level shape prior plays in 3DCoMPaT200, where adding that prior lifts PCT's part segmentation from 48.70% to 81.83% mIoU (3DCoMPaT200).

The strongest structured competitor is a Park–Zhu-style decoder (Attributed Grammars) with learned pairwise potentials between every sibling pair. It can represent any dependence our method finds. It gets the same backbone and data, and a tuning budget matched in GPU-hours. Beating it means equal or better accuracy with far fewer coupling parameters, and clearly better accuracy at 10% of the training data, where dense potentials should overfit.

The key ablation keeps the refinement machinery and the number of merges fixed but varies how merges are selected. One variant selects them by likelihood gain, in the spirit of block pursuit (Learning AND–OR Templates). Another selects them at random. If atom-driven selection does not beat likelihood-driven selection, the logic contributes only readability.

Why not just…?

Why not just use a larger flat point network? PartNet's own results show flat encoders missing handles and thin bars and degrading sharply at fine granularity (PartNet). The 3DCoMPaT200 prior experiment shows that structural information is worth more than the architecture alone. Still, scale could close the gap. We therefore report the structural-violation metric for the strongest backbone we can train, because a network can raise mIoU while still producing incoherent trees.

Why not just learn dense pairwise potentials between all siblings? This is the real threat. With enough data it can capture everything our audit finds. Our bet is that most sibling pairs really are independent, so dense coupling wastes parameters and overfits when data is scarce. The low-data experiment and the parameter-count comparison settle this. If dense potentials match us at 10% data, we will say so.

Why not just run ordinary independence tests or learn a Bayesian network over the OR choices? Computationally, our audit is independence testing, and we do not claim otherwise. What team semantics adds is a single vocabulary for three things. It writes the grammar's assumptions as checkable formulas. It distinguishes deterministic dependence from merely probabilistic dependence, which decides whether a merge collapses or stays a joint choice. And its complexity results tell us which constraints are safe to enforce during inference. The novelty lies in the audit–refine–parse loop, not in a new test.

Proposed Experiments

The main experiment trains all variants on every PartNet category at 100%, 30% and 10% of the training data, over three seeds. It reports four measures:

  • fine-grained mIoU;
  • small-part recall, for parts below a size threshold;
  • tree validity against the PartNet hierarchy;
  • a held-out violation rate.

The held-out violation rate is computed from dependencies re-estimated on ground-truth test parses, so we never score against our own training constraints.

The decisive checks are two. First, does atom-driven refinement beat likelihood-driven refinement with the same number of merges? Second, does it beat dense pairwise potentials at 10% data?

A third check tests the audit itself. We inject a known dependence into PartNet by resampling the trees, and measure whether the audit recovers it with controlled false positives. We also run the audit on 3DCoMPaT200's part–material variables. Finally, we report the size of the largest merged group and the parsing time per shape, and we confirm empirically that dropping marginal identity from inference costs nothing measurable.