An empirical study of discriminative sequence labeling models for Vietnamese text processing

Phuong Le-Hong, Minh Pham Quang Nhat, Thai-Hoang Pham, Tuan-Anh Tran, Dang-Minh Nguyen

Abstract

This study presents a comparative analysis of Conditional Random Fields (CRFs) and Bidirectional Long Short-Term Memory (Bi-LSTM) networks for Part-of-Speech (POS) tagging and Named Entity Recognition (NER) in Vietnamese. By evaluating these models on standard benchmarks with varying feature sets—including word identities, hand-crafted word shapes, and pre-trained word embeddings—the authors find that while Bi-LSTMs provide marginal accuracy gains, CRFs remain highly competitive and computationally efficient. The inclusion of word embeddings and POS tags significantly enhances performance across both tasks.

Introduction

Sequence labeling is a cornerstone of Natural Language Processing (NLP), involving the assignment of categorical labels to each element in a sequence. In the context of the Vietnamese language, this task is complicated by the fact that "words" are often composed of multiple space-separated syllables. As the field has transitioned from traditional statistical methods like CRFs to deep learning architectures like LSTMs, there has been a need for a rigorous comparison within the specific linguistic constraints of Vietnamese. This study aims to establish performance baselines and quantify the value added by neural architectures and dense word representations.

Methodology

The researchers compared two primary discriminative models: Conditional Random Fields (CRFs), known for their ability to model label dependencies, and Bidirectional LSTMs (Bi-LSTMs), which capture long-range contextual information.

The feature engineering focused on three levels of representation:

  1. Word Identities: Standard one-hot encodings.
  2. Word Shapes: A set of binary features designed to capture orthographic patterns such as capitalization, digit presence, and date formats.
  3. Word Embeddings: 25-dimensional vectors pre-trained on a 7.3GB corpus of Vietnamese news articles using the Skip-gram model.
Hand-crafted word shape features used to capture orthographic patterns in Vietnamese text.

For the NER task, Part-of-Speech (POS) tags were also integrated as features to assist in identifying the boundaries and roles of proper nouns. Evaluation was conducted using the VLSP project corpus for POS tagging (10,165 sentences) and the VLSP 2016 corpus for NER. Due to the computational demands of LSTM training, experiments were primarily conducted on sentences with a maximum length of 25 tokens.

Results and Discussion

The empirical results reveal several key insights into the behavior of these models on Vietnamese text.

The Impact of Features

Word embeddings emerged as the most significant contributor to performance, providing a substantial boost to both POS tagging and NER. In the NER task, the addition of POS tags and word embeddings led to a marked improvement in F1-score, primarily driven by increased recall. This suggests that capturing semantic similarity in a continuous vector space is more effective than relying solely on discrete word identities.

Performance of the NER model across different feature sets, showing the cumulative benefit of POS tags and word embeddings.

Model Comparison and Efficiency

The performance gap between CRFs and Bi-LSTMs was found to be narrow. For POS tagging, the Bi-LSTM achieved a peak accuracy of 90.65%, compared to 90.26% for the CRF. In the NER task, both models converged at an F1-score of approximately 86.03%.

While Bi-LSTMs demonstrated a higher capacity for memorization—often reaching near-perfect accuracy on training data—this did not always translate into a significant lead in generalization on the test sets. Given that the CRF models trained in a fraction of the time required for Bi-LSTMs (which took approximately 8 hours), CRFs remain a highly viable option for applications where computational resources or training time are constrained.

Conclusion

This study demonstrates that while modern neural architectures like Bi-LSTMs provide a slight edge in accuracy for Vietnamese sequence labeling, traditional CRFs remain highly competitive when paired with effective features like word embeddings. The results underscore the importance of semantic representations over architectural complexity for these tasks. Future work may explore hybrid models, such as LSTM-CNN-CRFs, to further leverage character-level information and joint label decoding for improved performance on longer, more complex sequences.

Summary updated

Abstract

This paper presents an empirical study of two widely-used sequence prediction models, Conditional Random Fields (CRFs) and Long Short-Term Memory Networks (LSTMs), on two fundamental tasks for Vietnamese text processing, including part-of-speech tagging and named entity recognition. We show that a strong lower bound for labeling accuracy can be obtained by relying only on simple word-based features with minimal handcrafted feature engineering, of 90.65% and 86.03% performance scores on the standard test sets for the two tasks respectively. In particular, we demonstrate empirically the surprising efficiency of word embeddings in both of the two tasks, with both of the two models. We point out that the state-of-the-art LSTMs model does not always outperform significantly the traditional CRFs model, especially on moderate-sized data sets. Finally, we give some suggestions and discussions for efficient use of sequence labeling models in practical applications.
BibTeX
@inproceedings{lehong2017empirical,
  author = {Phuong Le-Hong and Minh Pham Quang Nhat and Thai-Hoang Pham and Tuan-Anh Tran and Dang-Minh Nguyen},
  title = {{An empirical study of discriminative sequence labeling models for Vietnamese text processing}},
  booktitle = {KSE},
  year = {2017},
  url = {https://openreview.net/forum?id=p-bie2dDSh},
}
Figure