Skip to main content
QUICK REVIEW

[논문 리뷰] NFLAT: Non-Flat-Lattice Transformer for Chinese Named Entity Recognition

Shuang Wu, Xiaoning Song|arXiv (Cornell University)|2022. 05. 12.
Topic ModelingComputer Science인용 수 19
한 줄 요약

이 논문은 InterFormer 모듈을 사용하여 어휘 융합을 맥락 인코딩에서 분리함으로써 계산 및 메모리 비용을 줄이는 비평탄 래티스 Transformer 아키텍처인 NFLAT을 제안한다. 상대적 위치 인코딩과 보조 <non_word> 태그를 활용함으로써 NFLAT는 FLAT보다 50% 낮은 메모리 사용량으로 최신 성능을 달성하며, 대규모 어휘 및 BERT와 같은 사전 훈련된 모델의 효율적 사용을 가능하게 한다.

ABSTRACT

Recently, Flat-LAttice Transformer (FLAT) has achieved great success in Chinese Named Entity Recognition (NER). FLAT performs lexical enhancement by constructing flat lattices, which mitigates the difficulties posed by blurred word boundaries and the lack of word semantics. In FLAT, the positions of starting and ending characters are used to connect a matching word. However, this method is likely to match more words when dealing with long texts, resulting in long input sequences. Therefore, it significantly increases the memory and computational costs of the self-attention module. To deal with this issue, we advocate a novel lexical enhancement method, InterFormer, that effectively reduces the amount of computational and memory costs by constructing non-flat lattices. Furthermore, with InterFormer as the backbone, we implement NFLAT for Chinese NER. NFLAT decouples lexicon fusion and context feature encoding. Compared with FLAT, it reduces unnecessary attention calculations in "word-character" and "word-word". This reduces the memory usage by about 50% and can use more extensive lexicons or higher batches for network training. The experimental results obtained on several well-known benchmarks demonstrate the superiority of the proposed method over the state-of-the-art hybrid (character-word) models.

연구 동기 및 목표

  • 중국어 NER에서 FLAT와 같은 평탄 래티스 방법의 높은 메모리 및 계산 비용을 해결하기 위해.
  • 어휘 강화 과정에서 어휘 수준 토큰화로 인한 시퀀스 길이 증가를 줄이기 위해.
  • 어휘 융합과 맥락 인코딩을 분리하여 효율성과 확장성을 향상시키기 위해.
  • 중국어 NER에서 대규모 어휘 및 BERT와 같은 사전 훈련된 모델의 효과적인 사용을 가능하게 하기 위해.
  • 문자 및 어휘 시퀀스의 공동 모델링을 위한 유연하고 모듈화된 어텐션 메커니즘(InterFormer)을 개발하기 위해.

제안 방법

  • 다른 길이의 두 시퀀스 간의 관계를 상대적 위치 인코딩을 사용하여 모델링하는 새로운 어텐션 메커니즘인 InterFormer을 제안한다.
  • 모든 문자-어휘 쌍을 전개하지 않기 때문에 FLAT에서 관찰되는 시퀀스 길이 폭발을 방지하는 비평탄 래티스 구조를 도입한다.
  • 노이즈가 많은 어텐션을 억제하기 위해 모델이 유효한 어휘-문자 쌍에 집중하도록 유도하기 위해 보조 <non_word> 토큰을 사용한다.
  • NER 파이프라인을 두 단계로 분리한다: InterFormer을 통한 어휘 융합과 표준 Transformer 레이어를 통한 맥락 인코딩.
  • 상호 어텐션에서 상대적 위치 인코딩을 활용하여 어휘 경계 정보를 유지하고 문자 및 어휘 간의 정렬을 향상시킨다.
  • 임bedding 레이어를 교체함으로써 BERT-wwm과 같은 사전 훈련된 모델과 통합하여 맥락적 특징과 어휘적 특징을 공동으로 사용할 수 있도록 한다.

실험 결과

연구 질문

  • RQ1비평탄 래티스 아키텍처는 성능을 희생시키지 않고 중국어 NER에서 어휘 강화의 메모리 및 계산 비용을 줄일 수 있는가?
  • RQ2상대적 위치 인코딩을 사용한 상호 어텐션은 표준 크로스 어텐션에 비해 어휘 경계 탐지에 어떻게 향상되는가?
  • RQ3<non_word> 보조 태그는 어휘-문자 정렬 과정에서 어텐션 메커니즘의 노이즈를 어느 정도 감소시키는가?
  • RQ4NFLAT는 더 큰 어휘 및 BERT와 같은 사전 훈련된 모델과 함께 효과적으로 확장될 수 있는가?
  • RQ5어휘 융합과 맥락 인코딩의 분리가 훈련 효율성과 모델 성능 향상에 어떻게 기여하는가?

주요 결과

  • NFLAT는 래티스에서 전체 시퀀스 전개를 방지함으로써 FLAT 대비 약 50%의 메모리 사용량 감소를 달성한다.
  • MSRA 벤치마크에서 NFLAT는 BERT+CRF를 사용해 96.40% F1을 기록하며, BERT+CRF(80.14% F1)와 FLAT(94.12% F1)를 모두 초월한다.
  • TX 어휘를 사용할 경우 NFLAT는 MSRA 데이터셋에서 82.78% F1을 기록하여 Lattice-LSTM와 CGN을 능가한다.
  • 제거 실험 결과 상대적 위치 인코딩을 제거하면 MSRA에서 F1이 93.03%로 감소하여 경계 인식에 있어 그 중요성을 입증한다.
  • <non_word> 태그를 제거하면 MSRA에서 성능이 93.66% F1로 떨어지며, 이는 노이즈 어텐션 억제 기능을 확인한다.
  • Weibo, Resume, Ontonotes, MSRA 등 여러 벤치마크에서 NFLAT는 강력한 성능을 유지하며, 강인성과 일반화 능력을 입증한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.