Capturing Symmetry and Antisymmetry in Language Models through Symmetry-Aware Training Objectives

Zhangdie Yuan, Andreas Vlachos
4/22/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Capturing symmetric (e.g., country borders another country) and antisymmetric (e.g., parent_of) relations is crucial for a variety of applications. This paper tackles this challenge by introducing a novel Wikidata-derived natural language inference dataset designed to evaluate large language models (LLMs). Our findings reveal that LLMs perform comparably to random chance on this benchmark, highlighting a gap in relational understanding. To address this, we explore encoder retraining via contrastive learning with k-nearest neighbors. The retrained encoder matches the performance of fine-tuned classification heads while offering additional benefits, including greater efficiency in few-shot learning and improved mitigation of catastrophic forgetting.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{yuan2025capturing,
  title  = {Capturing Symmetry and Antisymmetry in Language Models through Symmetry-Aware Training Objectives},
  author = {Zhangdie Yuan and Andreas Vlachos},
  year   = {2025},
  eprint = {2504.16312},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.16312v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.16312.svg)](https://codeofpaper.com/paper/2504.16312)

Discussion