Randomized Deep Structured Prediction for Discourse-Level Processing

Manuel Widmoser, Maria Leonor Pacheco, Jean Honorio, Dan Goldwasser

Abstract

Deep structured prediction combines neural networks with logic-based constraints for complex NLP tasks but is often computationally prohibitive. This paper explores randomized inference—greedy search with restarts—as a lightweight alternative to exact solvers like Integer Linear Programming (ILP). On discourse-level tasks such as argument mining and stance prediction, randomized inference achieves up to a 27x speedup while maintaining or even improving accuracy, demonstrating that "good enough" local optima are sufficient for effective structured learning.

Introduction

Modern NLP excels at understanding individual sentences, but discourse-level tasks require mapping global structures. For example, in argument mining, one must identify claims and link them to supporting premises while ensuring logical consistency (e.g., a premise cannot support a non-existent claim). To handle this, researchers use Deep Structured Prediction, which employs neural encoders (e.g., LSTMs or BERT) to score decisions and an inference layer to enforce global consistency.

Visualization of discourse-level structures for argument mining (left) and forum stance prediction (right).

However, finding the optimal structure typically requires Integer Linear Programming (ILP), which is computationally expensive and scales poorly with document length. Consequently, many researchers avoid joint learning in favor of independent classifiers, which often degrades performance.

Methodology

The authors propose Randomized Inference as a lightweight alternative to exact solvers. Instead of searching for a global optimum, they use a hill-climbing algorithm consisting of three main steps:

  1. Initialization: Start with a random or locally informed assignment of labels.
  2. Greedy Update: Repeatedly make small, local changes that improve the overall score.
  3. Restarts: Repeat the process multiple times from different starting points to avoid getting stuck in local optima.

Two variants were evaluated: Rand-C (Constrained), where the search only explores "legal" states satisfying domain logic, and Rand (Unconstrained), where constraints are ignored during training and only enforced at test time. These methods were integrated into DRaiL, a declarative deep structured prediction framework that allows models to learn structural patterns during training.

Experimental Setup

The approach was evaluated on two challenging discourse-level benchmarks:

  • UKP Argument Annotated Persuasive Essays: 402 documents where the goal is to identify argumentative components (claims, premises) and their relationships (support/attack).
  • 4FORUMS (Internet Argument Corpus): Over 24,000 posts from online political debates. The task involves predicting user stance (e.g., pro-choice vs. pro-life) and inter-post agreement or disagreement.

Results and Discussion

Randomized inference demonstrated significant efficiency gains over traditional methods. As shown in Figure 6, the randomized approach was significantly faster than ILP across all tasks. In the most complex scenarios, such as stance prediction with author constraints (AC), it outperformed the popular AD3 approximation algorithm by a factor of 27x.

Inference time comparison (log scale) between exact solvers (ILP), approximations (AD3), and randomized methods (Rand-C, Rand).

Key findings include:

  • Competitive Accuracy: On the UKP argument mining task, Rand-C achieved an F1 score of 73.2, slightly outperforming the exact ILP solver (72.2).
  • Structured Learning Efficacy: Training with inference "in the loop" consistently outperformed local classifiers with post-hoc logic.
  • Scalability: While exact solvers struggle as state spaces grow, randomized search remains efficient, making it viable for long documents and conversation threads.

Conclusion

While randomized inference currently lacks the strong theoretical guarantees for deep non-linear networks that exist for linear models, its empirical success is clear. It provides a practical path for applying deep structured prediction to large-scale discourse tasks. Future work will explore more nuanced ways to leverage document-level context from embeddings like BERT and multi-task learning settings to further improve efficiency.

Summary updated

BibTeX
@inproceedings{widmoser2021randomized,
  author = {Manuel Widmoser and Maria Leonor Pacheco and Jean Honorio and Dan Goldwasser},
  title = {{Randomized Deep Structured Prediction for Discourse-Level Processing}},
  booktitle = {EACL},
  year = {2021},
  doi = {10.18653/v1/2021.eacl-main.100},
}
Figure