NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Position-Aware Parameter Efficient Fine-Tuning Approach for Reducing Positional Bias in LLMs

Zheng Zhang, Fan Yang, Ziyan Jiang, Zheng Chen, Zhengyang Zhao, Chengyuan Ma, Liang Zhao, Yang Liu

Introduction: The Challenge of Positional Bias

Large Language Models (LLMs) are increasingly tasked with processing long contexts, particularly in Retrieval-Augmented Generation (RAG) scenarios. However, their performance often suffers from "positional bias," famously characterized as the "lost-in-the-middle" phenomenon where models recall information at the beginning and end of a prompt more effectively than information in the center.

This research argues that the problem is more complex than a simple U-shaped performance curve. In tasks requiring a model to select a single correct item from a list—such as recommendation or citation prediction—the order of candidates should ideally be irrelevant. Yet, because LLMs process text sequentially, they often develop deep-seated "positional preferences," favoring specific slots regardless of the actual content.

Understanding Positional Preference

The researchers discovered that positional bias is model-specific. For instance, while Vicuna-13b-v1.5-16k demonstrates a strong preference for the very first position, Longchat-13b-16k tends to favor the 11th position. Standard mitigation strategies, such as few-shot prompting or hierarchical instructions, often fail to correct these habits and can sometimes even degrade performance by increasing the complexity of the instructions.

Positional bias in Vicuna-13b showing a strong preference for the first position regardless of the ground truth location.

The PAPEFT Framework

To address these biases, the authors introduce PAPEFT (Position-Aware Parameter Efficient Fine-Tuning). This approach utilizes two primary mechanisms:

  1. Ordering Permutation (Data Augmentation): During the fine-tuning phase, training instances are permuted so that the ground-truth answer appears in every possible position. This forces the model to evaluate the content rather than relying on its position in the list.
  2. Location Encoding (LE) Adapter: The core technical innovation is a tiny, trainable module that calculates the relative position of each document within the context window. These positions are converted into "soft prompts"—learnable vectors—that are concatenated with text embeddings. This provides the model with a "dual awareness" of both content and location, allowing it to weigh information more equitably.

Crucially, PAPEFT is highly efficient. The adapter represents only about 0.04% of the original model's parameters, making it a lightweight solution compared to full model retraining.

Experimental Setup and Datasets

The framework was evaluated on two retrieval-based tasks:

  • Recommendation (REC): Using the Amazon M2 dataset, models identified the next likely purchase from a list of 20 candidates based on a user's history.
  • Link Prediction (LP): Using the Arxiv citation network, models identified the most likely cited paper from a list of 20 candidates based on a title and abstract.

Results and Impact

PAPEFT delivered significant improvements in both consistency and accuracy:

  • Reduced Variance: Performance fluctuation across different positions was reduced by an average of 54.19% for recommendation tasks and 58.72% for link prediction.
  • Increased Accuracy: Average accuracy saw a substantial boost, increasing by 57.3% for REC and 64.4% for LP compared to un-tuned baselines.
  • Parameter Efficiency: The PAPEFT-LE variant achieved performance parity with LoRA-based approaches while utilizing 23.87 times fewer parameters.

Conclusion and Future Directions

PAPEFT demonstrates that treating document location as a learnable feature can effectively neutralize inherent positional biases in LLMs. While the study focused on discrete candidate lists in open-source models like Vicuna and Longchat, the success of this lightweight adapter suggests potential for broader applications. Future research may explore how these techniques apply to free-form long-context tasks, such as multi-document summarization, and whether similar debiasing can be achieved in closed-source models via API-based fine-tuning.

Summary updated

BibTeX
@misc{zhang2024position,
  author = {Zheng Zhang and Fan Yang and Ziyan Jiang and Zheng Chen and Zhengyang Zhao and Chengyuan Ma and Liang Zhao and Yang Liu},
  title = {{Position-Aware Parameter Efficient Fine-Tuning Approach for Reducing Positional Bias in LLMs}},
  year = {2024},
  eprint = {2404.01430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.01430},
}
Figure