What's in a prompt? Language models encode literary style in prompt embeddings
Not on the map. Why?
Abstract (arXiv)
Large language models use high-dimensional latent spaces to encode and process textual information. Much work has investigated how the conceptual content of words translates into geometrical relationships between their vector representations. Fewer studies analyze how the cumulative information of an entire prompt becomes condensed into individual embeddings under the action of transformer layers. We use literary pieces to show that information about intangible, rather than factual, aspects of the prompt are contained in deep representations. We observe that short excerpts (10 - 100 tokens) from different novels separate in the latent space independently from what next-token prediction they converge towards. Ensembles from books from the same authors are much more entangled than across authors, suggesting that embeddings encode stylistic features. This geometry of style may have applications for authorship attribution and literary analysis, but most importantly reveals the sophistication of information processing and compression accomplished by language models.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 18 of its 32 references that are in the map. First posted on arXiv 19 May 2025.
Builds on
18 of 32 references.
References · 18
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
- 2021Masked Language Modeling and the Distributional Hypothesis: Order Word Matters Pre-training for Littlecited by 177
- 2018Disentangled Representation Learning for Non-Parallel Text Style Transfercited by 127
- 2023The geometry of hidden representations of large transformer modelscited by 112
- 2022The Geometry of Multilingual Language Model Representationscited by 95
- 2022Same Author or Just Same Topic? Towards Content-Independent Style Representationscited by 86
- 2024The Geometry of Concepts: Sparse Autoencoder Feature Structurecited by 52
- 2021What Context Features Can Transformer Language Models Use?cited by 50
- 2024Authorship Attribution in the Era of LLMs: Problems, Methodologies, and Challengescited by 47
6 more
- 2023Learning Interpretable Style Embeddings via Prompting LLMscited by 30
- 2025The Geometry of Prompting: Unveiling Distinct Mechanisms of Task Adaptation in Language Modelscited by 18
- 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Modelscited by 17
- 2024Sui Generis: Large Language Models for Authorship Attribution and Verification in Latincited by 9
- 2023Representation Of Lexical Stylistic Features In Language Models' Embedding Spacecited by 8
- 2024Latent Space Interpretation for Stylistic Analysis and Explainable Authorship Attributioncited by 7
Built on by
Citing papers per year: 2026: 1.
1 paper.