Abstract
Generative Sequence-to-Sequence (Seq2Seq) models have become a popular choice for Information Extraction (IE). However, these models often suffer from "order bias" because they treat the target set of extracted objects as a fixed sequence. This paper introduces Set Learning, a task-agnostic framework that optimizes for the probability of the entire set of target objects by sampling permutations. Evaluated across nine datasets, Set Learning consistently improves performance over standard Seq2Seq baselines without requiring architectural changes.
Introduction
In the world of Natural Language Processing (NLP), Information Extraction (IE) is the art of turning unstructured text into structured data—like identifying that "the drinks" (aspect) are "well made" (opinion) with a "positive" sentiment. Recently, the field has shifted toward using generative Sequence-to-Sequence (Seq2Seq) models (like BART or T5) to solve these tasks. However, there is a fundamental mismatch: Seq2Seq models are designed to produce sequences (where order matters), but the information we want to extract is usually a set (where order doesn't matter).
The Order Bias Problem
When using a model like T5 for IE, target data is typically "flattened" into a sequence. If a sentence contains two triplets, $A$ and $B$, the target might be defined as $[A, B]$. Standard training using Cross-Entropy loss treats the prediction $[B, A]$ as a failure because the tokens do not match the specific $[A, B]$ string, even though the extracted information is correct.
This creates order bias, forcing the model to learn arbitrary sorting rules (e.g., "always extract the entity that appears first in the sentence") rather than focusing on the extraction task itself. Previous attempts to mitigate this often required architectural changes, limiting their compatibility with pre-trained language models (PLMs).
The Set Learning Framework
The proposed Set Learning framework treats the target as a set $S$ rather than a single permutation. It consists of three main components:
- Set Probability: Instead of maximizing the likelihood of one sequence, the model aims to maximize the sum of probabilities of all possible permutations of the target objects: $p(S | X) = \sum_{\pi \in \Pi} p(\pi | X)$.
- Permutation Sampling: Since summing every possible permutation is computationally prohibitive, the authors sample a subset of $k$ permutations most similar to the "reference" order based on token-level edit distance.
- The Set Loss ($L_{Set}$): A novel loss function is introduced to provide a stable, unbiased optimization target. It uses a log-sum-exp formulation with length normalization to prevent the model from focusing only on the "easiest" permutation (the "shortcut" problem).
Crucially, this method is task-agnostic; it requires changing only the loss calculation during training, not the model architecture.
Experimental Evaluation
The authors evaluated Set Learning on nine widely used datasets across four major IE tasks: Aspect-Based Sentiment Analysis (ABSA), Relation Extraction (RE), Event Extraction (EE), and Named Entity Recognition (NER).
The proposed method consistently outperformed state-of-the-art baselines:
- Unified ABSA: Achieved an average F1 improvement of +2.10 across multiple datasets.
- UIE-SEL: Improved the strong Universal Information Extraction baseline by +0.99 F1.
- Stability: Unlike other set-based losses (Uniform and SetRNN), which sometimes caused performance drops, the proposed Set Loss showed consistent improvements across every dataset tested.
Discussion and Conclusion
A key insight from this work is the "Shortcut" problem: previous set-based losses often allowed models to assign high probability to a single permutation while ignoring others. The $L_{Set}$ loss forces a more balanced distribution, improving generalization and recall in complex sentences.
While Set Learning introduces some training overhead due to permutation sampling, it maintains the same inference speed as standard models. Future work may explore better ways to estimate set probability during the decoding phase to further bridge the gap between set-based training and sequential inference.
Summary updated