Explainable Semantic Text Relations: A Question-Answering Framework for Comparing Document Content

Yehudit Aperstein, Alon Gottlib, Gal Benita, Alexander Apartsin
9/10/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Understanding semantic relations between two texts is crucial for many information and document management tasks, in which one must determine whether the content fully overlaps, is completely superseded by another document, or overlaps only partially, with unique information in each. Beyond establishing this relation, it is equally important to provide explainable outputs that specify which pieces of information are present, missing, or newly added between the text pair.

Show full abstract

In this study, we formally define semantic relations between two texts through the set-theoretic relation between their respective Answerable Question Sets (AQS), the sets of questions each text can answer. Under this formulation, Semantic Text Relation (STR), such as equivalence, inclusion, and mutual overlap, becomes a well-defined set relation between the corresponding texts' AQSs. The set differences between the AQSs also serve as an explanation or diagnostic tool for identifying how the information in the texts diverges. Using this definition, we construct a synthetic benchmark that captures fine-grained informational relations through controlled paraphrasing and deliberate information removal supported by AQS manipulations. We then use this dataset to evaluate several discriminative and generative models for classifying text pairs into STR categories, assessing how well different model architectures capture semantic relations beyond surface-level similarity. We publicly release both the dataset and the data generation code to support further research.

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. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

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

Similar Papers

Cite this paper

@article{aperstein2025explainable,
  title  = {Explainable Semantic Text Relations: A Question-Answering Framework for Comparing Document Content},
  author = {Yehudit Aperstein and Alon Gottlib and Gal Benita and Alexander Apartsin},
  year   = {2025},
  eprint = {2509.08304},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.08304v2}
}

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/2509.08304.svg)](https://codeofpaper.com/paper/2509.08304)

Discussion