Skip to main content
QUICK REVIEW

[Paper Review] NoCoLA: The Norwegian Corpus of Linguistic Acceptability

Matias Jentoft, David Samuel|arXiv (Cornell University)|Jun 13, 2023
Natural Language Processing TechniquesComputer Science4 citations
TL;DR

This paper introduces NoCoLA, a new Norwegian corpus for evaluating linguistic acceptability in Bokmål, comprising two datasets: NoCoLA class for supervised binary classification and NoCoLA zero for zero-shot grammatical judgment. The key contribution is a benchmark that reveals Norwegian language models' strengths and weaknesses in understanding grammar, with NorBERT 3 large achieving the highest accuracy (82.48%) on NoCoLA class and 60.96% MCC, while smaller models like NorBERT 1 surprisingly outperform larger ones on zero-shot tasks.

ABSTRACT

While there has been a surge of large language models for Norwegian in recent years, we lack any tool to evaluate their understanding of grammaticality. We present two new Norwegian datasets for this task. NoCoLA_class is a supervised binary classification task where the goal is to discriminate between acceptable and non-acceptable sentences. On the other hand, NoCoLA_zero is a purely diagnostic task for evaluating the grammatical judgement of a language model in a completely zero-shot manner, i.e. without any further training. In this paper, we describe both datasets in detail, show how to use them for different flavors of language models, and conduct a comparative study of the existing Norwegian language models.

Motivation & Objective

  • To address the lack of standardized evaluation tools for Norwegian language models' grammatical understanding.
  • To create a linguistically grounded dataset reflecting natural errors from second language learners, rather than artificially constructed examples.
  • To enable both fine-tuned classification and zero-shot diagnostic evaluation of Norwegian language models.
  • To provide a benchmark for identifying model weaknesses in specific error types, such as morphology, word choice, and case agreement.
  • To release data and code to support ongoing evaluation and development of Norwegian NLP models.

Proposed method

  • NoCoLA class is a binary classification dataset with 10,600 sentences split into acceptable and non-acceptable, designed for supervised fine-tuning of language models.
  • NoCoLA zero is a zero-shot diagnostic task using minimal pairs where models assign probabilities to two sentences, one correct and one incorrect, to assess innate grammatical judgment.
  • The dataset is constructed from error-annotated learner corpora (e.g., SweLL), focusing on naturalistic errors in word choice, inflection, and syntax.
  • Evaluation uses standard metrics: accuracy and Matthews correlation coefficient (MCC) for NoCoLA class, and zero-shot accuracy for NoCoLA zero.
  • For masked language models, pseudo-log-likelihood (PLL) is used to estimate sentence probability: $\textrm{PLL}(\bm{s}) = \frac{1}{N}\sum_{t=1}^{N}{\textrm{log}\,p(\bm{s}_{t}|\bm{s}_{\setminus t};\theta)}$.
  • Models are evaluated across error types to enable fine-grained analysis of model performance on specific linguistic phenomena.

Experimental results

Research questions

  • RQ1How well do existing Norwegian language models distinguish between acceptable and unacceptable sentences in Bokmål?
  • RQ2Does zero-shot performance on NoCoLA zero provide a more reliable measure of innate grammatical understanding than fine-tuned classification?
  • RQ3Which error types (e.g., word choice, inflection, case) expose specific weaknesses in current Norwegian language models?
  • RQ4How does model size correlate with performance on acceptability judgment tasks?
  • RQ5Can NoCoLA serve as a standardized benchmark for future development and evaluation of Norwegian NLP models?

Key findings

  • NorBERT 3 large achieved the highest accuracy on NoCoLA class at 82.48%, with a Matthews correlation coefficient of 60.96%, indicating strong performance on the classification task.
  • Surprisingly, NorBERT 1 outperformed larger models on NoCoLA zero, achieving 90% accuracy, suggesting that smaller, cleaner pre-training corpora may enhance zero-shot grammatical judgment.
  • Increased model size did not consistently improve zero-shot performance, indicating that parameter count alone does not guarantee better grammatical understanding.
  • The NB-BERT large model showed particular weakness on punctuation-related errors, likely due to its uncased training data, which affects case sensitivity.
  • ScandiBERT performed comparably to Norwegian-specific models on most error types but was notably weaker on spelling errors, highlighting domain-specific limitations.
  • The results demonstrate that NoCoLA enables fine-grained error analysis, with low scores on specific error types serving as diagnostic indicators for model training data or tokenization issues.

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.