TriFusion-LLM: Prior-Guided Multimodal Fusion with LLM Arbitration for Fine-grained Code Clone Detection
- URL: http://arxiv.org/abs/2603.15004v1
- Date: Mon, 16 Mar 2026 09:08:07 GMT
- Title: TriFusion-LLM: Prior-Guided Multimodal Fusion with LLM Arbitration for Fine-grained Code Clone Detection
- Abstract summary: Full Model is a multimodal fusion framework for code clone detection.<n>It improves discrimination among fine-grained clone types while keeping inference cost practical.<n>Full Model achieves an effective performance-cost trade-off for fine-grained CCD.
- Score: 15.824017693868045
- License: http://creativecommons.org/licenses/by-sa/4.0/
- Abstract: Code clone detection (CCD) supports software maintenance, refactoring, and security analysis. Although pre-trained models capture code semantics, most work reduces CCD to binary classification, overlooking the heterogeneity of clone types and the seven fine-grained categories in BigCloneBench. We present Full Model, a multimodal fusion framework that jointly integrates heuristic similarity priors from classical machine learning, structural signals from abstract syntax trees (ASTs), and deep semantic embeddings from CodeBERT into a single predictor. By fusing structural, statistical, and semantic representations, Full Model improves discrimination among fine-grained clone types while keeping inference cost practical. On the seven-class BigCloneBench benchmark, Full Model raises Macro-F1 from 0.695 to 0.875. Ablation studies show that using the primary model's probability distribution as a prior to guide selective arbitration by a large language model (LLM) substantially outperforms blind reclassification; arbitrating only ~0.2% of high-uncertainty samples yields an additional 0.3 absolute Macro-F1 gain. Overall, Full Model achieves an effective performance-cost trade-off for fine-grained CCD and offers a practical solution for large-scale industrial deployment.
Related papers
- A Unified Model for Cross-Domain Clone Detection via Model Merging [9.757638656919832]
Current deep learning detectors degrade significantly outside their training distribution.<n>We investigate model merging, a family of post-hoc techniques that operate solely on trained checkpoints.<n>Same-base TIES merging creates effective cross-domain detectors, validated across two model families and three random seeds.
arXiv Detail & Related papers (2026-08-04T20:32:28Z) - Understanding-Enhanced Model Collaboration for Long-Tailed Egocentric Mistake Detection [85.49213290363834]
We propose an Understanding-Enhanced Model Collaboration Method (UE-MCM)<n>It combines efficient coarse-grained video understanding with accurate fine-grained action reasoning.<n>The resulting system balances speed and accuracy, making it effective for detecting subtle, rare, and ambiguous mistakes in egocentric instructional videos.
arXiv Detail & Related papers (2026-06-01T11:50:16Z) - Coupling Models for One-Step Discrete Generation [50.37847093567075]
Coupling Models is a one-step discrete generative model that learns a direct coupling between discrete sequences and Gaussian latents.<n>It avoids complex continuous flows over the simplex and hand-specified data-to-noise couplings.<n>It reduces LM1B text-generation perplexity by 33% at its lowest-perplexity operating point.
arXiv Detail & Related papers (2026-05-08T03:40:39Z) - FusionAgent: A Multimodal Agent with Dynamic Model Selection for Human Recognition [22.18313011042103]
textbfFusionAgent is a novel agentic framework for dynamic, sample-specific model selection.<n> Confidence Top-k (ACT) score-fusion anchors on the most confident model and integrates complementary predictions in a confidence-aware manner.<n>Experiments on multiple whole-body biometric benchmarks demonstrate that FusionAgent significantly outperforms SoTA methods.
arXiv Detail & Related papers (2026-03-27T18:35:44Z) - CDRRM: Contrast-Driven Rubric Generation for Reliable and Interpretable Reward Modeling [61.75914342638658]
CDRRM (Contrast-Driven Reward Model) is a framework for high-quality rubric generation and guided preference judgment.<n>This work offers a scalable, interpretable, and data-efficient path for reward modeling.
arXiv Detail & Related papers (2026-03-09T07:15:23Z) - Latent Sculpting for Zero-Shot Generalization: A Manifold Learning Approach to Out-of-Distribution Anomaly Detection [2.8547732086436306]
A fundamental limitation of supervised deep learning is "Generalization Collapse"<n>We propose Latent Sculpting, a hierarchical two-stage representation learning framework.<n>We report an 88.89% detection rate on "Infiltration" scenarios.
arXiv Detail & Related papers (2025-12-19T11:37:02Z) - Cross-Domain Malware Detection via Probability-Level Fusion of Lightweight Gradient Boosting Models [0.0]
This paper presents a novel framework for malware detection that employs probability-level fusion across three distinct datasets.<n>Our method trains individual LightGBM classifiers on each dataset, selects top predictive features to ensure efficiency, and fuses their prediction probabilities using optimized weights determined via grid search.<n>Experiments demonstrate that our fusion approach achieves a macro F1-score of 0.823 on a cross-domain validation set, significantly outperforming individual models and providing superior generalizations.
arXiv Detail & Related papers (2025-08-30T12:18:13Z) - Cross-BCI, A Cross-BCI-Paradigm Classifica-tion Model Towards Universal BCI Applications [0.0]
This study proposes a light-weight and unified decoding model for cross-BCI-paradigm classification.<n>Results show that the proposed model achieves 88.39%, 82.36%, 80.01%, and 0.8092 for accuracy, macro-precision, mac-ro-recall, and macro-F1-score, respectively.
arXiv Detail & Related papers (2025-08-12T16:04:50Z) - Fraud is Not Just Rarity: A Causal Prototype Attention Approach to Realistic Synthetic Oversampling [6.184770966699034]
Causal Prototype Attention (CPAC) is an interpretable architecture that promotes class-aware clustering and improved latent space structure.<n>We show that CPAC delivers superior performance, achieving an F1-score of 93.14% percent and recall of 90.18%, along with improved latent cluster separation.
arXiv Detail & Related papers (2025-07-19T17:51:54Z) - CLIPure: Purification in Latent Space via CLIP for Adversarially Robust Zero-Shot Classification [65.46685389276443]
We ground our work on CLIP, a vision-language pre-trained encoder model that can perform zero-shot classification by matching an image with text prompts.<n>We then formulate purification risk as the KL divergence between the joint distributions purification process.<n>We propose two variants for our CLIPure approach: CLI-Diff which models the likelihood of images' latent vectors, and CLIPure-Cos which models the likelihood with the cosine similarity between the embeddings of an image and a photo of a.''
arXiv Detail & Related papers (2025-02-25T13:09:34Z) - Benchmarking Zero-Shot Robustness of Multimodal Foundation Models: A Pilot Study [61.65123150513683]
multimodal foundation models, such as CLIP, produce state-of-the-art zero-shot results.
It is reported that these models close the robustness gap by matching the performance of supervised models trained on ImageNet.
We show that CLIP leads to a significant robustness drop compared to supervised ImageNet models on our benchmark.
arXiv Detail & Related papers (2024-03-15T17:33:49Z) - Latent Semantic Consensus For Deterministic Geometric Model Fitting [109.44565542031384]
We propose an effective method called Latent Semantic Consensus (LSC)
LSC formulates the model fitting problem into two latent semantic spaces based on data points and model hypotheses.
LSC is able to provide consistent and reliable solutions within only a few milliseconds for general multi-structural model fitting.
arXiv Detail & Related papers (2024-03-11T05:35:38Z) - Cauchy-Schwarz Regularized Autoencoder [68.80569889599434]
Variational autoencoders (VAE) are a powerful and widely-used class of generative models.
We introduce a new constrained objective based on the Cauchy-Schwarz divergence, which can be computed analytically for GMMs.
Our objective improves upon variational auto-encoding models in density estimation, unsupervised clustering, semi-supervised learning, and face analysis.
arXiv Detail & Related papers (2021-01-06T17:36:26Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.