# Comparing Neural- and N-Gram-Based Language Models for Word Segmentation

단어 분할을 위한 신경망 기반 언어 모델과 N-그램 기반 언어 모델 비교

Yerai Doval, Carlos Gómez-Rodríguez · arXiv · 2018년 12월 3일

- **연구 문제** 공백이 없는 텍스트의 단어 분할은 마이크로텍스트에서 데이터 희소성 때문에 어려우며, 이 논문은 이를 전처리 단계로 해결하려 합니다.
- **연구 방법** 입력을 바이트 또는 문자 단위로 처리하는 빔 서치에, 신경망 또는 n-gram 언어모델의 점수를 결합한 단어 분할 방법을 제안합니다.
- **주요 결과** 테스트 세트에서 제안 방법은 WordSegment와 Word Breaker보다 높은 정밀도를 보였으며, n-gram 모델은 신경망 모델에 가까운 성능과 더 빠른 실행을 보였습니다.

## 미등록어와 데이터 희소성 문제

단어 분할은 공백이 없는 문자 열에 단어 경계를 넣는 과제입니다. 마이크로텍스트에서는 문자 반복이나 음성 기반 치환 때문에 같은 단어가 수많은 변형으로 나타나므로, 단어 단위 n-gram 모델은 표준 단어의 모든 변형을 학습해야 하는 데이터 희소성 문제에 부딪힙니다. 이 논문은 이러한 문제를 다루는 전처리 단계로서 단어 분할 시스템을 만드는 것을 목표로 합니다. 기존 도구인 Microsoft Word Breaker는 입력을 소문자화하고 비ASCII 문자를 변환하거나 제거하는 전처리를 거치므로, 마이크로텍스트와 비영어권 언어에서 정보 손실이 생길 수 있다고 논문은 지적합니다.

## 빔 서치와 바이트·문자 수준 언어모델

제안 방법은 입력에서 먼저 모든 경계 토큰을 제거한 뒤, 텍스트를 한 토큰씩 처리합니다. 각 단계에서 현재 부분 후보에 경계를 넣지 않은 후보와 넣은 후보를 만들고, 후보 수가 빔 폭 n을 넘으면 상위 n개만 남깁니다. 후보의 선택은 언어모델이 주는 로그 확률 점수에 의존하며, 신경망 모델은 바이트를, n-gram 모델은 문자를 토큰 단위로 사용합니다. 경계 삽입 여부는 점수 임계값 t를 넘는지로 결정되고, 최종적으로 상위 m개 후보가 결과가 됩니다.

## 언어모델의 구성과 학습 조건

신경 언어모델은 LSTM 단위를 쌓은 순환 신경망이며, 바이트 수준 입력을 받아 다음 바이트의 확률을 출력합니다. 출력 층의 softmax 크기를 작게 유지하여 큰 문자 집합에서 생기는 병목을 피하고, 과적합을 줄이기 위해 Batch Normalization을 선택했다고 논문은 밝힙니다. n-gram 모델은 문자 수준으로 구성되며 평활화에는 Kneser-Ney 방법이 사용되었습니다. 신경망의 훈련 과정에서 뉴런 수를 늘리면 불안정성이 생길 수 있어 최종적으로 3개 층과 층당 1,500개 뉴런의 네트워크를 선택했습니다.

![Figure 2: Illustration of the architecture of our neural networks. The Lookup layer transforms a number (byte) into a tensor suitable for the ﬁrst LSTM layer.…](https://refivu.com/papers/7641c662-792a-4638-be97-6e528f61fde6/figures/figure-5ae2a5f5186bccfa11ea47d64d36c08e.png?thumb=512)

**FIG. 2** . Illustration of the architecture of our neural networks. The Lookup layer transforms a number (byte) into a tensor suitable for the ﬁrst LSTM layer. The LSTM layers apply a nonlinear transformation to their inputs. The SoftMax layer computes the output probabilities using the output from the last LSTM layer.

[원문](https://arxiv.org/abs/1812.00815v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yerai Doval, Carlos Gómez-Rodríguez · Comparing Neural- and N-Gram-Based Language Models for Word Segmentation · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 테스트 데이터와 정밀도 비교

평가 지표는 입력 줄 전체가 정확히 맞은 비율인 정밀도입니다. 영어, 독일어, 터키어, 핀란드어는 WMT17 뉴스 데이터로, 영어 트윗은 별도의 트윗 테스트 코퍼스로 평가했습니다. Word Breaker는 알파벳과 숫자로 정답을 걸러낸 조건에서 평가되었으므로 이 조건을 별도로 고려해야 합니다. 테스트 결과에서 n-gram 모델과 신경망 모델은 WordSegment와 Word Breaker보다 높은 정밀도를 보였으며, 스페인어 짧은 데이터 세트에서만 12-gram 모델과 WordSegment가 같은 값을 보였습니다.

![Table 5: Precision results on the test data sets by language and approach](https://refivu.com/papers/7641c662-792a-4638-be97-6e528f61fde6/figures/figure-92cdd0dd7dde4fa36d5850e4e3fd186d.png?thumb=512)

**TABLE 5** . Precision results on the test data sets by language and approach.

[원문](https://arxiv.org/abs/1812.00815v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yerai Doval, Carlos Gómez-Rodríguez · Comparing Neural- and N-Gram-Based Language Models for Word Segmentation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## n-gram과 신경망의 성능 차이

결과에서 n-gram 모델의 성능은 신경망 모델에 가까웠으며, 스페인어에서는 신경망 모델을 앞섰습니다. 저자들은 이를 n-gram 모델이 더 빠르다는 점과 함께 해석합니다. 영어 트윗에서는 제안 방법이 기존 도구보다 높은 정밀도를 보였고, 저자들은 이를 트윗의 데이터 희소성과 문자 기반 접근의 장점으로 해석합니다. 이 비교는 특정 테스트 세트와 원문의 설정에서 얻은 결과이며 모든 언어나 과제로 일반화되지 않습니다.

![Table 3: Precision results on development data sets by language and n-gram model order](https://refivu.com/papers/7641c662-792a-4638-be97-6e528f61fde6/figures/figure-9741bd440b256d0cf3bbce255ebe5d3c.png?thumb=512)

**TABLE 3** . Precision results on development data sets by language and n-gram model order.

[원문](https://arxiv.org/abs/1812.00815v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yerai Doval, Carlos Gómez-Rodríguez · Comparing Neural- and N-Gram-Based Language Models for Word Segmentation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 개발 결과와 엄격 테스트의 차이

표에 제시된 개발 데이터 정밀도는 엄격 테스트 결과보다 높게 나타났습니다. 원문은 엄격 테스트 결과가 표의 결과보다 약 30포인트 낮다고 밝히며, 트윗에서는 약 20포인트 낮다고 보고합니다. 또한 트윗 테스트 데이터는 충분히 정규화되지 않아 정답 표기가 오류로 처리될 수 있었다고 논문은 설명합니다. 신경망의 뉴런 수를 무한히 늘리는 것은 훈련 불안정성 때문에 제한되었으며, 이 범위 밖의 더 큰 모델은 실험하지 않았습니다.

![Table 2: Precision results on the English and Twitter development data sets by language and neural model architecture speci ﬁed as n × m, where m is the number…](https://refivu.com/papers/7641c662-792a-4638-be97-6e528f61fde6/figures/figure-ad9b3eb81c4e3d14b09168a0afa4addd.png?thumb=512)

**TABLE 2** . Precision results on the English and Twitter development data sets by language and neural model architecture speci ﬁed as n × m, where m is the number of hidden layers and n the number of neurons per layer.

[원문](https://arxiv.org/abs/1812.00815v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yerai Doval, Carlos Gómez-Rodríguez · Comparing Neural- and N-Gram-Based Language Models for Word Segmentation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Yerai Doval, Carlos Gómez-Rodríguez
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2018년 12월 3일
- **등록일**: 2026년 11월 6일
- **수정일**: 2018년 12월 3일
- **버전**: v1
- **arXiv**: 1812.00815
- **DOI**: 10.1002/asi.24082
- **분류**: cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/1812.00815v1) · [원문 PDF ↗](https://arxiv.org/pdf/1812.00815v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Word segmentation is the task of inserting or deleting word boundary characters in order to separate character sequences that correspond to words in some language. In this article we propose an approach based on a beam search algorithm and a language model working at the byte/character level, the latter component implemented either as an n-gram model or a recurrent neural network. The resulting system analyzes the text input with no word boundaries one token at a time, which can be a character or a byte, and uses the information gathered by the language model to determine if a boundary must be placed in the current position or not. Our aim is to use this system in a preprocessing step for a microtext normalization system. This means that it needs to effectively cope with the data sparsity present on this kind of texts. We also strove to surpass the performance of two readily available word segmentation systems: The well-known and accessible Word Breaker by Microsoft, and the Python module WordSegment by Grant Jenks. The results show that we have met our objectives, and we hope to continue to improve both the precision and the efficiency of our system in the future.

## 원문 인용

Yerai Doval, Carlos Gómez-Rodríguez (2018). Comparing Neural- and N-Gram-Based Language Models for Word Segmentation. arXiv:1812.00815v1. https://doi.org/10.1002/asi.24082

**BibTeX**

```
@article{doval2018comparing,
  title = {{Comparing Neural- and N-Gram-Based Language Models for Word Segmentation}},
  author = {Yerai Doval and Carlos Gómez-Rodríguez},
  year = {2018},
  eprint = {1812.00815},
  archivePrefix = {arXiv},
  doi = {10.1002/asi.24082},
  url = {https://arxiv.org/abs/1812.00815v1}
}
```

## 이 논문의 용어

- [Precision](https://refivu.com/terms/29bee1303774-precision)
- [softmax](https://refivu.com/terms/4a7673b6518d-softmax)
- [recurrent neural network](https://refivu.com/terms/7df8352fc823-recurrent-neural-network)
- [Viterbi algorithm](https://refivu.com/terms/182c9369a000-viterbi-algorithm)
- [language model](https://refivu.com/terms/ebf13a974a16-language-model)
- [LSTM units](https://refivu.com/terms/7e2097ffd3a5-lstm-units)
- [beam search algorithm](https://refivu.com/terms/528540efa465-beam-search-algorithm)
- [n-gram model](https://refivu.com/terms/9c600a82b08a-n-gram-model)

## 다른 논문 해설

- [Opportunities and Challenges for ChatGPT and Large Language Models in Biomedicine and Health](https://refivu.com/papers/fddfbda2-67e8-44ae-b9b3-0a4666afe739-opportunities-and-challenges-for-chatgpt-and-large-language.md)
- [InteLiPlan: An Interactive Lightweight LLM-Based Planner for Domestic Robot Autonomy](https://refivu.com/papers/474009c4-3245-4799-8b7d-c8ca7b3d3017-inteliplan-an-interactive-lightweight-llm-based-planner-for.md)
- [Large Language Model for Table Processing: A Survey](https://refivu.com/papers/957b93bc-755a-4b69-a322-816d756f3ed0-large-language-model-for-table-processing-a-survey.md)
- [Small Language Models Learn Enhanced Reasoning Skills from Medical Textbooks](https://refivu.com/papers/a98e8e5b-f621-4e60-9191-d0709f4c72e8-small-language-models-learn-enhanced-reasoning-skills-from.md)
- [Taiyi: A Bilingual Fine-Tuned Large Language Model for Diverse Biomedical Tasks](https://refivu.com/papers/4536b22c-3516-43f6-8b78-9618789e506e-taiyi-a-bilingual-fine-tuned-large-language-model.md)
- [Why Does Surprisal From Larger Transformer-Based Language Models Provide a Poorer Fit to Human Reading Times?](https://refivu.com/papers/9ff34e61-4b51-4fd6-9353-f3db08a5c625-why-does-surprisal-from-larger-transformer-based-language.md)
- [Neural sentence embedding models for semantic similarity estimation in the biomedical domain](https://refivu.com/papers/779351be-1691-4a73-b4f4-7c1c825d9619-neural-sentence-embedding-models-for-semantic-similarity.md)
- [Transferable neural networks for enhanced sampling of protein dynamics](https://refivu.com/papers/c714fbcd-6f6e-4f42-8ba6-dad4e4006880-transferable-neural-networks-for-enhanced-sampling-of.md)
- [Intrinsically Motivated Hierarchical Policy Learning in Multi-objective Markov Decision Processes](https://refivu.com/papers/ed69d7df-af26-4324-9473-e48046fe20c7-intrinsically-motivated-hierarchical-policy-learning-in.md)
- [Contrastive Representation Learning: A Framework and Review](https://refivu.com/papers/8d475c35-65aa-4272-b3a4-00f7350d277d-contrastive-representation-learning-a-framework-and-review.md)
- [YOLOP: You Only Look Once for Panoptic Driving Perception](https://refivu.com/papers/61212604-6561-425b-9de1-178543e2926c-yolop-you-only-look-once-for-panoptic-driving.md)
- [Robust Safety-Critical Control for Dynamic Robotics](https://refivu.com/papers/3bdce761-4625-44fa-ba2a-7dbdc76dfb6f-robust-safety-critical-control-for-dynamic-robotics.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/7641c662-792a-4638-be97-6e528f61fde6-comparing-neural-and-n-gram-based-language-models)
