Subtopic-aware View Sampling and Temporal Aggregation for Long-form Document Matching

Youchao Zhou, Heyan Huang, Zhijing Wu · DOI · OpenReview

TL;DR

This paper introduces SST, a novel framework for matching long documents by first identifying subtopics within document pairs and then constructing multiple "views" of the documents based on these subtopics. Instead of aggregating these views all at once, SST uses a "temporal aggregation" strategy to gradually integrate them during training, leading to improved performance on tasks like news duplication and legal case retrieval.

What Problem Does This Paper Address?

Matching long documents, such as news articles or legal cases, is crucial for many applications. Traditional methods often struggle because long documents contain multiple subtopics, and the relevance signals can be scattered and heterogeneous across these topics. Existing approaches that try to focus on specific subtopics by selecting "salient" sentences can miss important contextual information or be biased by focusing too narrowly. Furthermore, simply aggregating all extracted document views simultaneously (e.g., using attention mechanisms) can be challenging when these views contain diverse and potentially conflicting information. This paper aims to address these limitations by developing a method that can effectively capture and integrate heterogeneous matching signals from multiple subtopics within long documents.

Methods

The proposed framework, called SST (Subtopic-aware View Sampling and Temporal Aggregation), consists of two main strategies:

  1. Subtopic-aware View Sampling:
    • Document Pair Subtopic Discovery: The core idea here is to identify "subtopics" within pairs of documents. This is done by clustering sentences from both documents together. Sentences within the same cluster are considered aligned, while different clusters represent complementary or distinct subtopics. The authors propose two methods for this:
  2. Direct Clustering: Uses spectral clustering on a sentence similarity matrix derived from word overlap and sentence length.
  3. Adaptive Clustering: Employs a neural clustering approach with a custom loss function designed to better capture high-order sentence relationships, especially for positive and negative document pairs. This adaptive loss helps distinguish between sentences that might seem similar but have opposite meanings (negative pairs) and those that might seem dissimilar but contribute to overall relevance (positive pairs).
  4. View Sampling: Based on the discovered subtopics, multiple "views" of each document are constructed. These views aim to capture different aspects of the document's content. Three sampling methods are proposed:
  5. Uniform Sampling: Treats all subtopics equally, creating a heterogeneous view.
  6. Hard Sampling: Focuses on the largest subtopics, assuming they contain the most representative details.
  7. Soft Sampling: Balances the importance of aligned subtopics and individual document subtopics, aiming for moderately heterogeneous views.
  8. Temporal Aggregation:
    • Instead of aggregating all document views at once (spatial aggregation), SST uses a temporal aggregation strategy. During training, the model is exposed to different views of a document pair sequentially over epochs. This gradual integration allows the model to learn from diverse signals progressively, mimicking a form of ensemble learning. For inference, predictions from multiple views are aggregated using either max-pooling (for classification) or mean-pooling (for ranking).

Datasets

The authors evaluate their framework on two types of long-form document matching tasks:

  • News Duplication:
    • CNSE: Identifies if two news articles report on the same breaking news event.
  • CNSS: Identifies if two news articles belong to the same news series (a broader concept than CNSE).
  • Legal Case Retrieval:
    • LeCaRDv2: A large-scale Chinese legal case retrieval dataset.
  • COLIEE 2023: A dataset for legal information extraction/entailment.

The paper provides statistics for these datasets, including the number of query documents, candidate documents, relevant documents, and average sentence lengths.

Key Insights and Ideas

  • Subtopics are Key: The paper strongly emphasizes that long documents are not monolithic but composed of distinct subtopics, and understanding the relationships (alignment and complementarity) between these subtopics is crucial for accurate matching.
  • Heterogeneity is Valuable: Simply focusing on the most "aligned" or "salient" sentences can be misleading. Representative views that combine aligned subtopics with complementary ones, even if less similar, provide a more comprehensive signal.
  • Temporal Aggregation Beats Spatial: The novel temporal aggregation strategy, where views are integrated gradually during training, proves more effective than traditional methods that aggregate all views simultaneously (like attention). This suggests that sequential learning from diverse perspectives is beneficial.
  • Adaptive Clustering Matters: The proposed adaptive clustering loss for subtopic discovery significantly improves performance, especially in distinguishing subtle semantic differences between sentences in positive and negative document pairs.
  • Robustness to Document Length: The SST framework shows consistent performance across documents of varying lengths, indicating its adaptability.

Key Results

  • State-of-the-Art Performance: The SST framework, particularly with soft sampling and adaptive clustering, achieves state-of-the-art results on both news duplication and legal case retrieval tasks, outperforming various baseline models including traditional lexical models, hierarchical models, long-context models, and content selection models.
  • News Duplication: SST models (e.g., BERT + SSTas) achieve Accuracies of up to 87.65% and F1 scores of 86.45% on CNSE, and Accuracies of 93.45% and F1 scores of 93.58% on CNSS, significantly outperforming other methods.
  • Legal Case Retrieval: SST models also show substantial improvements in NDCG@10 scores on LeCaRDv2 (up to 53.19%) and COLIEE 2023 (up to 38.57%) compared to baselines.
  • Ablation Studies: Removing temporal aggregation or using attention for aggregation leads to significant performance drops, highlighting the importance of the proposed temporal strategy. Soft sampling generally outperforms hard sampling.

Limitations and Future Work

  • Computational Cost: While effective, the subtopic discovery and view sampling processes can add computational overhead.
  • Hyperparameter Sensitivity: The performance can be influenced by hyperparameter choices, such as the average cluster size, though the paper notes some robustness.
  • Future Work: The authors suggest further exploration into optimizing sampling strategies and investigating the interpretability of the discovered subtopics and views. They also mention that their framework is model-independent, suggesting it could be integrated with future advancements in underlying document encoding models.

Summary updated

BibTeX
@misc{zhou2024subtopic,
  author = {Youchao Zhou and Heyan Huang and Zhijing Wu},
  title = {{Subtopic-aware View Sampling and Temporal Aggregation for Long-form Document Matching}},
  year = {2024},
  eprint = {2412.07573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.07573},
}
Figure