NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Two-Step Classification using Recasted Data for Low Resource Settings

Shagun Uppal, Vivek Gupta, Avinash Swaminathan, Haimin Zhang, Debanjan Mahata, Rakesh Gosangi, Rajiv Ratn Shah, Amanda Stent

Introduction

In the field of Natural Language Processing (NLP), Hindi remains a "low-resource" language. Despite having the fourth-most native speakers globally, it lacks the massive, human-annotated datasets available for English. This scarcity makes it difficult to train models that can truly reason rather than just perform simple pattern matching. Furthermore, standard classification models often rely on "spurious patterns"—statistical artifacts like specific words appearing more frequently in certain classes—to make predictions without understanding underlying meaning.

Researchers have developed a way to boost performance for Hindi by "recasting" standard text classification tasks into Natural Language Inference (NLI) problems. By using a novel two-step classification method paired with a consistency regularizer, they created models that perform better in low-resource settings and exhibit more logical reasoning.

Methodology

The authors introduce a framework that transforms traditional classification into a reasoning task through three key technical contributions:

  1. Data Recasting: Four existing Hindi classification datasets were transformed into an NLI format. For a sentence labeled "Positive," hypothesis templates were generated, such as "The product got positive reviews" (Entailed) and "The product did not get positive reviews" (Not-Entailed).
  2. Two-Step Classification: Instead of predicting a class label directly, the model first predicts NLI labels (entailed/not-entailed) for every possible class template. These probabilities form an "entailment vector," which a second-step classifier uses to determine the final category.
  3. Consistency Regularization (CR): To prevent contradictory predictions (e.g., claiming a sentence entails both a hypothesis and its negation), a loss function was introduced to force the probability of a hypothesis ($p$) and its negation ($p'$) to sum to 1.
  4. Joint Objective (JO): The model is trained on both the NLI task and the final classification task simultaneously, allowing for mutual feedback and improved representation.
The proposed two-step classification pipeline using recasted NLI data and consistency regularization.

Datasets and Experimental Setup

The study utilized four diverse Hindi datasets, recasting them into the first large-scale NLI resource for the language:

  • Product Review (PR): Sentiment analysis (4 classes).
  • BHAAV (BH): Emotion analysis from short stories (5 classes).
  • Hindi Discourse Modes (HDA): Categorizing types of discourse (5 classes).
  • Hindi BBC News (BBC): Topic classification (6 classes).

Key Results and Insights

The researchers tested several architectures, with XLM-RoBERTa emerging as the most effective. The "Two-Step" approach with Joint Objective and Consistency Regularization consistently outperformed direct classification across all datasets. For example, on the BBC News dataset, accuracy rose from 70.22% (Direct) to 72.18% (Two-Step + JO + CR).

De-biasing via Recasting

Direct classification is often driven by unigram patterns (e.g., the word "but" appearing frequently in "Conflict" reviews). Recasting levels the playing field because every token appears in both "entailed" and "not-entailed" samples, forcing the model to analyze the relationship between the context and the hypothesis rather than memorizing keywords.

The Impact of Logical Consistency

Enforcing the "Consistency Regularizer" did more than just make the models more logical; it improved final classification accuracy. As shown in the results, the addition of CR and JO significantly reduced the percentage of inconsistent predictions across all tested datasets.

Percentage of inconsistent predictions across datasets, showing the reduction achieved by CR and JO.

Conclusion

Treating classification as a reasoning task (NLI) provides a form of "weaker supervision" that helps models find better decision boundaries, especially when training data is scarce. While the current hypotheses are based on simple templates, this methodology provides a language-agnostic blueprint for improving NLP in other low-resource languages. Future work may involve more linguistically diverse templates and applying this framework to tasks like Question Answering.

Summary updated

BibTeX
@inproceedings{uppal2020two,
  author = {Shagun Uppal and Vivek Gupta and Avinash Swaminathan and Haimin Zhang and Debanjan Mahata and Rakesh Gosangi and Rajiv Ratn Shah and Amanda Stent},
  title = {{Two-Step Classification using Recasted Data for Low Resource Settings}},
  booktitle = {AACL/IJCNLP},
  year = {2020},
  doi = {10.18653/v1/2020.aacl-main.71},
}
Figure