## Correcting Negative Bias in Large Language Models through Negative Attention Score Alignment

Sangwon Yu 1 * Jongyoon Song 1 * Bongkyu Hwang 2 Hoyoung Kang 2 Sooah Cho 2 Junhwa Choi 2 Seongho Joe 2 Taehee Lee 2 Youngjune L. Gwon 2 Sungroh Yoon 1 3 , †

1 Department of Electrical and Computer Engineering, Seoul National University 2 Samsung SDS, Korea

3 {dbtkddnjs96, coms1580, sryoon}@snu.ac.kr

Interdisciplinary Program in Artificial Intelligence, Seoul National University

{bongkyu.hwang, hoyoung.kang, sooah.cho, jh496.choi, drizzle.cho, taehee23.lee, gyj.gwon}@samsung.com

## Abstract

Abinary decision task, like yes-no questions or answer verification, reflects a significant realworld scenario such as where users look for confirmation about the correctness of their decisions on specific issues. In this work, we observe that language models exhibit a negative bias in the binary decisions of complex reasoning tasks. Based on our observations and the rationale about attention-based model dynamics, we propose a negative attention score (NAS) to systematically and quantitatively formulate negative bias. Based on NAS, we identify attention heads that attend to negative tokens provided in the instructions as answer candidate of binary decisions, regardless of the question in the prompt, and validate their association with the negative bias. Additionally, we propose the negative attention score alignment (NASA) method, which is a parameterefficient fine-tuning technique to address the extracted negatively biased attention heads. Experimental results from various domains of reasoning tasks and large model search space demonstrate that NASA significantly reduces the gap between precision and recall caused by negative bias while preserving their generalization abilities. Our codes are available at https://github.com/ysw1021/NASA .

of factually incorrect content, known as 'hallucination', which significantly degrades the reliability of LLM-based services (Zhang et al., 2023; Xu et al., 2024; Huang et al., 2023). The hallucination problem in LLMs can be attributed to factors such as parametric knowledge, overconfidence, and biases (Zhang et al., 2023). Studies have been conducted to understand the decision-making mechanisms in LLMs from a parameter perspective. For instance, the 'logit lens' technique allows for the interpretation of the model's reasoning process along the layers, exploiting the hidden representations from intermediate layers (Belrose et al., 2023; Ferrando et al., 2023). This technique has been utilized to analyze model characteristics in various scenarios such as in-context learning. On the other hand, Yuan et al. (2024) focus on analyzing hallucination phenomenon based on attention heads. However, the causes and mechanisms of hallucination in LLMs vary by type of task, indicating that extensive further study is still necessary.

## 1 Introduction

Recent advancements in large language models (LLMs) have enabled complex reasoning tasks executed by understanding user instructions (Ouyang et al., 2022; Touvron et al., 2023; Achiam et al., 2023; Jiang et al., 2023). As the capabilities of LLMs have expanded rapidly, research has intensified to analyze their characteristics and inherent issues. One of the major issues is the generation

* Equal Contribution

† Corresponding author

In this paper, we aim to identify biases that emerge when LLMs respond to questions requiring a binary decision such as affirmation or negation. Specifically, in yes-no question-answering (QA) tasks that demand complex reasoning, such as mathematical or logical reasoning, we observe a negative bias in LLMs. This negative bias, which implies a discrepancy between the model's reasoning ability and accuracy, potentially decreases the reliability of model predictions. From the rationale that the model allocates higher attention to the negative candidates among the binary answer options presented in the user prompt, we propose a negative attention score (NAS) to systematically probe these negatively biased attention heads in large language models (LLMs). Based on NAS, we detect attention heads that attend to tokens associated with negation in an instruction. Our findings also confirm the existence of attention heads that are predominantly involved in manifesting this negative bias.

To address the identified attention heads, we introduce a parameter-efficient fine-tuning technique named NAS alignment (NASA). In NASA, the model is incrementally fine-tuned, starting with the most biased attention head. The method includes periodic monitoring of NAS which is used for automatic scheduling of early stopping and update cancellation. Experimental results demonstrate that our method significantly reduces negative bias while maintaining general reasoning performance. Additionally, we observe an improvement in calibration for yes-no QA tasks in LLMs.

Our contributions can be summarized as follows:

- · We observe that LLMs exhibit a negative bias in binary decisions requiring complex reasoning and demonstrate its association with attention heads.
- · We propose NAS, a metric and framework that allows for systematic probing of attention heads involved in negative bias.
- · Based on NAS, we introduce NASA, a parameter-efficient fine-tuning technique that successfully addresses negative bias.

## 2 Related Work

## 2.1 Hallucination Problems in Complex Reasoning Tasks

LLMs are demonstrating capabilities not only in typical natural language processing tasks but also in tasks that require complex thought processes. In particular, the use of emergent abilities, such as the chain-of-thoughts, has significantly enhanced the performance of complex reasoning (Wei et al., 2022; Kojima et al., 2022; Wang et al., 2022; Madaan et al., 2023). However, the increased complexity of tasks and pipelines has made the hallucination problem in complex reasoning tasks challenging to analyze and resolve, which remains an active area of research (Zhang et al., 2023). With the advent of benchmarks vulnerable to hallucinations, recent LLMs are laying the groundwork for analyzing the causes of LLM hallucinations based on substantial data. For instance, StrategyQA (Geva et al., 2021) and MuSiQue (Trivedi et al., 2022) involve queries and contexts that demand multi-step reasoning from LLMs, while GSM8k (Cobbe et al., 2021) involves queries that require mathematical reasoning skills.

In this paper, we aim to understand hallucinations from the perspective of model parameters, using the currently employed complex reasoning datasets. Specifically, we focus on binary decision tasks involving affirmation and negation to identify new characteristics of the model.

## 2.2 Analysis on Roles and Knowledge in Model Parameters

As the capacity and complexity of LLMs increase, the need to understand and interpret these models is becoming more crucial. In particular, there is active research into analyzing parametric knowledge and model behavior that influence the phenomenon of model hallucination. Meng et al. (2022) propose a framework to specify the location where the knowledge of the model is stored, while Belrose et al. (2023) and Yang et al. (2024) research to interpret the inference process of the model. Yuan et al. (2024) suggest a method to detect model parameters involved in the false premise hallucination phenomenon of LLMs and address this issue.

Similarly, we demonstrate that the model's negative bias is related to the attention heads. Specifically, we explore the existence and characteristics of query-agnostic negative bias in attention heads. Furthermore, we demonstrate that this can be significantly addressed through a parameter-efficient fine-tuning method.

## 3 Negative Bias in Large Language Models

A binary decision task, such as yes-no QA or answer verification, represents a major real-world scenario where users seek confirmation on whether their decisions regarding specific problems are correct. This acts as the basic block of the highdimensional reasoning tasks that need step-by-step sub-tasks. Despite the importance of the binary decision task, unfortunately, many of the complex reasoning benchmark sets are not in the form of binary decisions. Therefore, in this section, we first transform existing complex reasoning tasks into yes-no binary decision tasks. We then conduct statistical observations and quantitative analyses on how various large language models perform in these binary decision scenarios.

Figure 1: Precision and recall of LLMs in complex reasoning tasks.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-5cc9ad91-64f1-404b-8b8c-03522d65ac46.jpg)

Figure 2: Confidence histograms of LLaMA3-8B-Instruct model for the rephrased GSM8K and AR-LSAT samples.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-9f787a9d-b412-4ae6-bddd-2773f54e1406.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-263e7a03-64b2-46db-9097-e93c28b77af0.jpg)

## 3.1 Statistical Observation on Complex Reasoning Tasks

## 3.1.1 Setup for Binary Decision Task

Transformation to binary decision task In this work, we employ two techniques to transform general QA reasoning tasks into binary decision tasks. We modify each sample into a positive or negative sample where the answer is 'Yes' or 'No', respectively. In this section, we focus on the case of short-answer QA datasets. We refer to Appendix C for the case of multiple choice datasets.

we obtain suitable incorrect answers by prompting GPT-4. Subsequently, we use the aforementioned rule-based method to convert the original QA samples into binary decision samples where the answer is 'No'. Details of GPT-4 prompts can be found in Appendix C.

For the positive sample, we perform a rule-based transformation on general queries by appending a confirmatory query. For example, the query "What is 1+1?" is transformed into "What is 1+1? Is the answer 2?" This approach is straightforward but is limited to cases where the correct answer is 'Yes'. Formally, given the question and its label, we transform the prompt for the binary decision task whose target answer is 'Yes':

## Prompt I (Binary Decision Transformation)

You are given a question and you MUST answer Yes or No. Question: { question } Is the answer { label } ? Answer:

To transform into the negative sample, a wrong answer is necessary based on the query and answer which will be placed in label in Prompt I. For this,

Datasets and models We use StrategyQA, MuSiQue, subsets of MetaMATH (GSM8kRephrased and MATH-Rephrased; Yu et al., 2023), and AR-LSAT for evaluation, covering three domain tasks: multi-hop open-domain QA, mathematical reasoning, and logical reasoning. StrategyQA is a yes-no QA dataset, MuSiQue and the rephrased versions of GSM8k and MATH are short-answer QA datasets, and AR-LSAT is a multiple-choice dataset. Examples of each dataset can be found in Table 12.

To assess reasoning capabilities in binary decision tasks, we convert these datasets into binary decision sets using the aforementioned techniques, except for StrategyQA. Specifically, AR-LSAT is converted to the straightforward yes-no QA formats, while the others are rephrased for answer verification. Details on the conversion to binary decision datasets can be found in Appendix C.

We sample a portion of the entire dataset, and detailed statistics can be found in Appendix A. For the search space of LLMs, we explore the dynamics of LLaMA3-8B-Instruct, Mistral-7B-Instruct-v0.3,

Figure 3: An example of the negative attention head. Three queries in the figure are sampled from StrategyQA, GSM8K, and MATH datasets.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-07742f50-c5a2-42d6-88fc-d5dc03ba3fd9.jpg)

Gemma-1.1-7b-it, Qwen2-7B-Instruct, and GPT-4.

## 3.2 Formulation of Negative Bias

## 3.2.1 NAS: Negative Attention Score

In this section, we formulate the previously discovered negative bias from the perspective of model intrinsic properties. Specifically, we focus on the internal attention patterns of the model. Generally, to obtain an answer for a binary decision, a user provides answer candidates like 'Yes' or 'No' in the form of instructions to the model before posing the query prompt. The model follows these instructions and responds to the given query in the manner provided in the instructions. During this response process, the model attends to the given instructions, and due to the operational characteristics of attention-based models, the candidate with the larger attention weight generally appears in the response. In this context, the negative bias of the LLM can be seen as originating from assigning greater attention weight to negative answer candidates during the reasoning process. Fig 3 illustrates an example of such a "negative head". To validate this rationale, we define the following Negative Attention Score (NAS) using the attention weights applied to negative answer candidate tokens like 'No', and positive answer candidate tokens like 'Yes', observed in a attention head.

Formally, let L P be the length of the prompt x , t Y es and t No the positions of the 'Yes' and 'No' tokens within the instruction, and L I the length of the instruction. For the attention weight inferred by the h th attention head in the l th layer, denoted as A l,h ∈ R L P × L P , the NAS is defined as:

$$\text{ss} \quad \text{NAS} _ { x } ^ { l, h } \coloneqq \\ \text{ev} \quad \begin{array} { c } \text{NAS} _ { x } ^ { l, h } \coloneqq \\ \text{is} a \\ \text{on} \quad \end{array} \quad \begin{array} { c } \text{NAS} _ { x } ^ { l, h } \coloneqq \\ \text{on} \quad \end{array} \quad \begin{array} { c } \text{NAS} _ { x } ^ { l, h } \\ \text{is} _ { x } ^ { l, h } \end{array} \rightarrow \left ( \frac { A _ { i, t _ { N o } } ^ { l, h } } { A _ { i, t _ { Y e s } } ^ { l, h } \end{array} \right ) \ast \log \left ( \frac { A _ { i, t _ { N o } } ^ { l, h } } { A _ { i, t _ { Y e s } } ^ { l, h } \right ), \ ( 1 )$$

where we omit the input x in the attention function for brevity. In the i -th row, each NAS term consists

## 3.1.2 Observation of Negative Bias

Fig 1 presents the precision and recall results for models across various datasets. In most cases, a significant drop in recall compared to precision is observed. As defined, high precision indicates that a high frequency of the model's positive responses (TP+FP) are positive cases (TP). High recall means that among all the positive cases (TP+FN), the model frequently responds correctly with positive answers (TP). Therefore, intuitively, the phenomenon where existing models exhibit high precision but low recall can be explained to that the model is overly cautious in outputting positive responses . Conversely, this implies that the model outputs negative responses indiscriminately, indicating that the trustworthiness of negative responses and positive responses is not balanced.

Fig 2 shows a histogram of the response confidence of the LLaMA3 model in mathematical and logical reasoning tasks. The X-axis denotes confidence for all lines. Each line represents FP (false positive), FN (false negative), TP (true positive), and TN (true negative). We observe that the overall frequency and confidence of negative responses, including FN and TN, are higher than those of positive responses, including FP and TP. This indicates that the model tends to output negative responses more frequently and with greater confidence .

In summary, through statistical observation, we find that LLMs typically show 1) over-cautiousness to the positive response, and 2) more frequent and more confident negative response. Thus, it is evident that large language models possess a bias towards negative responses in the binary decisionmaking process of complex reasoning tasks . Detailed case study of the negative responses about the negative bias can be found in Appendix E.

1

Table 1: Correlations of NAS and the negative confidence ( -1 to 1 ).

| Model    |   LLaMA3-8B |   Mistral-7B |   Gemma-7B |   Qwen2-7B |
|----------|-------------|--------------|------------|------------|
| Pearson  |      0.5274 |       0.3625 |     0.6322 |     0.4806 |
| Spearman |      0.5201 |       0.3563 |     0.6725 |     0.5166 |

of two factors: the sum of the attention weights applied to the 'Yes' and 'No' tokens, which aims to find attention heads focusing significantly on the tokens representing answer options; and the logarithm of the ratio of attention weights applied to these tokens, identifying heads that preferentially attend to the 'No' token over the 'Yes' token.

Basically, NAS can have a value for each attention head on a single sample. Based on this, we introduce two types of NAS variants: single head NAS and model NAS . Single head NAS represents the average NAS across a specific attention head for the sample or dataset. It is used to quantify the negative bias of a single attention. On the other hand, model NAS represents the total NAS across all attention heads for the sample or dataset. This is used to approximate the model's own negative bias. For example, we can formally express the single head NAS of h -th attention head in l -th layer on the dataset X as 1 | X | ∑ x i ∈ X NAS l,h x i .

## 3.2.2 Empirical Studies

To demonstrate that the previously defined NAS is an effective indicator of negative bias, we measure the correlation between NAS and the negative confidence observed in model responses. For this measurement, we compile a test set consisting of a total of 1,500 samples, drawing 500 samples each from StrategyQA, rephrased GSM8K, and AR-LSAT. Table 1 shows the Pearson correlation and Spearman's rank correlation coefficient measured between NAS and negative response confidence for each model. In all cases, we confirm that NASindeed has a positive correlation with negative confidence. This validates that NAS is an effective indicator of a model's negative bias.

Additionally, we conduct a study on negative heads defined through the Negative Attention Score (NAS). For the QA dataset composed of three different domains that we previously created, we explore negative attention heads in three cases based on each domain subset. We designate as negative attention heads for a domain subset those heads among the top 200 heads with the highest single head NAS per sample that appear commonly in

Table 2: Overlapping proportion of top-200 negative heads for various datasets ( 0 to 1 ).

|   LLaMA3-8B |   Mistral-7B |   Gemma-7B |   Qwen2-7B |
|-------------|--------------|------------|------------|
|        0.74 |         0.76 |        0.8 |       0.74 |

over 90% of the subset samples. Keeping the model type constant, we extract such negative heads from each subset and then measure the extent of their overlap. The overlapping rates are displayed in Table 2, and surprisingly, we find that negative heads extracted through different domain subsets significantly overlap. This indicates the existence of query-agnostic negative attention heads that represent a common underlying cause of the model's negative bias.

## 4 NASA: Negative Attention Score Alignment

## 4.1 Probing Set Construction

Motivated by previous observations, we aim to quantify the negative bias of LLMs from the perspective of attention heads. To observe the negative bias in attention heads, we start by constructing a negative attention head probing set. To construct the probing set, we first select samples that can be answered by the model's parametric knowledge then convert them into binary decision making format using Prompt I. Note that in the probing set, the label is uniformly set to 'Yes" to effectively reveal the model's negative bias.

We suppose that the probing samples must meet the condition: the question should be answerable using the model's parametric knowledge. To determine whether the question in the sample meets the condition, we construct the prompt as follows:

## Prompt II (Inquiring Parametric Knowledge)

You MUST answer shortly the given question based on your knowledge. Question: { question } Answer:

This prompt effectively selects samples that belong to the model's parametric knowledge while minimizing the influence of the model's negative bias. We assume that samples meet the condition if the model returns the correct answers for the prompt, and we use them as the probing set. We utilize GPT-4 to verify whether the prediction matches to label. A detailed explanation of the parametric sample selection can be found in Appendix D.

## NASA: Negative Attention Score Alignment

Figure 4: Overall framework of negative attention score alignment method.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-3d14bde6-8657-424a-a0cd-5b10b98eb483.jpg)

In Section 3, we observe that the negative bias attention heads exhibit prompt-agnostic properties. Based on this observation, we employ another multi-step reasoning dataset, HotpotQA (Yang et al., 2018), to construct the probing set. We presume that HotpotQA, being less challenging compared to recent datasets, has a higher proportion of samples that can be answered using the parametric knowledge of LLMs. For the samples selected for probing, we construct the probing set by converting them into the form of binary decision prompt (See Section 3.1.1).

## 4.2 Negative Attention Head Probing

We probe negatively biased attention heads using the constructed probing set. First, we measure the NAS of each attention head when the prompt from each probing sample is input into the model. We then identify the top k ′ attention heads with the highest NAS for each probing sample. Among these extracted heads, we select those that are consistently extracted in over 90% of the probing set samples. Finally, the top k attention heads, sorted by their single head NAS values, are targets for further addressing. In this paper, we set k ′ to 100.

At this point, we further categorize the probing set into cases where the model correctly answers (i.e., the true positive set) and cases where it does not (i.e., the false negative set). During the finetuning phase of the model (See Section 4.3), we use the false negative set as the training set. This approach is aimed at inducing the model to generate positive answers for samples that it incorrectly fails to answer due to a negative bias in parametric knowledge. Meanwhile, the true positive set is used to determine the criteria for early halting of the fine-tuning process. In other words, during the training process aimed at reducing the model NAS, if the NAS on the validation set (i.e., false negative subset) falls below the minimum model NAS of true positive set, training is halted to minimize the bias towards positives.

## 4.3 Head-wise Incremental Tuning

To address the identified attention heads as specified in Section 4.2, we propose an additional supervised fine-tuning method. Our fine-tuning method is parameter efficient as it focuses only on finetuning the query and key projection weights of the selected negative bias attention heads.

## 4.3.1 Dataset

We utilize the data from the attention head probing set for fine-tuning (i.e., subset of rephrased HotpotQA). Because the model already possesses parametric knowledge for answering questions in the probing set, we construct the fine-tuning data to encourage the model to generate positive answers in response to Prompt I. As the queries in the probing set contain parametric knowledge, we do not provide contexts containing related facts to the model.

## 4.3.2 Training Objective

Similar to a standard supervised fine-tuning objective, we target only the answer token (e.g., 'Yes') for training. Since our dataset contains only short answers, training the model to generate the special token that indicates the end of a sequence could introduce a bias towards short responses. To prevent this side effect, we only use the target answer token in our loss calculation.

1

Table 3: Model evaluation results on multi-step reasoning datasets.

| Dataset             | Model               | Accuracy                              | Precision     | Recall        | F1            | NAS           |
|---------------------|---------------------|---------------------------------------|---------------|---------------|---------------|---------------|
| StrategyQA          | LLaMA3-8B / + NASA  | 0.871 / 0.877 0.842 / 0.778 / 0.829 / | 0.919 / 0.864 | 0.795 / 0.875 | 0.852 / 0.869 | 160.6 / 55.0  |
| StrategyQA          | Mistral-7B / + NASA | 0.830                                 | 0.882 / 0.802 | 0.772 / 0.861 | 0.823 / 0.830 | 114.1 / 34.3  |
| StrategyQA          | Gemma-7B / + NASA   | 0.771                                 | 0.923 / 0.907 | 0.676 / 0.690 | 0.777 / 0.784 | 107.8 / 71.8  |
| StrategyQA          | Qwen2-7B / + NASA   | 0.844                                 | 0.921 / 0.907 | 0.694 / 0.742 | 0.792 / 0.816 | 209.6 / 107.2 |
| MuSiQue (Rephrased) | LLaMA3-8B / + NASA  | 0.720 / 0.757                         | 0.859 / 0.815 | 0.555 / 0.683 | 0.675 / 0.743 | 199.8 / 64.0  |
| MuSiQue (Rephrased) | Mistral-7B / + NASA | 0.649 / 0.707                         | 0.848 / 0.802 | 0.416 / 0.594 | 0.558 / 0.682 | 131.2 / 110.7 |
| MuSiQue (Rephrased) | Gemma-7B / + NASA   | 0.518 / 0.503                         | 0.837 / 0.834 | 0.529 / 0.555 | 0.648 / 0.667 | 259.8 / 96.2  |
| MuSiQue (Rephrased) | Qwen2-7B / + NASA   | 0.621 / 0.639                         | 0.883 / 0.858 | 0.482 / 0.552 | 0.624 / 0.672 | 418.8 / 282.9 |

Table 4: Model evaluation results on mathematical and logical reasoning datasets.

| Dataset             | Model                                                    | Accuracy                                                        | Precision                                               | Recall                                                    | F1                                                                                  | NAS                                                 |
|---------------------|----------------------------------------------------------|-----------------------------------------------------------------|---------------------------------------------------------|-----------------------------------------------------------|-------------------------------------------------------------------------------------|-----------------------------------------------------|
| GSM8K (Rephrased)   | LLaMA3-8B / + NASA Mistral-7B / + NASA Gemma-7B / + NASA | 0.537 / 0.545 0.501 / 0.512 0.533 / 0.538 / 0.576 0.563 / 0.549 | 0.587 / 0.531 0.518 / 0.509 0.546 / 0.541 0.640 / 0.614 | 0.336 / 0.838 0.163 / 0.837 / 0.534 / 0.738 0.530 / 0.874 | 0.428 / 0.650 0.247 / 0.617 0.661 / 0.672 0.582 / 0.670 0.557 / 0.663 0.216 / 0.592 | 218.2 / 74.7 115.5 / 77.0 159.6 / 66.2 210.9 / 82.9 |
| GSM8K (Rephrased)   |                                                          |                                                                 |                                                         | 0.782                                                     |                                                                                     |                                                     |
| GSM8K (Rephrased)   |                                                          | 0.524                                                           |                                                         | 0.887                                                     |                                                                                     |                                                     |
| GSM8K (Rephrased)   | Qwen2-7B / + NASA                                        |                                                                 |                                                         |                                                           |                                                                                     |                                                     |
| MATH (Rephrased)    | LLaMA3-8B / + NASA                                       |                                                                 | 0.587 / 0.534                                           |                                                           |                                                                                     | 183.3 / 60.8                                        |
| MATH (Rephrased)    | Mistral-7B / + NASA                                      | 0.504 / 0.526                                                   | 0.527 / 0.522                                           | 0.136 / 0.685                                             |                                                                                     | 117.9 / 109.6                                       |
| MATH (Rephrased)    | Gemma-7B / + NASA                                        | 0.546 / 0.543                                                   | 0.556 / 0.553                                           | 0.810 / 0.871                                             | 0.659 / 0.677                                                                       | 185.0 / 64.0                                        |
| MATH (Rephrased)    | Qwen2-7B / + NASA                                        | 0.564 / 0.581                                                   | 0.661 / 0.617                                           | 0.537 / 0.715                                             | 0.593 / 0.662                                                                       | 224.0 / 103.1                                       |
| AR-LSAT (Rephrased) | LLaMA3-8B / + NASA                                       | 0.513 / 0.518                                                   | 0.547 / 0.537                                           | 0.297 / 0.444                                             | 0.385 / 0.486                                                                       | 178.1 / 63.6                                        |
| AR-LSAT (Rephrased) | Mistral-7B / + NASA                                      | 0.511 / 0.530                                                   | 0.547 / 0.553                                           | 0.280 / 0.447                                             | 0.370 / 0.494                                                                       | 108.7 / 80.02                                       |
| AR-LSAT (Rephrased) | Gemma-7B / + NASA                                        | 0.509 / 0.510                                                   | 0.525 / 0.523                                           | 0.468 / 0.534                                             | 0.495 / 0.528                                                                       | 151.7 / 68.0                                        |
| AR-LSAT (Rephrased) | Qwen2-7B / + NASA                                        | 0.492 / 0.496                                                   | 0.529 / 0.528                                           | 0.110 / 0.182                                             | 0.182 / 0.270                                                                       | 317.6 / 207.3                                       |

## 4.3.3 Training Strategy

We propose to further fine-tune each attention head sequentially in order of decreasing NAS which is measured during the attention head probing stage. Specifically, we only train the query and key projection modules of the target attention head.

whole NAS before and after training the attention head. If one or both of these values have increased compared to before training, we revert the parameter update of that attention head. This is to exclude modules that reinforce the negative bias of other attention heads from the training target.

Since we train with data where the target answer is positive, there is a risk of inducing a positive bias. Furthermore, updating a single attention head might change the NAS of another attention head. To prevent this, we set aside a portion of the dataset as a validation set and apply early stopping and update cancellation schemes for each attention head tuning, and early halting scheme for the whole finetuning process.

## Strategy of attention head tuning subprocess

we set early stopping criteria based on the model NAS and single head NAS. For the former criteria, we check for a decrease in the value each epoch and halt training if there is an increase. For the latter one, we verify that i) the value decreases each epoch and ii) remains above a specific threshold. Training is also stopped if either of the two conditions is not met.

After fine-tuning each attention head, we calculate the difference between the single NAS and the

Strategy of the whole tuning process In Section 4.2, we measure the NAS of each sample within the true positive probing set to establish the minimum value as the early halting threshold, τ . We hypothesize that if the NAS value in a false negative sample is lower than in a true positive, it may induce a positive bias. After training each negative bias attention head, we measure the NAS across all attention heads in the validation set. If this value falls below τ , training is halted to prevent falling into local optima.

## 5 Experiments

## 5.1 Experimental Setup

We conduct experiments using LLaMA3, Mistral, Gemma, and Qwen2. We use those instruct models before further NASA fine-tuning as baselines. We use LLaMA-Factory (Zheng et al., 2024) 1 and Hug-

1 https://github.com/hiyouga/LLaMA-Factory

gingFace Transformers (Wolf et al., 2020) 2 for all the experiments. The models are evaluated using yes-no QA datasets, which are described in Section 3. For these datasets, we measure accuracy, precision, recall, F1, and the sum of NAS values across all attention heads in the attention head probing set. For early stopping, we halt training if two NAS values (refer to the last paragraph in Section 4.3) cease to decrease or if the NAS for the target attention head on the validation set drops below 0.5. The initial learning rate is set to 1e-6, the batch size to 32, and the maximum number of epochs to 30. We reference the Alpaca repository 3 , setting the weight decay to 0 and the warmup ratio to 0.03.

## 5.2 Main Results

In this section, we examine whether the negative bias observed and analyzed in Section 3 has been effectively mitigated by NASA. Tables 3 and 4 present the performance of our method across various binary decision tasks. Generally, we observe an improvement in accuracy and a significant reduction in the gap between precision and recall. As mentioned in Section 3, high precision coupled with low recall indicates that the model is excessively cautious in providing positive responses. This, in turn, leads to a degradation in the trustworthiness of negative responses.

From this perspective, reducing the gap between precision and recall while maintaining accuracy at an equivalent or higher level is a way to mitigate negative bias, balancing the trustworthiness of the model's responses, and ultimately improving the model. Additionally, based on the improvement in the F1 score, which is the harmonic mean of precision and recall, it is demonstrated that the balance between precision and recall has been achieved in a positive direction of improving the model capability for reasoning. Regarding the NAS metric, we observe that our method effectively reduces NAS to an appropriate level. In Appendix G, we demonstrate that the components of our method contribute effectively to consistently tackling NAS during the training process.

Meanwhile, for the mathematical reasoning task, recall surpasses precision. This indicates that this task is somewhat more sensitive compared to other tasks and suggests that additional regularization, considering the task's sensitivity, could enhance the effectiveness of our method. Future research

2 https://github.com/huggingface/transformers

3 https://github.com/tatsu-lab/stanford\_alpaca

Table 5: General QA reasoning ability of baseline (left of '/') and ours (right of '/').

| Model      | MuSiQue       | GSM8K         | AR-LSAT       |
|------------|---------------|---------------|---------------|
| LLaMA3-8B  | 0.594 / 0.596 | 0.329 / 0.325 | 0.235 / 0.227 |
| Mistral-7B | 0.415 / 0.408 | 0.126 / 0.133 | 0.174 / 0.174 |
| Gemma-7B   | 0.139 / 0.137 | 0.257 / 0.251 | 0.125 / 0.131 |
| Qwen2-7B   | 0.541 / 0.541 | 0.478 / 0.481 | 0.220 / 0.221 |

based on our work could delve deeper into this aspect.

Moreover, the slight decrease in precision might superficially appear as a performance decline. However, it can be interpreted as an enhancement of the model's trustworthiness by adjusting the alignment between the model's actual knowledge and its responses. This means that precision might slightly decrease because some samples that were previously incorrectly categorized as true negatives due to negative bias might shift to false positives. For instance, even if the model makes incorrect inferences or remains uncertain about a question, in a binary decision scenario, negative bias could lead to it being classified as a true negative. A detailed analysis of the shifts in negative responses due to NASA can be found in Appendix F.

## 6 Analysis

## 6.1 Preservation of General Reasoning Abilities

In this section, we evaluate the performance of a large language model with NASA applied to general QA reasoning tasks. We assess the general reasoning performance on benchmarks such as MuSiQue, GSM8K, and AR-LSAT using the LLaMA3-8B model both with and without NASA. After verifying whether each model-generated prediction includes an answer in these benchmarks, we utilize GPT-4 to double-check whether the predictions that contain answers indeed correspond semantically to the actual answers. To generate predictions from the model, we utilize the previously mentioned Prompt II (Inquiring Parametric Knowledge). The content of the GPT-4 prompt for prediction verification can be found in Table 13.

As shown in Table 5, the model with NASA applied demonstrates improved results, showing enhanced or maintained general reasoning abilities while effectively tackling negative bias. Since negative bias is a task-specific factor contributing to hallucination in binary decision tasks, its influence on general reasoning QA, like short-answer QA, is

Table 6: Accuracy and F1 (left and right of '/', respectively) scores on various positive and negative tokens.

| Type          | Dataset    | LLaMA3-8B     | + NASA        |
|---------------|------------|---------------|---------------|
| True/False    | StrategyQA | 0.855 / 0.828 | 0.866 / 0.853 |
| True/False    | MATH       | 0.559 / 0.452 | 0.574 / 0.583 |
| True/False    | AR-LSAT    | 0.512 / 0.306 | 0.506 / 0.405 |
| Correct/Wrong | StrategyQA | 0.852 / 0.838 | 0.846 / 0.840 |
| Correct/Wrong | MATH       | 0.545 / 0.660 | 0.544 / 0.675 |
| Correct/Wrong | AR-LSAT    | 0.523 / 0.540 | 0.522 / 0.590 |

Table 7: Accuracy and F1 (left and right of '/', respectively) scores on various instruction types.

| It. Type   | Dataset       | LLaMA3-8B               | + NASA                      |
|------------|---------------|-------------------------|-----------------------------|
| A          | MuSiQue GSM8K | 0.686/0.641 0.534/0.472 | 0.710 / 0.700 0.543 / 0.575 |
| A          | AR-LSAT       | 0.508 /0.306            | 0.507/ 0.370                |
| B          | MuSiQue       | 0.708/0.692             | 0.736 / 0.756               |
| B          | GSM8K         | 0.536 /0.611            | 0.531/ 0.665                |
| B          | AR-LSAT       | 0.512/0.382             | 0.518 / 0.500               |

relatively low compared to other factors contributing to hallucination such as parametric knowledge. Therefore, improving reasoning ability in binary decision tasks does not necessarily enhance reasoning capabilities in general reasoning QA. This means that addressing bias in binary decision tasks while maintaining performance in general reasoning QA can be considered an advancement in the model's overall reasoning capability, not overfitted to the binary decision task.

## 6.2 Generalization to Universal Binary Decision

We analyze the generalization ability for binary decisions by replacing the positive and negative tokens used in our fine-tuning set. Our fine-tuning set consists of 'Yes' and 'No', and in this experiment, we test with the tokens 'True' and 'False', as well as 'Correct' and 'Wrong'. Table 6 presents the results of experiments with LLaMA3-8B on various types of complex reasoning tasks. As shown in the table, ours fine-tuned using NASA achieves semantic-level generalization without overfitting to specific tokens.

## 6.3 Transferability across Various Instructions

In this work, we maintain a fixed instruction for binary decision-making in yes-no QA throughout the application of our methodology. In this section, we evaluate the robustness of our method when presented with instructions in the inference stage

Table 8: Expected calibration error of baseline and ours.

| Dataset             |   Mistral-7B |   + NASA |
|---------------------|--------------|----------|
| StrategyQA          |        0.12  |    0.116 |
| MuSiQue (Rephrased) |        0.278 |    0.212 |
| GSM8K (Rephrased)   |        0.301 |    0.269 |
| MATH (Rephrased)    |        0.353 |    0.26  |
| AR-LSAT (Rephrased) |        0.399 |    0.355 |

that are different forms of content. We assess the binary decision performance using the LLaMA38B model with and without NASA on benchmarks: MuSiQue, GSM8K, and AR-LSAT for paraphrased instruction types A and B. As shown in Table 7, our methodology with NASA applied still demonstrates superior performance compared to the baseline in both prompt types A and B. This supports our claim of instruction robustness for our methodology. Note that datasets in Table 6 and 7 are rephrased version. Fig 7 in Appendix B shows the content of instructions.

## 6.4 Enhanced Model Calibration

As Fig 2 illustrates, the negative bias of LLMs is also associated with the model's confidence in its predictions. Research on the calibration between prediction confidence and accuracy is necessary to enhance the trustworthiness of LLMs (Kadavath et al., 2022).

Table 8 shows the expected calibration error (He et al., 2022) when NASA is applied to Mistral-7B. In this paper, we focus on calibration in a complex reasoning yes-no QA dataset. Across five datasets, NASA consistently demonstrates improved calibration. This indicates that NASA effectively mitigates model bias, resulting in better alignment between prediction confidence and accuracy.

## 7 Conclusion

We identify a critical issue where large language models exhibit negative bias in binary decision tasks requiring complex reasoning. To address this issue, we propose a negative attention score for formulation and employ it to discover query-agnostic negative heads. By performing parameter-efficient tuning on these heads, we introduce the NASA method, which effectively mitigates the bias problem. Our method not only enhances the performance of the model but also serves as a useful analytical framework from the perspective of interpretability.

## Limitations

In this work, we focus on understanding the relationship between negative biases exhibited in finetuned LLMs and attention heads. However, further research is still needed to comprehend the causes and mechanisms behind the occurrence of negative biases in LLMs, and we anticipate that our observations and experimental results will lay the groundwork for future work. Additionally, we have adopted a scheme of fine-tuning a small number of attention heads individually. In future work, it may be possible to explore more time-efficient training methods. While this study focuses on understanding the characteristics of negative bias attention heads, future work could involve a more integrated research approach connecting various elements.

## References

Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 .

Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, and Jacob Steinhardt. 2023. Eliciting latent predictions from transformers with the tuned lens. arXiv preprint arXiv:2303.08112 .

Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168 .

Javier Ferrando, Gerard I. Gállego, Ioannis Tsiamas, and Marta R. Costa-jussà. 2023. Explaining how transformers use context to build predictions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) , pages 5486-5513, Toronto, Canada. Association for Computational Linguistics.

Mor Geva, Daniel Khashabi, Elad Segal, Tushar Khot, Dan Roth, and Jonathan Berant. 2021. Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics , 9:346361.

Guande He, Jianfei Chen, and Jun Zhu. 2022. Preserving pre-trained features helps calibrate fine-tuned language models. In The Eleventh International Conference on Learning Representations .

Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. 2023.

A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. arXiv preprint arXiv:2311.05232 .

Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. arXiv preprint arXiv:2310.06825 .

Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. 2022. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221 .

Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in neural information processing systems , 35:2219922213.

Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2023. Self-refine: Iterative refinement with selffeedback. In Thirty-seventh Conference on Neural Information Processing Systems .

Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2022. Locating and editing factual associations in gpt. Advances in Neural Information Processing Systems , 35:17359-17372.

Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems , 35:27730-27744.

Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 .

Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2022. musique: Multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics , 10:539-554.

Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations .

Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems , 35:24824-24837.

Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations , pages 38-45, Online. Association for Computational Linguistics.

Ziwei Xu, Sanjay Jain, and Mohan Kankanhalli. 2024. Hallucination is inevitable: An innate limitation of large language models. arXiv preprint arXiv:2401.11817 .

Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva, and Sebastian Riedel. 2024. Do large language models latently perform multi-hop reasoning? arXiv preprint arXiv:2402.16837 .

Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. 2018. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing , pages 2369-2380, Brussels, Belgium. Association for Computational Linguistics.

Longhui Yu, Weisen Jiang, Han Shi, YU Jincheng, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2023. Metamath: Bootstrap your own mathematical questions for large language models. In The Twelfth International Conference on Learning Representations .

Hongbang Yuan, Pengfei Cao, Zhuoran Jin, Yubo Chen, Daojian Zeng, Kang Liu, and Jun Zhao. 2024. Whispers that shake foundations: Analyzing and mitigating false premise hallucinations in large language models. arXiv preprint arXiv:2402.19103 .

Yue Zhang, Yafu Li, Leyang Cui, Deng Cai, Lemao Liu, Tingchen Fu, Xinting Huang, Enbo Zhao, Yu Zhang, Yulong Chen, et al. 2023. Siren's song in the ai ocean: a survey on hallucination in large language models. arXiv preprint arXiv:2309.01219 .

Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, and Yongqiang Ma. 2024. Llamafactory: Unified efficient fine-tuning of 100+ language models. arXiv preprint arXiv:2403.13372 .

Table 9: Data statistics of datasets utilized in our work.

| Data                |   # of Positives |   # of Negatives |   # of total |
|---------------------|------------------|------------------|--------------|
| StrategyQA          |             1071 |             1219 |         2290 |
| MuSiQue             |             1208 |             1208 |         2416 |
| GSM8K (Rephrased)   |             1001 |              999 |         2000 |
| MATH (Rephrased)    |             1000 |             1000 |         2000 |
| AR-LSAT (Rephrased) |              820 |              777 |         1597 |

## A Data Statistics

Table 9 shows the statistics of dataset utilized in our work.

## B Instructions for NASA

Table 10 presents the instructions utilized for NASA process in our work and Table 7.

## C Details of Binary Decision Data Construction

To convert general QA datasets into binary decision tasks, we create positive and negative examples where the answers are 'Yes' and 'No', respectively. Note that StrategyQA is a yes-no QA dataset and does not require a transformation.

MuSiQue, GSM8K, and MATH are short-answer QA datasets, and AR-LSAT is a multiple-choice dataset. For short-answer QA datasets, we use Prompt I in Section 3.1.1 to generate positive examples. AR-LSAT, a multiple-choice dataset, utilizes the positive question generation prompt from Table 11 to create questions with the answer "Yes." Consequently, StrategyQA and ARLSAT (Rephrased) are yes-no QA datasets, while MuSiQue (Rephrased), GSM8K (Rephrased), and MATH (Rephrased) is the form of answer verification.

## C.1 GPT-4 Prompts for Negative Example Construction

To construct negative examples, we utilize GPT-4. In short-answer QA (i.e., MuSiQue, GSM8K, and MATH), we use the wrong label generation prompt from Table 11 to obtain incorrect answers. We then replace the label in Prompt I with the incorrect answer to generate a negative example.

In multiple choice (i.e., AR-LSAT), we use the negative question generation prompt from Table 11 to create questions with the answer 'No'. An example of a rephrased AR-LSAT example can be found in Table 12.

## D Details of Parametric Sample Selection

As mentioned in Section 4.1, we construct the probing and fine-tuning sets using the HotpotQA dataset, which is a short-answer QA dataset. From the HotpotQA dataset, we use samples that can be correctly answered solely with parametric knowledge, without any context, as our probing samples.

During the probing sample selection process, we first input the question into the target model to extract a prediction. Since the HotpotQA dataset can contain various forms of answers, we use GPT4 to determine if the prediction corresponds to the label. Specifically, we input the prompt from Table 13 into GPT-4 and only include samples in the probing set if the response is 'Yes'.

## E Case Study for Negative Responses

In this section, we classify negative responses based on the following criteria:

Firstly, in a general QA reasoning task, a model's response to a specific question can be broadly categorized into below two cases.

- · Deterministic Case (Det): The model provides a certain answer regardless of its correctness.
- · Non-Deterministic Case (Non-Det): The model fails to provide a certain answer, indicating that the question is unanswerable due to insufficient information from the given context or its knowledge base.

Also, the deterministic case can be further classified based on whether the certain answer provided by the model is correct (True) or incorrect (False). Considering this, a model's response to a general question requiring a short answer can be categorized into the following three types.

- · True Deterministic (Det-T): The model provides a correct answer.
- · False Deterministic (Det-F): The model provides an incorrect answer.
- · Non-Deterministic (Non-Det): The model indicates that the question is unanswerable.

Additionally, beyond the extrinsic responses of the model, we can classify the model's responses based on the intrinsic factor of confidence. Specifically, if the model exhibits low confidence in the response, it can be considered closer to not knowing the answer to the question. We calculate the entropy of the output distribution for the first token of the model's response and use the median value of these entropies across all responses to classify them as high-confidence (low-entropy) or lowconfidence (high-entropy). This classification is performed based on the original model's responses before applying NASA method.

We apply this classification to cases where the model gives a negative response in a binary decision task. Negative responses can be classified as true negative (TN) or false negative (FN), with our focus in this discussion on FN. In this, an FN response classified as high-confident Det-T is the case where the model knows the answer is correct but says "no", while an FN response classified as Non-Det is the case where the model doesn't know the correct answer and says "no". For highconfident Det-F responses, the model does not indicate unanswerability but rather holds incorrect knowledge. This issue falls outside the scope of our methodology, which focuses on handling negative bias in binary decision tasks rather than general knowledge-intensive tasks.

Although it is clear that the case where the model knows the answer is correct but says "no" is the most problematic, we argue that in a binary decision task, the case where the model doesn't know the correct answer and says "no" can be related to the issue of negative bias. In a binary decision task where the model must answer "Yes" or "No," instances where the model is uncertain about the correct answer should result in an equal frequency of positive (yes) and negative (no) responses. However, our analysis indicates that existing models tend to output negative responses more confidently and frequently (as shown in Figures 1 and 2 in the paper). This suggests that when the model is uncertain, it predominantly outputs negative responses, which negatively impacts the trustworthiness of these negative responses. Therefore, for models exhibiting such negative bias, Non-Det and lowconfident responses should also be partially adjusted.

Table 14 shows the compositions of FN responses from the original models according to the classifications mentioned. It is evident that in all types of reasoning tasks addressed in our work (multi-hop, mathematical, logical reasoning), the FN responses include both case A and B that you mentioned. Specifically, for Gemma, the model often outputs responses indicating that many questions in Multi-hop QA are unanswerable. Please note that these are classified as Det-F in the table.

## F Analysis of Negative Responses Shifting in NASA

In this section, we analyze the ratios of samples which are originally responded to as negative by the original model and subsequently changed to positive by the NASA model. We categorize the ratio cases by each classification group explained in section E.

Table 15 illustrates the ratios of samples shifted from FN to TP. This demonstrates that the Det-T corresponding to the case where the model knows the answer is correct but says "no" generally has the highest rate of change. This finding indicates that our methodology does not indiscriminately add positive bias to the model but rather enhances the model's binary decision reasoning ability effectively.

Table 16 illustrates the ratios of samples shifted from TN to FP. As discussed in the section on main results, some samples that are incorrectly categorized as TN due to negative bias might shift to FP (Det-F), and this case does not correspond to the model degradation. Actually, among the TN samples, those classified as Deterministic-T with high confidence exhibit a lower shift ratio compared to their Deterministic-F counterparts. This indicates that the model tends to maintain predictions for samples that it can accurately classify. In conclusion, it can be interpreted that NASA has improved reasoning capability in binary decision tasks while maintaining general reasoning capability.

## G Ablation Study

NASA updates the parameters related to the inference of attention weights of negative attention heads (i.e., query and key projection weights). To demonstrate the effectiveness of NASA, we conduct two ablation studies: i) updating only the query projection weight and ii) random attention head tuning.

## G.1 Freezing Key Projection Weight

We perform fine-tuning using the same pipeline as before, except that we freeze the key projection weight. Note that strategies such as early stopping and halting, as well as other hyperparameters, remain the same as those used in the NASA settings.

The experimental results of NASA and freezing key projection weights are shown in Table 17. In general, both the F1 score and NAS are relatively better for NASA, while the trend in accuracy is not distinctly observable. An exceptional case is Qwen2-7B at AR-LSAT, where NASA's accuracy and F1 score are significantly lower than those of its counterpart.

## G.2 Random Attention Head Tuning

In another ablation study, we experiment by randomly selecting attention heads to be fine-tuned. As shown in Table 18, NAS typically outperforms most others in terms of F1 score and ECE. Notably, during random attention head tuning, model NAS largely diverges in the case of LLaMA3-8B and Mistral-7B. These results imply that carefully selecting attention heads is critical and our framework effectively detects and addresses negatively biased attention heads.

## H Confidence Histogram Analysis

To analyze the confidence of binary decisions between the baseline and our model, we plot confidence histograms for the LLaMA3-8B model, similar to Fig 2. In Fig 5, we observe that NASA influences the prediction confidence of LLMs in binary decision tasks. In the baseline model, except for StrategyQA, we frequently observe the return of negative responses with high confidence. On the other hand, after incorporating NASA, the model demonstrates a reduction in the frequency and confidence gap between positive and negative responses.

Meanwhile, for datasets of mathematical reasoning, there has been a significant increase in the frequency of positive responses, even though F1 scores also increased. As discussed in Section 5.2, future research could explore additional regularization during the fine-tuning process.

## I Samples of Attention Heads

Fig 6 presents the real examples of attention weights of heads in LLaMA3-8B-Instruct model for a GSM8K rephrased sample. Fig 7 presents the real examples of attention weights of heads in LLaMA3-8B-Instruct model with NASA for a same GSM8K rephrased sample.

## J Computation

For all fine-tuning experiments, we use 2 NVIDIA A40 GPUs for approximately 3 hours.

## K Licenses

StrategyQA, MuSiQue, MetaMATH, and ARLSAT are under the license of MIT license, CCBY-4.0 license, MIT License, and MIT license, respectively. LLaMA 3, Mistral, Gemma, Qwen, and GPT-4 are under the license of META LLAMA 3 COMMUNITYLICENSE AGREEMENT, Apache License 2.0, Gemma, Apache License 2.0, and OpenAI, respectively.

## L Usage of AI Writing Assistance

This paper received linguistic assistance from the AI assistant GPT-4, which provided services including paraphrasing, spell-checking, and refinement of the original content authored. No additional help was utilized beyond this support.

## Instruction in NASA

You are given a question and you MUST answer Yes or No.

## Instruction type A

You are asked a question that demands a clear Yes or No answer.

## Instruction type B

A question is posed to you, and you are obligated to answer either Yes or No.

Table 10: Instructions used NASA process in our work and Table 7.

## Wrong Label Generation (MuSiQue, GSM8K, and MATH)

[System]

Generate the short wrong answer word for the given question. You MUST refer the given context about the question.

[User]

Question:

{ question }

Context:

{ context }

Answer:

{ label }

Wrong answer:

## Positive / Negative Question Generation (AR-LSAT)

## [System]

Convert the given question to the binary Yes-No question based on the context about the given question and the answer of the given question. The answer of the converted question must be YES. Do NOT omit the condition in the given question like 'If ...' or 'Suppose ...'. You MUST include the entire contents of the given question to the converted question.

[User]

Context:

{ context }

Question:

{ question }

Answer:

{ label / wrong label }

Converted Question:

Table 11: GPT-4 prompts used in wrong label or question generation for binary decision sample construction.

## StrategyQA

Context : Depression is caused by low levels of serotonin, dopamine and norepinephrine. Monoamine Oxidase breaks down neurotransmitters and lowers levels of serotonin, dopamine and norepinephrine.

Question : Would a Monoamine Oxidase candy bar cheer up a depressed friend?

: No

Answer

MuSiQue (Original)

Context : [Title: President of the Confederate States of America] The president was indirectly elected by the people through the Electoral College to a six - year term and was one of only two nationally elected Confederate officers ...

Question : When did the president of the Confederate States of America end his fight in the Mexican-American war? Answer : 1848

GSM8K (Original)

Question : What is the total cost of purchasing equipment for all sixteen players on the football team, considering that each player requires a $25 jersey, a $15.20 pair of shorts, and a pair of socks priced at $6.80?

: 1500

Answer

MATH (Original)

Question : What is the sum of all positive integer values of n for which n +6 n is an integer?

: 23

Answer

## AR-LSAT (Original)

Context : Hannah spends 14 days, exclusive of travel time, in a total of six cities. Each city she visits is in one of three countries-X, Y, or Z. Each of the three countries has many cities. Hannah visits at least one city in each of the three countries. She spends at least two days in each city she visits. She spends only whole days in any city. If the city of Nomo is in country X, and if Hannah spends as many days as possible in Nomo and as few days as possible in each of the other cities that she visits

Question : Which one of the following must be true?

(A) Hannah cannot visit any other cities in country X.

- (B) Hannah can visit four cities in country Y.
- (C) Hannah can spend six days in Nomo.
- (D) Hannah cannot spend more than four days in country Z.
- (E) Hannah can visit, at most, a total of four cities in countries Y and Z.

Answer : (B) Hannah can visit four cities in country Y.

## AR-LSAT (Rephrased)

Question : Hannah spends 14 days, exclusive of travel time, in a total of six cities. Each city she visits is in one of three countries-X, Y, or Z. Each of the three countries has many cities. Hannah visits at least one city in each of the three countries. She spends at least two days in each city she visits. She spends only whole days in any city. If the city of Nomo is in country X, and if Hannah spends as many days as possible in Nomo and as few days as possible in each of the other cities that she visits can Hannah visit four cities in country Y?

: Yes

Answer

Table 12: Examples of original datasets and rephrased AR-LSAT.

## [System]

Can the prediction be considered as the same meaning as the answer to the question? You must answer only yes or no.

[User]

Question:

{ context }

Prediction: { model prediction }

Answer:

{ label }

Table 14: Composition of false negative samples of original models in the rephrased datasets. High denotes highconfident and Low denotes low-confident.

| Dataset   | Model      | Det-T   | Det-T       | Det-F       | Det-F      | Non-Det      | Non-Det           |
|-----------|------------|---------|-------------|-------------|------------|--------------|-------------------|
| Dataset   | Model      | High    | Low         | High        | Low        | High         | Low               |
| MusiQue   | LLaMA3 8B  | 0.21    | 0.182 0.103 | 0.141 0.218 | 0.261 0.27 | 0.04 0.095 0 | 0.166 0.155 0.003 |
|           | Mistral 7B | 0.159   |             |             |            |              |                   |
|           | Gemma 7B   | 0.009   | 0.022       | 0.546       | 0.42       |              |                   |
|           | Qwen2 7B   | 0.25    | 0.174       | 0.139       | 0.327      | 0.007        | 0.104             |
| GSM8K     | LLaMA3 8B  | 0.209   | 0.092       | 0.286       | 0.414      | 0            | 0                 |
| GSM8K     | Mistral 7B | 0.076   | 0.03        | 0.407       | 0.486      | 0.001        | 0                 |
| GSM8K     | Gemma 7B   | 0.097   | 0.065       | 0.378       | 0.459      | 0            | 0                 |
| GSM8K     | Qwen2 7B   | 0.194   | 0.121       | 0.278       | 0.407      | 0            | 0                 |
| AR-LSAT   | LLaMA3 8B  | 0.057   | 0.06        | 0.303       | 0.312      | 0.158        | 0.11              |
| AR-LSAT   | Mistral 7B | 0.058   | 0.078       | 0.385       | 0.437      | 0.002        | 0.04              |
| AR-LSAT   | Gemma 7B   | 0.011   | 0.025       | 0.49        | 0.474      | 0            | 0                 |
| AR-LSAT   | Qwen2 7B   | 0.068   | 0.108       | 0.306       | 0.413      | 0.092        | 0.013             |

Table 15: Response shift ratio by NASA on false negative samples (FN -&gt; TP ratio) in the rephrased datasets. High denotes high-confident and Low denotes low-confident.

| Dataset   | Model                | Det-T       | Det-T        | Det-F             | Det-F        | Non-Det       | Non-Det       |
|-----------|----------------------|-------------|--------------|-------------------|--------------|---------------|---------------|
| Dataset   | Model                | High        | Low          | High              | Low          | High          | Low           |
|           | LLaMA3 8B Mistral 7B | 0.364 0.432 | 0.39 0.449 0 | 0.268 0.265 0.029 | 0.326 0.28 0 | 0.136 0.203 0 | 0.197 0.163 0 |
|           | Gemma 7B             | 0.185       |              |                   |              |               |               |
|           | Qwen2 7B             | 0.122       | 0.15         | 0.074             | 0.093        | 0             | 0.032         |
|           | LLaMA3 8B            | 0.662       | 0.694        | 0.629             | 0.715        | N/A           | N/A           |
|           | Mistral 7B           | 0.817       | 0.667        | 0.746             | 0.638        | 1             | N/A           |
|           | Gemma 7B             | 0.14        | N/A          | 0.254             | N/A          | N/A           | N/A           |
|           | Qwen2 7B             | 0.315       | 0.586        | 0.389             | 0.386        | N/A           | N/A           |
|           | LLaMA3 8B            | 0.5         | 0.432        | 0.298             | 0.33         | 0.228         | 0.281         |
|           | Mistral 7B           | 0.585       | 0.189        | 0.289             | 0.195        | 0             | 0             |
|           | Gemma 7B             | 0.143       | 0.158        | 0.146             | 0.131        | N/A           | N/A           |
|           | Qwen2 7B             | 0.22        | 0.098        | 0.079             | 0.095        | 0.062         | 0.111         |

Table 16: Response shift ratio by NASA on true negative samples (TN -&gt; FP ratio) in the rephrased datasets. High denotes high-confident and Low denotes low-confident.

| Dataset   | Model                | Det-T         | Det-T          | Det-F             | Det-F          | Non-Det   | Non-Det        |
|-----------|----------------------|---------------|----------------|-------------------|----------------|-----------|----------------|
| Dataset   | Model                | High          | Low            | High              | Low            | High      | Low            |
| MusiQue   | LLaMA3 8B Mistral 7B | 0.057 0.073 0 | 0.06 0.075 N/A | 0.144 0.097 0.007 | 0.112 0.08 N/A | 0 0.119 0 | 0.06 0.032 N/A |
|           | Gemma 7B             |               |                |                   |                |           |                |
|           | Qwen2 7B             | 0.009         | 0.018          | 0.015             | 0.026          | 0         | N/A            |
| GSM8K     | LLaMA3 8B            | 0.587         | 0.632          | 0.516             | 0.606          | N/A       | N/A            |
| GSM8K     | Mistral 7B           | 0.784         | 0.65           | 0.736             | 0.652          | N/A       | N/A            |
| GSM8K     | Gemma 7B             | 0.271         | N/A            | 0.188             | N/A            | N/A       | N/A            |
| GSM8K     | Qwen2 7B             | 0.213         | 0.208          | 0.234             | 0.303          | N/A       | N/A            |
| AR-LSAT   | LLaMA3 8B            | 0.229         | 0.349          | 0.306             | 0.247          | 0.176     | 0.21           |
| AR-LSAT   | Mistral 7B           | 0.208         | 0.204          | 0.248             | 0.162          | 0         | 0.174          |
| AR-LSAT   | Gemma 7B             | 0.133         | 0.083          | 0.152             | 0.134          | N/A       | N/A            |
| AR-LSAT   | Qwen2 7B             | 0.109         | 0.041          | 0.13              | 0.095          | 0         | 0              |

Table 17: Ablation results of updated parameters (NASA / query projection only).

| Dataset             | Model      | Accuracy      | Precision     | Recall        | F1            | NAS           | ECE           |
|---------------------|------------|---------------|---------------|---------------|---------------|---------------|---------------|
| StrategyQA          | LLaMA3-8B  | 0.877 / 0.877 | 0.864 / 0.895 | 0.875 / 0.836 | 0.869 / 0.864 | 55.0 / 96.2   | 0.102 / 0.128 |
| StrategyQA          | Mistral-7B | 0.830 / 0.849 | 0.802 / 0.846 | 0.861 / 0.837 | 0.830 / 0.841 | 34.3 / 71.9   | 0.116 / 0.114 |
| StrategyQA          | Gemma-7B   | 0.771 / 0.774 | 0.907 / 0.907 | 0.690 / 0.692 | 0.784 / 0.785 | 71.8 / 79.2   | 0.162 / 0.161 |
| StrategyQA          | Qwen2-7B   | 0.844 / 0.836 | 0.907 / 0.915 | 0.742 / 0.716 | 0.816 / 0.804 | 107.2 / 194.9 | 0.106 / 0.115 |
| MuSique             | LLaMA3-8B  | 0.757 / 0.741 | 0.815 / 0.844 | 0.683 / 0.609 | 0.743 / 0.707 | 64.0 / 118.6  | 0.039 / 0.055 |
| MuSique             | Mistral-7B | 0.707 / 0.704 | 0.802 / 0.821 | 0.594 / 0.558 | 0.682 / 0.664 | 110.7 / 185.9 | 0.212 / 0.217 |
| MuSique             | Gemma-7B   | 0.503 / 0.510 | 0.834 / 0.836 | 0.555 / 0.552 | 0.667 / 0.665 | 96.2 / 107.1  | 0.276 / 0.274 |
| GSM8K (Rephrased)   | Qwen2-7B   | 0.639 / 0.622 | 0.858 / 0.873 | 0.552 / 0.500 | 0.672 / 0.636 | 282.9 / 405.7 | 0.200 / 0.215 |
|                     | LLaMA3-8B  | 0.545 / 0.558 | 0.531 / 0.551 | 0.838 / 0.688 | 0.650 / 0.612 | 74.7 / 123.6  | 0.170 / 0.105 |
|                     | Mistral-7B | 0.512 / 0.511 | 0.509 / 0.515 | 0.782 / 0.463 | 0.617 / 0.487 | 77.0 / 127.4  | 0.269 / 0.294 |
|                     | Gemma-7B   | 0.524 / 0.517 | 0.541 / 0.542 | 0.887 / 0.888 | 0.672 / 0.673 | 66.2 / 74.7   | 0.346 / 0.349 |
|                     | Qwen2-7B   | 0.576 / 0.560 | 0.614 / 0.634 | 0.738 / 0.606 | 0.670 / 0.620 | 82.9 / 141.6  | 0.115 / 0.085 |
| MATH (Rephrased)    | LLaMA3-8B  | 0.549 / 0.572 | 0.534 / 0.562 | 0.874 / 0.740 | 0.663 / 0.639 | 60.8 / 103.6  | 0.175 / 0.118 |
| MATH (Rephrased)    | Mistral-7B | 0.526 / 0.533 | 0.522 / 0.549 | 0.685 / 0.384 | 0.592 / 0.452 | 109.6 / 152.8 | 0.260 / 0.299 |
| MATH (Rephrased)    | Gemma-7B   | 0.543 / 0.539 | 0.553 / 0.555 | 0.871 / 0.867 | 0.677 / 0.677 | 64.0 / 73.0   | 0.340 / 0.338 |
| MATH (Rephrased)    | Qwen2-7B   | 0.581 / 0.549 | 0.617 / 0.639 | 0.715 / 0.611 | 0.662 / 0.624 | 103.1 / 187.5 | 0.162 / 0.168 |
| AR-LSAT (Rephrased) | LLaMA3-8B  | 0.518 / 0.510 | 0.537 / 0.536 | 0.444 / 0.337 | 0.486 / 0.414 | 63.6 / 109.2  | 0.227 / 0.245 |
| AR-LSAT (Rephrased) | Mistral-7B | 0.530 / 0.526 | 0.553 / 0.556 | 0.447 / 0.382 | 0.494 / 0.453 | 80.02 / 121.3 | 0.355 / 0.382 |
| AR-LSAT (Rephrased) | Gemma-7B   | 0.510 / 0.514 | 0.523 / 0.526 | 0.534 / 0.551 | 0.528 / 0.539 | 68.0 / 75.6   | 0.372 / 0.383 |
| AR-LSAT (Rephrased) | Qwen2-7B   | 0.496 / 0.559 | 0.528 / 0.643 | 0.182 / 0.574 | 0.270 / 0.607 | 207.3 / 204.4 | 0.359 / 0.384 |

| Model      | Dataset            | Accuracy                    | Precision                   | Recall        | F1            | NAS                               | ECE           |
|------------|--------------------|-----------------------------|-----------------------------|---------------|---------------|-----------------------------------|---------------|
| LLaMA3-8B  | StrategyQA MuSique | 0.877 / 0.870 0.757 / 0.722 | 0.864 / 0.924 0.815 / 0.862 | 0.875 / 0.789 | 0.869 / 0.851 | 55.0 / - 507 . 6 64.0 / - 956 . 7 | 0.102 / 0.176 |
| LLaMA3-8B  |                    |                             |                             | 0.683 / 0.547 | 0.743 / 0.669 |                                   | 0.039 / 0.076 |
| LLaMA3-8B  | GSM8K              | 0.545 / 0.554               | 0.531 / 0.570               | 0.838 / 0.482 | 0.650 / 0.522 | 74.7 / - 433 . 8                  | 0.170 / 0.109 |
| LLaMA3-8B  | MATH               | 0.549 / 0.562               | 0.534 / 0.573               | 0.874 / 0.561 | 0.663 / 0.567 | 60.8 / - 390 . 1                  | 0.175 / 0.095 |
| LLaMA3-8B  | AR-LSAT            | 0.518 / 0.518               | 0.537 / 0.570               | 0.444 / 0.249 | 0.486 / 0.346 | 63.6 / - 817 . 5                  | 0.227 / 0.259 |
| Mistral-7B | StrategyQA         | 0.830 / 0.849               | 0.802 / 0.888               | 0.861 / 0.784 | 0.830 / 0.833 | 34.3 / 750.8                      | 0.116 / 0.112 |
| Mistral-7B | MuSique            | 0.707 / 0.679               | 0.802 / 0.850               | 0.594 / 0.483 | 0.682 / 0.616 | 110.7 / 1405.1                    | 0.212 / 0.244 |
| Mistral-7B | GSM8K              | 0.512 / 0.518               | 0.509 / 0.539               | 0.782 / 0.287 | 0.617 / 0.374 | 77.0 / 1055.0                     | 0.269 / 0.339 |
| Mistral-7B | MATH               | 0.525 / 0.528               | 0.522 / 0.563               | 0.685 / 0.266 | 0.592 / 0.361 | 109.6 / 1042.2                    | 0.260 / 0.354 |
| Mistral-7B | AR-LSAT            | 0.530 / 0.514               | 0.553 / 0.551               | 0.447 / 0.290 | 0.494 / 0.380 | 80.0 / 1015.0                     | 0.355 / 0.396 |
| Gemma-7B   | StrategyQA         | 0.771 / 0.780               | 0.907 / 0.922               | 0.690 / 0.678 | 0.784 / 0.782 | 71.8 / 104.7                      | 0.162 / 0.165 |
| Gemma-7B   | MuSique            | 0.503 / 0.532               | 0.834 / 0.829               | 0.555 / 0.534 | 0.667 / 0.650 | 96.2 / 123.8                      | 0.276 / 0.279 |
| Gemma-7B   | GSM8K              | 0.524 / 0.533               | 0.541 / 0.540               | 0.887 / 0.855 | 0.672 / 0.662 | 66.2 / 103.5                      | 0.346 / 0.357 |
| Gemma-7B   | MATH               | 0.543 / 0.547               | 0.553 / 0.554               | 0.871 / 0.835 | 0.677 / 0.666 | 64.0 / 105.4                      | 0.340 / 0.331 |
| Gemma-7B   | AR-LSAT            | 0.510 / 0.513               | 0.523 / 0.529               | 0.534 / 0.489 | 0.528 / 0.508 | 68.0 / 98.6                       | 0.372 / 0.374 |
| Qwen2-7B   | StrategyQA         | 0.844 / 0.832               | 0.907 / 0.917               | 0.742 / 0.705 | 0.816 / 0.797 | 107.2 / 202.0                     | 0.106 / 0.116 |
| Qwen2-7B   | MuSique            | 0.639 / 0.627               | 0.858 / 0.880               | 0.552 / 0.505 | 0.672 / 0.642 | 282.9 / 392.8                     | 0.200 / 0.221 |
| Qwen2-7B   | GSM8K              | 0.576 / 0.540               | 0.614 / 0.637               | 0.738 / 0.562 | 0.670 / 0.597 | 82.9 / 195.7                      | 0.115 / 0.091 |
| Qwen2-7B   | MATH               | 0.581 / 0.563               | 0.617 / 0.652               | 0.715 / 0.556 | 0.662 / 0.600 | 103.1 / 201.3                     | 0.162 / 0.168 |
| Qwen2-7B   | AR-LSAT            | 0.496 / 0.493               | 0.528 / 0.530               | 0.182 / 0.117 | 0.270 / 0.192 | 207.3 / 299.4                     | 0.359 / 0.392 |

Table 18: Ablation results of attention head selection (NASA / random attention heads).

Figure 5: Confidence histograms of LLaMA3-8B before and after NASA.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-a7c7dbd2-6ed3-4d3a-9c1b-9447df197058.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-cc9e340a-2f7b-447f-a42e-a6182cf0d4f3.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-ac375a0f-7824-4366-929d-0cd14de386b2.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-a5c354fa-1b3f-4389-9339-f07293e48030.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-70b95890-f196-4328-af45-8957c717b830.jpg)

Layer-14, Head-20

Figure 6: Examples of attention heads of LLaMA3-8B-Instruct model for a GSM8K dataset sample.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-11dc76bf-225a-430a-97bd-40150773d193.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-93217aff-e199-4b8a-9e0f-48dbf5d50e2d.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-ddab9536-9c4c-48c3-a470-629bc7d4a731.jpg)

Figure 7: Examples of attention heads of LLaMA3-8B-Instruct model with NASA for a GSM8K dataset sample.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-4c902e88-8b35-4c94-9683-5809addd3080.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-6609fe34-00e1-4dda-9f0a-6ef90804823f.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-2cc720f3-a57e-4f76-80d4-1dd9082d3762.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-8d4f1b8b-9895-40c6-ad11-a4e3f683be31.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00137v1-figure-93ae2cae-d7b4-4087-b57d-b0da7489d709.jpg)
Sangwon Yu Jongyoon Song Bongkyu Hwang Hoyoung Kang Sooah Cho Junhwa Choi Seongho Joe Taehee Lee Youngjune L. Gwon Sungroh Yoon
Correcting Negative Bias in Large Language Models through Negative Attention Score Alignment
A binary decision task, like yes-no questions or answer verification,
reflects a significant real-world scenario such as where users look for
confirmation about the correctness of their decisions on specific issues. In
this work, we observe that language models exhibit a negative bias in the
binary decisions of complex reasoning tasks. Based on our observations and the
rationale about attention-based model dynamics, we propose a negative attention
score (NAS) to systematically and quantitatively formulate negative bias. Based
on NAS, we identify attention heads that attend to negative tokens provided in
the instructions as answer candidate of binary decisions, regardless of the
question in the prompt, and validate their association with the negative bias.
Additionally, we propose the negative attention score alignment (NASA) method,
which is a parameter-efficient fine-tuning technique to address the extracted
negatively biased attention heads. Experimental results from various domains of
reasoning tasks and large model search space demonstrate that NASA
significantly reduces the gap between precision and recall caused by negative
bias while preserving their generalization abilities. Our codes are available
at \url{https://github.com/ysw1021/NASA}.