Task-Constrained Optimization for Entity-Relation Extraction

Xiaojun Sheng, Shilong Wei, Wang Yafei, Wenhao Jiang, Minmin LiOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Most multi-task learning models treat different tasks as equal peers, but in Entity-Relation Extraction (ERE), you can't identify a relationship if you haven't found the entities first. This paper introduces HB-AHO, a framework that treats foundational tasks as "hard constraints" using a stable hyperbolic barrier function, ensuring the model masters entity recognition before moving on to complex relations.

What Problem Does This Paper Address?

Entity-Relation Extraction (ERE) is the task of pulling structured triples—like (Barack Obama, Born In, Honolulu)—out of messy, unstructured text. This involves two sub-tasks: identifying the entities (NER) and classifying their relationship.

The authors identify a fundamental flaw in how we currently train these models: task asymmetry. In standard Multi-Task Learning (MTL), we usually just sum the losses of both tasks and hope for the best. However, relation classification is logically dependent on entity recognition. If a model misidentifies "Obama" as a location, the "born-in" relation becomes unreachable noise.

Furthermore, relation losses often converge faster than entity losses. In a standard setup, the relation task can "bully" the entity task during training, leading to "training rigidity" where the model settles for mediocre entity boundaries, which ultimately caps the performance of the entire system.

Methods

The authors propose Hyperbolic Barrier-based Adaptive Hierarchical Optimization (HB-AHO). Instead of a simple weighted sum of losses, they reformulate ERE as a constrained optimization problem.

Key components include:

  • The Hyperbolic Barrier: Traditional constrained optimization uses logarithmic or inverse functions to penalize constraint violations, but these often cause "gradient explosion" in deep learning. HB-AHO uses a tanh-based function ($\tanh(3x+1)$) which is smooth, monotonic, and—crucially—has bounded gradients.
  • Dynamic Reweighting: The framework gates the relation loss based on the performance of the entity loss. If the entity recognition is poor (violating the constraint), the barrier function forces the model to focus almost exclusively on entities. As entity performance improves, the "gate" opens, allowing the relation loss to influence the weights.
  • Adaptive Threshold Scheduling: Inspired by curriculum learning, the "target" for entity performance ($\epsilon$) isn't static. It starts relaxed to allow for initial exploration and progressively tightens as the model matures, enforcing stricter prioritization in later stages.

Datasets

The researchers tested HB-AHO across five diverse ERE benchmarks:

  • Sentence-level: NYT (News) and WebNLG (Wikipedia).
  • Document-level: DocRED (Wikipedia), CDR (Biomedical), and GDA (Biomedical). These are harder because they require reasoning across multiple sentences.
  • Cross-domain: To prove the method isn't just for NLP, they tested it on KuaiRand1k, a massive recommendation system dataset with eight hierarchical user behaviors (e.g., click → like → comment).

Key Insights and Ideas

  • Hierarchy as an Inductive Bias: The most striking finding is that the gains were much larger on document-level datasets (up to 5.3% triplet F1). In long-form text, error propagation from bad entity boundaries is amplified; by fixing the "foundation" first, the downstream reasoning becomes much more reliable.
  • Stability Over Tuning: Unlike many MTL methods that require delicate hyperparameter tuning for loss weights, HB-AHO proved robust. Whether the initial threshold was set to 0.1 or 0.001, the model eventually converged to similar high-performance states thanks to the barrier's geometric properties.
  • Optimization vs. Architecture: HB-AHO is a "plug-and-play" optimization layer. The authors applied it to five different state-of-the-art model architectures (like SPN4RE and ERGM) and saw consistent improvements across the board without changing the underlying neural networks.

Key Results

  • Triplet F1 Gains: The method achieved up to a 6.4% absolute increase in triplet F1 scores.
  • Consistent Superiority: In head-to-head comparisons against other popular MTL strategies (like GradNorm or PCGrad), HB-AHO consistently came out on top because it explicitly modeled the task hierarchy rather than just trying to balance gradient magnitudes.
  • Efficiency: Theoretically and empirically, the authors showed that their sequential decomposition of the $N$-task problem scales linearly ($O(N)$), whereas Pareto-based MTL methods often scale quadratically ($O(N^2)$).

Limitations and Future Work

While the paper demonstrates excellent results for linear hierarchies, it does not explicitly discuss how to handle cyclic dependencies (where Task A depends on B, and B also depends on A).

The authors suggest that future work could extend this "constraint-driven" paradigm to even more complex structures, such as symbolic planning, multi-modal alignment, and hierarchical reasoning in large language models, where the order of operations is critical for logical consistency.

Summary updated

Abstract

Multi-task learning for entity-relation extraction often suffers from implicit task interference and lacks explicit mechanisms to enforce structural task prioritization. We propose Hyperbolic Barrier-based Adaptive Hierarchical Optimization, a constraint-driven optimization framework that formulates entity recognition as a dynamic hard constraint via a numerically stable hyperbolic barrier function, while adaptively reweighting relation classification through a curriculum-based thresholding strategy. This principled framework enforces strict task prioritization throughout training, yielding absolute improvements of up to $6.4\%$ in triplet F1 across five entity-relation extraction benchmarks. Furthermore, the proposed method generalizes effectively to structurally divergent domains such as recommender systems. Our findings underscore that explicitly modeling task hierarchies through constrained optimization represents a critical yet underexplored paradigm for achieving stable and effective multi-task learning.
BibTeX
@misc{sheng2026task,
  author = {Xiaojun Sheng and Shilong Wei and Wang Yafei and Wenhao Jiang and Minmin Li},
  title = {{Task-Constrained Optimization for Entity-Relation Extraction}},
  year = {2026},
  url = {https://openreview.net/forum?id=R900G8z0cm},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure