A Dual-Modal Framework Utilizing Visual Prompts for Enhanced Patch Analysis

Mingqiao Mo, Yifang Xu, Yiyang Niu, Chunyang Ye, Hanyi Yu, Wu Tingting, Zhenghan chenOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Patch representation learning has emerged as a crucial innovation in software development, leveraging machine learning techniques to advance software generation workflows. This approach has led to significant enhancements across various applications involving code alterations. However, existing methods often exhibit a tendency towards specialization, excelling predominantly in either predictive tasks such as security patch classification or in generative tasks like the automated creation of patch descriptions. This paper presents a groundbreaking approach to patch representation learning through the Image-Guided Code Patch Framework (IGCP), a novel architecture that bridges the gap between code analysis and image processing domains. We introduce a rigorous mathematical foundation for IGCP, leveraging measure theory, functional analysis, and information geometry to formalize the domain adaptation process in patch representation learning. The optimization dynamics of IGCP are rigorously analyzed through the lens of Stochastic Gradient Langevin Dynamics, providing convergence guarantees in both convex and non-convex loss landscapes. Empirical evaluations demonstrate that IGCP not only achieves state-of-the-art performance in patch description generation but also exhibits remarkable domain generalization capabilities.
BibTeX
@misc{mo2025dual,
  author = {Mingqiao Mo and Yifang Xu and Yiyang Niu and Chunyang Ye and Hanyi Yu and Wu Tingting and Zhenghan chen},
  title = {{A Dual-Modal Framework Utilizing Visual Prompts for Enhanced Patch Analysis}},
  year = {2025},
  url = {https://openreview.net/forum?id=OXIIFZqiiN},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure