Abstract
Standard Sequence-to-Sequence (Seq2seq) models often struggle with tasks involving conditional set generation, as they treat sets as sequences. This approach ignores the fundamental properties of sets: order-invariance and cardinality. This paper presents SETAUG, a model-agnostic data augmentation strategy designed to address these limitations. By employing "informative ordering" through label dependency graphs and explicit cardinality prediction, SETAUG achieves a ~20% relative performance improvement across diverse models, including BART, T5, and GPT-3.
Introduction
Many natural language processing (NLP) tasks are fundamentally conditional set generation problems. Examples include multi-label emotion classification (tagging a sentence with {joy, pride}) or entity typing. Unlike machine translation, where word order is strictly defined, the order of elements in a set is arbitrary.
However, modern Seq2seq architectures, such as Transformers, are optimized for sequential data. When applied to sets, these models typically rely on a fixed, arbitrary order (e.g., alphabetical). This creates two primary challenges:
- Order Sensitivity: Arbitrary ordering can be difficult for models to learn. Inconsistent orders in training data can confuse the model regarding the underlying label distribution.
- Cardinality Blindness: Seq2seq models do not inherently track the number of items they should produce. This often results in the model stopping prematurely or "hallucinating" extra labels because it is not conditioned on the intended set size.
Methodology: The SETAUG Framework
SETAUG is a two-pronged data augmentation approach that requires no modifications to the underlying model architecture, making it highly portable.
1. TSAMPLE: Informative Ordering
Instead of using random or alphabetical ordering, SETAUG induces a partial order based on label dependencies. The process involves:
- Pointwise Mutual Information (PMI): The authors calculate PMI to identify labels that frequently co-occur.
- Directional Dependencies: They determine a logical "direction" for these pairs. If knowing label $A$ provides high certainty about label $B$, $A$ is placed first. For instance, the specific label "volleyball" implies the general category "event." Generating the specific term first provides the model with a stronger context for subsequent labels.
- Topological Sorting: These dependencies form a Directed Acyclic Graph (DAG). Training data is then augmented with sequences generated via topological sorts of this graph.
2. CARD: Cardinality Modeling
To address cardinality blindness, SETAUG explicitly models set size by prepending the cardinality to the output sequence. For a set of three labels, the target sequence becomes 3, label_A, label_B, label_C. Because Seq2seq models are autoregressive, predicting the count first forces the model to condition all subsequent generations on that specific number, effectively acting as a constraint.
Experimental Setup
The researchers evaluated SETAUG on four diverse benchmarks:
- GO-EMO: Fine-grained emotion classification (28 labels).
- OPENENT: Open entity typing (2,519 labels).
- REUTERS-21578: News article topic labeling (90 labels).
- KP20K (KEYGEN): Scientific keyphrase generation, representing an extreme multi-label task with over 274,000 unique phrases.
Key Insights and Results
Performance Gains
SETAUG provided an average 20% relative improvement in F1 scores across the multi-label classification datasets. On the OPENENT dataset, BART-base improved from 44.6 to 53.5 F1. The benefits scaled to larger models as well; T5-11B saw an improvement from 53.6 to 57.0 F1.
The Importance of Directionality
A key finding is the "Specific-to-Generic" flow. Informative orders typically place specific labels before generic ones. In ablation studies, inverting this order (placing generic labels first) resulted in a 12% performance drop, confirming that the direction of dependency is crucial for model guidance.
Few-Shot Learning with GPT-3
In few-shot prompting scenarios with GPT-3 (175B), using TSAMPLE to order examples within the prompt improved performance by up to 15% compared to random ordering. This suggests that informative ordering helps large language models better understand the task structure even without fine-tuning.
Discussion and Limitations
While SETAUG is highly effective, its utility depends on the existence of label dependencies. In simulations where labels were completely independent, the ordering strategy provided no benefit. Additionally, while building the dependency graph is computationally efficient (taking under five minutes for the tested datasets), calculating all-pairs PMI could become a bottleneck for datasets with millions of unique labels.
Conclusion
SETAUG demonstrates that treating sets as structured entities rather than simple sequences significantly enhances the performance of Seq2seq models. By leveraging the inherent dependencies between labels and explicitly modeling set cardinality, SETAUG provides a robust, plug-and-play solution for complex multi-label tasks.
Summary updated