Skip to main content
QUICK REVIEW

[Paper Review] BERTino: an Italian DistilBERT model

Matteo Muffo, Enrico Bertino|arXiv (Cornell University)|Mar 31, 2023
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

BERTino is a lightweight, distillation-based BERT model fine-tuned on a large Italian corpus, offering comparable performance to full BERT and GilBERTo on Italian NLP tasks while reducing fine-tuning and inference time by nearly 50%. It achieves this through knowledge distillation, making it ideal for resource-constrained deployment in Italian NLP applications.

ABSTRACT

The recent introduction of Transformers language representation models allowed great improvements in many natural language processing (NLP) tasks. However, if on one hand the performances achieved by this kind of architectures are surprising, on the other their usability is limited by the high number of parameters which constitute their network, resulting in high computational and memory demands. In this work we present BERTino, a DistilBERT model which proposes to be the first lightweight alternative to the BERT architecture specific for the Italian language. We evaluated BERTino on the Italian ISDT, Italian ParTUT, Italian WikiNER and multiclass classification tasks, obtaining F1 scores comparable to those obtained by a BERTBASE with a remarkable improvement in training and inference speed.

Motivation & Objective

  • To develop a lightweight, efficient alternative to BERT specifically for the Italian language.
  • To reduce computational and memory demands of BERT without sacrificing significant performance on Italian NLP tasks.
  • To leverage knowledge distillation to transfer knowledge from a larger teacher model to a smaller, faster architecture.
  • To evaluate the model on diverse Italian NLP benchmarks, including POS tagging, NER, and multi-class sentence classification.
  • To provide a publicly available, general-domain, and efficient NLP solution for Italian language processing.

Proposed method

  • Fine-tuned a DistilBERT architecture using knowledge distillation to transfer knowledge from a larger BERT_base model.
  • Pre-trained BERTino on a large, general-domain Italian text corpus using masked language modeling, distillation loss, and cosine-similarity loss.
  • Trained the model on 4 Tesla K80 GPUs for 3 epochs with a batch size of 6 and an initial learning rate of 5×10⁻⁴.
  • Applied the same hyperparameters (batch size 32, initial LR 5×10⁻⁵) for fine-tuning across all downstream tasks.
  • Used Hugging Face Transformers library for model training and inference pipelines.
  • Evaluated performance on ISDT, ParTUT, WikiNER, and a novel multi-class intent detection dataset with 139 classes.

Experimental results

Research questions

  • RQ1Can a distilled BERT model achieve competitive performance on Italian NLP tasks while significantly reducing computational cost?
  • RQ2How does BERTino compare to its teacher model and GilBERTo in terms of F1 score and inference speed on Italian POS tagging tasks?
  • RQ3To what extent does knowledge distillation preserve performance when reducing BERT's parameter count for the Italian language?
  • RQ4Can a lightweight model like BERTino generalize well across diverse Italian NLP tasks, including NER and multi-class sentence classification?
  • RQ5Does a smaller model trained on a monolingual Italian corpus outperform multilingual BERT variants on Italian-specific benchmarks?

Key findings

  • BERTino achieved an F1 score of 0.9800 on the Italian ISDT task, slightly below the teacher model’s 0.9829, but with 43% faster fine-tuning and 50% faster evaluation.
  • On the Italian ParTUT POS tagging task, BERTino reached 0.9193 F1, outperforming GilBERTo (0.9621) and matching the teacher model’s performance with significantly reduced training time.
  • For the Italian WikiNER task, BERTino achieved 0.9039 F1, outperforming GilBERTo (0.9136) and approaching the teacher model’s 0.9176, while cutting fine-tuning time by 43%.
  • In the multi-class sentence classification task, BERTino achieved 0.7766 F1, outperforming GilBERTo (0.7381) and reducing fine-tuning time by 43% compared to the teacher model.
  • BERTino reduced fine-tuning time by nearly 50% and evaluation time by up to 50% across all tasks, demonstrating strong efficiency gains.
  • The model’s performance across diverse tasks confirms that knowledge distillation effectively preserves linguistic understanding in a smaller, faster architecture for Italian NLP.

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.