Saved in:
Bibliographic Details
Main Authors: Lauziere, Andrew, Daugherty, Jonathan, Kushner, Taisa
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.26830
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910079606849536
author Lauziere, Andrew
Daugherty, Jonathan
Kushner, Taisa
author_facet Lauziere, Andrew
Daugherty, Jonathan
Kushner, Taisa
contents As large language models (LLMs) continue to improve and see further integration into software systems, so does the need to understand the conditions in which they will perform. We contribute a statistical framework for understanding the impact of specific prompt features on LLM performance. The approach extends previous explainable artificial intelligence (XAI) methods specifically to inspect LLMs by fitting regression models relating portions of the prompt to LLM evaluation. We apply our method to compare how two open-source models, Mistral-7B and GPT-OSS-20B, leverage the prompt to perform a simple arithmetic problem. Regression models of individual prompt portions explain 72% and 77% of variation in model performances, respectively. We find misinformation in the form of incorrect example query-answer pairs impedes both models from solving the arithmetic query, though positive examples do not find significant variability in the impact of positive and negative instructions - these prompts have contradictory effects on model performance. The framework serves as a tool for decision makers in critical scenarios to gain granular insight into how the prompt influences an LLM to solve a task.
format Preprint
id arxiv_https___arxiv_org_abs_2603_26830
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Regression Framework for Understanding Prompt Component Impact on LLM Performance
Lauziere, Andrew
Daugherty, Jonathan
Kushner, Taisa
Machine Learning
Artificial Intelligence
Software Engineering
As large language models (LLMs) continue to improve and see further integration into software systems, so does the need to understand the conditions in which they will perform. We contribute a statistical framework for understanding the impact of specific prompt features on LLM performance. The approach extends previous explainable artificial intelligence (XAI) methods specifically to inspect LLMs by fitting regression models relating portions of the prompt to LLM evaluation. We apply our method to compare how two open-source models, Mistral-7B and GPT-OSS-20B, leverage the prompt to perform a simple arithmetic problem. Regression models of individual prompt portions explain 72% and 77% of variation in model performances, respectively. We find misinformation in the form of incorrect example query-answer pairs impedes both models from solving the arithmetic query, though positive examples do not find significant variability in the impact of positive and negative instructions - these prompts have contradictory effects on model performance. The framework serves as a tool for decision makers in critical scenarios to gain granular insight into how the prompt influences an LLM to solve a task.
title A Regression Framework for Understanding Prompt Component Impact on LLM Performance
topic Machine Learning
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2603.26830