GoCoMA:超几何多模态表示融合用于大语言模型生成代码归因
GoCoMA: Hyperbolic Multimodal Representation Fusion for Large Language Model-Generated Code Attribution
AI总结:
GoCoMA通过超几何空间融合代码风格和二进制特征,提升大语言模型生成代码的归因准确性,在两个基准测试中优于单一模态和欧几里得多模态基线。
摘要:
大型语言模型(LLMs)在大规模代码语料库上训练后,能够生成难以与人类编写代码区分的代码。这引发了实际关注,包括安全漏洞和许可模糊性,并推动了取证问题:'谁(或哪个LLM)写了这段代码?'我们提出了GoCoMA,一个多模态框架,建模了(i)代码风格学,捕捉更高层次的结构和风格签名,以及(ii)二进制可执行 artifact(BPEA)的图像表示,捕捉更低层次的执行导向字节语义,由编译和工具链塑造。GoCoMA将模态嵌入投影到超几何Poincaré球,通过基于测地余弦相似度的跨模态注意力(GCSA)融合机制融合它们,并将融合的表示回投影到欧几里得空间以进行最终LLM-源归因。在两个开源基准(CoDET-M4和LLMAuthorBench)上的实验表明,GoCoMA在相同的评估协议下一致优于单一模态和欧几里得多模态基线。
英文摘要:
Large Language Models (LLMs) trained on massive code corpora are now increasingly capable of generating code that is hard to distinguish from human-written code. This raises practical concerns, including security vulnerabilities and licensing ambiguity, and also motivates a forensic question: 'Who (or which LLM) wrote this piece of code?' We present GoCoMA, a multimodal framework that models an extrinsic hierarchy between (i) code stylometry, capturing higher-level structural and stylistic signatures, and (ii) image representations of binary pre-executable artifacts (BPEA), capturing lower-level, execution-oriented byte semantics shaped by compilation and toolchains. GoCoMA projects modality embeddings into a hyperbolic Poincaré ball, fuses them via a geodesic-cosine similarity-based cross-modal attention (GCSA) fusion mechanism, and back-projects the fused representation to Euclidean space for final LLM-source attribution. Experiments on two open-source benchmarks (CoDET-M4 and LLMAuthorBench) show that GoCoMA consistently outperforms unimodal and Euclidean multimodal baselines under identical evaluation protocols.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。