TL;DR
Researchers have discovered that Transformer-based models like BERT and RoBERTa incidentally learn high-level, "philosophical" categories—such as distinguishing a "Biological-Object" from a "Socially-Constructed-Person"—during their standard pre-training. By "probing" the internal layers of these models, the authors show that we can build highly accurate abstract semantic taggers (reaching ~90% accuracy) that map words to their most fundamental ontological roots.
Problem Statement
While large language models (LLMs) excel at capturing grammar and surface-level semantics, it remains unclear if they understand the fundamental "nature" of the entities they process. In computer science and philosophy, this is the domain of Foundational Ontologies (FO).
Foundational ontologies provide a domain-agnostic, top-level classification system. For instance, in the sentence "The doctor examined the ventricle," an FO would map "ventricle" to the abstract class Biological-Object. This level of abstraction is essential for human-like reasoning and cross-domain generalization. This research investigates whether Transformers merely perform sophisticated pattern matching or if they develop internal representations of these universal, abstract categories.
Experimental Methodology
The authors investigate FO encoding using two primary techniques: Probing and Fine-tuning across three distinct experimental tasks.
- Probing (Diagnostic Classification): This involves analyzing a frozen, pre-trained model. A simple classifier (Linear probe or Multi-Layer Perceptron) is trained on the model's internal representations to determine if FO information is present.
- Fine-tuning: The model's weights are updated specifically for FO tagging to evaluate its capacity to learn the task when explicitly supervised.
As shown in Figure 1, the tasks include:
- Basic FO Tagging: Classifying a word within a sentence into one of six FO classes.
- Binary Task: Determining if a specific FO label is "correct" for a given word/sentence pair (framed as a Natural Language Inference task).
- Singular Contextualised Embedding Probe: Classifying based solely on the target word's embedding within its context to test the information density of specific word representations.
Dataset Construction
The study introduces a novel Foundational Ontology tagging dataset derived from the WordNet-DOLCE mapping, which aligns WordNet synsets with the Descriptive Ontology for Linguistic and Cognitive Engineering (DOLCE).
The authors annotated the Brown Corpus using this mapping, resulting in 2,760 unique samples (460 per class). The six categories investigated are: Socially-Constructed-Person, Cognitive-Event, Geographical-Role, Biological-Object, Non-Agentive-Functional-Object, and Information-Object.
Key Insights and Results
- Incidental Encoding: Transformers learn these abstract categories "by accident" during pre-training. The statistical structure of language alone is sufficient for models to form these internal clusters without explicit ontological supervision.
- Non-Linearity is Essential: Multi-Layer Perceptron (MLP) probes significantly outperformed linear probes. This suggests that while ontological information exists within the model, it is encoded in a complex, non-linear fashion.
- High Accuracy Taggers: When fine-tuned, models achieved a maximum accuracy of 0.90 on the FO tagging task. This demonstrates that robust, high-level semantic parsers can be efficiently built on top of existing LLMs.
- Probing Performance: Even without fine-tuning, MLP probes reached accuracies around 0.57 (compared to a random baseline of 0.17), confirming the presence of latent ontological knowledge.
- Class-wise Performance: Models were most accurate at identifying Socially-Constructed-Person (0.946) and slightly less precise with Biological-Object (0.857), likely reflecting concept frequency in training data.
- NLI Fine-tuning Impact: Interestingly, models pre-trained on Natural Language Inference (NLI) tasks—often associated with reasoning—did not show a significant advantage in FO encoding, suggesting task-specific training might not enhance general abstract knowledge.
Limitations and Future Work
The authors identify several areas for expansion:
- Dataset Scale: The current dataset (2,760 samples) is relatively small; future work should utilize larger, more diverse corpora.
- Granularity: The study focused on only six broad FO classes, whereas real-world ontologies are far more granular.
- Sequence-to-Sequence Modeling: Moving from term-level tagging to sequence-to-sequence taggers could allow for document-level ontological analysis.
- Causality: While the information is present, it remains to be proven whether models actively use this ontological knowledge to solve downstream tasks like translation or summarization.
Summary updated