Soft Representation Learning for Sparse Transfer

Haeju Park, Jinyoung Yeo, Gengyu Wang, Seung-won Hwang

Introduction: Overcoming Negative Transfer

Transfer learning typically relies on hard-parameter sharing, where specific layers of a neural network are forced to be identical across different tasks or languages. While effective for closely related tasks, this approach often fails in "sparse transfer" scenarios—where tasks are only loosely connected. In these cases, shared layers struggle to find a common ground that satisfies all tasks, leading to a "sparse" shared space and negative transfer.

This paper identifies two primary manifestations of this failure mode:

  1. Multi-Task Learning (MTL): The manual complexity of determining which specific subsets of tasks should share encoders.
  2. Cross-Lingual Learning (CLL): The pollution of shared representation spaces by noisy or incorrect machine translations when transferring knowledge from high-resource to low-resource languages.

To overcome these challenges, the authors introduce "soft-coding" approaches—TARS for multi-task learning and CASE for cross-lingual learning. These models prevent shared feature spaces from becoming too sparse or noisy, leading to significant gains in low-resource language tasks.

Soft-Coding Architectures

The authors propose moving away from rigid sharing toward adaptive, task-specific mechanisms that maintain informative shared spaces while ensuring task invariance.

Comparison of standard architectures (FS, SP) with the proposed TARS and CASE models.

1. TARS (Task-Adaptive Representation learning using Soft-coding)

Designed for MTL, TARS moves away from fixed shared/private splits through three key components:

  • Soft-Private Module: Instead of one private encoder per task, it uses a Mixture-of-Experts (MoE). A gating network dynamically weights these experts, allowing tasks to "softly" share private features.
  • Adversarial Shared Module: A task discriminator ensures shared features are truly task-invariant by penalizing the model if the task can be identified from the shared space.
  • Density Constraint: To prevent the shared space from becoming an uninformative "vacuum," a specific loss function pushes private features closer to shared ones, ensuring the shared space remains dense and useful.

2. CASE (Cross-lingual AdverSarial Example)

Designed for CLL, CASE focuses on mitigating the impact of low-quality machine translations:

  • The Refiner: Based on a Variational Auto-Encoder (VAE), the Refiner takes noisy translated representations and "moves" them in the latent space toward the cleaner source-language (e.g., English) distributions.
  • Selective Refinement: A policy network decides whether to apply this refinement or leave the representation alone, preventing the model from over-correcting high-quality translations.

Experimental Evaluation

The models were evaluated on major NLP benchmarks, including Natural Language Inference (SNLI, MNLI, CNLI), Paraphrase Identification (QQP, LCQMC), and the 15-language XNLI dataset.

Key Results

  • MTL Superiority: TARS consistently outperformed hard-coding baselines. In a three-task setup (SNLI+MNLI+QQP), TARS achieved higher accuracy than standard shared-private architectures, effectively neutralizing negative transfer.
  • Low-Resource Wins: CASE showed its greatest strengths in low-resource languages. In the "Translate Train" scenario for XNLI, CASE improved accuracy in Bulgarian by 1.7% and Urdu by a massive 9.5% compared to standard multi-task baselines.
  • Robustness: CASE demonstrated significantly higher resilience to "semantic-preserving perturbations" (like synonym swaps) compared to standard BiLSTM models, which were easily fooled by slight input alterations.

Conclusion

The authors demonstrate that "soft-coding" provides a flexible alternative to rigid parameter sharing, particularly in sparse transfer settings. By maintaining informative shared spaces through density constraints and adaptive refinement, TARS and CASE offer a path toward more robust multi-task and cross-lingual learning. While CASE currently depends on external NMT systems and both models introduce computational overhead, they offer a robust framework for sparse transfer that could be integrated into large-scale pre-trained transformers in the future.

Summary updated

BibTeX
@inproceedings{park2019soft,
  author = {Haeju Park and Jinyoung Yeo and Gengyu Wang and Seung-won Hwang},
  title = {{Soft Representation Learning for Sparse Transfer}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1151},
}
Figure