AI Navigate

Discovering the Hidden Role of Gini Index In Prompt-based Classification

arXiv cs.AI / 3/18/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper investigates the hidden role of the Gini Index as a tool for detecting and optimizing disparities in class accuracy in prompt-based classification.
  • It benchmarks Gini scores across real-world LLMs and vision models, revealing persistent relative accuracy imbalances across both text and image tasks.
  • The authors propose a post-hoc, model-agnostic bias mitigation method that uses Gini as an optimization objective to reduce disparities.
  • Experimental results in few-shot news, biomedical, and zero-shot image classification show the method elevates weaker classes while reducing top-class dominance.

Abstract

In classification tasks, the long-tailed minority classes usually offer the predictions that are most important. Yet these classes consistently exhibit low accuracies, whereas a few high-performing classes dominate the game. We pursue a foundational understanding of the hidden role of Gini Index as a tool for detecting and optimizing (debiasing) disparities in class accuracy, focusing on the case of prompt-based classification. We introduce the intuitions, benchmark Gini scores in real-world LLMs and vision models, and thoroughly discuss the insights of Gini not only as a measure of relative accuracy dominance but also as a direct optimization metric. Through rigorous case analyses, we first show that weak to strong relative accuracy imbalance exists in both prompt-based, text and image classification results and regardless of whether the classification is high-dimensional or low-dimensional. Then, we harness the Gini metric to propose a post-hoc model-agnostic bias mitigation method. Experimental results across few-shot news, biomedical, and zero-shot image classification show that our method significantly reduces both relative and absolute accuracy imbalances, minimizing top class relative dominance while elevating weakest classes.