Autoencoder-Based Framework to Capture Vocabulary Quality in NLP
Vu Minh Hoang Dang, Rakesh M. Verma
TL;DR
This work addresses the inadequacy of traditional lexical metrics to capture contextual, semantic, and structural aspects of vocabulary in NLP datasets. It introduces an autoencoder-based framework that uses neural capacity as a proxy for vocabulary richness, diversity, and complexity, employing two setups (basic non-bottlenecked and squeezed) and evaluating on the DIFrauD and Project Gutenberg corpora. Key findings show that richer vocabularies require wider hidden layers, results are robust to language and text length but sensitive to lexical depth and historical complexity, and there are notable differences between 18th- and 20th-century texts. While offering a flexible, data-driven approach, the work notes computational overhead and the need to combine its proxy with other measures, with future directions including noisy/low-resource data and contextual embeddings to enhance evaluation.
Abstract
Linguistic richness is essential for advancing natural language processing (NLP), as dataset characteristics often directly influence model performance. However, traditional metrics such as Type-Token Ratio (TTR), Vocabulary Diversity (VOCD), and Measure of Lexical Text Diversity (MTLD) do not adequately capture contextual relationships, semantic richness, and structural complexity. In this paper, we introduce an autoencoder-based framework that uses neural network capacity as a proxy for vocabulary richness, diversity, and complexity, enabling a dynamic assessment of the interplay between vocabulary size, sentence structure, and contextual depth. We validate our approach on two distinct datasets: the DIFrauD dataset, which spans multiple domains of deceptive and fraudulent text, and the Project Gutenberg dataset, representing diverse languages, genres, and historical periods. Experimental results highlight the robustness and adaptability of our method, offering practical guidance for dataset curation and NLP model design. By enhancing traditional vocabulary evaluation, our work fosters the development of more context-aware, linguistically adaptive NLP systems.
