Manuscript Offprint

arXiv:2610.01428

Generalization Is Stability, Not Accuracy: Multi-Axis Evaluation of LLMs

Nagham Omar, Mahmoud Jabarin, Maya Rozenshtein, Rom Himelstein, Avi Mendelson, Amit LeVi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Generalization in large language models (LLMs) is the ability to produce consistent and semantically stable outputs when the same input is expressed in different ways. Existing work typically evaluates generalization through aggregate accuracy on a single prompt format, task, or set of variations, which conflates robustness with overall benchmark performance. In this work, we show generalization evaluation at the level of individual examples, across multiple input variants, and across different aspects of model behavior, focusing on variability rather than reducing performance to a score that can be improved through narrow training or other ways that obfuscate generalization evaluation. Following this view, we introduce the Stability-Aware Generalization Objective (SAGO), a framework that measures how much model behavior changes for the same input under different variations and benchmarks, capturing variability across several dimensions including generation consistency, internal activations, confidence, and response mirroring. We show that many commonly used models exhibit statistically significant and consistent generalization instability: no model generalizes uniformly, behavioral axes capture independent failure modes, and cross-dataset variation can reverse model rankings. A reference implementation is available at 1◯\textcircled{1}.

1 Introduction

LLMs are used in real-world systems, including search [26, 63, 42, 70], coding assistants [50, 11, 29, 66], and agentic workflows [7, 48]. In these settings, the same user intent is rarely expressed in one fixed form. A request can vary in wording, length, tone, formatting, or noise while preserving the same goal and context.

Accordingly, generalization is the ability of a model to preserve performance across such semantically equivalent input variations [18, 52, 71]. This requirement stems from several factors; for instance, pretraining and post-training can expose a model to many examples, but they cannot cover all valid ways a user may express the same request [37, 56]. Yet, an aligned model should remain useful, solve tasks, refuse harmful requests, and follow its policies regardless of how the context is expressed in the input [45, 61].

Previous work studies related forms of generalization robustness, such as distribution shifts [31, 58], meaning-preserving perturbations [18, 19], and prompt sensitivity to wording, formatting, tone, input length, and input order [36, 34, 40, 51, 52, 71], together establishing that LLM behavior shifts even when task meaning is preserved.

∗^{*}Equal contribution.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: TAE (Trust-AI-Eval): Can We Trust AI Evaluation?.

Figure

Figure 1: Semantically equivalent factual prompts induce measurable behavioral shifts across model families. Radars show mean delta magnitude over four axes.

However, while these works provide important insights into robustness under specific settings and perturbations, they do not fully capture a model's overall generalization ability for several reasons. First, many existing evaluations focus on a single domain. Although robustness in domains such as safety is important, success in one field cannot be considered evidence of generalization ability. Second, many studies evaluate only a particular family of semantically equivalent rewrites, so a model may appear robust because it has adapted to one variation pattern while still failing under other forms of expression. Lastly, evaluations are commonly based on aggregate benchmark scores, which can hide substantial behavioral differences at the level of individual examples. A model may maintain similar overall performance because failures on some semantically equivalent variants are offset by successes on others, even though its behavior changes considerably for individual inputs. Consequently, aggregate metrics can give a misleading sense of stable and reliable generalization.

In this work, we address this gap by introducing the Stability-Aware Generalization Objective (SAGO), a framework for evaluating LLM generalization as per-instance behavioral stability rather than aggregate benchmark performance. Instead of asking only whether a model performs well on average, SAGO tests whether the model preserves its behavior when the same goal and context are expressed through semantically equivalent input variations. The framework combines multiple datasets, multiple families of input variation, and multiple behavioral axes, allowing us to capture failures that single-domain, single-perturbation, or aggregate-score evaluations can miss. For each prompt, we compare the model's baseline behavior with its behavior under controlled variations and measure changes in generation consistency, internal activations, confidence and uncertainty, and response mirroring. This enables us to identify cases where a model appears stable at the benchmark level while changing substantially on individual examples, or where it is robust to one type of variation but unstable under another.

Using SAGO, we evaluate eleven open- and closed-source LLMs across six datasets and show that generalization instability is widespread, heterogeneous, and not captured by any single metric or domain alone. Our contributions are threefold:

• A framework for evaluating LLM generalization as per-instance stability across semantically equivalent input variations, multiple datasets, and multiple families of variation.

• A multi-axis metric that measures behavioral change in activation geometry, generation consistency, confidence and uncertainty, and response mirroring. We treat mirroring as a behavioral sensitivity that may reflect either intended alignment or unintended instability.

• An empirical study of eleven LLMs across six datasets showing that no model generalizes uniformly, that generation consistency is the most sensitive axis, and that content stability and response mirroring are independent dimensions of behavioral sensitivity.

References (64)

  • Arithmattack: Evaluating robustness of llms to noisy context in math problem solving
  • Refusal in language models is mediated by a single direction
  • The internal state of an llm knows when it's lying
  • Don’t search for a search method—simple heuristics suffice for adversarial text attacks
  • Do language models accommodate their users? a study of linguistic convergence
  • A research landscape of agentic ai and large language models: Applications, challenges and future directions
  • Does tone change the answer? evaluating prompt politeness effects on modern LLMs: GPT, Gemini, LLaMA (opens arXiv in a new tab)
  • An open robustness benchmark for jailbreaking large language models
  • Rmcbench: Benchmarking large language models' resistance to malicious code
  • Effectiveness of chatgpt in coding: A comparative analysis of popular large language models
  • Bootstrap methods and their application
  • Metamorphic testing for semantic invariance in large language models
  • Multilingual jailbreak challenges in large language models
  • Mind your tone: Investigating how prompt politeness affects LLM accuracy (opens arXiv in a new tab)
  • Exploring the relationship between in-context learning and instruction tuning
  • Measuring and improving consistency in pretrained language models
  • What did i do wrong? quantifying llms' sensitivity and consistency to prompt engineering
  • Detecting hallucinations in large language models using semantic entropy
  • The Llama 3 Herd of Models
  • Simpleqa verified: A reliable factuality benchmark to measure parametric knowledge (opens arXiv in a new tab)
  • Dove: A large-scale multi-dimensional predictions dataset towards meaningful llm evaluation
  • Medsafetybench: Evaluating and improving the medical safety of large language models
  • Measuring Massive Multitask Language Understanding
  • Silent tokens, loud effects: Padding in LLMs (opens arXiv in a new tab)
  • Flaw or artifact? rethinking prompt sensitivity in evaluating llms
  • Large language models for code completion: A systematic literature review
  • Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension
  • A benchmark of in-the-wild distribution shifts
  • a benchmark for question answering research
  • Jailbreak attack initializations as extractors of compliance directions (opens arXiv in a new tab)
  • Same task, more tokens: the impact of input length on the reasoning performance of large language models
  • Truthfulqa: Measuring how models mimic human falsehoods
  • Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity
  • On robustness and reliability of benchmark-based evaluation of llms
  • Estimating llm uncertainty with evidence (opens arXiv in a new tab)
  • a standardized evaluation framework for automated red teaming and robust refusal
  • State of what art? a call for multi-prompt LLM evaluation
  • Search engines in the ai era: A qualitative understanding to the false promise of factual and verifiable source-cited responses in llm-based search
  • Advances in neural information processing systems, 35:27730–27744, 2022
  • Bleu: a method for automatic evaluation of machine translation
  • Indicjr: A judge-free benchmark of jailbreak robustness in south asian languages
  • Agentic large language models, a survey
  • Qwen2.5 Technical Report
  • The programmer’s assistant: Conversational interaction with a large language model for software development
  • The butterfly effect of altering prompts: How small changes and jailbreaks affect large language model performance
  • Quantifying language models' sensitivity to spurious features in prompt design or: How i learned to start worrying about prompt formatting
  • When punctuation matters: a large-scale comparison of prompt robustness methods for LLMs (opens arXiv in a new tab)
  • Stanford alpaca: An instruction-following llama model, 2023
  • Gemma: Open Models Based on Gemini Research and Technology
  • Persona-augmented benchmarking: Evaluating llms across diverse writing styles
  • Attention is all you need
  • A comprehensive assessment of trustworthiness in gpt models
  • Nature Biotechnology, 43(6):845–847, 2025
  • All languages matter: On the multilingual safety of llms
  • Jailbroken: How does llm safety training fail? Advances in neural information processing systems, 36:80079–80110, 2023
  • Calibrating reasoning in language models with internal consistency
  • When search engine services meet large language models: visions and challenges
  • Hotpotqa: A dataset for diverse, explainable multi-hop question answering
  • Should we respect llms? a cross-lingual study on the influence of prompt politeness on llm performance
  • A survey on large language models for software engineering
  • BERTScore: Evaluating Text Generation with BERT
  • Advances in neural information processing systems, 36:46595–46623, 2023
  • Domain generalization: A survey
  • Large language models for information retrieval: A survey