Structure and Semantics Preserving Document Representations

Natraj Raman, Sameena Shah, Manuela Veloso

Introduction

Traditional document retrieval systems primarily rely on semantic similarity, matching query terms to document content. However, this approach often suffers from the "semantic gap," where relevant documents may not share explicit vocabulary with a query. While human readers can bridge these gaps through contextual knowledge and citation networks, computational models often struggle. Existing solutions typically bifurcate into NLP-based models (e.g., BERT), which excel at text understanding but ignore relational structure, and Graph Neural Networks (GNNs), which capture network structure but are often transductive and difficult to apply to out-of-sample queries.

Researchers at JPMorgan AI Research propose a novel inductive framework that integrates intra-document content with inter-document relations through deep metric learning. This approach preserves both the semantic meaning of text and the underlying structure of the document network.

Methodology

The proposed framework integrates content analysis, structure mining, and metric learning to produce an optimized embedding space for document retrieval.

Structure Mining

To capture relational context beyond direct citations, the framework employs a PageRank-based "intimacy matrix" to analyze document neighborhoods. By recursively subdividing the corpus, the model samples structurally similar and dissimilar pairs. This "divide and conquer" strategy ensures exposure to a spectrum of relationship strengths, from immediate neighbors to distant outliers.

Quintuplet Loss and Metric Learning

A core contribution of this work is the introduction of a Quintuplet Loss function. Unlike standard triplet loss, which uses an anchor, a positive, and a negative, the quintuplet loss processes five distinct inputs to balance semantic and structural signals:

The Quintuplet Loss architecture balances structural and semantic signals relative to a central anchor document.
  • Anchor: The target document.
  • Structural Positive/Negative: Documents identified as closely related or distant within the citation network.
  • Semantic Positive: A "corrupted" version of the anchor (via masked tokens) to encourage robust feature learning.
  • Semantic Negative: A "hard negative" sampled from the training batch.

Flexible Separation Margins

The model utilizes dynamic margins that grow geometrically based on the strength of the network connection between documents. This allows the embedding space to distinguish between strong relationships (e.g., direct citations) and weaker, multi-hop connections, providing a more nuanced representation than fixed-margin approaches.

Experimental Evaluation

The model was evaluated on four academic datasets with well-defined citation structures: SciDocs, Scholarly (ACM), arXivCS, and ACL-ARC. Evaluation focused on the model's ability to retrieve cited documents using paper titles and citation contexts as queries.

Key Results

The "Structure + Semantics" approach consistently outperformed state-of-the-art baselines. On the SciDocs dataset, a SciBERT-based implementation achieved a Recall@5 of 35.9%, a significant improvement over standard SciBERT (23.0%) and SentBERT (30.5%). Even when restricted to semantic similarity alone, the model showed a 2% improvement over SentBERT, with the gap widening as structural components were integrated.

Discussion and Conclusion

By incorporating citation networks, the model successfully bridges documents across different terminologies within the same research niche. The use of anchor corruption for semantic positives allows for deep feature learning without extensive manual labeling. Crucially, the model remains inductive; queries are projected into the learned embedding space, making it suitable for real-world applications where queries are not known beforehand.

Future work may explore multi-modal inputs (images, tables) and deeper integration with graph-specific embedding techniques. While the model handles new queries effectively, further research is needed to optimize the representation of "cold-start" documents that lack existing citation links.

Summary updated

BibTeX
@inproceedings{raman2022structure,
  author = {Natraj Raman and Sameena Shah and Manuela Veloso},
  title = {{Structure and Semantics Preserving Document Representations}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2022},
}
Figure