Scaling Mutual Entailment: From Binary to N-ary Relations
Scaling Mutual Entailment: From Binary to N-ary Relations
Research Question
How does model performance on mutual entailment degrade as we move from simple binary relations (A→B, B→A) to more complex n-ary relations (A→B→C, etc.)? Can we establish a scaling curve that differentiates model capabilities?
Hypothesis
Higher-capability models exhibit stronger bidirectional entailment across varying relational complexities, with performance degrading predictably as relation arity increases. The rate of degradation serves as a capability indicator - more capable models maintain performance across deeper relational chains.
Background & Motivation
The reversal curse demonstrates that LLMs struggle with the most basic form of mutual entailment: if trained on “A is B”, they fail to learn “B is A”. This is a binary relation with direct reversal. However, RFT suggests that relational understanding extends beyond simple reversals to:
- Ternary relations: A→B→C, can the model infer C→B→A?
- Chain inference: Given A→B and B→C, can the model infer A→C AND C→A?
- Network density effects: How does performance change as relational networks become denser?
Building on the inspect-ai-reversal work, this research would systematically explore how relation complexity affects mutual entailment.
Implementation Approach
Dataset Construction
-
Binary Relations (Baseline)
- Extend reversal curse dataset with synthetic relations
- Categories: factual (parent-child), mathematical (x > y), logical (P implies Q)
-
Ternary Relations
- Grandfather-parent-child triplets: “X is grandparent of Z via Y”
- Multi-step comparisons: A > B > C
- Geographic chains: Country → State → City
-
N-ary Chains (n=4,5,6)
- Family trees with 4+ generations
- Organizational hierarchies
- Academic lineages (advisor chains)
-
Synthetic Abstract Relations
- Novel symbols/entities to avoid memorization
- Example: “Blicket fizzles Dax” → “Dax is fizzled by Blicket”
Evaluation Design (Inspect AI)
@task
def nary_mutual_entailment(n: int = 2, relation_type: str = "factual"):
"""
Evaluate mutual entailment on n-ary relations.
For n=2: Tests A→B ⟺ B→A (reversal curse baseline)
For n=3: Tests A→B→C and various reversals/inferences
For n>3: Tests longer chains and derived relations
"""
return Task(
dataset=generate_nary_dataset(n, relation_type),
solver=[
system_message(RELATIONAL_SYSTEM_PROMPT),
few_shot_examples(n_examples=3, n_arity=n),
generate(),
],
scorer=bidirectional_accuracy_scorer(n),
)
Scoring Metrics
- Direct Reversal Accuracy: For each learned direction, can the model reverse it?
- Transitive Inference Accuracy: For chains, can the model infer A→C from A→B→C?
- Full Network Completion: Given partial network, can model complete all entailed relations?
- Degradation Rate: How much does accuracy drop per additional relation in chain?
Model Comparison
Test across capability levels:
- Lower tier: Llama-3.2-1B, Phi-3-mini
- Mid tier: Llama-3.2-8B, Mistral-7B
- Upper tier: Claude Sonnet 3.5, GPT-4, Llama-3.1-70B
- Frontier: Claude Opus 4.5, GPT-4.5
Expected Outcomes
- Capability Curves: Plot accuracy vs. n-arity for each model tier
- Degradation Patterns: Identify whether degradation is linear, exponential, or has plateaus
- Abstract vs. Factual: Compare performance on memorized facts vs. synthetic relations
- Tier Separation: Demonstrate that mutual entailment complexity separates model capabilities
Connection to Intelligence
If we find that:
- Higher-capability models maintain mutual entailment across deeper chains
- Performance on abstract relations (not memorizable) correlates with general capabilities
- The degradation curve predicts performance on other reasoning tasks
Then we have evidence that relational understanding is a core component of intelligence, and mutual entailment depth is a measurable proxy for relational capability.
Implementation Steps
- ✅ Create research proposal document
- ⬜ Design dataset schema for n-ary relations
- ⬜ Implement dataset generators for each relation type
- ⬜ Build Inspect AI tasks with configurable arity
- ⬜ Develop custom scorers for relational inference
- ⬜ Run baseline experiments (n=2) to validate against reversal curse
- ⬜ Scale to n=3,4,5,6 across model tiers
- ⬜ Analyze results and plot capability curves
- ⬜ Write up findings comparing to existing benchmarks
Related Work
- Berglund et al. (2023): “The Reversal Curse: LLMs trained on ‘A is B’ fail to learn ‘B is A’”
- Allen-Zhu & Li (2023): Physics of Language Models
- Wei et al. (2022): Emergent Abilities of Large Language Models
- Knowledge graph completion literature
- RFT literature on derived relational responding
Open Questions
- How does chain-of-thought prompting affect n-ary mutual entailment?
- Can we train models specifically to improve on this capability?
- Does performance correlate with specific architectural features (attention heads, layers)?
- How does this compare to traditional knowledge graph reasoning benchmarks?