Introduction
In modern machine learning, representing entities such as movies, books, or products as dense vectors (embeddings) is crucial for tasks ranging from recommendation systems to semantic search. Traditionally, these representations relied on supervised signals like user clickstreams or purchase histories. However, such data is often sparse or proprietary.
DOCENT (Deep Entity representations from Contextualized ENtity-Text) introduces a family of self-supervised models that learn entity embeddings by leveraging the vast, noisy collections of documents associated with them—such as the millions of reviews available on the web. By shifting the focus from local sentence context to global document collections, DOCENT captures high-level attributes that traditional language models might miss.
The Challenge: Beyond Local Context
Standard unsupervised language models like BERT are designed to predict a word based on its immediate neighbors. While effective for general language understanding, this approach is suboptimal for entities. A single sentence in a movie review might mention a specific actor, but it rarely captures the "essence" of the film (e.g., its mood, genre, or complex themes).
The authors argue that the true context for an entity is the aggregate of all documents describing it. The challenge lies in distilling this massive, often contradictory pile of text into a single vector that generalizes across different tasks.
The DOCENT Architectures
The researchers propose three distinct architectures to bridge the gap between text and entity representations:
- DOCENT-DUAL (RELIC): A dual-encoder framework where one encoder processes the entity and another processes a related sentence. It uses a contrastive objective to maximize the similarity between an entity and its descriptions while minimizing similarity with random negatives.
- DOCENT-FULL: This model integrates entities directly into the BERT vocabulary. By prepending a special entity token to sentences and using Masked Language Modeling (MLM), the model allows for deep cross-attention between the text and the entity representation.
- DOCENT-HYBRID: Combining the strengths of both, this model uses a dual-encoder structure but requires the entity embedding to assist in predicting masked words within the sentence. This forces the entity representation to retain salient attributes found across its document collection.
Benchmarking Entity Knowledge
To evaluate these models, the paper introduces two new datasets:
- Reviews2Movielens: A mapping of approximately 1 billion words from Amazon movie reviews to MovieLens tags, creating a rich ground truth for 470,000 movie-tag pairs.
- Reddit Movie Suggestions: A collection of 4,765 natural language queries (e.g., "movies with a dark atmosphere like Drive") used to test zero-shot search capabilities.
Experimental Results
DOCENT models demonstrate significant improvements over existing baselines in both closed-vocabulary and open-vocabulary settings.
In the MovieLens Tag Prediction task, DOCENT-FULL achieved a Mean Average Precision (MAP) of 44.7, surpassing the previous state-of-the-art TAGGENOME (43.9), which relies on extensive manual metadata. In Zero-Shot Search, DOCENT-HYBRID reached a Mean Reciprocal Rank (MRR) of 0.31, more than doubling the performance of traditional Lucene-based search (0.14).
Key insights from the results include:
- Global Context: Aggregating information across all reviews allows the model to learn latent attributes like "surrealism" or "pacing" that are rarely explicit in single sentences.
- Robustness of Hybrid Modeling: The joint objective of predicting the entity from text and the text from the entity (as seen in the Hybrid model) prevents overfitting and leads to more versatile embeddings.
- Efficiency: The models exhibit strong few-shot learning capabilities, reaching near-peak performance in open-vocabulary settings with only a fraction of the available training tags.
Conclusion and Future Work
DOCENT demonstrates that self-supervised learning from large document collections is a powerful alternative to supervised entity modeling. While a "human gap" remains—humans still outperform the best models in tag prediction—the ability to generate dense, searchable entity embeddings from noisy web text opens new doors for recommendation and discovery engines. Future research will focus on expanding these techniques to multi-modal data and broader domains like product catalogs and local business directories.
Summary updated