[Paper Review] Large Language Models for Simultaneous Named Entity Extraction and Spelling Correction
This paper investigates the use of decoder-only large language models (LLMs) for jointly extracting named entities (NEs) and correcting OCR-induced spelling errors in Japanese shop receipt text. Fine-tuning eight open-source LLMs and two BERT models on an OCR-processed receipt dataset, the best LLM achieves NE extraction performance on par with BERT baselines while demonstrating the ability to correct spelling errors in NEs, validating the feasibility of simultaneous NE extraction and spelling correction using generative LLMs.
Language Models (LMs) such as BERT, have been shown to perform well on the task of identifying Named Entities (NE) in text. A BERT LM is typically used as a classifier to classify individual tokens in the input text, or to classify spans of tokens, as belonging to one of a set of possible NE categories. In this paper, we hypothesise that decoder-only Large Language Models (LLMs) can also be used generatively to extract both the NE, as well as potentially recover the correct surface form of the NE, where any spelling errors that were present in the input text get automatically corrected. We fine-tune two BERT LMs as baselines, as well as eight open-source LLMs, on the task of producing NEs from text that was obtained by applying Optical Character Recognition (OCR) to images of Japanese shop receipts; in this work, we do not attempt to find or evaluate the location of NEs in the text. We show that the best fine-tuned LLM performs as well as, or slightly better than, the best fine-tuned BERT LM, although the differences are not significant. However, the best LLM is also shown to correct OCR errors in some cases, as initially hypothesised.
Motivation & Objective
- To evaluate whether decoder-only large language models (LLMs) can perform simultaneous named entity (NE) extraction and spelling correction on OCR-processed text.
- To compare the performance of fine-tuned LLMs against fine-tuned BERT models on a Japanese receipt text dataset with OCR-induced errors.
- To assess whether LLMs can automatically recover correct surface forms of named entities when given corrupted input from OCR.
- To investigate the generative capability of LLMs in handling both NE recognition and spelling correction in a single unified task.
Proposed method
- Fine-tune eight open-source LLMs and two BERT models on a Japanese receipt dataset where text was extracted via OCR, introducing spelling errors.
- Use a prompt-based generation approach where the input is the OCR-processed text and the output is a structured list of named entities with corrected surface forms.
- Train models end-to-end to generate NEs in a single forward pass, treating the task as a sequence-to-sequence generation problem.
- Evaluate performance using standard NER metrics such as precision, recall, and F1, focusing on entity type classification and surface form accuracy.
- Do not predict the spatial location of entities in the text, focusing solely on entity recognition and correction.
- Use a zero-shot or few-shot prompting strategy to guide the LLMs to generate structured outputs, such as JSON-formatted NEs.
Experimental results
Research questions
- RQ1Can decoder-only LLMs effectively perform named entity extraction on OCR-corrupted Japanese receipt text with comparable performance to BERT-based classifiers?
- RQ2To what extent can fine-tuned LLMs correct spelling errors in named entities without explicit error correction modules?
- RQ3Does the generative nature of LLMs enable them to recover the correct surface form of named entities when the input contains OCR-induced typos?
- RQ4How do LLMs compare to BERT-based models in terms of F1 score for named entity recognition and correction accuracy on this specific OCR-processed dataset?
Key findings
- The best fine-tuned LLM achieves named entity recognition performance that is on par with, or slightly better than, the best fine-tuned BERT model.
- The best-performing LLM demonstrates the ability to correct OCR-induced spelling errors in named entities, validating the hypothesis of simultaneous correction and extraction.
- The performance gap between the top LLM and BERT models is not statistically significant, indicating that LLMs are competitive for this task.
- LLMs show robustness in handling out-of-vocabulary and misspelled entities by generating corrected surface forms during inference.
- The results suggest that LLMs can serve as a unified solution for both NE extraction and spelling correction in low-resource, noisy text scenarios.
- The study confirms that generative LLMs can be effectively fine-tuned for structured information extraction tasks on domain-specific, error-prone text.
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.