Skip to main content
QUICK REVIEW

[Paper Review] Why and How to Pay Different Attention to Phrase Alignments of Different Intensities

Wenpeng Yin, Hinrich Schütze|arXiv (Cornell University)|Apr 23, 2016
Topic ModelingComputer Science35 references3 citations
TL;DR

This paper proposes a task-adaptive attention mechanism using Gated Recurrent Units (GRUs) to dynamically prioritize phrase alignments of varying intensities—weak alignments in textual entailment (TE) and strong alignments in answer selection (AS). By learning phrase representations of arbitrary granularity and applying flexible attention pooling, the model achieves state-of-the-art performance on both TE and AS benchmarks, demonstrating that alignment intensity preferences are task-dependent.

ABSTRACT

This work studies comparatively two typical sentence pair classification tasks: textual entailment (TE) and answer selection (AS), observing that phrase alignments of different intensities contribute differently in these tasks. We address the problems of identifying phrase alignments of flexible granularity and pooling alignments of different intensities for these tasks. Examples for flexible granularity are alignments between two single words, between a single word and a phrase and between a short phrase and a long phrase. By intensity we roughly mean the degree of match, it ranges from identity over surface-form co-occurrence, rephrasing and other semantic relatedness to unrelated words as in lots of parenthesis text. Prior work (i) has limitations in phrase generation and representation, or (ii) conducts alignment at word and phrase levels by handcrafted features or (iii) utilizes a single attention mechanism over alignment intensities without considering the characteristics of specific tasks, which limits the system's effectiveness across tasks. We propose an architecture based on Gated Recurrent Unit that supports (i) representation learning of phrases of arbitrary granularity and (ii) task-specific focusing of phrase alignments between two sentences by attention pooling. Experimental results on TE and AS match our observation and are state-of-the-art.

Motivation & Objective

  • To investigate how phrase alignments of varying intensities contribute differently in sentence pair classification tasks such as textual entailment (TE) and answer selection (AS).
  • To address the limitations of prior methods that rely on handcrafted features, fixed alignment frameworks, or rigid attention mechanisms that assume stronger alignments are always more important.
  • To develop a deep learning architecture that learns phrase representations of arbitrary granularity and adapts attention based on task-specific needs.
  • To demonstrate that TE benefits from focusing on weaker alignments (e.g., paraphrased or transformed phrases), while AS benefits from focusing on stronger alignments (e.g., exact or semantically close matches).

Proposed method

  • Utilizes Gated Recurrent Units (GRUs) to learn dense, task-agnostic representations for phrases of arbitrary length and granularity.
  • Applies an attention pooling mechanism that allows the model to flexibly emphasize alignments based on their intensity, with task-specific configuration: min-pooling for TE (focusing on weak alignments), max-pooling for AS (focusing on strong alignments).
  • Introduces a two-step attention pooling mechanism: first, attention is computed over phrase pairs to identify relevant alignments; second, pooling (k-min or k-max) selects the most informative alignments for decision-making.
  • Employs a unified architecture for both TE and AS, with shared phrase representation learning but distinct attention strategies tailored to each task’s requirements.
  • Uses cosine similarity and additional features (e.g., WordCnt, WgtWordCnt) in the final classifier head to enhance matching performance.

Experimental results

Research questions

  • RQ1Do phrase alignments of different intensities contribute differently in textual entailment (TE) versus answer selection (AS)?
  • RQ2Can a single neural architecture dynamically adapt attention to prioritize alignments based on their intensity, depending on the task?
  • RQ3Is it valid to assume that stronger alignments always contribute more to classification performance, or are weaker alignments critical in certain tasks like TE?
  • RQ4Can a deep learning model with end-to-end phrase representation learning outperform methods relying on handcrafted linguistic features or fixed alignment mechanisms?

Key findings

  • The model achieves state-of-the-art performance on the SNLI dataset for textual entailment, outperforming previous methods by leveraging attention on weaker alignments.
  • On the WikiQA dataset for answer selection, the model achieves a MAP of 0.7108 and MRR of 0.7203 using k-max-max-pooling, significantly outperforming baselines including AP-CNN and ABCNN.
  • Visualizations confirm that the model successfully identifies key phrases such as 'kids' corresponding to 'young boys' and 'smiling nearby' corresponding to 'a smile', even when surface forms differ.
  • The k-min-pooling variant effectively detects critical weak alignments in TE, such as paraphrased phrases, while k-max-pooling in AS highlights strong, exact matches.
  • The two-stage attention pooling mechanism reduces noise by filtering out poorly aligned phrases, especially those influenced by function words like 'and' or 'near'.
  • The GRU-based phrase representation learning enables direct comparison of phrases across different granularities in the same embedding space, unlike CNN-based models with fixed filter sizes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.