Deep learning has introduced significant improvements in many software analysis tasks. Although the Large Language Models (LLMs) based neural code models demonstrate commendable performance when trained and tested within the intra-project independent and identically distributed (IID) setting, they often struggle to generalize effectively to real-world inter-project out-of-distribution (OOD) data. In this work, we show that this phenomenon is caused by the heavy reliance on project-specific shortcuts for prediction instead of ground-truth evidence. We propose a Cond-Idf measurement to interpret this behavior, which quantifies the relatedness of a token with a label and its project-specificness. The strong correlation between model behavior and the proposed measurement indicates that without proper regularization, models tend to leverage spurious statistical cues for prediction. Equipped with these observations, we propose a novel bias mitigation mechanism that regularizes the model's learning behavior by leveraging latent logic relations among samples. Experimental results on two representative program analysis tasks indicate that our mitigation framework can improve both inter-project OOD generalization and adversarial robustness, while not sacrificing accuracy on intra-project IID data.
ProjLens: Unveiling the Role of Projectors in Multimodal Model Safety
University of Science and Technology of China(中国科学技术大学);Beijing University of Aeronautics and Astronautics(北京航空航天大学);Nanyang Technological University(南洋理工大学);Southwest Jiaotong University(西南交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Unveiling the Surprising Efficacy of Navigation Understanding in End-to-End Autonomous Driving
College of Intelligent Robotics and Advanced Manufacturing, Fudan University(复旦大学智能机器人与先进制造学院);Didi Chuxing(滴滴出行);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
Unveiling Modality Bias: Automated Sample-Specific Analysis for Multimodal Misinformation Benchmarks
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));City University of Hong Kong(香港城市大学);Sun Yat-sen University(中山大学);Harbin Institute of Technology(哈尔滨工业大学);Nanyang Technological University(新加坡国立大学)
Negation Blindness in Large Language Models: Unveiling the NO Syndrome in Image Generation
Aligarh Muslim University(阿里格尔穆斯林大学);VIT Bhopal University(VIT博帕尔大学);Nanyang Technological University(南洋理工大学);Technical University of Munich(慕尼黑工业大学);Imperial College London(伦敦帝国学院);Edinburgh Napier University(爱丁堡龙比亚大学)
Masked Autoencoders that Feel the Heart: Unveiling Simplicity Bias for ECG Analyses
State Key Laboratory of Digital Medical Engineering, Southeast University(数字医疗工程国家重点实验室,东南大学);School of Instrument Science and Engineering, Southeast University(仪器科学与工程学院,东南大学);School of Computer Science and Engineering, Southeast University(计算机科学与工程学院,东南大学)