Improving Code-Switching Dependency Parsing with Semi-Supervised Auxiliary Tasks

Saziye Betül Özates, Arzucan Özgür, Tunga Gungor, Özlem ÇetinogluNAACL 2022

Abstract

Dependency parsing for code-switched (CS) text—sentences mixing multiple languages—is hindered by data scarcity and structural complexity. This paper presents a semi-supervised approach using a BiLSTM-based parser enhanced by auxiliary sequence labeling tasks. By predicting syntactic features like the language of a word's grammatical head, the proposed model achieves state-of-the-art performance across four diverse language pairs, often outperforming larger transformer models with greater efficiency.

Introduction

Mapping the grammatical structure of sentences, known as dependency parsing, is a core challenge in Natural Language Processing (NLP). While monolingual parsers have reached high maturity, they struggle with code-switching (CS), where speakers alternate between languages (e.g., Hindi and English). CS data is rare, and the syntactic rules often shift at the point of language transition. Current solutions often rely on massive multilingual models like XLM-R, which are computationally expensive and may not fully capture the unique cross-lingual dependencies inherent in CS text.

Methodology

The authors propose a semi-supervised framework that enhances a standard BiLSTM-based biaffine parser with auxiliary sequence labeling tasks.

The architecture of the proposed model, featuring a BiLSTM-based biaffine parser integrated with auxiliary tasks through a gating mechanism.

The workflow begins with pseudo-labeling, where a base parser generates grammatical structures for large volumes of unlabeled CS text. Helper models are then trained on this noisy data to perform simpler, targeted tasks. A gating mechanism is employed to combine the main parser's output with these auxiliary signals, allowing the model to dynamically determine the relevance of helper information for each word.

Novel Auxiliary Tasks

The researchers introduced several "helper" tasks to guide the parser:

  • Language ID of Head (LIH): Predicts the language of a word's parent (head). This is crucial for understanding cross-lingual relationships.
  • Simplified Morphology of Head (SMH): Predicts grammatical features (e.g., gender, case) of the parent word.
  • Punctuation Count (PC): Counts the punctuation marks between a word and the root, serving as a proxy for phrase boundaries.
An example of a code-switched sentence with its dependency tree and corresponding auxiliary task labels, such as Punctuation Count (PC) and Language ID of Head (LIH).

Experimental Setup

The model was evaluated on four language pairs:

  • Hindi-English (HIENCS): Social media text.
  • Turkish-German (SAGT): Bilingual interview transcripts.
  • Komi-Russian (Kpv-Ru): Minority Uralic language mixed with Russian.
  • Frisian-Dutch (Fame): Radio broadcast transcripts.

Unlabeled data from the LinCE benchmark and the TuGeBiC corpus provided the foundation for the semi-supervised learning process.

Results and Discussion

The proposed models established new state-of-the-art (SOTA) scores for all four language pairs, with an average improvement of 7.4 LAS (Labeled Attachment Score) points over previous work.

Key Insights

  • The Importance of the "Head": Predicting the language of the head word (LIH) proved to be the most effective auxiliary task. Identifying that a noun in one language is governed by a verb in another provides a strong signal for resolving complex dependencies.
  • Efficiency and Performance: Surprisingly, the BiLSTM-based models with auxiliary tasks frequently outperformed the XLM-R transformer. On the Komi-Russian dataset, the model achieved a staggering 24-point LAS improvement over previous benchmarks while requiring significantly less training time (e.g., 25 minutes vs. 4 hours).
  • Surface Features as Guides: The Punctuation Count (PC) task was remarkably effective, demonstrating that simple surface features can help "chunk" sentences and guide complex syntactic decisions.

Conclusion

This research demonstrates that targeted auxiliary tasks can significantly boost the performance of dependency parsers on low-resource code-switched data. By focusing on the relationships between words and their grammatical heads, these efficient models provide a robust alternative to massive pre-trained transformers for specialized linguistic tasks.

Reference: Özateş, Ş. B., Özgür, A., Gungor, T., & Çetinoğlu, Ö. (2022). Improving Code-Switching Dependency Parsing with Semi-Supervised Auxiliary Tasks. Findings of the Association for Computational Linguistics: NAACL 2022.

Summary updated

BibTeX
@inproceedings{ozates2022improving,
  author = {Saziye Betül Özates and Arzucan Özgür and Tunga Gungor and Özlem Çetinoglu},
  title = {{Improving Code-Switching Dependency Parsing with Semi-Supervised Auxiliary Tasks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.87},
}
Figure