Artificial Intelligence

Natural Language Inference

The NLP task of determining the logical relationship between two sentences — whether one entails, contradicts, or is neutral with respect to the other.

Why It Matters

NLI is a fundamental test of language understanding. It powers fact verification, question answering, and detecting contradictions in documents.

Example

Given 'All dogs are animals' (premise) and 'Some animals are dogs' (hypothesis), the model determines: entailment (the hypothesis follows from the premise).

Think of it like...

Like a logic teacher checking if one statement follows from another — 'Does the conclusion actually follow from the premise?'

Related Terms