Skip to main content
QUICK REVIEW

[Paper Review] ZEN 2.0: Continue Training and Adaption for N-gram Enhanced Text Encoders

Yan Song, Tong Zhang|arXiv (Cornell University)|May 4, 2021
Topic ModelingComputer Science40 references28 citations
TL;DR

ZEN 2.0 extends ZEN by refining n-gram representations, applying whole n-gram masking, and using relative positional encoding; it scales to Chinese and Arabic with large data, achieving state-of-the-art results across multiple NLP tasks.

ABSTRACT

Pre-trained text encoders have drawn sustaining attention in natural language processing (NLP) and shown their capability in obtaining promising results in different tasks. Recent studies illustrated that external self-supervised signals (or knowledge extracted by unsupervised learning, such as n-grams) are beneficial to provide useful semantic evidence for understanding languages such as Chinese, so as to improve the performance on various downstream tasks accordingly. To further enhance the encoders, in this paper, we propose to pre-train n-gram-enhanced encoders with a large volume of data and advanced techniques for training. Moreover, we try to extend the encoder to different languages as well as different domains, where it is confirmed that the same architecture is applicable to these varying circumstances and new state-of-the-art performance is observed from a long list of NLP tasks across languages and domains.

Motivation & Objective

  • Motivate improving character-based encoders by incorporating explicit n-gram information to capture larger granularity semantics.
  • Propose ZEN-2.0 enhancements—weighted n-gram representations, whole n-gram masking, and relative positional encoding—to boost learning when scaling model size.
  • Demonstrate generalization by applying the enhanced ZEN to Chinese and Arabic and evaluating on a broad set of NLP tasks.
  • Provide empirical analysis on training steps, n-gram weighting, masking strategy, and encoding choices to understand their impact on performance and training efficiency.

Proposed method

  • Extend ZEN to ZEN-2.0, scaling to BERT-large size with a separate n-gram encoder.
  • Refine n-gram representations by weighting each n-gram according to its corpus frequency during integration into the character encoder.
  • Implement whole n-gram masking by masking complete n-grams (constructed from an off-the-shelf segmenter) rather than individual characters.
  • Adopt relative positional encoding for the character encoder to model distance and direction in attention, with trainable projections.
  • Train on large-scale language data for Chinese and Arabic, using MLM and NSP objectives, with PMI-based n-gram lexicon extraction and a two-model setup (character encoder and n-gram encoder).
  • Fine-tune on multiple NLP benchmarks for Chinese and Arabic to assess CWS, POS, NER, DC, SA, SPM, NLI, MRC, QA (Chinese) and POS, NER, DC, SA, NLI, MRC (Arabic).

Experimental results

Research questions

  • RQ1Do n-gram representations remain useful when continuing training and enlarging model size?
  • RQ2Can refinements such as weighted n-gram representations, whole n-gram masking, and relative positional encoding improve ZEN’s performance across languages?
  • RQ3Is the ZEN architecture with n-gram augmentation effective beyond Chinese, e.g., for languages like Arabic?
  • RQ4How do training steps, masking strategies, and encoding choices affect pre-training effectiveness and downstream performance?

Key findings

  • ZEN-2.0 achieves new state-of-the-art performance on nine Chinese NLP tasks across base and large variants.
  • ZEN-2.0 outperforms prior Chinese encoders and ZEN 1.0 across the evaluated tasks.
  • ZEN-2.0 also outperforms baselines on Arabic tasks, demonstrating cross-language generalization of n-gram enhancements.
  • Refined weighted n-gram representations and whole n-gram masking contribute to improved representation quality and training efficiency.
  • Relative positional encoding provides additional gains, notably in Arabic NER and other tasks.
  • A case study and qualitative analyses show that ZEN-2.0’s n-gram representations cluster semantically related phrases, reflecting meaningful granularity of information.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.