Cross-Domain Relational Transfer
Cross-Domain Relational Transfer
Research Question
Can LLMs apply learned relational patterns to entirely novel domains without domain-specific training? What makes a relation “arbitrarily applicable” vs. domain-bound?
Hypothesis
Models that understand relational frames abstractly can apply learned relation types to entirely novel domains without domain-specific training. Success on cross-domain relational transfer requires genuine understanding of relational structure rather than superficial pattern matching, and should correlate strongly with general intelligence measures.
Background & Motivation
In RFT, arbitrarily applicable relational responding means applying a relational frame independent of the specific stimuli involved. For humans:
- We learn “bigger than” with physical objects, but apply it to numbers, importance, risk, etc.
- We learn “contains” with physical containers, but apply it to sets, categories, stories
- We learn “causes” in physical systems, but apply it to social, economic, psychological domains
The key property: the relational frame transfers across arbitrary domains.
For LLMs, we can test:
- Learn a relation in Domain A
- Test application in Domain B (novel domain)
- Measure transfer success
This is stronger than typical few-shot learning because:
- Not just “learn to do task X” (task transfer)
- But “learn relational pattern R and apply to new domain” (relational transfer)
Implementation Approach
Core Test Structure
Phase 1: Teach relation in Source Domain
Phase 2: Test relation in Target Domain (no additional teaching)
Phase 3: Measure transfer accuracy
Test Case Categories
Test 1: Spatial to Abstract Transfer
Source Domain: Physical spatial relations
Examples:
"The cup is ABOVE the table" → vertical spatial relation
"The cloud is ABOVE the mountain"
"The hat is ABOVE the person's head"
Target Domain: Abstract hierarchy
Transfer queries:
"In an organization, the CEO is ___ the manager"
Expected: "ABOVE" (hierarchical sense)
"In a food chain, predators are ___ prey"
Expected: "ABOVE" (dominance sense)
Scoring: Did model correctly apply “ABOVE” frame to new domain?
Test 2: Numerical to Social Transfer
Source Domain: Numerical comparison
Examples:
"7 is MORE-THAN 3"
"100 is MORE-THAN 50"
"π is MORE-THAN 2"
Target Domain: Social comparisons
Transfer queries:
"In terms of seniority, a professor is ___ a graduate student"
Expected: "MORE-THAN" or similar relational frame
"In terms of authority, a judge is ___ a lawyer in court"
Expected: "MORE-THAN"
Test 3: Temporal to Causal Transfer
Source Domain: Temporal sequence
Examples:
"Sunrise BEFORE noon"
"Childhood BEFORE adulthood"
"Spring BEFORE summer"
Target Domain: Causal sequence
Transfer queries:
"In a chain of events, cause is ___ effect"
Expected: "BEFORE" (temporal precedence implies causal precedence)
"In a recipe, mixing ingredients is ___ baking"
Expected: "BEFORE"
Test 4: Physical to Conceptual Transfer
Source Domain: Physical containment
Examples:
"Water IN bottle"
"Books IN backpack"
"Food IN refrigerator"
Target Domain: Conceptual containment
Transfer queries:
"Ideas ___ theories"
Expected: "IN" or "contained in"
"Species ___ genus"
Expected: "IN" (taxonomic containment)
Test 5: Novel Synthetic Relations
Source Domain: Completely novel relation in Domain A
Teach "FLORPS" relation in artificial context:
"A FLORPS B means A provides structure for B"
Examples:
"Skeleton FLORPS body"
"Framework FLORPS building"
"Outline FLORPS essay"
Target Domain: Transfer to new context
"Database schema ___ data"
Expected: "FLORPS" (provides structure)
"Grammar ___ language"
Expected: "FLORPS"
Evaluation Design (Inspect AI)
@task
def cross_domain_relational_transfer(
relation_type: str = "spatial_to_abstract",
n_source_examples: int = 5,
test_explicit_teaching: bool = False,
):
"""
Test cross-domain transfer of relational frames.
Process:
1. Provide examples of relation in source domain
2. Test application in target domain (different entities, context)
3. Score transfer accuracy
Variations:
- Explicit: "The relation ABOVE can mean hierarchical or spatial"
- Implicit: Only provide examples, expect model to infer applicability
relation_type options:
- spatial_to_abstract: Physical space → abstract hierarchy
- numerical_to_social: Numbers → social rankings
- temporal_to_causal: Time sequence → causal sequence
- physical_to_conceptual: Physical containment → conceptual containment
- novel_synthetic: Completely novel relation type
"""
return Task(
dataset=generate_transfer_dataset(relation_type, n_source_examples),
solver=[
system_message(RELATIONAL_TRANSFER_PROMPT),
teach_source_domain_relation(),
test_target_domain_transfer(),
generate(),
],
scorer=transfer_accuracy_scorer(),
metadata={
"source_domain": get_source_domain(relation_type),
"target_domain": get_target_domain(relation_type),
"explicit_teaching": test_explicit_teaching,
}
)
Control Conditions
To ensure transfer is genuine relational understanding, not pattern matching:
Control 1: Non-Transferable Relations
Test with relations that should NOT transfer:
Source: "Red is color-of apple"
Target: "Democracy is color-of government"
Expected: Model should recognize this doesn't transfer
Control 2: Interference Conditions
Teach relation R1 in Domain A
Teach contradictory relation R2 in Domain B
Test R1 in Domain C
Does the model correctly apply R1, or get confused by R2?
Control 3: Partial Transfer
Some relations transfer partially:
"Contains" transfers from physical → conceptual
But "heavier than" does NOT transfer from physical → abstract the same way
Test model's discrimination between transferable and non-transferable aspects
Scoring Metrics
-
Transfer Accuracy
- Proportion of correct transfers to novel domain
- By relation type (which relations transfer better?)
-
Transfer Latency
- How many source examples needed for successful transfer?
- Frontier models: fewer examples needed
-
Discrimination
- Can model correctly reject non-transferable relations?
- Precision: avoid spurious transfers
-
Generalization Depth
- Can model transfer to 2nd, 3rd novel domains?
- Does initial transfer enable further generalization?
-
Explicit vs. Implicit
- Transfer with explicit teaching (“this relation can apply to…”)
- Transfer from examples alone (implicit pattern learning)
Expected Outcomes
Capability Tiers
Frontier models:
- Strong transfer on standard relation types (spatial, numerical)
- Can learn novel relations and transfer them
- Discriminate between transferable and non-transferable
- Succeed with minimal source examples
Mid-tier models:
- Transfer common relations (spatial, temporal)
- Struggle with novel relation types
- May over-generalize (transfer when inappropriate)
Smaller models:
- Limited transfer, even for common relations
- Require many examples
- Fail on novel relation types
Evidence for Arbitrarily Applicable Relational Responding
If models show:
- Successful transfer across domains
- Discrimination (transfer appropriate relations, reject inappropriate)
- Novel relation learning and transfer
Then they exhibit genuine arbitrarily applicable relational responding.
Correlation with Intelligence
If cross-domain relational transfer correlates with:
- Analogical reasoning benchmarks
- Abstract reasoning tasks
- General problem-solving ability
Then relational flexibility is a core component of intelligence.
Connection to RFT
This directly tests the RFT concept of arbitrarily applicable relational responding - the ability to apply relational frames independent of the specific stimuli.
In RFT terms:
- Models should exhibit relational flexibility: same frame, different content
- Transfer requires abstract relational understanding: not tied to surface features
- This is foundational for generalization and analogical reasoning
Implementation Steps
- ✅ Create research proposal document
- ⬜ Design taxonomy of testable relation types
- ⬜ Build source domain example generators
- ⬜ Create target domain test queries
- ⬜ Implement control conditions (non-transferable relations)
- ⬜ Build transfer accuracy scorer
- ⬜ Create explicit vs. implicit teaching variations
- ⬜ Develop novel synthetic relation types
- ⬜ Implement Inspect AI tasks for each relation category
- ⬜ Run baseline: common relation transfers (spatial, numerical)
- ⬜ Test novel relation learning and transfer
- ⬜ Evaluate discrimination (appropriate vs. inappropriate transfer)
- ⬜ Analyze correlation with analogical reasoning benchmarks
- ⬜ Test multi-level transfer (Domain A → B → C)
Related Work
-
Analogical Reasoning:
- Gentner (1983): Structure-Mapping Theory
- Holyoak & Thagard (1989): Analogical Mapping by Constraint Satisfaction
- Webb et al. (2023): Emergent Analogical Reasoning in LLMs
-
Transfer Learning:
- Pan & Yang (2010): A Survey on Transfer Learning
- Yogatama et al. (2019): Learning and Evaluating General Linguistic Intelligence
-
Abstract Reasoning:
- Chollet (2019): On the Measure of Intelligence
- Hesse Corpus (2020): Abstract Reasoning Benchmark
-
RFT on Arbitrarily Applicable Relational Responding:
- Hayes et al. (2001): Relational Frame Theory: A Post-Skinnerian Account of Language
- Stewart et al. (2016): Understanding and applying relational frame theory
Open Questions
- What’s the minimum abstraction level required for successful transfer?
- Can we identify “primitive” relations that transfer more readily?
- How does linguistic framing affect transfer (same word vs. different words for relation)?
- Are there domain-specific transfer barriers (abstract→concrete harder than concrete→abstract)?
- Can models meta-learn to improve their transfer ability?
- How does chain-of-thought prompting affect cross-domain transfer?