[논문 리뷰] NER4all or Context is All You Need: Using LLMs for low-effort, high-performance NER on historical texts. A humanities informed approach
본 논문은 인문학에 기반한 프롬프트를 통해 out-of-the-box LLM이 역사적 NER에서 spaCy와 Flair보다 우수함을 보여주고, 맥락과 페르소나 모델링을 도입할수록 성능이 향상되며, 제로샷 프롬 prompting이 최대 16샷까지의 몇 샷 프롬프트를 능가할 수 있음을 시사한다.
Named entity recognition (NER) is a core task for historical research in automatically establishing all references to people, places, events and the like. Yet, do to the high linguistic and genre diversity of sources, only limited canonisation of spellings, the level of required historical domain knowledge, and the scarcity of annotated training data, established approaches to natural language processing (NLP) have been both extremely expensive and yielded only unsatisfactory results in terms of recall and precision. Our paper introduces a new approach. We demonstrate how readily-available, state-of-the-art LLMs significantly outperform two leading NLP frameworks, spaCy and flair, for NER in historical documents by seven to twentytwo percent higher F1-Scores. Our ablation study shows how providing historical context to the task and a bit of persona modelling that turns focus away from a purely linguistic approach are core to a successful prompting strategy. We also demonstrate that, contrary to our expectations, providing increasing numbers of examples in few-shot approaches does not improve recall or precision below a threshold of 16-shot. In consequence, our approach democratises access to NER for all historians by removing the barrier of scripting languages and computational skills required for established NLP tools and instead leveraging natural language prompts and consumer-grade tools and frontends.
연구 동기 및 목표
- 도메인 맥 context에 의해 주도되는 인문학-informed NER로 재정의한다.
- 역사적 NER에 대해 타깃 프롬pts를 사용한 상용 LLM의 성능을 평가한다.
- 역사 코퍼스에서 LLM 프롬 prompts 전략을 spaCy와 Flair의 기존 NER 파이프라인과 비교한다.
- 맥락, 페르소나 모델링, 소샷/다샷 변형이 재현율, 정확도, F1에 미치는 영향을 식별한다.
- 인문학 연구에서 NER 접근의 민주화를 위한 언어 효과 및 실용적 시사점을 평가한다.
제안 방법
- 1921년 베를린 가이드북에서 만든 실제 정답 코퍼스를 PER, ORG, LOC에 대해 주석 처리하여 사용한다.
- LLM 출력에 대해 span 기반의 태그 유사 주석 형식의 실제 토큰 구간을 사용한다.
- 맥락 정보와 페르소나 모델링을 포함하는 독일어/영어 프롬프트 체계를 개발하고 적용한다.
- 맥락, 페르소나 모델링, 제로-/소-/다샷 프롬프트의 영향을 정량화하기 위한 무상실 연구(ablation studies)를 수행한다.
- 정확도 지표를 위해 fuzzy span 매칭과 nervaluate를 사용하여 Flair와 spaCy의 베이스라인과 비교하여 LLM 출력을 평가한다.

실험 결과
연구 질문
- RQ1정제되지 않은 readily available LLM이 미세 조정 없이 역사 텍스트에서 더 높은 NER 재현율과 정밀도를 달성할 수 있는가?
- RQ2프롬프트 맥락, 페르소나 모델링, 샷 수가 역사적 코퍼스의 NER 성능에 어떤 영향을 미치는가?
- RQ3인문학-informed 프롬프트를 사용한 LLM이 역사 문서에서 spaCy와 Flair를 능가하는가?
- RQ4역사 프롬프트에서 프롬프트 언어(영어 대 독일어)의 영향은 어떻게 나타나는가?
- RQ5실용적 고려사항(비용, 맥락 창, 주석 작업)이 역사적 NER에서 LLM 사용에 어떤 영향을 미치는가?
주요 결과
- 인문학-informed 프롬프트를 사용하는 LLM이 역사적 NER에서 재현율과 정밀도 측면에서 spaCy와 Flair를 크게 능가한다.
- 제로샷 프롬프트가 약 16개의 예제가 사용될 때까지 몇 샷 프롬프트를 능가할 수 있으며, 예제가 많으면 항상 도움이 된다는 가정에 의문을 제기한다.
- 맥락 정보와 페르소나 모델링은 효과적인 프롬 prompting의 핵심이며, 일반적이거나 맥락이 없는 경우 성능이 현저히 감소한다.
- 독일어와 영어 프롬프트는 맥락과 페르소나 요소를 포함하는 경우 비슷한 결과를 낸다.
- Baseline Flair는 독일어 NER에서 0.76 재현율, 0.89 정밀도, 0.81 F1를 달성했고; spaCy는 LOC에서 0.82 재현율, PER에서 0.76, ORG에서 0.12 재현율으로 다소 뒤처졌으며 전체 F1은 0.50이었다.
- 제로샷과 맥락이 풍부한 프롬 prompting은 주석 데이터의 필요성을 줄여 역사학자의 연구에 대한 장벽을 낮춘다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.