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

  1. Binary Relations (Baseline)

    • Extend reversal curse dataset with synthetic relations
    • Categories: factual (parent-child), mathematical (x > y), logical (P implies Q)
  2. Ternary Relations

    • Grandfather-parent-child triplets: “X is grandparent of Z via Y”
    • Multi-step comparisons: A > B > C
    • Geographic chains: Country → State → City
  3. N-ary Chains (n=4,5,6)

    • Family trees with 4+ generations
    • Organizational hierarchies
    • Academic lineages (advisor chains)
  4. 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

  1. Direct Reversal Accuracy: For each learned direction, can the model reverse it?
  2. Transitive Inference Accuracy: For chains, can the model infer A→C from A→B→C?
  3. Full Network Completion: Given partial network, can model complete all entailed relations?
  4. 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

  1. Capability Curves: Plot accuracy vs. n-arity for each model tier
  2. Degradation Patterns: Identify whether degradation is linear, exponential, or has plateaus
  3. Abstract vs. Factual: Compare performance on memorized facts vs. synthetic relations
  4. 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

  1. ✅ Create research proposal document
  2. ⬜ Design dataset schema for n-ary relations
  3. ⬜ Implement dataset generators for each relation type
  4. ⬜ Build Inspect AI tasks with configurable arity
  5. ⬜ Develop custom scorers for relational inference
  6. ⬜ Run baseline experiments (n=2) to validate against reversal curse
  7. ⬜ Scale to n=3,4,5,6 across model tiers
  8. ⬜ Analyze results and plot capability curves
  9. ⬜ Write up findings comparing to existing benchmarks
  • 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?