Abstract
Traditional Natural Language Inference (NLI) frameworks often fail to capture the nuanced relationships between claims that are "conditionally compatible." We introduce Conditional Natural Language Inference (Cond-NLI), a task focused on identifying specific conditions that reconcile seemingly contradictory statements. We present Partial-ATtention (PAT), a lightweight architecture that achieves high interpretability and competitive performance against large language models (LLMs) in token-level condition extraction.
Introduction
Natural Language Inference (NLI) typically classifies the relationship between a premise and a hypothesis into three categories: entailment, contradiction, or neutral. While effective for simple logic, this framework is insufficient for complex real-world data, such as biomedical research. For example, two claims regarding drug efficacy might be labeled "neutral" simply because they focus on different patient demographics. However, these claims are often "conditionally compatible"—they provide different outcomes based on specific variables or conditions.
The challenge lies in identifying these conditions without dense token-level annotations. Existing feature-attribution methods often fail to pinpoint these specific tokens in long, independently authored sentences.
Methodology: Partial-ATtention (PAT)
To address these gaps, we propose the Partial-ATtention (PAT) framework. Unlike standard cross-encoders that process sentence pairs as monolithic blocks, PAT introduces architectural constraints to enforce interpretability.
As shown in Figure 1, the hypothesis $h$ is partitioned into a specific span $h_1$ and the remaining context $h_2$ (where $h_1$ is masked). The model generates intermediate NLI labels ($\rho_1, \rho_2$) for the pairs $(p, h_1)$ and $(p, h_2)$. These labels are then combined via a logical aggregation matrix. For instance, if one segment contradicts the premise while the other is neutral, the overall relationship is classified as a contradiction.
By employing a sliding window to evaluate various spans of $h_1$, PAT can attribute NLI labels to individual tokens. This allows the model to learn fine-grained behavior using only sentence-level supervision, effectively identifying "condition tokens" (neutral) and "outcome tokens" (contradictory).
Experimental Results
We evaluated PAT using the BioClaim dataset, which contains biomedical claim pairs manually annotated for "contradiction" (opposite outcomes) and "neutral" (differing conditions).
As detailed in Figure 5, PAT achieved an F1 score of 0.657 for identifying neutral (condition) tokens on the BioClaim dataset, outperforming established attribution methods like LIME and SLR. Notably, PAT also outperformed LLMs such as InstructGPT and ChatGPT in condition extraction, despite having orders of magnitude fewer parameters (~110M vs. 175B+). In contradiction extraction, PAT's F1 score of 0.414 nearly doubled that of several perturbation-based models.
Discussion and Conclusion
PAT demonstrates that "neutral" tokens in Cond-NLI are highly informative, representing the conditions that explain claim divergence. While PAT sacrifices a small amount of sentence-level accuracy (roughly 2-4%) compared to full cross-encoders, it provides significant gains in interpretability.
However, limitations remain. The current fixed aggregation logic struggles with complex linguistic structures like double negatives. Additionally, the BioClaim dataset highlights subjectivity in human "chunking" of conditions, which creates a ceiling for automated performance. Future work will explore expanding Cond-NLI to legal and financial domains and refining the logical aggregation layer.
Summary updated