Learning to Select from Multiple Options

Jiangshu Du, Wenpeng Yin, Congying Xia, Philip S. Yu

This paper, presented at AAAI-2023, introduces two novel approaches to improve how AI models choose between multiple options. By moving from "one-by-one" comparisons to a contextualized, parallel approach, the authors achieved state-of-the-art performance across several NLP benchmarks while drastically reducing the time required for inference.

The Problem: Contextual Blindness and Inference Bottlenecks

Many Natural Language Processing (NLP) tasks—such as intent detection or multiple-choice reading comprehension—are essentially selection problems. Currently, the "gold standard" for these tasks is Textual Entailment (TE). In a standard TE setup, the input text is treated as a "premise" ($P$) and a potential label is turned into a "hypothesis" ($H$). The model then decides if $P$ entails $H$.

However, standard TE suffers from two major flaws:

  1. Contextual Blindness: It evaluates each $(P, H)$ pair in isolation. Unlike humans, who compare all available options to find the best fit, the model doesn't know what the other choices are.
  2. The Inference Bottleneck: If a task involves thousands of possible labels (common in entity typing), the model must run a separate forward pass for every single label. This makes real-time deployment computationally prohibitive.

Proposed Architectures

To address these limitations, the authors propose two distinct architectures: Context-TE and Parallel-TE.

Architectural comparison of standard TE, Context-TE, and Parallel-TE.

1. Context-TE (The "Smart" Model)

Instead of feeding the model only $(P, H)$, Context-TE appends $k$ other random options from the label space as "competing context." The input sequence includes distractors ($c_1, ..., c_k$), forcing the model to distinguish the correct hypothesis from similar alternatives. This acts as a form of regularization, improving the model's discriminative power and robustness.

2. Parallel-TE (The "Fast" Model)

Parallel-TE addresses the speed issue by treating all $k$ options in the input as hypotheses to be predicted simultaneously. Rather than relying on a single [CLS] token, the model averages token-level vectors for each hypothesis to create distinct embeddings ($h_1, ..., h_k$). Each embedding is then fed into a shared classifier. This allows the model to handle $k$ options in a single forward pass, theoretically offering a $k$-fold speedup.

For tasks with massive label spaces (e.g., 10,000+ types), a lightweight "bi-encoder" is used to retrieve the top-$k$ candidates before passing them to the Parallel-TE model for final selection.

Experimental Results

The models were evaluated on three diverse tasks: UFET (Ultra-Fine Entity Typing), BANKING77 (few-shot intent detection), and MCTest (reading comprehension). Both models set new state-of-the-art (SOTA) records across all three benchmarks.

Massive Speedup

One of the most significant contributions is the reduction in inference time. On the UFET task, which involves a massive label space, standard TE requires approximately 15 seconds to process a single instance. Parallel-TE reduces this to just 0.02 seconds—a near 750x improvement.

Inference speed comparison across different datasets, showing the dramatic efficiency of Parallel-TE.

Key Insights

  • Comparison Improves Reasoning: Context-TE demonstrates that models benefit from seeing "wrong" answers during training. This contextualization makes the model more robust at test time, even if distractors are not present during inference.
  • Efficiency without Sacrifice: While Parallel-TE is slightly less accurate than Context-TE in some high-complexity settings due to shared representation space, it still outperforms standard TE while being orders of magnitude faster.
  • Few-Shot Prowess: In low-data scenarios (e.g., 5-shot intent detection), Context-TE significantly outperformed existing baselines, proving that contextualized entailment is highly effective for few-shot learning.

Limitations and Future Work

The primary constraint for these models is the 512-token input limit of standard Transformers (like RoBERTa), which restricts the number of candidates ($k$) that can be packed into a single pass. Consequently, performance on large-scale tasks remains dependent on the quality of the initial retrieval step. Future research may explore dynamic selection of "challenging" distractors to further enhance the model's discriminative capabilities.

Summary updated

BibTeX
@inproceedings{du2023learning,
  author = {Jiangshu Du and Wenpeng Yin and Congying Xia and Philip S. Yu},
  title = {{Learning to Select from Multiple Options}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26500},
}
Figure