Summary
The paper addresses the position bias in large language models, particularly the tendency to overlook middle-context information, known as the "lost in the middle" phenomenon. The authors identify that this bias arises from both position embeddings and causal masks, which introduce positional hidden states influencing attention patterns. They propose a mitigation approach by scaling specific dimensions in these positional hidden states, demonstrating its effectiveness across models like LLaMA-2 etc.
Strengths
1. The method shows improvements across various models and tasks, indicating broad applicability.
2. By leveraging FlashAttention and modifying only one dimension, the method remains efficient, with minimal latency impact.
3. The method shows up to 15.2% improvement on position-sensitive benchmarks, suggesting it addresses bias effectively.
Weaknesses
1. Only one hidden state dimension is scaled, which may not capture more nuanced, layer-specific positional dependencies.
2. The impact of position scaling seems to vary by task, suggesting that tuning may be required for optimal results in different contexts.
3. By focusing on single-dimension scaling, the model may become overly specialized to certain bias patterns rather than general long-context processing needs.
Questions
1. How robust is the prior-based search algorithm for identifying positional hidden states across diverse datasets? Could noise in validation data affect the consistency of the identified dimension? How sensitive is the proposed method w.r.t. validation/calibration date?
2. How sensitive is the method to the choice of scaling factor? Would tuning this factor dynamically based on prompt structure (e.g., key information position) enhance retrieval performance?
3. How does the performance of this method compare when combined with techniques like prompt reordering/grounding, rather than as a standalone method?
5. Have you considered modifying multiple layers simultaneously to capture cross-layer dependencies of positional hidden states? How might this impact efficiency and performance?
6. Considering the performance disparities among models such as Mistral and Qwen across various tasks, have you identified any specific characteristics (e.g., number of attention heads, embedding size) that significantly influence the effectiveness of this position scaling method? Based on the outputs, can you classify the LLMs in terms of which models are likely to exhibit higher bias and which are expected to show less?
7. For complex tasks with mixed content (e.g., timeline reordering with nested information), how does the method adapt to multiple levels of positional dependencies within the same prompt? Would modifying additional hidden state dimensions enhance this?
8. Could you discuss the feasibility of extending this approach to handle extremely long contexts beyond the current benchmarks (e.g., 100k tokens or more)? Would the effectiveness of this single-dimension scaling hold, or would adjustments be necessary?
9. How do you think the proposed method would perform with language models that have 1-3 billion parameters (like Phi-2) compared to those with over 10 billion parameters? Additionally, how would quantized versions be affected? Do you anticipate that scaling the proposed algorithm for smaller LMs would yield better performance in terms of bias, even if it results in a slight decrease in accuracy?