nli-score

Detect cross-claim contradictions in knowledge graphs using DeBERTa NLI.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/mcleanT/AutoReview --skill nli-score
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nli-score
Source: https://github.com/mcleanT/AutoReview/tree/main/.claude/skills/nli-score
Command: npx skills add https://github.com/mcleanT/AutoReview --skill nli-score

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates detection of contradictions between claims in a literature-derived knowledge graph, reducing manual evidence triage and producing evidence-weighted confidence metrics for each claim.

Core Features & Use Cases

  • False-positive pre-filtering: skips parallel assertions and applies deterministic predicate-opposition checks to avoid spurious contradictions.
  • NLI classification: runs a DeBERTa cross-encoder over claim pairs and applies Beta-Binomial updates to per-edge posteriors.
  • Reporting & inspection: generates interactive HTML and JSON reports for exploration and evidence-level diagnostics.
  • Use Case: score a KG built from extracted paper claims to surface contradictory findings, quantify controversy, and drive gap-aware supplementary searches.

Quick Start

Run the nli-score pipeline on your knowledge graph file to score claim contradictions and generate an interactive HTML and JSON report.

Frequently Asked Questions about nli-score

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect contradictions between claims in a knowledge graph?▼

To detect contradictions in a knowledge graph, run a DeBERTa cross-encoder NLI pipeline over claim pairs to apply Beta-Binomial posterior updates and score cross-claim contradictions.

How does NLI classification identify contradictions in literature-extracted claims?▼

NLI classification identifies contradictions by running a DeBERTa cross-encoder over literature-extracted claim pairs and applying Beta-Binomial updates to per-edge posteriors for evidence-weighted confidence scoring.

Does nli-score support GPU acceleration for batch inference on large knowledge graphs?▼

Yes, contradiction detection supports MPS, CUDA, and CPU devices for batch inference, allowing you to scale NLI classification across large knowledge graphs built from extracted paper claims.

How do I filter false positives when detecting contradictions across claims?▼

To filter false positives during contradiction detection, the pipeline skips parallel assertions and applies deterministic predicate-opposition checks to avoid spurious contradictions before running NLI classification.

What is the best way to visualize contradictions found in a knowledge graph?▼

The best way to visualize contradictions is by generating interactive HTML and JSON reports, which provide exploration interfaces and evidence-level diagnostics for analyzing cross-claim contradictions.

Why does the contradiction detection pipeline skip parallel assertions in knowledge graphs?▼

The contradiction detection pipeline skips parallel assertions as a false-positive pre-filtering step, applying deterministic predicate-opposition checks to ensure only genuine cross-claim contradictions are scored.