Context-Dependent Stimulus Function Transfer
Context-Dependent Stimulus Function Transfer
Research Question
Can LLMs modulate function transfer based on contextual framing? Do they show sensitivity to when relational context permits or blocks function transfer?
Hypothesis
Models can modulate function transfer based on contextual framing, showing sensitivity to relational context. Advanced models should exhibit contextual sensitivity - transferring functions when appropriate for the context and blocking transfer when inappropriate - demonstrating nuanced relational understanding.
Background & Motivation
In RFT, transfer of stimulus function is not absolute - it’s modulated by context. The same relation might support function transfer in one context but not another.
Human example:
- Context 1 (Biology): “Whales are like fish” → aquatic properties transfer
- Context 2 (Taxonomy): “Whales are NOT like fish” → taxonomic properties don’t transfer
Another example:
- Context 1 (Professional): “Alice is like Bob” → work habits might transfer
- Context 2 (Personal): “Alice is like Bob” → personality traits might transfer
- These are different similarity relations in different contexts
For LLMs, this tests:
- Can they track multiple contexts simultaneously?
- Do they modulate function transfer based on context?
- Can they explicitly reason about context-appropriateness?
This is more sophisticated than basic function transfer - it requires contextual discrimination.
Implementation Approach
Test Categories
Test 1: Domain-Specific Function Transfer
Same relation, different domains, different transfer patterns
Setup entities:
- Mars (planet)
- Earth (planet)
Context 1 - Astronomical:
"Mars and Earth are similar in size"
Q: "Does Mars have a rocky surface like Earth?"
Expected: Probably yes (geological similarity transfers in astronomical context)
Context 2 - Habitability:
"Mars and Earth are similar in being terrestrial planets"
Q: "Does Mars support life like Earth?"
Expected: No/Uncertain (habitability doesn't transfer despite planetary similarity)
Key test: Does model discriminate which properties transfer in which context?
Test 2: Framing Effects on Transfer
Explicit framing modulates transfer
Positive framing:
"Product A and Product B are from the same manufacturer"
"Product A is high quality"
Q: "What can we expect about Product B's quality?"
Expected: Positive transfer (same manufacturer suggests quality transfer)
Negative framing:
"Product A and Product B are from the same manufacturer, but different divisions"
"Product A is high quality"
Q: "What can we expect about Product B's quality?"
Expected: Weaker transfer ("but different divisions" blocks transfer)
Blocking framing:
"Product A and Product B are from the same manufacturer"
"However, Product B is an experimental line with inconsistent quality"
"Product A is high quality"
Q: "What can we expect about Product B's quality?"
Expected: No transfer (explicit blocking statement)
Test 3: Perspective-Dependent Transfer
Same facts, different perspectives, different transfers
Facts:
- Alice manages a team
- Bob is on Alice's team
- Alice received a bonus for good performance
Perspective 1 - Team success:
"Alice's bonus was for team performance"
Q: "Does this reflect well on Bob?"
Expected: Yes (team frame → success transfers to team members)
Perspective 2 - Individual achievement:
"Alice's bonus was for her personal leadership"
Q: "Does this reflect well on Bob?"
Expected: Less so (individual frame → success doesn't transfer as much)
Test 4: Temporal Context Modulation
Time-based context affects transfer
Setup:
"Restaurant A was excellent in 2020"
"Restaurant B is owned by the same chef as Restaurant A"
Context 1 - Recent:
"Restaurant B opened in 2021"
Q: "Is Restaurant B likely to be excellent?"
Expected: Yes (recent continuity)
Context 2 - Distant:
"Restaurant B opened in 2010 (before Restaurant A)"
Q: "Was Restaurant B excellent in 2010?"
Expected: Uncertain (predating success, transfer unclear)
Context 3 - Current:
"Restaurant A closed in 2022 due to quality issues"
Q: "Is Restaurant B currently excellent?"
Expected: Uncertain (intervening negative event blocks transfer)
Test 5: Hierarchical Context Switching
Different levels of abstraction affect transfer
Entity: Chocolate Cake
Context 1 - Nutritional:
"Cake is high in sugar"
Q: "Is chocolate cake unhealthy?"
Expected: Likely yes (property transfers at category level)
Context 2 - Hedonic:
"Cake is enjoyed at celebrations"
Q: "Is chocolate cake associated with happiness?"
Expected: Probably yes (cultural property transfers)
Context 3 - Chemical:
"Chocolate contains theobromine"
Q: "Does chocolate cake contain theobromine?"
Expected: Yes (chemical property transfers from ingredient to dish)
Test: Can model switch between these frames appropriately?
Evaluation Design (Inspect AI)
@task
def contextual_function_transfer(
context_type: str = "domain_specific",
context_complexity: int = 2, # number of competing contexts
):
"""
Test context-dependent modulation of function transfer.
context_type options:
- domain_specific: Different domains support different transfers
- framing_effects: Explicit framing permits or blocks transfer
- perspective_dependent: Same facts, different perspectives
- temporal: Time-based context affects transfer
- hierarchical: Different abstraction levels
context_complexity:
- 1: Single context (baseline)
- 2: Two contexts (discrimination task)
- 3+: Multiple contexts (complex discrimination)
"""
return Task(
dataset=generate_contextual_transfer_dataset(
context_type,
context_complexity
),
solver=[
system_message(CONTEXTUAL_TRANSFER_PROMPT),
establish_contexts(),
establish_function(),
provide_relation(),
query_with_context(),
generate(),
],
scorer=contextual_transfer_scorer(),
metadata={
"requires_context_tracking": True,
"context_switching": context_complexity > 1,
}
)
Experimental Variations
Variation 1: Explicit vs. Implicit Context
Explicit: “In the context of nutrition, …” Implicit: Reader must infer context from framing
Test whether models can infer context without explicit markers.
Variation 2: Context Conflict Resolution
Provide competing contexts that suggest different transfers:
"From a engineering perspective, Product A and B are similar"
"From a market positioning perspective, Product A and B are different"
"Product A is successful"
Q: "Will Product B be successful?"
Model must navigate conflicting contextual signals.
Variation 3: Context Updating
Start with one context, then update:
Initial: "Mars is similar to Earth"
Update: "Specifically, in terms of size and composition, not atmosphere"
Q: "Does Mars have breathable air like Earth?"
Model should update its transfer expectations based on context refinement.
Scoring Metrics
-
Context Discrimination
- Accuracy in identifying which context is active
- Transfer only when contextually appropriate
-
Transfer Modulation
- Does transfer strength vary with context framing?
- Quantitative: strong frame → strong transfer, weak frame → weak transfer
-
Blocking Sensitivity
- Can model recognize explicit blocking (“but”, “however”, “except”)
- Precision in NOT transferring when blocked
-
Context Switching
- Accuracy when rapidly switching between contexts
- Interference: does previous context affect current judgment?
-
Explanation Quality
- Can model articulate why context matters?
- “In this context… because…” reasoning
Expected Outcomes
Capability Tiers
Frontier models:
- High context discrimination
- Appropriate transfer modulation
- Recognize blocking signals
- Handle context switching
- Provide context-aware explanations
Mid-tier models:
- Basic context tracking
- May over-transfer (ignore blocking)
- Struggle with multiple contexts
- Limited explanation of context effects
Smaller models:
- Poor context sensitivity
- Uniform transfer regardless of context
- Fail to track context switches
Context Type Difficulty
We predict:
- Easiest: Explicit framing (clear blocking signals)
- Moderate: Domain-specific (requires domain knowledge)
- Hardest: Perspective-dependent (subtle inference)
Relationship to Intelligence
Context sensitivity in function transfer relates to:
- Pragmatic reasoning: Understanding situational appropriateness
- Theory of mind: Recognizing perspective-dependent truth
- Executive function: Context tracking and switching
- Nuanced reasoning: Going beyond simple rules
Connection to RFT
In RFT, contextual control is fundamental:
- Relational frames are established in context
- Context determines which relations are relevant
- Transfer is modulated by contextual cues
This research tests whether LLMs exhibit:
- Contextual discrimination: Different contexts → different behaviors
- Contextual generalization: Same context type → similar behaviors
- Contextual flexibility: Rapid context switching
Implementation Steps
- ✅ Create research proposal document
- ⬜ Design context type taxonomy
- ⬜ Build domain-specific context scenarios
- ⬜ Create framing effect templates (positive, negative, blocking)
- ⬜ Develop perspective-dependent scenarios
- ⬜ Build temporal context variations
- ⬜ Create hierarchical context switching tests
- ⬜ Implement context discrimination scorer
- ⬜ Develop transfer modulation metrics
- ⬜ Build blocking sensitivity evaluations
- ⬜ Create context switching test sequences
- ⬜ Implement Inspect AI tasks for each context type
- ⬜ Run baseline: explicit context markers
- ⬜ Test implicit context inference
- ⬜ Evaluate context conflict resolution
- ⬜ Analyze explanation quality
- ⬜ Compare to pragmatic reasoning benchmarks
Related Work
-
Contextual Reasoning:
- Dagan et al. (2013): Textual Entailment with Context
- Pavlick & Kwiatkowski (2019): Inherent Disagreements in Human Textual Inferences
-
Pragmatics in NLP:
- Grice (1975): Logic and Conversation (conversational implicature)
- Sperber & Wilson (1986): Relevance Theory
-
Frame Semantics:
- Fillmore (1982): Frame Semantics
- FrameNet: Baker et al. (1998)
-
RFT on Contextual Control:
- Hayes et al. (2001): Relational frames and contextual control
- McHugh & Stewart (2012): The Self and Perspective Taking
Open Questions
- How many contexts can models track simultaneously?
- Does context switching create interference effects (as in humans)?
- Can models learn context-appropriate transfer from examples?
- How does chain-of-thought affect context discrimination?
- Are there architectural features that predict context sensitivity?
- Can we identify when models represent context explicitly vs. implicitly?