[Paper Review] Automatic punctuation restoration with BERT models
This paper presents a BERT-based approach for automatic punctuation restoration in English and Hungarian, leveraging fine-tuned multilingual and monolingual BERT models on ASR-like transcribed text. It achieves a macro F1-score of 79.8 on English (Ted Talks) and 82.2 on Hungarian (Szeged Treebank), with the latter being the first such BERT-based system for Hungarian, using data augmentation from a treebank and improved performance via ensemble predictions per token.
We present an approach for automatic punctuation restoration with BERT models for English and Hungarian. For English, we conduct our experiments on Ted Talks, a commonly used benchmark for punctuation restoration, while for Hungarian we evaluate our models on the Szeged Treebank dataset. Our best models achieve a macro-averaged $F_1$-score of 79.8 in English and 82.2 in Hungarian. Our code is publicly available.
Motivation & Objective
- To develop a neural punctuation restoration system for English using a fine-tuned BERT model on the IWSLT 2012 Ted Talks dataset.
- To extend the approach to Hungarian, a low-resource language, by adapting the Szeged Treebank into an ASR-like format for training.
- To evaluate the effectiveness of multilingual and monolingual BERT variants, including HuBERT, on punctuation restoration in Hungarian.
- To investigate the impact of multiple predictions per token on model performance through ensemble inference.
- To establish a publicly available codebase for reproducibility and future research in automatic punctuation restoration.
Proposed method
- The task is formulated as a sequence labeling problem with four classes: EMPTY, COMMA, PERIOD, and QUESTION, excluding rare punctuation marks.
- Preprocessing involves lowercasing, removing spaces before commas, and converting certain punctuation (e.g., exclamation marks to periods, colons to commas) to align with target classes.
- The model uses BERT-base uncased, BERT-base cased, mBERT, and HuBERT for English and Hungarian, with fine-tuning on the respective datasets.
- Multiple predictions per token are generated and aggregated to improve robustness and F1-score, especially for ambiguous or low-confidence tokens.
- The training data for Hungarian is derived from the Szeged Treebank by simulating ASR output through removing punctuation and normalizing spacing.
- Model selection is based on validation loss and macro F1-score, with final evaluation on the test set using the best-performing checkpoint.
Experimental results
Research questions
- RQ1Can a fine-tuned BERT model achieve competitive performance on automatic punctuation restoration in English using the IWSLT Ted Talks benchmark?
- RQ2Can a similar BERT-based approach be successfully adapted to Hungarian, a low-resource language with no existing punctuation restoration benchmark?
- RQ3How do different BERT variants—multilingual, monolingual, cased, uncased—perform on punctuation restoration in both languages?
- RQ4Does using multiple predictions per token significantly improve the macro F1-score in punctuation restoration?
- RQ5What is the impact of data preprocessing and label conversion on model performance, especially in handling rare punctuation marks?
Key findings
- The best-performing model on the English Ted Talks dataset achieved a macro F1-score of 79.8 using BERT-base-uncased with 64 predictions per token, matching state-of-the-art performance.
- For Hungarian, the HuBERT model achieved the highest macro F1-score of 82.2, significantly outperforming the best multilingual BERT variant (66.0 F1) by 12.2 absolute points.
- Using multiple predictions per token improved the macro F1-score by 5 percentage points in English and 2.4 percentage points in Hungarian, demonstrating the benefit of ensemble inference.
- The uncased BERT variant outperformed the cased version in both languages, likely due to the lowercase preprocessing that reduces bias in period prediction.
- The Szeged Treebank was successfully adapted into an ASR-like format, enabling effective fine-tuning of BERT models for Hungarian punctuation restoration.
- The study presents the first BERT-based punctuation restoration system for Hungarian, with publicly available code and models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.