Adversarial Constraint Learning for Structured Prediction

Hongyu Ren, Russell Stewart, Jiaming Song, Volodymyr Kuleshov, Stefano Ermon

Abstract

Structured prediction traditionally relies on large-scale labeled datasets, which are often costly to acquire. We present Adversarial Constraint Learning (ACL), a framework that leverages simulators or unpaired data to learn output constraints. By training a discriminator to distinguish between model predictions and valid samples from a simulator, ACL enables models to learn complex structural and physical rules implicitly. Our results across pendulum tracking, pose estimation, and time-series prediction demonstrate that ACL can achieve high accuracy with minimal or even zero ground-truth labels.

Introduction

The goal of structured prediction is to map inputs to high-dimensional, structured outputs, such as human poses or trajectories. While supervised learning is the standard approach, the requirement for paired input-output data is a significant bottleneck. Constraint-based learning offers a solution by incorporating domain knowledge, but manually formalizing these constraints is often impractical for complex data.

Adversarial Constraint Learning (ACL) addresses this by replacing hand-crafted constraints with a learned discriminator. This approach allows models to inherit the "rules" of a domain from a simulator without requiring explicit mathematical formulations of those rules.

Methods

The core innovation of ACL is the use of an adversarial framework to enforce structural constraints. Instead of evaluating predictions against a fixed mathematical function $h(y)$, the model is evaluated by a discriminator $D$ that has been trained on valid samples from a simulator.

Comparison of traditional constraint learning (left) and Adversarial Constraint Learning (right). ACL replaces manual constraints with a learned discriminator.

System Architecture

The ACL framework consists of a predictor $p_\theta$ and a discriminator $D_\phi$. The predictor maps inputs to outputs, while the discriminator attempts to distinguish these predictions from "real" samples generated by a simulator.

The ACL architecture (left) and its application to pendulum tracking (right). The discriminator $D_\phi$ learns to identify valid outputs based on simulator data.
  1. Simulator Integration: A black-box simulator provides a source of valid output configurations. For example, in pendulum tracking, the simulator might use physics equations to generate valid trajectories.
  2. Adversarial Training: The predictor and discriminator are trained in an adversarial loop. The predictor learns to satisfy the implicit constraints of the simulator to "fool" the discriminator.
  3. Semi-Supervised Learning (SSACL): When a small number of labeled pairs are available, they are used to anchor the model, preventing issues like constant shifts or rotations that can occur in purely unsupervised settings.

Experimental Results

The researchers evaluated ACL on three tasks:

  • Pendulum Tracking: Using a harmonic oscillator simulator, ACL achieved a 96.3% correlation with ground truth in a zero-label setting, nearly matching expert-designed constraints.
  • Human Pose Estimation: On the CMU MAD dataset, ACL provided a 25–30% accuracy improvement over supervised baselines when only a single labeled example was provided.
  • Time Series Prediction: ACL successfully learned temporal constraints in environmental data, consistently outperforming standard supervised methods in low-data regimes.

Discussion

ACL effectively turns simulators into weak supervisors. By bypassing the need for manual knowledge engineering, it allows for the application of complex constraints to high-dimensional problems. While purely unsupervised models can exhibit biases, the addition of minimal supervision (one or two labels) is sufficient to ground the model's predictions. This framework opens new possibilities for learning in domains where simulators are plentiful but labeled data is scarce, such as robotics and physics-based modeling.

Summary updated

BibTeX
@inproceedings{ren2018adversarial,
  author = {Hongyu Ren and Russell Stewart and Jiaming Song and Volodymyr Kuleshov and Stefano Ermon},
  title = {{Adversarial Constraint Learning for Structured Prediction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/366},
}
Figure