On the literary landscapes of vector embeddings
Abstract From the early use of TF-IDF to the high-dimensional outputs of deep learning, vector space embeddings of text, at a scale ranging from token to document, are at the heart of all machine analysis and generation of text. In this article, we present the first large-scale comparison of a sampling of such techniques on a range of classification tasks on a large corpus of current literature drawn from the well-known Books3 data set. Specifically, we compare TF-IDF, Doc2vec and several Transformer-based embeddings on a variety of text-specific tasks. Using industry-standard BISAC codes as a proxy for genre, we compare embeddings in their ability to preserve information about genre. We further compare these embeddings in their ability to encode inter- and intra-book similarity. All of these comparisons take place at the book “chunk” (1,024 tokens) level. We find Transformer-based (“neural”) embeddings to be best, in the sense of their ability to respect genre and authorship, although almost all embedding techniques produce sensible constructions of a “literary landscape” as embodied by the Books3 corpus. These experiments suggest the possibility of using deep learning embeddings not only for advances in generative AI, but also a potential tool for book discovery and as an aid to various forms of more traditional comparative textual analysis.
Authors
- Allen Riddell (ORCID: https://orcid.org/0000-0002-4967-0879)
- J C Chen
- Daniel N. Rockmore (ORCID: https://orcid.org/0000-0001-5411-9224)
- Mohammad Javad Latifi Jebelli
- Harrison Stropkay
Institutions
- Dartmouth College (US)
- Santa Fe Institute (US)
- Dartmouth Hospital (GB)
- Indiana University (US)
Publication Details
- Journal
- Computational Humanities Research
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1017/chr.2025.10015
- Primary Topic
- Logic, Reasoning, and Knowledge
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Office of Naval Research