From Tokens to Lattices: Emergent Lattice Structures in Language Models
Bo Xiong, Steffen Staab
TL;DR
This work tackles how conceptual structures emerge in pretrained masked language models (MLMs) by framing the problem with Formal Concept Analysis (FCA). It introduces a probabilistic triadic formal context constructed from MLMs via concept-pattern probing, enabling reconstruction of a concept lattice that includes latent concepts not defined by humans. The authors propose a practical lattice-construction framework (BertLattice) and provide theoretical and empirical analyses on three domain datasets, demonstrating that MLMs implicitly learn object-attribute dependencies and can recover meaningful lattices without relying on human-defined ontologies. The findings reveal latent, domain-spanning concepts and offer a scalable approach to extract concept lattices from pretrained models, with potential impacts on ontology discovery and knowledge representation in NLP systems.
Abstract
Pretrained masked language models (MLMs) have demonstrated an impressive capability to comprehend and encode conceptual knowledge, revealing a lattice structure among concepts. This raises a critical question: how does this conceptualization emerge from MLM pretraining? In this paper, we explore this problem from the perspective of Formal Concept Analysis (FCA), a mathematical framework that derives concept lattices from the observations of object-attribute relationships. We show that the MLM's objective implicitly learns a \emph{formal context} that describes objects, attributes, and their dependencies, which enables the reconstruction of a concept lattice through FCA. We propose a novel framework for concept lattice construction from pretrained MLMs and investigate the origin of the inductive biases of MLMs in lattice structure learning. Our framework differs from previous work because it does not rely on human-defined concepts and allows for discovering "latent" concepts that extend beyond human definitions. We create three datasets for evaluation, and the empirical results verify our hypothesis.
