Skip to main content
QUICK REVIEW

[Paper Review] Do Transformers Encode a Foundational Ontology? Probing Abstract Classes in Natural Language

Mael Jullien, Marco Valentino|arXiv (Cornell University)|Jan 25, 2022
Topic ModelingComputer Science9 citations
TL;DR

This paper investigates whether large-scale Transformer language models encode a foundational ontology (FO) through systematic probing of abstract semantic categories. Using three complementary FO tagging tasks—basic, binary, and singular contextualized embedding probing—on diverse BERT and RoBERTa models, it demonstrates that Transformers incidentally learn FO-related representations during pre-training, enabling robust term-level FO taggers with ~90% accuracy using MLP probes.

ABSTRACT

With the methodological support of probing (or diagnostic classification), recent studies have demonstrated that Transformers encode syntactic and semantic information to some extent. Following this line of research, this paper aims at taking semantic probing to an abstraction extreme with the goal of answering the following research question: can contemporary Transformer-based models reflect an underlying Foundational Ontology? To this end, we present a systematic Foundational Ontology (FO) probing methodology to investigate whether Transformers-based models encode abstract semantic information. Following different pre-training and fine-tuning regimes, we present an extensive evaluation of a diverse set of large-scale language models over three distinct and complementary FO tagging experiments. Specifically, we present and discuss the following conclusions: (1) The probing results indicate that Transformer-based models incidentally encode information related to Foundational Ontologies during the pre-training pro-cess; (2) Robust FO taggers (accuracy of 90 percent)can be efficiently built leveraging on this knowledge.

Motivation & Objective

  • Investigate whether contemporary Transformer-based models encode an underlying Foundational Ontology (FO) during pre-training.
  • Address the challenge of abstract semantic reasoning in NLP by probing for domain-agnostic, high-level categories such as 'event' or 'biological-object'.
  • Develop and evaluate a systematic FO probing methodology to assess the extent of FO representation in contextualized embeddings.
  • Demonstrate the feasibility of building robust, efficient FO taggers leveraging pre-encoded semantic knowledge from large language models.
  • Examine the impact of different architectures and fine-tuning regimes (e.g., on NLI datasets) on FO encoding and downstream performance.

Proposed method

  • Design three distinct FO tagging tasks: Basic Foundational Ontology Tagging, Binary Task, and Singular Contextualised Embedding Probe, using WordNet-DOLCE alignments as a semantic reference.
  • Apply diagnostic classification (probing) with both linear and Multi-Layer Perceptron (MLP) probes to extract FO-related representations from contextualized embeddings.
  • Fine-tune BERT and RoBERTa models on multiple NLI datasets (SNLI, MNLI, QQP, MRPC) to assess the effect of downstream fine-tuning on FO encoding.
  • Use a curated dataset of 2,760 samples with 460 per class for the singular contextualized embedding probe, split into 552-552-1,656 for train/val/test.
  • Evaluate probe performance using accuracy and maximum selectivity, comparing results across architectures and probing types.
  • Open-source the FO probing pipeline, dataset, and trained tagger to support reproducibility and future research.

Experimental results

Research questions

  • RQ1Do pre-trained Transformer-based models incidentally encode foundational ontology (FO) categories during pre-training?
  • RQ2Can robust term-level FO taggers be constructed using the semantic knowledge encoded in pre-trained models?
  • RQ3How do different model architectures (e.g., BERT vs. RoBERTa) and fine-tuning procedures (e.g., on NLI data) affect the encoding of FO information?
  • RQ4Which probing method—linear or MLP—yields superior performance in detecting FO categories?
  • RQ5Is there a significant difference in FO encoding between base models and their NLI-fine-tuned counterparts?

Key findings

  • Transformer-based models incidentally encode information related to Foundational Ontologies during pre-training, as evidenced by significant performance above random baseline across all probing tasks.
  • MLP probes consistently outperform linear probes across all tasks, achieving the highest accuracy (up to 0.66) and maximum selectivity (up to 0.37), indicating their superior ability to extract abstract semantic knowledge.
  • Robust FO taggers with approximately 90% accuracy can be efficiently built by leveraging the pre-encoded FO knowledge in large language models, particularly using MLP probes.
  • No significant differences were observed between different model architectures (e.g., BERT vs. RoBERTa) or between base models and their NLI-fine-tuned variants, suggesting consistent FO encoding across configurations.
  • The best-performing model was RoBERTa large on the SNLI dataset, achieving 0.66 accuracy and 0.27 max selectivity with an MLP probe in the singular contextualized embedding task.
  • Fine-tuning on NLI datasets did not consistently improve FO probing performance, and in some cases, even reduced it, indicating that such fine-tuning may not enhance abstract semantic encoding.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.