Position Debiasing Fine-Tuning for Causal Perception in Long-Term Dialogue

Shixuan Fan, Wei Wei, Wendi Li, Xian-Ling Mao, Wenfeng Xie, Dangyang Chen

Abstract

The core of the dialogue system is to generate relevant, informative, and human-like responses based on extensive dialogue history. Recently, the dialogue generation domain has seen mainstream adoption of large language models (LLMs) due to their powerful capability in generating utterances. However, there is a natural deficiency for such models: inherent position bias. This may lead them to pay more attention to nearby utterances instead of causally relevant ones, resulting in generic responses in long-term dialogue. To alleviate this, we propose the Causal Perception long-term Dialogue framework (CPD), which employs perturbation-based causal variable discovery to extract causally relevant utterances and enhances model causal perception during fine-tuning. Experimental results on two datasets prove that our method effectively alleviates position bias and achieves significant progress compared with existing baselines.

The Challenge: Recency Bias in Long-Term Dialogue

In long-term conversations, a relevant response often depends on specific details mentioned dozens of turns ago. For example, a user might mention a specific conflict in turn 5 and ask for related advice in turn 21. Ideally, the model should link these two points. However, standard LLMs exhibit a strong "recency bias" or "position bias," where they over-rely on the most recent turns and "forget" earlier causal drivers. This leads to safe but bland and generic responses that lack the specific context required for high-quality interaction.

Comparison between a generic response and a causally-aware response in long-term dialogue.

As shown in the figure above, a standard model might fail to connect a query in Turn 21 to the context established in Turn 5, resulting in a generic answer about "people who are not open to hearing another person's point of view." In contrast, a causally-aware model correctly identifies the specific "friend" mentioned earlier as the subject of the dispute.

The Causal Perception long-term Dialogue (CPD) Framework

To address this architectural flaw, the CPD framework introduces three key innovations designed to force models to prioritize semantic causality over positional proximity:

  1. Causally Relevant Utterance Extraction: The framework identifies which past turns are actually "causes" for a given response using a perturbation-based method. By replacing a turn with a meaningless filler and measuring the change in model perplexity, the system can quantify the causal weight of that specific turn.
  2. Local-Position Awareness: To prevent the model from using position as a shortcut during extraction, CPD modifies the attention mechanism. It preserves standard position embeddings within a single sentence (to maintain syntax) but removes inter-sentence position information. This forces the model to rely on semantic relevance rather than just "how close is this turn to the end."
  3. Causal Perception Fine-Tuning: The model is trained using a dual-loss strategy. Invariant Risk Minimization (IRM) teaches the model to ignore perturbations in non-causal turns (noise), while Maximizing Treatment Effect (MTE) ensures the model is highly sensitive to changes in causally relevant turns.

Key Results and Insights

The researchers evaluated CPD using Llama2-7B-chat and Qwen-14B-chat on major benchmarks like ESConv and Multi-Session Chat (MSC). The results consistently showed that CPD outperformed baselines in both automated metrics (BLEU, ROUGE) and human evaluations for relevance and informativeness.

Treatment effect analysis across different models and turn distances.

A critical finding is illustrated in the treatment effect analysis. In standard fine-tuned models (b), the causal perception is highly volatile and heavily biased toward very recent turns (low turn distance). In the CPD framework (d), the treatment effect for causal turns remains stable across a wide range of distances, indicating that the model has successfully learned to identify causal drivers regardless of where they appear in the dialogue history.

Conclusion

The CPD framework demonstrates that while LLMs are naturally "lazy" and prone to position bias, they can be trained to recognize long-range causal dependencies. By framing dialogue history as a set of causal variables and using targeted fine-tuning to break positional heuristics, we can create dialogue systems that are significantly more context-aware and informative in long-term interactions.

Summary updated

BibTeX
@inproceedings{fan2024position,
  author = {Shixuan Fan and Wei Wei and Wendi Li and Xian-Ling Mao and Wenfeng Xie and Dangyang Chen},
  title = {{Position Debiasing Fine-Tuning for Causal Perception in Long-Term Dialogue}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=vak3yKcvUi},
}
Figure