Contrastive Learning for Sign Language Recognition and Translation

Shiwei Gan, Yafeng Yin, Zhiwei Jiang, Kang Xia, Lei Xie, Sanglu Lu

Abstract

Sign language processing involves two primary tasks: Continuous Sign Language Recognition (CSLR) and Sign Language Translation (SLT). Despite progress, these tasks are hindered by the "CTC spike" phenomenon and "exposure bias," respectively. This paper proposes a unified contrastive learning framework that introduces visual-level (ViCo) and semantic-level (SeCo) contrastive losses. ViCo leverages unlabeled frames to enhance visual representations, while SeCo improves the decoder's error tolerance by exposing it to its own predictions during training. Experimental results on benchmarks like PHOENIX-2014T and CSL-Daily demonstrate state-of-the-art performance, effectively mitigating these bottlenecks.

Introduction

Sign language is a complex visual language used by the Deaf and hard-of-hearing community. Automating its recognition and translation is crucial for accessibility. CSLR maps video sequences to glosses (word-for-sign labels), while SLT translates them into natural spoken language.

However, current end-to-end models face two major hurdles:

  1. The CTC Spike (CSLR): Most recognition models use Connectionist Temporal Classification (CTC) loss. CTC tends to predict "blank" tokens for the majority of video frames, only "spiking" on a few key frames. This leads to weak feature representation as the visual encoder isn't fully trained on the rich variety of available frames.
  2. Exposure Bias (SLT): Translation models are typically trained using "teacher forcing," where the model predicts the next word based on ground-truth previous words. During inference, the model must rely on its own previous predictions, leading to error accumulation where one wrong word derails the entire sentence.

Proposed Framework

The authors propose a unified framework consisting of a Visual Module, a Temporal Module, and a Semantic Module. The Visual Module extracts spatial features from video frames, which are then processed by the Temporal Module to capture motion. The output is fed into both a CTC Module for gloss recognition and a Semantic Module (decoder) for translation.

The overall architecture of the proposed sign language recognition and translation framework.

Contrastive Learning Strategies

To address the identified bottlenecks, the framework incorporates two novel contrastive learning strategies.

Visual-level Contrastive Learning (ViCo)

ViCo is designed to utilize the frames typically ignored by the CTC loss. The framework takes a sign video and creates two augmented versions: a "soft" augmentation (e.g., cropping, flipping) and a "hard" augmentation (e.g., Gaussian blur, color jittering). By minimizing the distance between the visual features of these two views using a SimSiam-style approach, the model is forced to learn robust, consistent representations from every frame, regardless of whether CTC labels it as "blank."

The Visual-level Contrastive Learning (ViCo) strategy using soft and hard augmentations to improve visual feature representation.

Semantic-level Contrastive Learning (SeCo)

SeCo tackles exposure bias by exposing the model to its own mistakes during training. The model generates a predicted sentence, which is then re-input into the semantic module. The loss function compares the hidden states generated by the ground-truth sequence versus those generated by the predicted sequence. This teaches the decoder to produce stable semantic features even when the input prefix contains errors, improving its error tolerance during real-world inference.

Evaluation and Results

The framework was evaluated on three standard benchmarks: RWTH-PHOENIX-Weather 2014, PHOENIX-2014T, and CSL-Daily. The authors introduced two new metrics: Blank Rate (BR) to quantify the CTC spike and Consecutive Wrong Word Rate (CWWR) to measure the severity of exposure bias.

Key results include:

  • PHOENIX-2014T: Achieved a Word Error Rate (WER) of 20.0% and a BLEU-4 score of 27.88 for translation.
  • CSL-Daily: Achieved 25.3% WER and 21.81 BLEU-4, significantly outperforming previous baselines.
  • Ablation Success: Adding ViCo dropped the Blank Rate from 67.72% to 55.52%, proving the visual module was successfully forced to engage with more frames. Similarly, SeCo reduced the CWWR from 19.73% to 14.26%, confirming better error recovery.

Conclusion

This work presents a robust framework for sign language processing by integrating visual and semantic contrastive learning. By addressing the fundamental issues of CTC spikes and exposure bias, the proposed method sets new benchmarks for both recognition and translation tasks. Future work will focus on optimizing augmentation strategies and applying these techniques to larger, noisier datasets found "in the wild."

Summary updated

BibTeX
@inproceedings{gan2023contrastive,
  author = {Shiwei Gan and Yafeng Yin and Zhiwei Jiang and Kang Xia and Lei Xie and Sanglu Lu},
  title = {{Contrastive Learning for Sign Language Recognition and Translation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/85},
}
Figure