GoCoMA: Hyperbolic Multimodal Representation Fusion for Large Language Model-Generated Code Attribution
Abstract
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.
Figures & tables
| Model | LLMAuthorBench | CoDET-M4 | ||
|---|---|---|---|---|
| Acc. | macro-F1 | Acc. | macro-F1 | |
| Unimodal - Code (PLMs) | ||||
| CBE | 93.52 | 85.34 | 83.17 | 75.61 |
| UXC | 94.02 | 86.43 | 82.70 | 74.23 |
| QWC | 91.87 | 83.26 | 81.36 | 73.84 |
| CT5 | 94.13 | 86.09 | 79.98 | 71.48 |
Authorship Attribution
Authorship attribution identifies or verifies who wrote a text, code sample, or other creative work from patterns in its style and content.
See all 66 papers