Decision Boundaries Matter: Graph-Regularized Residual Adaptation for Cross-Domain Fake Image Detection
Organizations: School of Communication Information Engineering, Shanghai University, Shanghai, China · School of Cyberspace, Hangzhou Dianzi University, Hangzhou, China
Abstract
Despite learning transferable features, fake image detectors may struggle on unseen domains due to mismatched decision boundaries. Our analysis shows that features extracted by the frozen forensic encoder remain discriminative, but the source-trained decision boundary does not fully exploit this information. However, correcting this boundary without source data or target labels remains challenging, as unreliable source predictions may lead to incorrect adaptation. To address this issue, we propose Graph-Regularized Residual Adaptation (GraRA), which refines the source decision boundary using only unlabeled target data. To determine which classifier directions to update, GraRA constructs a compact residual subspace from uncertainty-weighted target features and keeps it orthogonal to the source classification direction. To guide these updates, it uses source-score anchors to generate soft labels through target-graph diffusion, while neighborhood consistency regularizes residual learning within the constrained subspace. The learned correction is merged into the source classifier, requiring only 32 optimized coefficients and no additional inference branches. On diverse unseen OpenMMSec domains, GraRA achieves 84.36% accuracy and 91.34% AUC, improving over the source detector by 4.33 and 3.50 percentage points, respectively. Further analysis shows that reliable source predictions and locally consistent neighborhoods help guide residual learning, allowing GraRA to correct ranking errors that a simple threshold shift cannot address.
Figures & tables
| Group | Method | Venue | Deepfake | AIGC | IMDL | Document | Avg. | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ACC | AUC | ACC | AUC | ACC | AUC | ACC | AUC | ACC | AUC | |||
| Detector | UnivFD [ 23 ] | CVPR’23 | 75.97 | 85.99 | 74.53 | 86.43 | 75.03 | 84.18 | 55.12 | 56.66 | 72.24 | 81.73 |
| AIDE [ 36 ] | ICLR’25 | 69.42 | 76.81 | 71.40 | 82.35 | 71.48 | 83.87 | 56.45 | 53.13 | 68.71 | 76.81 | |
| CO-SPY [ 3 ] | CVPR’25 | 73.47 | 82.99 | 82.44 | 92.98 | 77.69 | 86.22 | 55.72 | 59.24 | 75.38 | 84.34 | |
| EFFORT [ 38 ] | ICML’25 | 87.21 | 93.11 | 83.66 | 93.84 | 79.69 | 89.00 | 64.20 | 67.08 | 81.33 | 89.12 | |
| SICA [ 8 ] | ICML’26 | 86.06 | 90.17 | 82.41 | 91.88 | 78.24 | 88.19 | 62.57 | 70.71 | 80.03 | 87.84 | |
| Variant | ACC | AUC | Real | Fake | Gap |
|---|---|---|---|---|---|
| Source Only | 80.03 | 87.84 | 88.16 | 71.90 | 18.63 |
| Shift Only | 82.19 | 87.84 | 81.36 | 83.00 | 3.55 |
| Effect of Individual Components | |||||
| w/o Orthogonalization | 83.53 | 89.54 | 82.99 | 84.07 | 2.86 |
| w/o Semantic Anchors | 83.27 | 88.46 | 82.72 | 83.81 | 3.00 |
| w/o Semantic Diffusion | 83.27 | 88.30 | 82.66 | 83.87 | 3.04 |
| WildDeepfake | WildFake | Avg. | ||||
| Method | ACC | AUC | ACC | AUC | ACC | AUC |
| Source Only | 68.90 | 77.53 | 77.55 | 84.88 | 73.23 | 81.21 |
| EFFORT [ 38 ] | 71.00 | 80.09 | 77.08 | 86.83 | 74.04 | 83.46 |
| TENT [ 32 ] | 69.40 | 77.82 | 74.56 | 83.50 | 71.98 | 80.66 |
| GOLD [ 16 ] | 69.50 | 77.70 | 81.82 | 89.41 | 75.66 | 83.56 |
| GraRA | 72.00 | 80.91 | 82.17 | 88.81 | 77.09 | 84.86 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Weighted purity | Pseudo-label AUC | |
|---|---|---|
| 100 | 85.69 | 91.26 |
| 120 | 85.39 | 91.26 |
| 160 | 84.91 | 91.26 |
| 200 | 84.53 | 91.26 |
| 240 | 84.23 | 91.26 |
| Group | Method | Deepfake | AIGC | IMDL | Document | Avg. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EFS | FE | FR | FS | GAN | Lat. | Pix. | AR | Comm. | Other | Gen. | Non-Gen. | AIGC | Non-AIGC | |||
| Detector | UnivFD [ 23 ] | 80.31 | 82.87 | 70.38 | 70.33 | 86.14 | 63.20 | 70.42 | 98.75 | 59.17 | 69.50 | 71.46 | 78.61 | 38.04 | 72.20 | 72.24 |
| AIDE [ 36 ] | 75.26 | 75.14 | 67.12 | 60.17 | 68.86 | 63.56 | 77.92 | 95.00 | 60.83 | 62.25 | 74.63 | 68.33 | 40.22 | 72.68 | 68.71 | |
| CO-SPY [ 3 ] | 74.85 | 80.39 | 68.48 | 70.17 | 90.23 | 76.40 | 84.17 | 100.00 | 67.08 | 76.75 | 75.37 | 80.00 | 40.22 | 71.22 | 75.38 | |
| EFFORT [ 38 ] | 90.10 | 91.71 | 82.20 | 84.83 | 96.59 | 81.02 | 87.50 | 98.75 | 79.38 | 58.75 | 80.77 | 78.61 | 51.09 | 77.32 | 81.33 | |
| SICA [ 8 ] | 90.52 | 85.64 | 81.59 | 86.50 | 93.41 | 83.27 | 83.33 | 93.50 | 80.21 | 60.75 | 82.73 | 73.75 | 47.83 | 77.32 | 80.03 | |
| Group | Method | Deepfake | AIGC | IMDL | Document | Avg. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EFS | FE | FR | FS | GAN | Lat. | Pix. | AR | Comm. | Other | Gen. | Non-Gen. | AIGC | Non-AIGC | |||
| Detector | UnivFD [ 23 ] | 91.48 | 97.08 | 76.68 | 78.73 | 93.59 | 77.45 | 85.30 | 100.00 | 74.81 | 87.41 | 82.97 | 85.39 | 35.99 | 77.32 | 81.73 |
| AIDE [ 36 ] | 85.25 | 83.00 | 72.65 | 66.36 | 80.93 | 74.72 | 88.65 | 98.75 | 71.11 | 79.97 | 86.58 | 81.15 | 30.10 | 76.16 | 76.81 | |
| CO-SPY [ 3 ] | 85.41 | 94.12 | 75.76 | 76.67 | 97.37 | 89.25 | 95.69 | 100.00 | 85.96 | 89.59 | 86.24 | 86.19 | 39.51 | 78.97 | 84.34 | |
| EFFORT [ 38 ] | 95.91 | 94.70 | 90.25 | 91.58 | 98.92 | 94.32 | 96.22 | 100.00 | 92.94 | 80.64 | 89.75 | 88.25 | 48.16 | 86.00 | 89.12 | |
| SICA [ 8 ] | 93.66 | 88.33 | 88.52 | 90.15 | 96.55 | 93.46 | 93.19 | 95.94 | 90.29 | 81.83 | 90.89 | 85.49 | 54.11 | 87.30 | 87.84 | |
| Metric | Value |
|---|---|
| Source test ACC / AUC | 47.83 / 54.11 |
| Target-supervised probe ACC | 87.51 |
| 5-NN label purity | 83.51 |
| Real / Fake anchor precision | 78.4 / 51.4 |
| Diffusion pseudo-label AUC gain | +2.33 p.p. |
| GraRA test ACC / AUC | 58.52 / 60.88 |
| Method | Params (#) | Time (s) | Mem. (GB) | Lat. (ms/img) |
|---|---|---|---|---|
| TENT [ 32 ] | 102,400 | 104.62 | 7.03 | 18.40 |
| EATA [ 22 ] | 102,400 | 51.44 | 12.62 | 17.91 |
| LH | 769 | 51.80 | 1.41 | 17.53 |
| GraRA | 32 | 45.43 | 1.41 | 17.26 |
AI-Generated Image Detection
AI-generated image detection identifies synthetic or AI-edited images and develops methods that generalize across generators, domains, and image transformations.
See all 215 papers