Contiguity Constraints for Extractive Rationalization

26 concepts18 papers3 proposals

Deep learning models excel at processing text, but their internal decision-making processes remain notoriously opaque. To address this, researchers developed extractive rationalization: forcing a model to select a small subset of the input text (a "rationale") to justify its prediction. As pioneered by Lei et al., this framework acts as a built-in explanation mechanism, ensuring that the model only looks at the highlighted text to make its final decision.

However, a major problem arises when token selection is unconstrained. Left to their own devices, optimization algorithms often select a fragmented, disjointed collection of individual words scattered across a document (e.g., selecting "not", "good", "but", and "bad" from different paragraphs). As noted by Chrysostomou et al. and An et al., these fragmented outputs lack grammatical fluency and linguistic coherence. This "scattered keyword" pattern significantly increases the cognitive load for human readers, making it difficult to reconstruct the original meaning or verify the model's logic (Shen et al.; Storek et al.).

To bridge the gap between machine feature selection and human comprehension, a prominent research direction focuses on contiguity constraints. By mathematically forcing models to select continuous spans or phrases rather than isolated tokens, these techniques align automated explanations with natural human reasoning.

The Dual Forces: Sparsity and Contiguity

To generate a high-quality rationale, an extraction mechanism must balance two competing objectives:

  1. Sparsity: The explanation must be concise, filtering out the vast majority of irrelevant text.
  2. Contiguity: The selected tokens must form unbroken, continuous blocks to preserve context and readability.

Without structural constraints, a model will exploit "fragile signals"—isolated words that happen to correlate with the target label but lack broader context. Antognini et al. and Chang et al. demonstrate that explicitly regularizing both the total number of selected words (sparsity) and the fragmentation of those words (contiguity) forces the model to identify meaningful, phrase-level justifications.

Think of it as shifting the model's interface from a fine-tipped pen that dots individual letters to a broad highlighter that sweeps across entire clauses.

Mathematical Formulations of Contiguity

Researchers have developed several distinct mathematical frameworks to penalize fragmentation and reward continuous text spans.

1. Transition Penalties and Latent State Models

One intuitive way to enforce contiguity is to model token selection as a sequence of binary choices (Selected vs. Unselected) and penalize the model every time it switches states.

In their foundational work, Lei et al. introduced a regularizer that explicitly penalizes the frequency of transitions between selected and unselected states. To make this process structurally robust, several approaches incorporate sequence-modeling layers like Conditional Random Fields (CRFs) or factor graphs. For instance, Yu et al. and Wang et al. utilize CRF layers to model dependencies between neighboring words, discouraging erratic jumping between active and inactive states. Similarly, Martins et al. and Hu use pairwise factors within factor graphs to create fully differentiable layers that natively favor consecutive token sequences.

2. Fused Lasso and Spatial Distance Penalties

Instead of modeling discrete state transitions, another class of methods applies smoothing penalties directly to continuous attention weights or selection probabilities.

Niculae et al. introduced mathematical operators like fusedmax, which incorporate a fused lasso penalty into the attention mechanism. The fused lasso penalizes the absolute difference between adjacent weights ($|w_i - w_{i-1}|$). To minimize this penalty, the optimization algorithm is forced to assign identical weights to contiguous segments, creating flat "plateaus" of attention that correspond to phrases.

Standard Attention (Scattered):  [0.1, 0.0, 0.8, 0.0, 0.6, 0.0, 0.1]
Fusedmax Attention (Contiguous): [0.0, 0.0, 0.5, 0.5, 0.5, 0.0, 0.0]
                                       └───────┬───────┘
                                        Contiguous Span

Shen et al. successfully applied this fused lasso strategy to phrase-level text extraction, while Kuang et al. formulated an adjacency-biased token selection method that explicitly penalizes the spatial distance between selected words, using spatial continuity as a direct proxy for logical coherence.

3. Language Model Language Regularizers

A third approach leverages the semantic fluency of pre-trained language models. Instead of relying purely on geometric or structural penalties, Sha et al. used a pre-trained language model as a regularizer during feature selection. The language model evaluates the extracted snippets and rewards choices that form consecutive, semantically fluent sub-phrases, effectively outsourcing the definition of "coherence" to a model that already understands natural language structure.

Why Contiguity Preserves Performance

A common concern in constrained optimization is the trade-off between flexibility and performance: does forcing a model to select continuous spans hurt its predictive accuracy?

The consensus across recent literature suggests that contiguity constraints actually stabilize training and maintain—or even enhance—model performance. Whether applied to multi-task teacher-student frameworks (Bhat et al.), attention alignment matrices (Jiang et al.), or end-to-end differentiable Transformers (Brinner et al.), contiguity acts as a powerful inductive bias.

Language is inherently compositional; meaning is constructed through phrases and sentences, not isolated keywords. By restricting the model's search space to contiguous segments, these constraints prevent the network from overfitting to disjointed, noisy correlations. The resulting rationales achieve high faithfulness (accurately reflecting what the model relied on) while remaining immediately interpretable to human supervisors.

Key Foundational Work

Rationalizing Neural Predictions (2016) — contributed 1 concept elements to this direction.
A Regularized Framework for Sparse and Structured Neural Attention (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_contiguity_constrained_explanation_ee51982d,
  title = {contiguity-constrained explanation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/contiguity-constrained-explanation/rdr_ee51982d494148a593ce295717bc0010},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_contiguity_constrained_explanation_ee51982d_v1,
  title = {contiguity-constrained explanation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/contiguity-constrained-explanation/rdr_ee51982d494148a593ce295717bc0010/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake