[Paper Review] A New Dataset for Natural Language Inference from Code-mixed Conversations
This paper introduces the first natural language inference (NLI) dataset for code-mixed Hindi-English conversations, using dialogue snippets from Bollywood movies as premises and crowd-sourced hypotheses. Despite using mBERT as a baseline, the model achieves only moderate performance, highlighting the challenge of code-mixed NLI and the need for specialized models.
Natural Language Inference (NLI) is the task of inferring the logical relationship, typically entailment or contradiction, between a premise and hypothesis. Code-mixing is the use of more than one language in the same conversation or utterance, and is prevalent in multilingual communities all over the world. In this paper, we present the first dataset for code-mixed NLI, in which both the premises and hypotheses are in code-mixed Hindi-English. We use data from Hindi movies (Bollywood) as premises, and crowd-source hypotheses from Hindi-English bilinguals. We conduct a pilot annotation study and describe the final annotation protocol based on observations from the pilot. Currently, the data collected consists of 400 premises in the form of code-mixed conversation snippets and 2240 code-mixed hypotheses. We conduct an extensive analysis to infer the linguistic phenomena commonly observed in the dataset obtained. We evaluate the dataset using a standard mBERT-based pipeline for NLI and report results.
Motivation & Objective
- To address the lack of natural language inference (NLI) datasets for code-mixed language, particularly in multilingual, conversational contexts.
- To create a high-quality, conversation-based NLI dataset in Hindi-English code-mixing, reflecting real-world multilingual communication.
- To evaluate the ability of multilingual models like mBERT to handle code-mixed NLI, given the linguistic complexity of code-switching.
- To identify linguistic phenomena in code-mixed NLI that challenge current models, such as sarcasm, word sense disambiguation, and speaker conflict.
- To provide a benchmark for future research in code-mixed NLI, with potential applications in chatbots and conversational agents.
Proposed method
- Collected 400 code-mixed Hindi-English conversation snippets from Hindi movies (Bollywood) as premises.
- Crowd-sourced 2,240 hypotheses from bilingual annotators, labeled as entailment (True) or contradiction (False) relative to each premise.
- Conducted a pilot annotation study to refine the annotation protocol, focusing on consistency and linguistic complexity.
- Used a validation step where annotators confirmed the correctness of hypothesis-premise relationships to ensure data quality.
- Evaluated the dataset using a standard mBERT-based NLI pipeline with hyperparameters from Devlin et al. (2018): AdamW, 5e-5 initial LR, 16 batch size, 5 epochs.
- Reported results as average accuracy over 5 random seeds, acknowledging a script mismatch (Romanized Hindi vs. Devanagari in mBERT pretraining).
Experimental results
Research questions
- RQ1Can existing multilingual models like mBERT generalize to code-mixed NLI tasks, despite a script mismatch and linguistic complexity?
- RQ2What linguistic phenomena in code-mixed Hindi-English conversations pose the greatest challenge to NLI models?
- RQ3How does using conversational dialogues as premises compare to sentence-level premises in terms of model performance and consistency?
- RQ4To what extent do shallow heuristics (e.g., keyword matching, negation, numeral changes) dominate model predictions in code-mixed NLI?
- RQ5What are the most frequent and complex linguistic patterns observed in crowd-sourced hypotheses for code-mixed NLI?
Key findings
- The dataset contains 400 premises and 2,240 hypotheses in code-mixed Hindi-English, with labels for entailment or contradiction.
- The mBERT model achieved only moderate performance on the dataset, indicating that code-mixed NLI remains a challenging task.
- Annotators frequently generated hypotheses involving negation, numeral changes, role swapping, and paraphrasing, which are often predictable by shallow models.
- Hypotheses requiring deeper semantic understanding—such as sarcasm, word sense disambiguation, and inter-dependent inference—were less frequent but more challenging.
- The quality of hypotheses decreased with increasing premise length, suggesting a need for better modeling of long-form dialogues.
- The dataset is scalable and could be extended to create monolingual conversation entailment datasets, addressing a current gap in the field.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.