NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Loss Functions for Semi-supervised Learning via Discriminative Adversarial Networks

Cícero Nogueira dos Santos, Kahini Wadhawan, Bowen ZhouarXiv 2017

Introduction

Semi-supervised learning (SSL) remains a critical challenge in natural language processing (NLP), where labeled data is often scarce but unlabeled text is abundant. While Generative Adversarial Networks (GANs) have seen immense success in computer vision for SSL, their application to NLP is hindered by the discrete nature of language. Backpropagating through discrete tokens produced by a generator is mathematically difficult, and hand-designing loss functions that effectively balance labeled and unlabeled signals for complex tasks like ranking is a significant engineering hurdle.

This paper introduces Discriminative Adversarial Networks (DAN), a framework that rethinks the adversarial paradigm for NLP by sidestepping text generation entirely. Instead of generating new data, DAN focuses on learning optimal loss functions for existing data through a discriminative min-max game.

The DAN Framework

Unlike a standard GAN, which pits a Generator ($G$) against a Discriminator ($D$), the DAN architecture utilizes two discriminative components: the Predictor ($P$) and the Judge ($J$).

High-level architecture of the Discriminative Adversarial Network (DAN) framework, illustrating the interaction between the Predictor and the Judge.
  1. The Predictor ($P$): This component takes an input $x$ (e.g., a sentence or a question-answer pair) and predicts a label or ranking $y$. Crucially, $P$ processes unlabeled data without seeing ground-truth labels, attempting to produce predictions that appear authentic.
  2. The Judge ($J$): The Judge acts as a learned loss function. It receives a pair $(x, y)$ and must determine if it is a "real" human-labeled pair from the training set or a "fake" pair produced by the Predictor.

Through this adversarial process, the Judge implicitly learns a loss function that characterizes the properties of correct human labeling. The Predictor, in turn, is trained to minimize this learned loss by producing outputs that the Judge cannot distinguish from ground truth. This approach allows the model to leverage unlabeled data by forcing the Predictor to maintain consistency and quality that satisfies the Judge's learned criteria.

Experimental Methodology

The researchers evaluated DAN across two primary NLP tasks:

  • Answer Sentence Selection (Ranking): Evaluated on the SelQA and WikiQA datasets. For these tasks, the Judge employs a novel listwise scoring function to evaluate the quality of an entire predicted list of candidate answers.
  • Sentiment Classification: Evaluated on the Stanford Sentiment Treebank (SSTB2). Here, the Predictor is a CNN classifier, and the Judge uses bilinear forms to compare sentence representations against class embeddings.

To test the robustness of the framework in low-resource settings, the models were trained on limited subsets of labeled data (as few as 10 or 50 instances) while utilizing the remainder of the training sets as unlabeled data.

Key Results and Discussion

DAN demonstrates significant performance gains, particularly when labeled data is extremely limited. By learning the loss function implicitly, the framework often outperforms traditional manually-defined losses like Hinge Loss or Negative Log-Likelihood (NLL).

Performance comparison (MAP) on the SelQA dataset, showing the advantage of DAN in low-data regimes compared to standard supervised baselines.

As shown in the experimental results on the SelQA dataset, the semi-supervised DAN model achieved a Mean Average Precision (MAP) of 0.6891 with only 10 labeled questions, a massive improvement over the 0.4610 achieved by a standard CNN using hinge loss. Even in fully supervised settings, the learned loss of the DAN framework proved superior; on SSTB2, DAN reached 84.70% accuracy, surpassing the NLL-based CNN baseline of 84.38%.

Conclusion and Future Work

Discriminative Adversarial Networks provide a powerful alternative to generative models for SSL in NLP. By replacing the generator with a predictor, DAN avoids the complexities of discrete sampling while providing a mechanism for automatic loss function discovery.

However, challenges remain regarding training stability. The authors noted that the Predictor often requires more frequent updates than the Judge to prevent the latter from overpowering the learning process. Future research will focus on improving the theoretical grounding of these learned loss functions and enhancing the stability of the adversarial min-max game in unbalanced data scenarios.

Summary updated

BibTeX
@misc{santos2017learning,
  author = {Cícero Nogueira dos Santos and Kahini Wadhawan and Bowen Zhou},
  title = {{Learning Loss Functions for Semi-supervised Learning via Discriminative Adversarial Networks}},
  year = {2017},
  eprint = {1707.02198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.02198},
}
Figure