paper-with-me

Papers

Measuring LLM Code Generation Stability via Structural Entropy

2025-08-19 · Yewei Song, Tiezhu Sun, Xunzhu Tang, Prateek Rajput, Tegawende F. Bissyande, Jacques Klein arxiv

Assessing the stability of code generation from large language models (LLMs) is essential for judging their reliability in real-world development. We extend prior "structural-entropy concepts" to the program domain by pairing entropy with abstract syntax tree (AST) analysis. For any fixed prompt, we collect the multiset of depth-bounded subtrees of AST in each generated program and treat their relative frequencies as a probability distribution. We then measure stability in two complementary ways: (i) Jensen-Shannon divergence, a symmetric, bounded indicator of structural overlap, and (ii) a Structural Cross-Entropy ratio that highlights missing high-probability patterns. Both metrics admit structural-only and token-aware variants, enabling separate views on control-flow shape and identifier-level variability. Unlike pass@k, BLEU, or CodeBLEU, our metrics are reference-free, language-agnostic, and execution-independent. We benchmark several leading LLMs on standard code generation tasks, demonstrating that AST-driven structural entropy reveals nuances in model consistency and robustness. The method runs in O(n,d) time with no external tests, providing a lightweight addition to the code-generation evaluation toolkit.

📄 PDF Abstract BibTeX arXiv:2508.14288

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Entropy-Guided k-Guard Sampling for Long-Horizon Autoregressive Video Generation

2026-01-27 · Yizhao Han, Tianxing Shi, Zhao Wang, Zifan Xu 외 arxiv

Autoregressive (AR) architectures have achieved significant successes in LLMs, inspiring explorations for video generation. In LLMs, top-p/top-k sampling strategies work exceptionally well: language tokens have high sema…

Video Generation

Quantifying Consistency in LLM Logical Reasoning via Structural Uncertainty

2026-06-15 · Baishali Chaudhury, Mengdie Flora Wang, Hyunji Hayley Park, Rahul Ghosh 외 arxiv

Large language models can arrive at the same answer through reasoning paths that are unstable, contradictory, or difficult to rank consistently -- a failure mode especially prevalent in multi-step deductive reasoning. Ex…

Mathematical ReasoningLogical Reasoning

FACE: Evaluating Natural Language Generation with Fourier Analysis of Cross-Entropy

2023-09-21 · NeurIPS 2023 11

Measuring the distance between machine-produced and human language is a critical open problem. Inspired by empirical findings from psycholinguistics on the periodicity of entropy in language, we propose FACE, a set of me…

Measuring and Decomposing Mode Separation via the Canonical Diffusion

2026-05-09 · Shaul Tolkovsky, Ori Meidler, Or Zuk arxiv

Mode separation, namely how sharply a distribution fragments into barrier-separated clusters, is a fundamental geometric property of densities, difficult to quantify in high dimensions. It is structurally distinct from d…

Adaptive flexibility of cells through nonequilibrium entropy production

2024-11-21 · Yuika Ueda, Shinji Deguchi

Cellular adaptation to environmental changes relies on the dynamic remodeling of subcellular structures. Among these, sarcomere structures are fundamental to the organization and function of the cytoskeletal architecture…