paper-with-me

홈 › Papers

Implicit In-context Learning

2024-05-23 · Zhuowei Li, Zihao Xu, Ligong Han, Yunhe Gao, Song Wen, Di Liu, Hao Wang, Dimitris N. Metaxas

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.

📄 PDF Abstract BibTeX arXiv:2405.14660

Code (1)

lzvv123456/i2cl 공식 구현 pytorch

Tasks

In-Context LearningTransfer LearningZero-Shot Learning

Similar Papers 제목 키워드 기반

Implicit Session Contexts for Next-Item Recommendations

2022-08-18 · Sejoon Oh, Ankur Bhardwaj, Jongseok Han, Sungchul Kim 외

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 Systems

KC-ISA: An Implicit Sentiment Analysis Model Combining Knowledge Enhancement and Context Features

2022-10-01 · COLING 2022 10 · Minghao Xu, Daling Wang, Shi Feng, Zhenfei Yang 외

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 Analysis

Disruption of the prefrontal cortex improves implicit contextual memory-guided attention: combined behavioural and electrophysiological evidence

2019-02-15

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

2025-05-26 · Yejin Lee, Joonghyuk Hahn, Hyeseon Ahn, Yo-Sub Han

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+1

Fast ALS-based tensor factorization for context-aware recommendation from implicit feedback

2012-04-05 · Balázs Hidasi, Domonkos Tikk

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