Introduction
In-Context Learning (ICL) has emerged as a powerful paradigm where Large Language Models (LLMs) perform tasks using only a few examples provided in the prompt. However, ICL is notoriously sensitive to minor experimental variations. Trivial changes—such as adding a space, altering a label from "Positive" to "Good," or reordering demonstrations—can lead to massive swings in performance.
This inconsistency has created a "wild west" in research, where results are nearly impossible to compare across different studies. One paper might report high accuracy for a model while another shows it failing, simply due to differing prompt templates or sampling strategies. This lack of standardization prevents the identification of fundamental properties, such as how ICL performance truly scales with model size.
The StaICC Framework
To address these challenges, we introduce StaICC (Standardized Evaluation for Classification Task in ICL). StaICC provides a unified experimental environment by fixing variables like prompt templates, data sampling, and demonstration orders. This ensures that observed performance variations are attributable to the model or the ICL algorithm itself, rather than experimental noise.
The toolkit consists of two primary components:
- StaICC-Normal: A standardized benchmark for basic classification that unifies experimental setups across models.
- StaICC-Diag: A diagnostic suite designed to probe model behavior, measuring prediction bias (contextual, domainal, and empirical) and robustness to prompt changes or incorrect labels.
Datasets and Evaluation
StaICC evaluates models across 10 widely used single-sentence classification datasets, covering sentiment analysis (SST-2, MR, SST-5, Financial Phrasebank), topic classification (TREC, AGNews), and subjectivity/emotion detection (Subjective, TEE, TEH, HS18). The evaluation suite includes a dedicated "Calibration Set" for tuning and a "Demonstration Set" for few-shot example selection.
Key Insights
The Emergence of Scaling Laws
By standardizing the evaluation, a clear log-linear scaling law becomes visible. As model parameters increase, the True Label Probability (TLP) improves predictably. Previously, this relationship was obscured because the variance induced by different prompts was often greater than the performance gains from scaling model size.
Sensitivity and Robustness
While larger models generally perform better, they exhibit a "fragility of scale" regarding label noise. Using the Ground Label Effect Ratio (GLER), we found that larger models are more sensitive to incorrect labels in demonstrations; their performance drops more sharply than smaller models when provided with falsified data.
Prompt Connectors vs. Verbalizers
Diagnostic tests revealed that "prompt connectors" (formative tokens like "Label: " or "Sentence: ") have a significantly larger impact on performance than the specific words used for labels (verbalizers). This suggests that the structural framing of the prompt is more critical for model guidance than the specific vocabulary used for classification categories.
Key Results and Benchmarking
Our evaluation of 29 models and 10 ICL-improvement methods provides several key takeaways:
- Top Methods: Hidden Calibration and SA-ICL (Self-Adaptive ICL) emerged as the most consistent performers across various model sizes.
- Bias vs. Accuracy: Reducing contextual bias (the tendency to favor labels based on prompt format) does not always increase raw accuracy, but it significantly improves model faithfulness and calibration.
- Stability: StaICC successfully reduced experimental variance across trials to zero by freezing inputs, providing a stable foundation for future benchmarking.
Limitations and Future Work
Currently, StaICC is focused on single-sentence classification. Future iterations aim to expand the toolkit to more complex tasks, such as Natural Language Inference (NLI) and open-ended generation, while maintaining the same rigorous standardization. The StaICC library is available on GitHub to encourage community-wide adoption of standardized ICL evaluation.
Summary updated