paper-with-me

홈 › Papers

Evaluating and Explaining Large Language Models for Code Using Syntactic Structures

2023-08-07 · David N Palacio, Alejandro Velasco, Daniel Rodriguez-Cardenas, Kevin Moran, Denys Poshyvanyk

Large Language Models (LLMs) for code are a family of high-parameter, transformer-based neural networks pre-trained on massive datasets of both natural and programming languages. These models are rapidly being employed in commercial AI-based developer tools, such as GitHub CoPilot. However, measuring and explaining their effectiveness on programming tasks is a challenging proposition, given their size and complexity. The methods for evaluating and explaining LLMs for code are inextricably linked. That is, in order to explain a model's predictions, they must be reliably mapped to fine-grained, understandable concepts. Once this mapping is achieved, new methods for detailed model evaluations are possible. However, most current explainability techniques and evaluation benchmarks focus on model robustness or individual task performance, as opposed to interpreting model predictions. To this end, this paper introduces ASTxplainer, an explainability method specific to LLMs for code that enables both new methods for LLM evaluation and visualizations of LLM predictions that aid end-users in understanding model predictions. At its core, ASTxplainer provides an automated method for aligning token predictions with AST nodes, by extracting and aggregating normalized model logits within AST structures. To demonstrate the practical benefit of ASTxplainer, we illustrate the insights that our framework can provide by performing an empirical evaluation on 12 popular LLMs for code using a curated dataset of the most popular GitHub projects. Additionally, we perform a user study examining the usefulness of an ASTxplainer-derived visualization of model predictions aimed at enabling model users to explain predictions. The results of these studies illustrate the potential for ASTxplainer to provide insights into LLM effectiveness, and aid end-users in understanding predictions.

📄 PDF Abstract BibTeX arXiv:2308.03873

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Evaluating neural network explanation methods using hybrid documents and morphosyntactic agreement

2018-07-01 · ACL 2018 7 · Nina Poerner, Hinrich Sch{\"u}tze, Benjamin Roth

The behavior of deep neural networks (DNNs) is hard to understand. This makes it necessary to explore post hoc explanation methods. We conduct the first comprehensive evaluation of explanation methods for NLP. To this en…

Sentiment Analysis

Sensivity of LLMs' Explanations to the Training Randomness:Context, Class & Task Dependencies

2026-03-09 · Romain Loncour, Jérémie Bogaert, François-Xavier Standaert arxiv

Transformer models are now a cornerstone in natural language processing. Yet, explaining their decisions remains a challenge. It was shown recently that the same model trained on the same data with a different randomness…

Explaining Away Syntactic Structure in Semantic Document Representations

2018-06-05 · Erik Holmer, Andreas Marfurt

Most generative document models act on bag-of-words input in an attempt to focus on the semantic content and thereby partially forego syntactic information. We argue that it is preferable to keep the original word order …

The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models

2026-01-09 · Nora Graichen, Iria de-Dios-Flores, Gemma Boleda arxiv

We present a systematic review of 337 articles evaluating the syntactic abilities of Transformer-based language models (TLMs), reporting on over 3,000 datapoints spanning a wide range of syntactic phenomena, languages, m…

Towards Human Cognition: Visual Context Guides Syntactic Priming in Fusion-Encoded Models

2025-02-24 · Bushi Xiao, Michael Bennie, Jayetri Bardhan, Daisy Zhe Wang

We introduced PRISMATIC, the first multimodal structural priming dataset, and proposed a reference-free evaluation metric that assesses priming effects without predefined target sentences. Using this metric, we construct…