How are Korean Neural Language Models ‘surprised’ Layerwisely?

How are Korean Neural Language Models ‘surprised’ Layerwisely?

초록

Since the introduction of BERT, recent works have shown success in detecting when a word is anomalous given sentence context. Since likelihood score is not an appropriate tool in identifying the exact property of linguistic anomaly, Li et al. (2021) recently adopt Gaussian models for density estimation at intermediate layers of pretrained language models. They find that different English pretrained language models employ separate mechanisms to recognize different types of linguistic anomaly. In keeping with Li et al.‘s methodology, we probe whether Korean counterparts such as KoBERT and KR-BERT are sensitive to different levels of linguistic anomaly, just as English-based language models are. To investigate the issue concerned, we construct an experiment with a suite of test data involving morphosyntactic, semantic, and commonsense anomaly in Korean and apply the two Korean-based models to test relevant sentences. We find that KoBERT and KR-BERT show relatively higher surprisal gaps throughout layers when the anomaly is morphosyntactic than when the anomaly is semantic. By contrast, commonsense anomaly does not exhibit any surprisal gap in any layer. We thus report that, like their English counterparts, KoBERT and KR-BERT use different mechanisms to track the different types of linguistic anomaly.

키워드

KR-BERTKoBERTlinguistic anomalysurprisal gaplayerwise한국어 신경망 언어모델언어학적 변칙‘놀라움’ 차이신경망 층별 분석
제목
How are Korean Neural Language Models ‘surprised’ Layerwisely?
제목 (타언어)
How are Korean Neural Language Models ‘surprised’ Layerwisely?
저자
최선주박명관김유희
DOI
10.14384/kals.2021.28.4.301
발행일
2021-11
저널명
언어과학
28
4
페이지
301 ~ 317