paper-with-me

Papers

Learning to Extract Context for Context-Aware LLM Inference

2025-12-12 · Minseon Kim, Lucas Caccia, Zhengyan Shi, Matheus Pereira, Marc-Alexandre Côté, Xingdi Yuan, Alessandro Sordoni arxiv

User prompts to large language models (LLMs) are often ambiguous or under-specified, and subtle contextual cues shaped by user intentions, prior knowledge, and risk factors strongly influence what constitutes an appropriate response. Misinterpreting intent or risks may lead to unsafe outputs, while overly cautious interpretations can cause unnecessary refusal of benign requests. In this paper, we question the conventional framework in which LLMs generate immediate responses to requests without considering broader contextual factors. User requests are situated within broader contexts such as intentions, knowledge, and prior experience, which strongly influence what constitutes an appropriate answer. We propose a framework that extracts and leverages such contextual information from the user prompt itself. Specifically, a reinforcement learning based context generator, designed in an autoencoder-like fashion, is trained to infer contextual signals grounded in the prompt and use them to guide response generation. This approach is particularly important for safety tasks, where ambiguous requests may bypass safeguards while benign but confusing requests can trigger unnecessary refusals. Experiments show that our method reduces harmful responses by an average of 5.6% on the SafetyInstruct dataset across multiple foundation models and improves the harmonic mean of attack success rate and compliance on benign prompts by 6.2% on XSTest and WildJailbreak. These results demonstrate the effectiveness of context extraction for safer and more reliable LLM inferences.

📄 PDF Abstract BibTeX arXiv:2512.11986

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningResponse Generation

Similar Papers 제목 키워드 기반

Joint Extraction of Events and Entities within a Document Context

2016-09-12 · NAACL 2016 6 · Bishan Yang, Tom Mitchell

Events and entities are closely related; entities are often actors or participants in events and events without entities are uncommon. The interpretation of events and entities is highly contextually dependent. Existing …

Entity Extraction using GANEvent ExtractionSentence

CLEAR: Context-Aware Learning with End-to-End Mask-Free Inference for Adaptive Video Subtitle Removal

2026-03-23 · Qingdong He, Chaoyi Wang, Peng Tang, Yifan Yang 외 arxiv

Video subtitle removal aims to distinguish text overlays from background content while preserving temporal coherence. Existing diffusion-based methods necessitate explicit mask sequences during both training and inferenc…

Zero-shot Generalization

Adapting Offline Speech Translation Models for Streaming with Future-Aware Distillation and Inference

2023-03-14 · Biao Fu, Minpeng Liao, Kai Fan, Zhongqiang Huang 외

A popular approach to streaming speech translation is to employ a single offline model with a wait-k policy to support different latency requirements, which is simpler than training multiple online models with different …

FADTranslation

EXIT: Context-Aware Extractive Compression for Enhancing Retrieval-Augmented Generation

2024-12-17 · Taeho Hwang, Sukmin Cho, Soyeong Jeong, Hoyun Song 외

We introduce EXIT, an extractive context compression framework that enhances both the effectiveness and efficiency of retrieval-augmented generation (RAG) in question answering (QA). Current RAG systems often struggle wh…

Question AnsweringRAGRetrievalRetrieval-augmented Generation+1

ContextAgent: Context-Aware Proactive LLM Agents with Open-World Sensory Perceptions

2025-05-20 · Bufang Yang, Lilin Xu, Liekang Zeng, Kaiwei Liu 외

Recent advances in Large Language Models (LLMs) have propelled intelligent agents from reactive responses to proactive support. While promising, existing proactive agents either rely exclusively on observations from encl…