首页 > AI前沿 > Token Signatures of Code: Comparing Coding Behaviors Across Large Language Models

Token Signatures of Code: Comparing Coding Behaviors Across Large Language Models

arXiv自然语言 2026-08-12 08:48 6 阅读 查看原文

The evaluation of large language models (LLMs) on coding tasks has primarily focused on performance metrics such as pass@k.

As LLMs continue to advance, many models now meet baseline performance requirements, reducing the discriminative power of performance-based evaluation alone.

Yet a key question remains largely unexplored: how do LLMs differ in their coding behavior?

We propose CLIC (Code Learning for Identification and Comparison), a visual analytics approach that characterizes LLM coding behavior through token-frequency analysis.

CLIC represents each code sample as a feature vector of token frequencies and trains an interpretable decision tree to separate two LLMs' code sets.

Beyond classification accuracy, we define two new metrics: robustness, which measures whether the two LLMs remain distinguishable as their most-discriminative tokens are progressively removed, and concentration, which measures whether the difference is driven by a few dominant tokens or spread across many.

Interpreting numerous pairwise comparisons (across LLM pairs, tasks, and tokenization levels) and tracing the full analytical chain form an inherently multi-scale, hypothesis-driven exploration task.

We therefore develop an interactive visual analytics system to navigate the comparison landscape, identify pairs of interest, and drill down into discriminative tokens and their code contexts.

Case studies comparing 10 LLMs across 22 Kaggle ML tasks reveal actionable insights for LLM selection and prompt engineering.