arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.07494cs.AI
收藏

URECA:语义代码搜索中的分布偏移适应背后存在两个最小集合覆盖问题的链条

URECA: The Chain of Two Minimum Set Cover Problems exists behind Adaptation to Shifts in Semantic Code Search

Yonsei University(延世大学)

Seok-Ung Choi, Joonghyuk Hahn, Yo-Sub Han

AI总结:

针对最小熵问题在分布偏移适应中存在的偏移初始化级联局限,通过勒贝格积分拓展其与最小集合覆盖问题的关系,提出URECA聚类算法,在少样本适应多种偏移时提升性能,在CoSQA查询偏移场景中达到SOTA。

摘要:

适应旨在让模型学习偏离训练分布的模式,此类适应通常被表述为最小熵问题。但最小熵问题存在固有局限——偏移初始化级联现象。我们通过勒贝格积分拓展了最小熵问题与最小集合覆盖问题的关系,该拓展揭示:最小熵问题的内部机制忽略了解纠缠表示间的关系,进而导致偏移初始化级联。基于此分析,我们引入新的聚类算法——基于并查集的递归聚类算法(URECA)。URECA是利用解纠缠表示间关系的高效聚类算法,其更新规则依赖动态的阈值可更新平稳假设(Stationary Assumption的改进版本),该假设帮助URECA基于解纠缠表示间关系实现无错误传输,URECA还利用模拟技巧高效聚类解纠缠表示。广泛评估显示,URECA在少样本适应多种类型偏移时实现了持续性能提升,且在CoSQA的查询偏移场景中达到了最先进性能。

英文摘要:

Adaptation is to make model learn the patterns shifted from the training distribution. In general, this adaptation is formulated as the minimum entropy problem. However, the minimum entropy problem has inherent limitation -- shifted initialization cascade phenomenon. We extend the relationship between the minimum entropy problem and the minimum set cover problem via Lebesgue integral. This extension reveals that internal mechanism of the minimum entropy problem ignores the relationship between disentangled representations, which leads to shifted initialization cascade. From the analysis, we introduce a new clustering algorithm, Union-find based Recursive Clustering Algorithm~(URECA). URECA is an efficient clustering algorithm for the leverage of the relationships between disentangled representations. The update rule of URECA depends on Thresholdly-Updatable Stationary Assumption to dynamics as a released version of Stationary Assumption. This assumption helps URECA to transport disentangled representations with no errors based on the relationships between disentangled representations. URECA also utilize simulation trick to efficiently cluster disentangled representations. The wide range of evaluations show that URECA achieves consistent performance gains for the few-shot adaptation to diverse types of shifts along with advancement to State-of-The-Art performance in CoSQA in the scenario of query shift.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑