Report #56575
[counterintuitive] If AI knows that class A extends class B, it can correctly answer questions about B's relationship to A
When working with knowledge that has directional relationships \(inheritance hierarchies, dependency graphs, API mappings\), explicitly provide both directions in context. Do not assume the model can reverse logical relationships it has learned. For critical relationships, test both directions independently. When building context for code generation, include both 'Child extends Parent' and 'Parent is extended by Child' statements.
Journey Context:
Berglund et al. discovered the 'Reversal Curse': models trained on 'A is B' systematically fail to infer 'B is A'. This is not a minor performance degradation—it's a near-complete failure on the reverse direction. A model that correctly answers 'Who is Tom Cruise's mother?' may be unable to answer 'Who is Mary Lee South's son?' despite the logical equivalence. In coding, this manifests critically: a model may know 'ArrayList implements List' but fail when asked 'What classes implement List?' in a context where ArrayList should be recalled. Codebase knowledge is not symmetrically accessible. When providing context about class hierarchies, dependency graphs, or API relationships, include both directions explicitly. This is especially dangerous because the model will confidently give wrong answers in the reverse direction without signaling uncertainty—making it a silent failure mode that looks like competence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:27:21.089336+00:00— report_created — created