paper-with-me

홈 › Papers

Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Reasoning

2025-05-19 · Adam Štorek, Mukur Gupta, Samira Hajizadeh, Prashast Srivastava, Suman Jana

Although modern Large Language Models (LLMs) support extremely large contexts, their effectiveness in utilizing long context for code reasoning remains unclear. This paper investigates LLM reasoning ability over code snippets within large repositories and how it relates to their recall ability. Specifically, we differentiate between lexical code recall (verbatim retrieval) and semantic code recall (remembering what the code does). To measure semantic recall, we propose SemTrace, a code reasoning technique where the impact of specific statements on output is attributable and unpredictable. We also present a method to quantify semantic recall sensitivity in existing benchmarks. Our evaluation of state-of-the-art LLMs reveals a significant drop in code reasoning accuracy as a code snippet approaches the middle of the input context, particularly with techniques requiring high semantic recall like SemTrace. Moreover, we find that lexical recall varies by granularity, with models excelling at function retrieval but struggling with line-by-line recall. Notably, a disconnect exists between lexical and semantic recall, suggesting different underlying mechanisms. Finally, our findings indicate that current code reasoning benchmarks may exhibit low semantic recall sensitivity, potentially underestimating LLM challenges in leveraging in-context information.

📄 PDF Abstract BibTeX arXiv:2505.13353

Code (0)

등록된 구현이 없습니다.

Tasks

RetrievalSensitivity

Similar Papers 제목 키워드 기반

Graph-based Clustering for Detecting Semantic Change Across Time and Languages

2024-02-01 · Xianghe Ma, Michael Strube, Wei Zhao

Despite the predominance of contextualized embeddings in NLP, approaches to detect semantic change relying on these embeddings and clustering methods underperform simpler counterparts based on static word embeddings. Thi…

Binary ClassificationClusteringWord Embeddings

Lost in Context? On the Sense-wise Variance of Contextualized Word Embeddings

2022-08-20 · Yile Wang, Yue Zhang

Contextualized word embeddings in language models have given much advance to NLP. Intuitively, sentential information is integrated into the representation of words, which can help model polysemy. However, context sensit…

PositionSentenceWord EmbeddingsWord Sense Disambiguation

An empirically grounded expansion of the supersense inventory

2016-01-01 · GWC 2016 1 · Hector Martinez Alonso, Anders Johannsen, Sanni Nimb, Sussi Olsen 외

In this article we present an expansion of the supersense inventory. All new super-senses are extensions of members of the current inventory, which we postulate by identifying semantically coherent groups of synsets. We …

Regular polysemy: from sense vectors to sense patterns

2016-12-01 · WS 2016 12 · Anastasiya Lopukhina, Konstantin Lopukhin

Regular polysemy was extensively investigated in lexical semantics, but this phenomenon has been very little studied in distributional semantics. We propose a model for regular polysemy detection that is based on sense v…

Word EmbeddingsWord Sense Disambiguation

Multi-sense Definition Modeling using Word Sense Decompositions

2019-09-19 · Ruimin Zhu, Thanapon Noraset, Alisa Liu, Wenxin Jiang 외

Word embeddings capture syntactic and semantic information about words. Definition modeling aims to make the semantic content in each embedding explicit, by outputting a natural language definition based on the embedding…

Word Embeddings