Abstract
Distributed document representation is a fundamental task in natural language processing. Traditional methods primarily focus on local word or sentence context, often overlooking the global coherence that defines structured documents like scientific papers or patents. This paper introduces the Coupled Text Pair Embedding (CTPE) model, which learns document representations by maintaining the logical and syntactic coherence between segmented document parts (e.g., title and abstract). By training the model to distinguish between naturally coupled pairs and mismatched negative samples, we achieve superior performance in information retrieval and recommendation tasks across three large-scale scientific datasets.
The Challenge of Document Coherence
In NLP, "embedding" a document involves transforming it into a mathematical vector that captures its semantic essence. While existing methods excel at capturing local context, they often miss the "global coherence"—the logical "glue" that makes a document a unified whole. For scientific documents, this structure is vital; the relationship between a title and its abstract, or an abstract and its claims, is not random but highly structured. Ignoring this structure results in a loss of critical semantic information.
The CTPE Model: Learning from Structure
The proposed Coupled Text Pair Embedding (CTPE) model shifts the focus from word-level context to document-level structure. The methodology follows a structured pipeline:
- Segmentation: A document is split into two logical parts, such as the Title and the Abstract, forming a "coupled text pair."
- Negative Sampling: To teach the model what doesn't belong together, "uncoupled pairs" are created by pairing the first part of one document with a random second part from a different document.
- Architecture: The model employs two parallel Convolutional Neural Networks (CNNs). One processes the "former" part and the other processes the "latter" part, extracting structural features from both.
- Contrastive Learning: Using a margin-based loss function, the model is trained to maximize the similarity between coupled parts while minimizing it for uncoupled pairs.
- Coherence-Based Similarity: CTPE utilizes a custom similarity metric that measures cross-coherence between document bodies, rather than just comparing flat vectors.
Experimental Evaluation
The model was rigorously tested on three massive real-world datasets representing different domains of scientific literature. These datasets provide a robust benchmark for evaluating how well the model captures specialized technical language and document structures.
- arXiv: 1.1 million papers used for Information Retrieval tasks.
- DBLP: 3 million computer science papers used for Citation Recommendation.
- USPTO: 6.4 million patents used for Patent Recommendation.
Key Results and Insights
CTPE consistently outperformed 24 baseline methods, including popular models like TF-IDF, Word2Vec, and Doc2VecC.
- Superior Precision: On the arXiv dataset, CTPE achieved a precision of 30.66%, significantly outperforming Doc2VecC (28.25%).
- Information Retrieval: The model led with a Mean Average Precision (MAP) of 0.1893 on arXiv.
- Unsupervised Strength: Remarkably, CTPE outperformed several deep language models like BERT and XLNet in these unsupervised settings. This suggests that explicit modeling of document structure can be more effective than general-purpose pre-training for specific document-level tasks.
- Ablation Studies: Experiments confirmed that the coherence-based training objective was the primary driver of performance; removing it led to a significant drop in accuracy.
Conclusion and Future Work
The CTPE model demonstrates that coherence is a powerful signal for learning document representations. By treating a document as a structured dialogue between sections rather than a flat string of text, we can capture deeper semantic relationships.
Future work will focus on automating the document split points, which are currently defined manually, and extending the model to support multi-part coupling (e.g., Title + Abstract + Conclusion). Additionally, fine-tuning CTPE on supervised tasks like fake news detection or document classification could further expand its utility.
Summary updated