# Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context

검색이 규모를 대체한다: 다중 사회기술적 맥락을 활용한 효율적인 로그 레벨 예측

Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · arXiv · 2026년 11월 4일

- **연구 문제** 로그 레벨 예측에서 LLM의 ICL 예시를 무작위로 고르면 프로젝트 내부의 로깅 관습 차이를 반영하지 못합니다.
- **연구 방법** 파일의 기능성과 소유권을 같은 노드 집합의 두 레이어로 묶은 다중 레이어 클러스터 안에서 ICL 예시를 검색합니다.
- **주요 결과** CodeLlama-7B 기반 다중 레이어 검색은 여러 프로젝트에서 AUC를 높였고 상용 모델 대비 평균 AUC에서 우위를 보였습니다.

## 로그 레벨 예측의 어려움과 무작위 예시 선택의 한계

로그 레벨은 로그 문장이 기록될지 결정하므로, 너무 낮으면 운영 환경에서 중요한 정보가 가려지고 너무 높으면 노이즈와 저장 비용이 늘어납니다. 기존 LLM 기반 로그 레벨 예측 연구는 ICL 예시를 무작위 또는 층화 표본으로 선택하여 데이터 다양성을 우선합니다. 이 논문은 이 방식이 프로젝트 내부 컴포넌트마다 다른 로깅 관습을 놓친다고 주장합니다.

원문은 off-the-shelf LLM에 무작위 예시를 사용할 때 프로젝트별 median AUC가 0.56에서 0.76 사이라고 보고합니다. 따라서 이 연구는 fine-tuning 없이 고정된 LLM의 문맥을 어떤 예시로 채울지를 문제로 삼습니다.

## 기능성과 소유권을 함께 쓰는 다중 레이어 검색

이 방법은 같은 파일 노드 집합 위에 두 개의 레이어를 둔 다중 레이어 그래프를 만듭니다. 기능성 레이어는 파일 임베딩의 유사도로 간선을 만들고, 소유권 레이어는 같은 작성자 집합이 유지하는 파일들을 연결합니다. 다중 레이어 Leiden으로 파일 클러스터를 구한 뒤, 추론 시점에 대상 파일이 속한 클러스터 안에서만 후보를 찾습니다.

![Figure 1: Overview of our Ownership-Functionality Aware retrieval approach for log level prediction](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-c95d82eae51ca5cc43b7f0efe5f2ef6a.png?thumb=512)

**Fig. 1** : Overview of our Ownership-Functionality Aware retrieval approach for log level prediction.

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

후보의 순위는 s(c)=α·cos\_func(f\*,c)+(1−α)·cos\_own(f\*,c)로 계산합니다. 여기서 α는 기능성 유사도와 소유권 유사도의 가중치이며, 검증 집합에서 0.1 단위로 탐색해 0.7로 고정했습니다. 클러스터는 어떤 파일이 후보가 될지를 정하고, 두 단일 레이어 유사도는 그 안의 순위만 결정합니다. 상위 5개 예시가 고정된 LLM의 프롬프트에 들어갑니다.

![Figure 4: Overview of multiplex clustering and retrieval. Nodes are Java files, present in both layers. The layers differ only in their edges, whose weight ref…](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-6a1e0e5a07be4469d8ded957738303b0.png?thumb=512)

**Fig. 4** : Overview of multiplex clustering and retrieval. Nodes are Java files, present in both layers. The layers differ only in their edges, whose weight reflects functional similarity or co-ownership strength. Dashed outlines mark the community containing the target fileF t. The multiplex partition is obtained by optimizing modularity jointly over both layers, and the top-k candidates are then ranked within the resulting community.

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 기준선과 평가 조건

주요 실험은 CodeLlama-7B-Instruct를 사용하고 검색된 예시 5개를 프롬프트에 넣습니다. 비교 기준은 무작위 검색, 평면 유사도 검색, 문서 기반 검색, 순서형 로지스틱 회귀(OLR), DeepLV입니다. 데이터는 열 개의 Java 프로젝트이며, 로그 문장을 시간순으로 나누어 앞 70%는 검색 풀이나 학습 데이터로, 뒤 30%는 테스트에만 씁니다.

![Table 1: Summary of the studied projects](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-bd200fe3f4832775618bb802ebf38a6c.png?thumb=512)

**TABLE 1** : Summary of the studied projects

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 7: Sensitivity of multiplex retrieval to the number of in-context-learning examplesk(AUC, CodeLlama-7B, five bootstrap runs). Grey lines are individual…](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-9cef42464e7129080109523caa20588f.png?thumb=512)

**Fig. 7** : Sensitivity of multiplex retrieval to the number of in-context-learning examplesk(AUC, CodeLlama-7B, five bootstrap runs). Grey lines are individual projects; the black line is the median across the ten studied projects. Gains are statistically significant up to five examples and flatten beyond it.

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

평가 지표는 AUC, Accuracy, AOD이며 AUC는 목표 레이블 첫 토큰 확률을 후보 집합에서 합이 1이 되도록 정규화해 계산합니다. 결과는 다섯 개의 부트스트랩 샘플에 대한 평균과 표준편차로 보고하며, 대응 표본 Wilcoxon 검정을 사용합니다.

## 다중 레이어 검색의 AUC 향상

CodeLlama-7B 기준으로 다중 레이어 검색은 AUC 범위 0.83(Wicket)에서 0.97(Elasticsearch)을 기록했고, 무작위 검색 대비 중앙값 0.07 향상되었습니다. 평면 유사도 검색도 무작위 검색보다 모든 프로젝트에서 높았으며 중앙값 0.05 향상되었습니다. 다중 레이어 검색은 평면 유사도 검색보다 다시 중앙값 0.02 높았습니다.

![Table 2: Summary of the performance of the multiplex retrieval compared to other approaches (metrics are obtained from five bootstrap runs and for CodeLlama-7B)](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-50b052a63365bdd4388499a02462e13a.png?thumb=512)

**TABLE 2** : Summary of the performance of the multiplex retrieval compared to other approaches (metrics are obtained from five bootstrap runs and for CodeLlama-7B)

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

같은 실험에서 Accuracy와 AOD도 중앙값 0.11, 0.05 개선되었다고 보고됩니다. 이 결과는 CodeLlama-7B와 k=5, 본문에 제시된 열 개 프로젝트의 테스트 분할에서 얻은 것입니다. 기준선인 DeepLV와 OLR보다 높은 AUC는 같은 평가 설정에서 비교한 결과입니다.

## 기능성과 소유권 단독 검색의 기여

절제 연구는 기능성 단독 검색과 소유권 단독 검색을 따로 적용합니다. 소유권 단독 검색은 소유권 클러스터 안에서만 예시를 고르며, 기능성 단독 검색은 임베딩 유사도로 예시를 고릅니다. 저자들은 소유권 단독 검색이 무작위 검색보다 AUC를 중앙값 0.02 높인다고 보고하고, 기능성 단독 검색은 중앙값 0.05 향상을 보고합니다.

![Table 11: Summary of the performance of the ownership-only retrieval compared to other approaches (metrics are obtained from 5 bootstrap runs and for CodeLlama…](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-194dfbbdf8dd0421ff3cb84584f625df.png?thumb=512)

**TABLE 11** : Summary of the performance of the ownership-only retrieval compared to other approaches (metrics are obtained from 5 bootstrap runs and for CodeLlama-7B). Documentation-based retrieval is only applicable to the two projects that define components in their documentation; a dash indicates the configuration is not applicable for that project.

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

이 수치는 CodeLlama-7B 기준이며 다중 레이어 검색과 같은 프로젝트 집합에서 비교했습니다. 결과는 두 신호가 각각 유용하지만, 두 신호를 결합한 검색이 평면 유사도 검색보다 높다는 주장과 함께 읽어야 합니다.

![Table 12: Summary of the performance of the functionality-only retrieval compared to other approaches (metrics are obtained from 5 bootstrap runs and for CodeL…](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-407f25cb344f7c80f278350fb546032d.png?thumb=512)

**TABLE 12** : Summary of the performance of the functionality-only retrieval compared to other approaches (metrics are obtained from 5 bootstrap runs and for CodeLlama-7B). Documentation-based retrieval is only applicable to the two projects that define components in their documentation; a dash indicates the configuration is not applicable for that project.

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 소형 모델과 상용 모델의 비용 비교

이 비교는 다중 레이어 검색을 적용한 CodeLlama-7B를 GPT-4o와 DeepSeek-V3.2의 zero-shot 결과와 비교합니다. 상용 모델은 다섯 개의 검색 예시를 넣지 않고 사용되며, 따라서 이 비교는 모델 규모 자체가 아니라 배포 구성을 비교합니다.

![Table 6: Summary of Large Language Models Selected for Evaluation](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-4235286214da966a26759800b3bb1c57.png?thumb=512)

**TABLE 6** : Summary of Large Language Models Selected for Evaluation

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

원문은 7B 다중 레이어 모델의 평균 AUC를 0.89로 보고하며, GPT-4o 0.79보다 0.10, DeepSeek-V3.2 0.73보다 0.16 높다고 씁니다. CodeLlama-34B는 평균 AUC 0.90으로 7B보다 0.9% 높지만, 1k 로그당 비용이 $0.18에서 $0.76으로 322% 증가합니다. 이 비용은 추론 비용만 포함합니다.

![Table 13: Impact of the different retrieval strategies on the CodeLlama-34B performance. The purpose of the 34B evaluation is to establish how our results scal…](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa/figures/figure-937d5a1f43f1077f2debd39c5ff172e1.png?thumb=512)

**TABLE 13** : Impact of the different retrieval strategies on the CodeLlama-34B performance. The purpose of the 34B evaluation is to establish how our results scale with model size, and that question is answered by the multiplex row, which is the configuration we recommend. The ablation of the individual retrieval signals is a question about the retrieval mechanism rather than about model capacity, and we therefore answer it on the CodeLlama-7B model (Tables 11 and 12). A dash indicates the configuration was not evaluated for that project.

[원문](https://arxiv.org/abs/2611.05901v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan · Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 예측 일치와 실제 관측성 사이의 간격

이 연구의 정답 레이블은 안정 릴리스에서 관리자가 부여한 로그 레벨입니다. 따라서 결과는 예측이 유지보수자의 레벨과 얼마나 일치하는지를 측정하며, 예측된 레벨이 디버깅 효과나 시스템 관측성을 실제로 높이는지를 직접 입증하지는 않습니다. 이를 확인하려면 개발자의 수용률과 재정의율, 또는 진단 범위를 비교하는 다른 연구 설계가 필요합니다.

외부 타당성에서도 제한이 있습니다. 평가 대상은 열 개의 대규모 오픈소스 Java 프로젝트이며, 소유권 신호는 자발적 기여 패턴에 기반합니다. 산업 시스템의 조직 정책에 따른 소유권 구조는 다를 수 있습니다.

## 논문 정보

- **저자**: Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 4일
- **등록일**: 2026년 11월 6일
- **수정일**: 2026년 11월 4일
- **버전**: v1
- **arXiv**: 2611.05901
- **분류**: cs.SE · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.05901v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.05901v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Developers insert logging statements in source code to record its execution, and the resulting logs are essential for detecting and troubleshooting system anomalies. A key part of these statements is the log level (e.g., DEBUG, INFO, WARN, ERROR), which determines whether a message is recorded. Choosing it is a trade-off: levels set too low mask important information in production, while levels set too high create noisy logs and extra I/O and storage overhead. Recent work uses Large Language Models (LLMs) with In-Context Learning (ICL) to predict log levels, but typically augments the prompt with randomly sampled examples. We argue that this overlooks the socio-technical nature of logging, where conventions vary by component and development team. Off-the-shelf LLMs using random examples are reported to achieve median AUCs of only 0.56 to 0.76, leaving room for improvement without fine-tuning. In this paper, we propose a retrieval approach for LLM-powered log level prediction that prioritizes context relevance over random selection and basic similarity. Our method retrieves logging examples relevant along two socio-technical dimensions: (i) functionality (code performing similar operations) and (ii) ownership (code maintained by the same developers). Evaluating four LLMs across ten popular Java projects, we find that this retrieval improves AUC over random baselines by 0.07 (median), and combining both signals yields median AUCs of 0.83 to 0.97. Our ablation studies show that each signal improves on random retrieval, and that combining them outperforms the stronger of the two on all ten projects. Our results also significantly exceed state-of-the-art supervised predictors (e.g., DeepLV) by a median AUC of 0.12 to 0.19. Our findings highlight the importance of socio-technical signals such as code functionality and ownership for LLM-powered log level prediction.

## 원문 인용

Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan (2026). Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context. arXiv:2611.05901v1. https://arxiv.org/abs/2611.05901v1

**BibTeX**

```
@misc{ouatiti2026retrieval,
  title = {{Retrieval Supersedes Scale: Efficient Log Level Prediction via Multiplex Socio-Technical Context}},
  author = {Youssef Esseddiq Ouatiti and Mohammed Sayagh and Bram Adams and Ahmed E. Hassan},
  year = {2026},
  eprint = {2611.05901},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05901v1}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [cosine similarity](https://refivu.com/terms/3baa01a8760d-cosine-similarity)
- [UMAP](https://refivu.com/terms/aeb869edc5de-umap)
- [area under the ROC curve](https://refivu.com/terms/d0c88458e682-area-under-the-roc-curve)
- [HDBSCAN](https://refivu.com/terms/52171fc2fd0f-hdbscan)
- [Silhouette Score](https://refivu.com/terms/87c40c1c04df-silhouette-score)
- [DeepSeek-V3.2](https://refivu.com/terms/16681bc684af-deepseek-v3-2)
- [in-context learning (ICL)](https://refivu.com/terms/2aa75650ca7d-in-context-learning-icl)
- [Leiden](https://refivu.com/terms/12490bfbe7c4-leiden)

## 다른 논문 해설

- [AGORA: Reliability-Aware Aggregation of LLM Judges via Item-Response Theory](https://refivu.com/papers/0038d415-6622-454c-ae5b-e99ae5a41f64-agora-reliability-aware-aggregation-of-llm-judges-via.md)
- [Iterated creation, grading, and revision of data science projects by language models](https://refivu.com/papers/6e806f60-e68c-4a63-b8ee-18fbe24f7095-iterated-creation-grading-and-revision-of-data-science.md)
- [Can Large Language Models Review the Scientific Literature? A Test Against a 102-Article Benchmark](https://refivu.com/papers/afea80c2-0ed3-410b-a236-d918b0185197-can-large-language-models-review-the-scientific-literature.md)
- [LIBRA: Programmatic Induction of Executable Tool Libraries](https://refivu.com/papers/8da9ea01-fd35-49ff-950a-1f4175fbaf56-libra-programmatic-induction-of-executable-tool-libraries.md)
- [A.S.E 2.0: Understanding How Repository Context Impacts the Security of LLM-Generated Code](https://refivu.com/papers/65ec09bc-9b73-4ba5-b972-77a7b1edb634-a-s-e-2-0-understanding-how-repository.md)
- [When File Ingestion Misleads Language Models: Measuring and Mitigating Divergences in Office Documents](https://refivu.com/papers/69840035-4f93-450d-8f5f-605bdde7d86f-when-file-ingestion-misleads-language-models-measuring-and.md)
- [AI-Assisted Classification under Correlation Neglect and Trust](https://refivu.com/papers/4b2b2db4-6896-48c0-a3f1-7811c863f6d3-ai-assisted-classification-under-correlation-neglect-and.md)
- [A low-rank decoder bottleneck bounds reliability in foundation-model perturbation prediction](https://refivu.com/papers/bf045779-02d9-42f9-9266-e9b3f69bf2f1-a-low-rank-decoder-bottleneck-bounds-reliability-in.md)
- [Consistency Is Not Understanding: Orbit Audits for Neural Field Weight Readers](https://refivu.com/papers/a75f3e10-8266-48f0-a6f9-69b3e04da301-consistency-is-not-understanding-orbit-audits-for-neural.md)
- [SciToT: Multimodal Tip-of-the-Tongue Retrieval for Scientific Papers](https://refivu.com/papers/4d2f80e0-8a4d-49ac-ac99-266009ebaee2-scitot-multimodal-tip-of-the-tongue-retrieval-for.md)
- [Text-Only Domain Adaptation for Low-Resource Medical ASR: Shallow Fusion and Density Ratio Rescoring for Hausa](https://refivu.com/papers/baff666b-c79d-49c2-99d2-954873dbbe47-text-only-domain-adaptation-for-low-resource-medical.md)
- [OdorSpaces: Visual-Olfactory Embodied Navigation in 3D Environments](https://refivu.com/papers/fa3085f2-9992-4ff9-8c1d-755e77f7b01a-odorspaces-visual-olfactory-embodied-navigation-in-3d.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/1d3e8983-7d23-49b6-9f2c-a73b6cc445aa-retrieval-supersedes-scale-efficient-log-level-prediction)
