Bilinear relational structure fixes reversal curse and enables consistent model editing
Dong-Kyum Kim, Minsung Kim, Jea Kwon, Nakyeong Yang, Meeyoung Cha
TL;DR
The paper reframes the reversal curse as a consequence of internal relational geometry rather than a fundamental limitation, arguing that a bilinear relational structure with relation-specific matrices $M_r$ can enable symmetric inference and consistent model editing. By training decoder-only transformers from scratch on a carefully designed synthetic relational knowledge graph, the authors show that regularization can induce a robust bilinear representation, which is validated by targeted probes and algebraic tests for inversion and composition. Crucially, they demonstrate a strong link between the presence of this bilinear structure and the model's ability to propagate edits to entailed facts, suggesting that editing success depends on representational geometry as much as on editing algorithms. The findings imply that preparing models with structured knowledge representations could yield more reliable, logically consistent LMs, while also highlighting safety considerations due to potential cascading generalizations.
Abstract
The reversal curse -- a language model's (LM) inability to infer an unseen fact ``B is A'' from a learned fact ``A is B'' -- is widely considered a fundamental limitation. We show that this is not an inherent failure but an artifact of how models encode knowledge. By training LMs from scratch on a synthetic dataset of relational knowledge graphs, we demonstrate that bilinear relational structure emerges in their hidden representations. This structure substantially alleviates the reversal curse, enabling LMs to infer unseen reverse facts. Crucially, we also find that this bilinear structure plays a key role in consistent model editing. When a fact is updated in a LM with this structure, the edit correctly propagates to its reverse and other logically dependent facts. In contrast, models lacking this representation not only suffer from the reversal curse but also fail to generalize edits, further introducing logical inconsistencies. Our results establish that training on a relational knowledge dataset induces the emergence of bilinear internal representations, which in turn enable LMs to behave in a logically consistent manner after editing. This implies that the success of model editing depends critically not just on editing algorithms but on the underlying representational geometry of the knowledge being modified.
