Investigating the Zone of Proximal Development of Language Models for In-Context Learning

Peng Cui, Mrinmaya SachanNAACL 2025

Introduction

In-Context Learning (ICL) has become a fundamental capability of Large Language Models (LLMs), allowing them to adapt to new tasks through a few demonstrations. However, ICL is often computationally expensive and can occasionally lead to performance degradation. This research, accepted to NAACL 2025, addresses these inefficiencies by applying the educational psychology concept of the Zone of Proximal Development (ZPD) to AI. The ZPD represents the "sweet spot" for learning: tasks a model cannot solve independently but can master with guidance.

Conceptual overview of the Zone of Proximal Development (ZPD) applied to learners and AI models.

The ZPD Framework for LLMs

The authors formalize the ZPD by categorizing model performance on specific queries into three distinct zones:

  1. Prior Knowledge ($Z_{\checkmark}$): Queries the model solves correctly via direct zero-shot prompting.
  2. The ZPD ($Z_{\times \to \checkmark}$): Queries the model fails initially but solves correctly after receiving ICL demonstrations.
  3. Beyond Reach ($Z_{\times \to \times}$): Queries the model fails even with optimal demonstrations.

To predict these zones for unseen queries, the paper introduces $MIRT_{ICL}$, a Multi-Dimensional Item Response Theory model. By incorporating text embeddings (SBERT), $MIRT_{ICL}$ learns latent traits—such as model skill and query difficulty—to estimate the probability of a model succeeding with or without ICL guidance.

Empirical Analysis and Insights

The framework was evaluated using the LLaMA-2 and LLaMA-3 families (7B to 70B parameters) on two benchmarks: GSM8K (mathematical reasoning) and EZStance (stance detection).

Distribution of the three performance zones across various LLaMA models on GSM8K and EZStance datasets.

Key findings from the empirical analysis include:

  • Untapped Potential: Current example selection methods often lag behind the "Oracle" potential (the theoretical upper bound of ICL) by approximately 20%.
  • Model-Specific Boundaries: ZPD boundaries vary significantly by model. A task that serves as a learning opportunity for a 7B model might already be "prior knowledge" for a 70B model.
  • Harmful Examples: For certain instruction-tuned models, ICL can actually decrease accuracy on specific queries, highlighting the importance of identifying the ZPD to "gate" the use of demonstrations.

Practical Applications

The researchers demonstrated the utility of the ZPD framework in two practical scenarios:

  1. Selective ICL (SELICL): By applying ICL only to queries predicted to be in the ZPD, the authors achieved Pareto-optimal performance. This approach matched or exceeded standard ICL accuracy while significantly reducing token consumption and inference costs.
  2. ZPD-based Curriculum Fine-tuning: Implementing a curriculum that prioritizes training data within the model's current ZPD led to faster convergence and higher final accuracy compared to random data ordering.

Conclusion

By bridging educational theory and machine learning, this work provides a principled way to optimize LLM interactions. Identifying the ZPD allows for more efficient prompting and more effective fine-tuning, moving toward "knowledge tracing" for AI that can dynamically adjust to a model's evolving capabilities.

Summary updated

BibTeX
@inproceedings{cui2025investigating,
  author = {Peng Cui and Mrinmaya Sachan},
  title = {{Investigating the Zone of Proximal Development of Language Models for In-Context Learning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.362},
}
Figure