Transcribing Natural Languages for The Deaf via Neural Editing Programs

Dongxu Li, Chenchen Xu, Liu Liu, Yiran Zhong, Rong Wang, Lars Petersson, Hongdong Li

TL;DR

Instead of treating sign language glossification as a standard machine translation problem, this paper reframes it as a neural program synthesis task. By training an agent to generate and execute explicit text-editing programs (like copy, delete, and add), the authors achieve state-of-the-art transcription quality while significantly improving model interpretability.

What Problem Does This Paper Address?

For the Deaf and hard-of-hearing community, automated communication tools often rely on translating spoken text into sign language videos. A crucial intermediate step in this pipeline is glossification: transcribing natural language sentences into sign language glosses (written words that correspond directly to individual sign gestures).

Historically, researchers have treated glossification as a standard neural machine translation (NMT) task. However, black-box NMT models struggle here due to severe data scarcity; parallel sentence-gloss datasets are small and expensive to produce. Furthermore, standard NMT ignores a key linguistic property: while sign language grammar differs from spoken language, they share a massive vocabulary overlap. Glosses essentially simplify, prune, and reorder the spoken sentence. Treating them as entirely separate languages throws away this valuable syntactic connection.

Figure 1: We study the problem of glossification, which aims to transcribe natural language sentences into sign language glosses. In particular, we design a neural agent that gener- ates and executes editing programs on the natural language sentences to obtain glosses.

Methods

The authors introduce a neural agent composed of two collaborating modules: a Program Generator and a Program Executor.

  1. The Domain Specific Language (DSL): The model doesn't emit words directly. Instead, it generates an "editing program" composed of atomic actions: COPY (keep a word from the source sentence), DEL (delete a word), ADD (insert a new word from the vocabulary), SKIP (terminate), and a looping construct FOR(r) to handle repetitive actions efficiently.
  2. The Generator & Executor Loop: The Generator (a Transformer encoder-decoder) predicts the next editing action. The Executor applies this action to the input sentence to update the text state and generates a partial gloss sequence.
  3. Editing Causal Attention: To ensure the generator learns from the actual results of its actions, the authors introduce a novel attention mechanism. It dynamically masks future tokens based on the execution history, allowing the generator to look at previously generated partial glosses without peeking ahead.
Figure 2: Our glossification model consists of two main modules: a generator and an executor. The generator predicts editing actions from the input sentence. The executor applies the program to derive glosses and provides execution feedback, which is then communicated with the generator via two channels: the editing causal attention mechanism and the peer-critic objective.

Training Strategy

Training a program-generation model introduces a unique challenge called program aliasing: multiple distinct editing programs can yield the exact same correct output string (e.g., COPYing a word vs. ADDing it manually).

To overcome this, the authors use a two-stage training strategy:

  • Imitation Learning (IL): The model is first trained to copy "minimal editing programs" calculated via a modified Levenshtein distance algorithm.
  • Reinforcement Learning (RL): To prevent the model from being overly penalized for finding alternative valid paths, they fine-tune it using a policy gradient method called peer-critic. This optimizes directly for sequence-level metrics (like BLEU-4) by rewarding the agent for semantically correct final transcriptions, regardless of the exact program path taken.

Datasets

The model was evaluated on the only two existing large-scale parallel sentence-gloss datasets:

  • RWTH-PHOENIX-Weather 2014T (RPWT): Features German spoken language paired with German Sign Language (GSL/DGS) glosses (7,096 training pairs).
  • CSL-Daily: Features Chinese spoken language paired with Chinese Sign Language (CSL) glosses (18,401 training pairs).

Key Insights and Ideas

  • Leveraging Vocabulary Overlap: By forcing the model to explicitly COPY or DEL words from the source sentence, the search space is drastically reduced compared to generating sentences from scratch out of a massive vocabulary.
  • The Power of Loops: Because sign language glosses are typically shorter than spoken sentences, models must perform a lot of deletions. Introducing the FOR loop construct compresses program lengths, making long-range dependencies easier for the Transformer to handle and mitigating action class imbalance.
  • Addressing Program Aliasing: Pure imitation learning is too rigid for program synthesis. Combining it with an RL-based peer-critic objective allows the model to explore the program space and discover more robust, generalized editing strategies.

Key Results

The proposed method significantly outperformed previous direct-prediction NMT baselines across both datasets:

  • RWTH-PHOENIX-Weather 2014T: Boosted the BLEU-4 score from the previous best of 16.45 (Zhang et al.) to 18.89.
  • CSL-Daily: Improved the BLEU-4 score from 18.38 (Text2Sign) to 21.30.

Additionally, the authors conducted human evaluations involving native deaf signers. The judges ranked the editing-program approach higher in both correctness (adherence to sign language grammar) and adequacy (preservation of the original sentence's intent) compared to standard translation models.

Limitations and Future Work

The authors note that transcription quality degrades as the input sentence length increases. For very long sentences, synthesizing a flawless, error-free program sequence remains a difficult challenge. The team identifies improving glossification performance on long, complex sentence inputs as a primary direction for future research.

Summary updated

BibTeX
@inproceedings{li2022transcribing,
  author = {Dongxu Li and Chenchen Xu and Liu Liu and Yiran Zhong and Rong Wang and Lars Petersson and Hongdong Li},
  title = {{Transcribing Natural Languages for The Deaf via Neural Editing Programs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i11.21457},
}
Figure