[论文解读] Attention Mechanism and Heuristic Approach: Context-Aware File Ranking Using Multi-Head Self-Attention
论文介绍了多头自注意力作为对上下文感知的变更影响分析中文件排序的后确定性 refinement,显著提升对确定性基线的召回率。
The identification and ranking of impacted files within software reposi-tories is a key challenge in change impact analysis. Existing deterministic approaches that combine heuristic signals, semantic similarity measures, and graph-based centrality metrics have demonstrated effectiveness in nar-rowing candidate search spaces, yet their recall plateaus. This limitation stems from the treatment of features as linearly independent contributors, ignoring contextual dependencies and relationships between metrics that characterize expert reasoning patterns. To address this limitation, we propose the application of Multi-Head Self-Attention as a post-deterministic scoring refinement mechanism. Our approach learns contextual weighting between features, dynamically adjust-ing importance levels per file based on relational behavior exhibited across candidate file sets. The attention mechanism produces context-aware adjustments that are additively combined with deterministic scores, pre-serving interpretability while enabling reasoning similar to that performed by experts when reviewing change surfaces. We focus on recall rather than precision, as false negatives (missing impacted files) are far more costly than false positives (irrelevant files that can be quickly dismissed during review). Empirical evaluation on 200 test cases demonstrates that the introduc-tion of self-attention improves Top-50 recall from approximately 62-65% to between 78-82% depending on repository complexity and structure, achiev-ing 80% recall at Top-50 files. Expert validation yields improvement from 6.5/10 to 8.6/10 in subjective accuracy alignment. This transformation bridges the reasoning capability gap between deterministic automation and expert judgment, improving recall in repository-aware effort estimation.
研究动机与目标
- Motivate the need for better recall in change impact analysis over deterministic heuristics.
- Propose a context-aware refinement using Multi-Head Self-Attention to weigh features adaptively.
- Preserve interpretability while improving recall through additively combined attention adjustments.
- Demonstrate recall gains and expert alignment via empirical evaluation on real repositories.
提出的方法
- Apply Multi-Head Self-Attention as a post-deterministic scoring refinement to deterministic heuristic scores.
- Learn contextual weighting between features and adjust importance per file based on relational behavior across candidate sets.
- Combine attention-adjusted scores additively with deterministic scores to preserve interpretability.
- Focus on recall rather than precision to minimize missed impacted files.
- Evaluate on 200 test cases to measure Top-50 recall and subjective accuracy.
实验结果
研究问题
- RQ1Can contextual weighting via Multi-Head Self-Attention improve recall for impacted file ranking beyond deterministic heuristics?
- RQ2How does context-aware weighting affect Top-50 recall across repositories with varying complexity?
- RQ3Does the attention-based refinement align with expert judgments in change surface reviews?
主要发现
- Top-50 recall improved from about 62-65% (deterministic baseline) to 78-82% with self-attention, depending on repository complexity and structure.
- Achieved 80% recall at Top-50 files.
- Expert validation showed subjective accuracy alignment rising from 6.5/10 to 8.6/10.
- The approach narrows the reasoning gap between automated ranking and expert review in repository-aware effort estimation.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。