Meta-Relational Reasoning: Relations about Relations

Research Question

Can LLMs reason about the properties of relations themselves (transitivity, symmetry, reflexivity, composition rules)? Can they apply this meta-knowledge to novel relations they’ve never encountered?

Hypothesis

Advanced models can reason about the properties of relations themselves and apply this meta-knowledge to predict how novel relations will behave. This meta-relational capability represents a higher level of abstraction and should be a strong predictor of general reasoning ability.

Background & Motivation

Humans don’t just learn individual relations - we learn about relations:

  • “Friendship is symmetric: if A is friends with B, then B is friends with A”
  • “Greater-than is transitive: if A > B and B > C, then A > C”
  • “Parent-of is not reflexive: you can’t be your own parent”
  • “Parent-of composed with parent-of gives grandparent-of”

This is meta-relational reasoning: understanding the formal properties of relational structures.

Key question for LLMs:

  • Can they identify relational properties from examples?
  • Can they predict how a relation will behave based on its properties?
  • Can they apply meta-knowledge to completely novel relations?

This goes beyond applying relations to new domains (previous research area). This is about understanding the mathematics of relations.

Implementation Approach

Test Categories

Test 1: Property Identification

Given examples of a relation, can model identify its properties?

Examples:
"Alice is-friends-with Bob"
"Bob is-friends-with Alice"
"Carol is-friends-with Dana"
"Dana is-friends-with Carol"

Query: "Is the 'is-friends-with' relation symmetric?"
Expected: "Yes"

Query: "If X is-friends-with Y, what can we infer about the reverse?"
Expected: "Y is-friends-with X"

Properties to test:

  • Symmetry: R(a,b) → R(b,a)
  • Transitivity: R(a,b) ∧ R(b,c) → R(a,c)
  • Reflexivity: R(a,a) for all a
  • Antisymmetry: R(a,b) ∧ R(b,a) → a=b
  • Irreflexivity: ¬R(a,a) for all a

Test 2: Property-Based Prediction

Given a relation’s properties, can model predict its behavior?

Given: "The relation GLORPS is transitive and symmetric"

Query: "If A GLORPS B and B GLORPS C, what can we infer?"
Expected: "A GLORPS C" (transitivity)

Query: "If A GLORPS B, what else is true?"
Expected: "B GLORPS A" (symmetry)

Combined: "What's the relationship between A and C?"
Expected: "A GLORPS C, and therefore C GLORPS A"

Test 3: Relation Composition

Can model understand how relations compose?

Teaching:
"parent-of composed with parent-of yields grandparent-of"
"parent-of composed with sibling-of yields aunt/uncle-of"

Query: "If we compose sibling-of with parent-of, what relation do we get?"
Expected: "aunt/uncle-of" or "parent's sibling"

Novel relations:
"If supervises-at-work composed with supervises-at-work gives 'indirect supervisor', what does manages-department composed with manages-department give?"

Expected: Model should recognize the pattern (higher-level management)

Test 4: Novel Relation Property Inference

Give model a novel relation and ask it to infer properties:

Novel relation: "FLORBS"
Examples:
- A FLORBS B
- B FLORBS C
- (later example shows) A FLORBS C

Query: "What property might FLORBS have?"
Expected: "Transitive" (inferred from examples)

Contrasting examples:
- A FLORBS B
- B does not FLORB A

Query: "Is FLORBS symmetric?"
Expected: "No" or "Appears to be asymmetric"

Test 5: Property Conflict Detection

Can model detect when relation usage violates stated properties?

Given: "The relation SAME-HEIGHT-AS is symmetric and transitive"

Scenario:
- Alice SAME-HEIGHT-AS Bob (height: 170cm)
- Bob SAME-HEIGHT-AS Carol (height: 170cm)
- Carol NOT-SAME-HEIGHT-AS Alice (height: 165cm)

Query: "Is there a contradiction in these statements?"
Expected: "Yes - if SAME-HEIGHT-AS is transitive, Alice should be same height as Carol"

Evaluation Design (Inspect AI)

@task
def meta_relational_reasoning(
    test_type: str = "property_identification",
    relation_familiarity: str = "common",  # common, uncommon, novel
):
    """
    Test reasoning about properties of relations.

    test_type options:
    - property_identification: Given examples, identify properties
    - property_prediction: Given properties, predict behavior
    - relation_composition: Understand how relations compose
    - novel_inference: Infer properties of novel relations
    - conflict_detection: Detect violations of relational properties

    relation_familiarity:
    - common: Everyday relations (friendship, parent-child)
    - uncommon: Less common but real (supervises, published-before)
    - novel: Completely synthetic (FLORBS, GLORPS)
    """
    return Task(
        dataset=generate_meta_relational_dataset(test_type, relation_familiarity),
        solver=[
            system_message(META_RELATIONAL_PROMPT),
            provide_examples_or_properties(),
            query_meta_knowledge(),
            generate(),
        ],
        scorer=meta_relational_scorer(test_type),
    )

Formal Property Framework

Test model understanding of these formal properties:

  1. Binary Properties (of single relations)

    • Reflexive: ∀x. R(x,x)
    • Irreflexive: ∀x. ¬R(x,x)
    • Symmetric: ∀x,y. R(x,y) → R(y,x)
    • Asymmetric: ∀x,y. R(x,y) → ¬R(y,x)
    • Antisymmetric: ∀x,y. [R(x,y) ∧ R(y,x)] → x=y
    • Transitive: ∀x,y,z. [R(x,y) ∧ R(y,z)] → R(x,z)
  2. Compositional Properties (of relation pairs)

    • R₁ ∘ R₂ = R₃ (specific composition)
    • Closure: R ∘ R ⊆ R
    • Inverse: R⁻¹(y,x) ⟺ R(x,y)
  3. Order Properties

    • Partial order: reflexive, antisymmetric, transitive
    • Total order: partial order + totality
    • Equivalence: reflexive, symmetric, transitive

Scoring Metrics

  1. Property Recognition Accuracy

    • Can model correctly identify properties from examples?
    • By property type (symmetry easier than transitivity?)
  2. Prediction Accuracy

    • Given properties, can model predict behavior?
    • Test on novel situations
  3. Composition Understanding

    • Can model compute relation compositions?
    • Can model learn composition rules?
  4. Transfer to Novel Relations

    • Does understanding of properties transfer to synthetic relations?
    • This is the key test: meta-knowledge should be domain-independent
  5. Conflict Detection

    • Can model identify logical inconsistencies?
    • Precision/recall on detecting property violations

Expected Outcomes

Capability Stratification

Frontier models:

  • Identify properties from examples reliably
  • Apply property knowledge to predict behavior
  • Understand relation composition
  • Transfer meta-knowledge to novel relations

Mid-tier models:

  • Recognize common properties (symmetry, transitivity)
  • Struggle with composition
  • Limited transfer to novel relations

Smaller models:

  • May pattern-match common cases
  • Fail to generalize property understanding
  • No genuine meta-relational reasoning

Correlation with Mathematical Reasoning

Meta-relational reasoning is closely tied to:

  • Abstract algebra (understanding group operations)
  • Graph theory (understanding graph properties)
  • Logic (understanding logical relations)

We predict strong correlation with:

  • Mathematical reasoning benchmarks (MATH, GSM8K)
  • Logical reasoning tasks
  • Formal verification capabilities

Evidence for Higher-Order Abstraction

If models succeed:

  • They’re reasoning about abstract properties, not just instances
  • They understand the “grammar” of relations
  • This is a form of meta-learning about relational structures

Connection to RFT

Meta-relational reasoning extends the RFT concept of arbitrarily applicable relational responding:

  • Not just applying relations across domains
  • But understanding what makes a relation transferable
  • Reasoning about classes of relations (all transitive relations, all symmetric relations)

This is analogous to human understanding that:

  • “All equivalence relations work the same way”
  • “Hierarchical relations have certain properties”

Implementation Steps

  1. ✅ Create research proposal document
  2. ⬜ Design formal property test suite
  3. ⬜ Build example generators for each property type
  4. ⬜ Create property identification test cases
  5. ⬜ Develop property-based prediction scenarios
  6. ⬜ Build relation composition examples
  7. ⬜ Design conflict detection test cases
  8. ⬜ Implement meta-relational scorer
  9. ⬜ Create novel relation property inference tests
  10. ⬜ Build Inspect AI tasks for each test category
  11. ⬜ Run baseline on common relations
  12. ⬜ Test on novel synthetic relations
  13. ⬜ Analyze correlation with math/logic benchmarks
  14. ⬜ Compare explicit property teaching vs. implicit learning
  • Relation Algebra:

    • Tarski (1941): On the Calculus of Relations
    • Maddux (2006): Relation Algebras
  • Knowledge Graph Reasoning:

    • Mitchell et al. (2018): Never-Ending Learning
    • Reasoning over KGs with rule learning
  • Program Synthesis:

    • Ellis et al. (2021): DreamCoder - Learning to Learn to Program
    • Lake et al. (2015): Human-level concept learning through probabilistic program induction
  • RFT on Relational Networks:

    • Barnes-Holmes et al. (2005): Psychological complexity and relational networks
    • Torneke (2010): Learning RFT: An Introduction to Relational Frame Theory

Open Questions

  • Can models learn property definitions from formal descriptions?
  • What’s the relationship between meta-relational reasoning and in-context learning?
  • Can we train models specifically to improve meta-relational understanding?
  • How does this relate to models’ ability to learn formal languages/logics?
  • Are there universals in how models learn relational properties?
  • Can models discover novel relational properties not explicitly taught?