paper-with-me

홈 › Papers

OmniLLP: Enhancing LLM-based Log Level Prediction with Context-Aware Retrieval

2025-08-12 · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan arxiv

Developers insert logging statements in source code to capture relevant runtime information essential for maintenance and debugging activities. Log level choice is an integral, yet tricky part of the logging activity as it controls log verbosity and therefore influences systems' observability and performance. Recent advances in ML-based log level prediction have leveraged large language models (LLMs) to propose log level predictors (LLPs) that demonstrated promising performance improvements (AUC between 0.64 and 0.8). Nevertheless, current LLM-based LLPs rely on randomly selected in-context examples, overlooking the structure and the diverse logging practices within modern software projects. In this paper, we propose OmniLLP, a novel LLP enhancement framework that clusters source files based on (1) semantic similarity reflecting the code's functional purpose, and (2) developer ownership cohesion. By retrieving in-context learning examples exclusively from these semantic and ownership aware clusters, we aim to provide more coherent prompts to LLPs leveraging LLMs, thereby improving their predictive accuracy. Our results show that both semantic and ownership-aware clusterings statistically significantly improve the accuracy (by up to 8\% AUC) of the evaluated LLM-based LLPs compared to random predictors (i.e., leveraging randomly selected in-context examples from the whole project). Additionally, our approach that combines the semantic and ownership signal for in-context prediction achieves an impressive 0.88 to 0.96 AUC across our evaluated projects. Our findings highlight the value of integrating software engineering-specific context, such as code semantic and developer ownership signals into LLM-LLPs, offering developers a more accurate, contextually-aware approach to logging and therefore, enhancing system maintainability and observability.

📄 PDF Abstract BibTeX arXiv:2508.08545

Code (0)

등록된 구현이 없습니다.

Tasks

Semantic Similarity

Similar Papers 제목 키워드 기반

Context-Aware Mixup for Domain Adaptive Semantic Segmentation

2021-08-08 · Qianyu Zhou, Zhengyang Feng, Qiqi Gu, Jiangmiao Pang 외

Unsupervised domain adaptation (UDA) aims to adapt a model of the labeled source domain to an unlabeled target domain. Existing UDA-based semantic segmentation approaches always reduce the domain shifts in pixel level, f…

Domain AdaptationImage-to-Image TranslationSemantic SegmentationSynthetic-to-Real Translation+1

Enhancing Fine-grained Sentiment Classification Exploiting Local Context Embedding

2020-10-02 · Heng Yang, Biqing Zeng

Target-oriented sentiment classification is a fine-grained task of natural language processing to analyze the sentiment polarity of the targets. To improve the performance of sentiment classification, many approaches pro…

Aspect-Based Sentiment Analysis (ABSA)ClassificationGeneral ClassificationSentiment Classification

Enhancing CTR Prediction with Context-Aware Feature Representation Learning

2022-04-19 · Fangye Wang, Yingxu Wang, Dongsheng Li, Hansu Gu 외

CTR prediction has been widely used in the real world. Many methods model feature interaction to improve their performance. However, most methods only learn a fixed representation for each feature without considering the…

Click-Through Rate PredictionRepresentation Learning

Enhancing Hyperedge Prediction with Context-Aware Self-Supervised Learning

2023-09-11 · Yunyong Ko, Hanghang Tong, Sang-Wook Kim

Hypergraphs can naturally model group-wise relations (e.g., a group of users who co-purchase an item) as hyperedges. Hyperedge prediction is to predict future or unobserved hyperedges, which is a fundamental task in many…

Contrastive LearningHyperedge PredictionHypergraph representationsPrediction+1

Context-Aware Machine Translation with Source Coreference Explanation

2024-04-30 · Huy Hien Vu, Hidetaka Kamigaito, Taro Watanabe

Despite significant improvements in enhancing the quality of translation, context-aware machine translation (MT) models underperform in many cases. One of the main reasons is that they fail to utilize the correct feature…

Machine TranslationTranslation