DCANet: Diffusion-Coded Attention Network for Cross-Domain Semantic Noise Mitigation and Multi-Scale Context Fusion
Abstract
1. Introduction
- Cross-Domain Noise Mitigation: DCANet introduces the first framework that unifies stochastic graph diffusion, global bias coding, and self-correcting attention for cross-domain semantic noise mitigation in NLP via the proposed MPDM and ISE, effectively separating domain-specific noise from transferable semantic patterns;
- Multi-Scale Context Integration: In the MPDM module, the diffusion masking mechanism enables simultaneous preservation of local semantic coherence and global distributional trends through density adaptive graph construction;
- Dynamic Semantic Purification: The shared manifold structure between the ISE and SAT constructs a closed-loop self-regulating attention mechanism where global semantic priors continuously refine local feature weighting, achieving progressive noise suppression.
2. Related Work
2.1. Self-Attention
2.2. Latent Code
3. Proposed Method
3.1. Overall Architecture of DCANet
3.2. Multi-Granular Parallel Diffusion Masking
3.3. Implicit Semantic Encoder
3.4. Self-Correcting Attention Topology
4. Experiment
4.1. Dataset
4.2. Baseline Models
4.3. Parameter Settings
4.4. Experimental Results and Analysis
4.5. Ablation Experiments
4.6. Computational Cost Analysis
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| DCANet | Diffusion-Coded Attention Network |
| MPDM | Multi-granularity Parallel Diffusion Masking |
| ISE | Implicit Semantic Encoder |
| SAT | Self-correcting Attention Topology |
References
- Zheng, W.; Zhang, S.; Yang, C.; Hu, P. Lightweight multilayer interactive attention network for aspect-based sentiment analysis. Connect. Sci. 2023, 35, 2189119. [Google Scholar] [CrossRef] [Scilit]
- K, S.; Thilagam, P.S. Multi-layer perceptron based fake news classification using knowledge base triples. Appl. Intell. 2023, 53, 6276–6287. [Google Scholar]
- Trewhela, A.; Figueroa, A. Text-based neural networks for question intent recognition. Eng. Appl. Artif. Intell. 2023, 121, 105933. [Google Scholar] [CrossRef] [Scilit]
- Szabó Nagy, K.; Kapusta, J.; Munk, M. Feature extraction from unstructured texts as a combination of the morphological and the syntactic analysis and its usage in fake news classification tasks. Neural Comput. Appl. 2023, 35, 22055–22067. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Li, F. A text classification method based on LSTM and graph attention network. Connect. Sci. 2022, 34, 2466–2480. [Google Scholar] [CrossRef] [Scilit]
- Chen, D.; Chen, J.; Fang, C.; Zhang, Z. Complex visual question answering based on uniform form and content. Appl. Intell. 2024, 54, 4602–4620. [Google Scholar] [CrossRef] [Scilit]
- Du, J.; Vong, C.M.; Chen, C.P. Novel efficient RNN and LSTM-like architectures: Recurrent and gated broad learning systems and their applications for text classification. IEEE Trans. Cybern. 2020, 51, 1586–1597. [Google Scholar] [CrossRef] [Scilit]
- Li, P.; Liu, Y.; Hu, Y.; Zhang, Y.; Hu, X.; Yu, K. A drift-sensitive distributed LSTM method for short text stream classification. IEEE Trans. Big Data 2022, 9, 341–357. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.; Tan, C. Label-based convolutional neural network for text classification. In Proceedings of the 5th International Conference on Control Engineering and Artificial Intelligence, Sanya, China, 14–16 January 2021; pp. 136–140. [Google Scholar]
- Ren, H.; Lu, H. Compositional coding capsule network with k-means routing for text classification. Pattern Recognit. Lett. 2022, 160, 1–8. [Google Scholar] [CrossRef] [Scilit]
- Sun, J.; Jin, R.; Ma, X.; Park, J.Y.; Sohn, K.A.; Chung, T.S. Gated convolutional neural networks for text classification. In Advances in Computer Science and Ubiquitous Computing: CSA-CUTE 2019; Springer: Singapore, 2021; pp. 309–316. [Google Scholar]
- Kumari, S.; Tyagi, A.K.; Kumar, D.; Sharma, A.K. Role of Emerging Technologies with Natural Language Processing for the Next Decade. In Establishing AI-Specific Cloud Computing Infrastructure; IGI Global Scientific Publishing: Hershey, PA, USA, 2025; pp. 479–502. [Google Scholar]
- Wang, X.; Du, Y.; Chen, D.; Li, X.; Chen, X.; Lee, Y.l.; Liu, J. Constructing better prototype generators with 3D CNNs for few-shot text classification. Expert Syst. Appl. 2023, 225, 120124. [Google Scholar] [CrossRef] [Scilit]
- Wang, Q.; Tian, J.; Li, M.; Lu, M. Text classification based on CNN-BiGRU and its application in telephone comments recognition. Int. J. Comput. Intell. Appl. 2023, 22, 2350021. [Google Scholar] [CrossRef] [Scilit]
- Wei, X.; Huang, J.; Zhao, R.; Yu, H.; Xu, Z. Multi-label text classification model based on multi-level constraint augmentation and label association attention. ACM Trans. Asian Low-Resour. Lang. Inf. Process. 2024, 23, 1–20. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Zhou, J.; Chen, Q.; Zhang, Q.; Gui, T.; Huang, X.J. Domain generalization via causal adjustment for cross-domain sentiment analysis. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), Torino, Italy, 20–25 May 2024; pp. 5286–5298. [Google Scholar]
- Veitch, V.; D’Amour, A.; Yadlowsky, S.; Eisenstein, J. Counterfactual invariance to spurious correlations in text classification. Adv. Neural Inf. Process. Syst. 2021, 34, 16196–16208. [Google Scholar]
- Cheng, L.C.; Chen, Y.L.; Liao, Y.Y. Aspect-based sentiment analysis with component focusing multi-head co-attention networks. Neurocomputing 2022, 489, 9–17. [Google Scholar] [CrossRef] [Scilit]
- Liu, M.; Liu, L.; Cao, J.; Du, Q. Co-attention network with label embedding for text classification. Neurocomputing 2022, 471, 61–69. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Xia, R.; Yang, K.; Zou, K. DARGS: Image inpainting algorithm via deep attention residuals group and semantics. J. King Saud Univ.—Comput. Inf. Sci. 2023, 35, 101567. [Google Scholar] [CrossRef] [Scilit]
- Yang, Z.; Yang, D.; Dyer, C.; He, X.; Smola, A.; Hovy, E. Hierarchical attention networks for document classification. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, San Diego, CA, USA, 12–17 June 2016; pp. 1480–1489. [Google Scholar]
- Wang, G.; Li, C.; Wang, W.; Zhang, Y.; Shen, D.; Zhang, X.; Henao, R.; Carin, L. Joint embedding of words and labels for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Melbourne, Australia, 15–20 July 2018; pp. 2321–2331. [Google Scholar]
- Beltagy, I.; Peters, M.E.; Cohan, A. Longformer: The long-document transformer. arXiv 2020, arXiv:2004.05150. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Li, P.; Hu, X. Combining context-relevant features with multi-stage attention network for short text classification. Comput. Speech Lang. 2022, 71, 101268. [Google Scholar] [CrossRef] [Scilit]
- Goodfellow, I.; Pouget-Abadie, J.; Mirza, M.; Xu, B.; Warde-Farley, D.; Ozair, S.; Courville, A.; Bengio, Y. Generative adversarial networks. Commun. ACM 2020, 63, 139–144. [Google Scholar] [CrossRef] [Scilit]
- Van Steenkiste, S.; Kurach, K.; Schmidhuber, J.; Gelly, S. Investigating object compositionality in generative adversarial networks. Neural Netw. 2020, 130, 309–325. [Google Scholar] [CrossRef] [Scilit]
- Shen, Y.; Yang, C.; Tang, X.; Zhou, B. Interfacegan: Interpreting the disentangled face representation learned by gans. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 44, 2004–2018. [Google Scholar] [CrossRef] [Scilit]
- Gong, Z.; Guan, J.; Wu, W.; Zhang, H.; Zhao, D. Latent Preference Coding: Aligning Large Language Models via Discrete Latent Codes. In Proceedings of the Forty-Second International Conference on Machine Learning, Vancouver, BC, Canada, 13–19 July 2025. [Google Scholar]
- Gu, J.; Shen, Y.; Zhou, B. Image processing using multi-code gan prior. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 3012–3021. [Google Scholar]
- Karras, T.; Aittala, M.; Laine, S.; Härkönen, E.; Hellsten, J.; Lehtinen, J.; Aila, T. Alias-free generative adversarial networks. Adv. Neural Inf. Process. Syst. 2021, 34, 852–863. [Google Scholar]
- Hong, S.; Kim, C.; Yoon, S.; Nam, J.; Cha, S.; Noh, J. Salad: Skeleton-aware latent diffusion for text-driven motion generation and editing. In Proceedings of the Computer Vision and Pattern Recognition Conference, Nashville, TN, USA, 11–15 June 2025; pp. 7158–7168. [Google Scholar]
- Fu, X.; Li, H.; Wang, B.; Yang, H.; Zhao, Y.; Qin, B. Look Beyond Feeling: Unveiling Latent Needs from Implicit Expressions for Proactive Emotional Support. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, Suzhou, China, 4–9 November 2025; pp. 21582–21609. [Google Scholar]
- Ma, Z.; Feng, Y.; Shao, C.; Meng, F.; Zhou, J.; Zhang, M. Efficient speech language modeling via energy distance in continuous latent space. arXiv 2025, arXiv:2505.13181. [Google Scholar] [CrossRef] [Scilit]
- Yenugula, M.; Yadulla, A.R.; Konda, B.; Addula, S.R.; Kasula, V.K. Enhancing mobile data security with zero-trust architecture and federated learning: A comprehensive approach to prevent data leakage on smart terminals. J. Recent Trends Comput. Sci. Eng. JRTCSE 2023, 11, 52–64. [Google Scholar] [CrossRef] [Scilit]
- Du, C.; Chen, Z.; Feng, F.; Zhu, L.; Gan, T.; Nie, L. Explicit interaction model towards text classification. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 6359–6366. [Google Scholar]
- He, P.; Gao, J.; Chen, W. Debertav3: Improving deberta using electra-style pre-training with gradient-disentangled embedding sharing. arXiv 2021, arXiv:2111.09543. [Google Scholar]










| Dataset | Classes | Train | Test | Maximum Sequence Length |
|---|---|---|---|---|
| AG News | 4 | 120k | 7.6k | 135 |
| Yelp P. | 2 | 560k | 38k | 1104 |
| Yelp F. | 5 | 650k | 50k | 1175 |
| Yah.A. | 10 | 1400k | 60k | 3998 |
| DBP. | 14 | 560k | 70k | 1302 |
| Dataset | Language | Classes | Total Numbers | Positive Samples | Negative Samples |
|---|---|---|---|---|---|
| hotel review unbalanced | Chinese | 2 | 7766 | 5322 | 2444 |
| hotel review balanced | Chinese | 2 | 6000 | 3000 | 3000 |
| Weibo review | Chinese | 2 | 119,988 | 59,993 | 59,995 |
| IMDB movie reviews | English | 2 | 50,000 | 25,000 | 25,000 |
| Model | AG News (%) | Yelp P. (%) | Yelp F. (%) | Yah.A. (%) | DBP. (%) |
|---|---|---|---|---|---|
| LEAM | 92.45 | 95.31 | 64.09 | 77.42 | 99.02 |
| LBCNN | 92.90 | 95.82 | 64.38 | 74.89 | 99.21 |
| CWC | 92.39 | 96.48 | 65.85 | 73.85 | 98.72 |
| SLCNN | 91.26 | 96.01 | 64.46 | 70.88 | 98.76 |
| DeBERTa-v3 | 95.31 | 97.01 | 66.93 | 78.00 | 99.29 |
| DCANet (Ours) | 93.86 | 97.03 | 67.48 | 77.30 | 99.31 |
| Model | Hotel Review Unbalanced (%) | Hotel Review Balanced (%) | IMDB (%) | Weibo Review (%) |
|---|---|---|---|---|
| RCNN | 84.81 | 87.81 | 90.80 | 98.32 |
| Transformer | 84.94 | 88.17 | 93.60 | 97.69 |
| TextCNN | 84.04 | 88.31 | 89.20 | 97.92 |
| LSTM | 84.68 | 81.47 | 93.10 | 96.38 |
| Bi-LSTM | 80.79 | 87.47 | 91.10 | 97.81 |
| BiLSTM-attention | 83.27 | 88.65 | 93.80 | 98.31 |
| DCANet-only-MPDM | 80.03 | 80.59 | 90.56 | 94.30 |
| DCANet-only-SAT | 84.46 | 88.29 | 93.28 | 97.43 |
| DCANet | 85.46 | 89.37 | 94.61 | 98.80 |
| Dataset | Model | Test Acc | Params (M) | Peak GPU (GB) | Epoch (s) | Test Infer (s) |
|---|---|---|---|---|---|---|
| IMDb | Transformer | 0.9369 | 66.96 | 1.391 | 120.49 | 10.310 |
| IMDb | DCANet | 0.9461 | 72.94 | 1.640 | 152.80 | 12.60 |
| Transformer | 0.9769 | 102.27 | 2.334 | 315.93 | 33.327 | |
| DCANet | 0.9880 | 116.18 | 2.89 | 421.35 | 42.52 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Han, X.; Wang, C.; Fan, W.; Niu, Z.; Gui, J.; Yu, S. DCANet: Diffusion-Coded Attention Network for Cross-Domain Semantic Noise Mitigation and Multi-Scale Context Fusion. Electronics 2026, 15, 1667. https://doi.org/10.3390/electronics15081667
Han X, Wang C, Fan W, Niu Z, Gui J, Yu S. DCANet: Diffusion-Coded Attention Network for Cross-Domain Semantic Noise Mitigation and Multi-Scale Context Fusion. Electronics. 2026; 15(8):1667. https://doi.org/10.3390/electronics15081667
Chicago/Turabian StyleHan, Xiao, Chunhua Wang, Weijian Fan, Zishuo Niu, Jing Gui, and Shijia Yu. 2026. "DCANet: Diffusion-Coded Attention Network for Cross-Domain Semantic Noise Mitigation and Multi-Scale Context Fusion" Electronics 15, no. 8: 1667. https://doi.org/10.3390/electronics15081667
APA StyleHan, X., Wang, C., Fan, W., Niu, Z., Gui, J., & Yu, S. (2026). DCANet: Diffusion-Coded Attention Network for Cross-Domain Semantic Noise Mitigation and Multi-Scale Context Fusion. Electronics, 15(8), 1667. https://doi.org/10.3390/electronics15081667

