Share from 0:00
0:00
/

"More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectives"

Generated below podcast on this paper with Google's Illuminate.

Smart weighting of examples helps LLMs maintain peak performance with more context.

DR-ICL (Differentiated In-Context Learning ) enhances LLMs' performance in many-shot scenarios by introducing differentiated learning and advantage-based reweighting, solving the performance decline issue when demonstration examples increase.

-----

https://arxiv.org/abs/2501.04070

πŸ€” Original Problem:

LLMs show declining performance as in-context learning examples increase from few-shot to many-shot scenarios, caused by suboptimal negative log-likelihood optimization and increasing noise from larger demonstration sets.

-----

πŸ”§ Solution in this Paper:

β†’ DR-ICL uses differentiated learning to optimize globally, ensuring many-shot performance exceeds zero-shot levels

β†’ Implements advantage-based reweighting locally to filter noise in many-shot demonstrations

β†’ Divides sequences into reweighting windows and calculates advantages from previous window samples

β†’ Integrates advantages into NLL computation for dynamic weight adjustment

β†’ Combines global and local perspectives through a refined training objective

-----

πŸ’‘ Key Insights:

β†’ Many-shot doesn't always mean better performance in LLMs

β†’ Performance plateaus and declines with increasing demonstrations

β†’ Noise accumulation significantly impacts model effectiveness

β†’ Window-based sampling helps maintain stable performance

-----

πŸ“Š Results:

β†’ Achieved significant improvements across 50 datasets and 7 NLP tasks

β†’ Maintained stable performance with demonstrations ranging from 1-350 shots

β†’ Outperformed baseline methods in both in-domain and out-of-domain tasks

β†’ Demonstrated effectiveness with sequences up to 8,000 tokens

------

Are you into AI and LLMs❓ Join my daily AI newsletter. I will send you 7 emails a week analyzing the highest signal AI developments. ↓↓

πŸŽ‰ https://rohanpaul.substack.com/

Discussion about this video

User's avatar

Ready for more?