嵌入式信号处理 VSIPL 代码翻译样本智能生成技术研究

  • 打印
  • 收藏
收藏成功


打开文本图片集

中图分类号:TP311.1;TP18

文献标识码:A

文章编号:2096-4706(2026)14-0102-05

Research on Intelligent Generation Technology of VSIPL Code Translation Samples for Embedded Signal Processing

LI Weichao, HAN Wenjun, LI Luye, LI He, DING Linlin

(Nanjing Research Institute of Electronic Technology, Nanjing 210039, China)

Abstract: To address the scarcity of MATLAB-VSIPL parallel corpora and the high cost of manual annotation in the field of embedded signal processing, this paper proposes an LLM-driven intelligent generation method for MATLAB-VSIPL code translation samples. By designing structured translation prompt templates that integrate chain-of-thought reasoning with VSIPL domain knowledge, the method guides the model to generate MATLAB function seeds and corresponding VSIPL candidate implementations. Candidate samples then undergo progressive validation through static compilation checking and dynamic consistency testing. For samples failing validation, compilation error messages and test discrepancy feedback are leveraged to guide iterative repair by the model, thereby establishing a closed-loop MATLAB-VSIPL sample production line for generation, validation, and iteration. Finally, a MinHash-based semantic deduplication strategy is employed to eliminate redundant samples. Experimental results show that this method improves the VSIPL code test pass rate from 4% to 55%, significantly enhancing the quality of MATLAB-VSIPL sample generation.

Keywords: Large Language Model; code translation; VSIPL; chain-of-thought; sample generation

0 引言

嵌入式信号处理软件广泛应用在预警探测、电子对抗等国防关键领域。(剩余7635字)

monitor
客服机器人