Implicit In-context Learning
In-context Learning (ICL) empowers large language models (LLMs) to adapt to unseen tasks during inference by prefixing a few demonstration examples prior to test queries. Despite its versatility, ICL incurs substantial computational and memory overheads compared to zero-shot learning and is susceptible to the selection and order of demonstration examples. In this work, we introduce Implicit In-context Learning (I2CL), an innovative paradigm that addresses the challenges associated with traditional ICL by absorbing demonstration examples within the activation space. I2CL first generates a condensed vector representation, namely a context vector, from the demonstration examples. It then integrates the context vector during inference by injecting a linear combination of the context vector and query activations into the model's residual streams. Empirical evaluation on nine real-world tasks across three model architectures demonstrates that I2CL achieves few-shot performance with zero-shot cost and exhibits robustness against the variation of demonstration examples. Furthermore, I2CL facilitates a novel representation of "task-ids", enhancing task similarity detection and enabling effective transfer learning. We provide a comprehensive analysis of I2CL, offering deeper insights into its mechanisms and broader implications for ICL. The source code is available at: https://github.com/LzVv123456/I2CL.
Code (1)
Tasks
In-Context LearningTransfer LearningZero-Shot LearningSimilar Papers 제목 키워드 기반
Implicit Session Contexts for Next-Item Recommendations
Session-based recommender systems capture the short-term interest of a user within a session. Session contexts (i.e., a user's high-level interests or intents within a session) are not explicitly given in most datasets, …
Graph LearningRecommendation SystemsKC-ISA: An Implicit Sentiment Analysis Model Combining Knowledge Enhancement and Context Features
Sentiment analysis has always been an important research direction in natural language processing. The research can be divided into explicit sentiment analysis and implicit sentiment analysis according to whether there a…
Common Sense ReasoningSentiment AnalysisDisruption of the prefrontal cortex improves implicit contextual memory-guided attention: combined behavioural and electrophysiological evidence
Many studies have shown that the dorsolateral prefrontal cortex (DLPFC) plays an important role in top-down cognitive control over intentional and deliberate behavior. However, recent studies have reported that DLPFC-med…
EEGElectroencephalogram (EEG)AmpleHate: Amplifying the Attention for Versatile Implicit Hate Detection
Implicit hate speech detection is challenging due to its subtlety and reliance on contextual interpretation rather than explicit offensive words. Current approaches rely on contrastive learning, which are shown to be eff…
Contrastive LearningHate Speech Detectionnamed-entity-recognitionNamed Entity Recognition+1Fast ALS-based tensor factorization for context-aware recommendation from implicit feedback
Albeit, the implicit feedback based recommendation problem - when only the user history is available but there are no ratings - is the most typical setting in real-world applications, it is much less researched than the …
Computational Efficiency