Rule Discovery for Natural Language Inference Data Generation Using Out-of-Distribution Detection
Juyoung Han, Hyunsun Hwang, Changki Lee
Abstract
Natural Language Inference (NLI) is a fundamental task in Natural Language Processing (NLP). However, adapting NLI models to new domains remains challenging due to the high cost of collecting domain-specific training data. While prior work proposed 15 sentence transformation rules to automate training data generation, these rules do not sufficiently capture the diversity of natural language. We propose a novel framework that combines Out-of-Distribution (OOD) detection and BERT-based clustering to identify premise-hypothesis pairs in the SNLI dataset that are not covered by existing rules and discover four new transformation rules from them. Using these rules with Chain-of-Thought (CoT) prompting and Large Language Models (LLMs), we generate high-quality training data and augment the SNLI dataset. Our method yields consistent performance improvements across dataset sizes, achieving +0.85%p accuracy on 2k samples and +0.15%p on 550k samples. Furthermore, a distribution-aware augmentation strategy enhances performance across all scales. Beyond manual explanations, we extend our framework to automatically-generated explanations (CoT-Ex), demonstrating that they provide a scalable alternative to human-written explanations and enable reliable rule discovery.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on3
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Detecting Out-of-distribution Data through In-distribution Class PriorXue Jiang, Feng Liu, Zhen Fang, Hong Chen et al.ICML 2023 · 33 citations
- What Makes Chain-of-Thought Prompting Effective? A Counterfactual StudyAman Madaan, Katherine Hermann, Amir YazdanbakhshEMNLP Findings 2023 · 16 citations
Related papers
- Logical Reasoning with Span-Level Predictions for Interpretable and Robust NLI ModelsJoe Stacey, Pasquale Minervini, Haim Dubossarsky, Marek ReiEMNLP 2022 · 5 citations
- Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization AnalysisHongkang Li, Songtao Lu, Pin-Yu Chen, Xiaodong Cui et al.ICLR 2025
- Faithful Logical Reasoning via Symbolic Chain-of-ThoughtJundong Xu, Hao Fei, Liangming Pan, Qian Liu et al.ACL 2024
- A synthetic data approach for domain generalization of NLI modelsMohammad Javad Hosseini, Andrey Petrov, Alex Fabrikant, Annie LouisACL 2024 · 3 citations
- Simple but Challenging: Natural Language Inference Models Fail on Simple SentencesCheng Luo, Wei Liu, Jieyu Lin, Jiajie Zou et al.EMNLP Findings 2022 · 3 citations
