Abstract
Automated document classification for books often relies on short, promotional blurbs that lack objective descriptive power. This paper presents a multimodal approach that enhances a German BERT model with engineered metadata and Knowledge Graph (KG) embeddings of authors sourced from Wikidata. By integrating external biographical and topical context, the proposed architecture significantly improves performance on hierarchical genre classification, particularly for fine-grained categories where textual data is sparse.
Introduction
Classifying books into specific genres or topics based solely on "blurbs" (cover texts) is a persistent challenge in NLP. These texts are typically marketing-oriented teasers rather than neutral summaries. Furthermore, detailed genre taxonomies often suffer from severe class imbalance, making it difficult for models to learn niche categories with few training examples. This study investigates whether deep language models can be enriched with external, non-textual context—specifically metadata and author identity—to bridge the gap when textual information is insufficient.
Methodology
The authors propose a multimodal neural architecture designed to fuse textual representations with structured external knowledge.
The model consists of four primary components:
- Text Representation: A pre-trained German BERT model processes the concatenated title and blurb of a book to generate a contextualized text vector.
- Metadata Features: A 10-dimensional vector captures explicit characteristics such as the number of authors, academic titles (e.g., Dr./Prof.), word counts, and inferred author gender.
- Author Embeddings: To capture author identity and style, PyTorch BigGraph embeddings are trained on the Wikidata knowledge graph. Authors are mapped to Wikidata entities, resulting in a 200-dimensional dense vector representing topical and biographical similarities.
- Fusion and Classification: These three vectors are concatenated and passed through a 2-layer Multilayer Perceptron (MLP) with a Softmax output for multi-label classification.
Datasets and Experimental Setup
The experiments utilize the GermEval 2019 shared task dataset, comprising 20,784 German books. The dataset includes titles, authors, blurbs (averaging 95 words), and labels based on the Random House publisher taxonomy. The evaluation covers two sub-tasks:
- Sub-task A: Coarse-grained classification (8 top-level labels).
- Sub-task B: Fine-grained classification (343 detailed labels).
As shown in the distribution of samples, the dataset exhibits significant class imbalance, particularly for the 343 labels in Sub-task B, where many categories have fewer than 10 training examples.
Key Results and Insights
The enriched model achieved state-of-the-art results on the GermEval 2019 dataset. In Sub-task A, the fully enriched model reached an F1-score of 87.20, outperforming the text-only German BERT (86.65). The impact was even more significant in the fine-grained Sub-task B, where the enriched model achieved an F1-score of 64.70, compared to 60.51 for the text-only model.
Several key insights emerged:
- Author Identity as a Predictive Signal: Injecting Wikidata graph embeddings provides a strong signal regarding an author's domain expertise, effectively compensating for uninformative blurbs. An author-only baseline achieved an F1 of 61.99 on Task A, demonstrating the richness of the graph embeddings.
- Language-Specific Models: Monolingual BERT models trained specifically on German text outperformed standard Multilingual BERT, highlighting the value of dedicated language resources.
- Complementary Features: Simple engineered metadata continues to provide value even when paired with powerful transformer models.
Conclusion and Future Work
While the integration of Knowledge Graph embeddings significantly boosts performance, challenges remain. The current model flattens the hierarchical taxonomy, which can lead to logical inconsistencies in predictions. Additionally, the severe class imbalance in fine-grained tasks results in low recall for rare labels. Future work will explore the use of label embeddings to map semantically similar categories closer together, potentially improving generalization for niche genres with limited training data.
Summary updated