SECLLGJan 12, 2024

Uncertainty Awareness of Large Language Models Under Code Distribution Shifts: A Benchmark Study

arXiv:2402.05939v14 citationsh-index: 11
Originality Synthesis-oriented
AI Analysis

This work addresses reliability issues for developers using LLMs in programming, but it is incremental as it benchmarks existing methods rather than proposing new ones.

The authors tackled the problem of large language models (LLMs) being unreliable under code distribution shifts by introducing a benchmark dataset and evaluating probabilistic methods on CodeLlama, finding that these methods generally improve uncertainty awareness with increased calibration quality and higher uncertainty estimation precision.

Large Language Models (LLMs) have been widely employed in programming language analysis to enhance human productivity. Yet, their reliability can be compromised by various code distribution shifts, leading to inconsistent outputs. While probabilistic methods are known to mitigate such impact through uncertainty calibration and estimation, their efficacy in the language domain remains underexplored compared to their application in image-based tasks. In this work, we first introduce a large-scale benchmark dataset, incorporating three realistic patterns of code distribution shifts at varying intensities. Then we thoroughly investigate state-of-the-art probabilistic methods applied to CodeLlama using these shifted code snippets. We observe that these methods generally improve the uncertainty awareness of CodeLlama, with increased calibration quality and higher uncertainty estimation~(UE) precision. However, our study further reveals varied performance dynamics across different criteria (e.g., calibration error vs misclassification detection) and trade-off between efficacy and efficiency, highlighting necessary methodological selection tailored to specific contexts.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes