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/










