HomonymSenseNet: A Context-Aware Transformer Framework with Dynamic Sense Memory and Adaptive Negative Sampling for Semantic Representation Learning

Authors

  • S Subi Research Scholar, Department of Computer Science and Engineering, St. Peter's Institute of Higher Education and Research, Avadi, Chennai, Tamil Nadu 600054, India https://orcid.org/0009-0002-3178-1578
  • B. Shanthini Deputy Dean of Engineering and Professor & Head, Department of Computer Science and Engineering, St. Peter's Institute of Higher Education and Research, Avadi, Chennai, Tamil Nadu 600054, India https://orcid.org/0000-0002-6858-9689

DOI:

https://doi.org/10.21015/vtse.v14i2.2478

Abstract

NLP systems sometimes experience semantic uncertainty from homonym terms with identical lexical forms but varied context-dependent meanings. Traditional embedding methods and transformer-based models struggle to differentiate semantic senses, causing contextual confusion and poor language understanding performance. HomonymSenseNet, a context-aware transformer framework integrating Dynamic Sense Memory Bank (DSMB), Context-Guided Adaptive Negative Sampling (CANS), Multi-Level Context Fusion, Contrastive Sense Separation Learning, and Rare-Sense Reinforcement Optimisation, addresses these limitations. The approach learns highly discriminative contextual embeddings while maintaining low-frequency semantic senses that are under-represented during training. The publicly accessible SemCor and WiC benchmark datasets were used to evaluate Word2Vec, GloVe, BERT, RoBERTa, and SenseBERT models. HomonymSenseNet outperformed all competing approaches on the SemCor dataset with 96.84% accuracy, 96.53% precision, 96.27% recall, and 96.40% F1-score. The suggested framework has 95.71% accuracy and 0.91 MCC on the WiC dataset. Rare-sense detection excelled with 92.88% recall and 93.15% F1-score. Qualitative t-SNE visualisation showed increased semantic cluster separation, while convergence analysis showed quicker optimisation stability. Experimental results show that HomonymSenseNet is a scalable and effective contextual semantic representation learning and homonym comprehension solution for current NLP applications.

References

S. Di, Z. Zhai, and W. Xie, "Revisiting Multi-Task Visual Representation Learning," arXiv preprint arXiv:2601.13886, 2026.

L. Peng and R. Yan, "Primitive Representation Learning," in Multilingual Text Recognition: A Deep Learning Approach, Singapore: Springer Nature Singapore, 2026, pp. 27-58.

Y. Wu, F. Zhu, C. Hu, J. Qian, and Y. Dong, "Attributed Network Representation Learning Based on Graph Neural Network: A Comprehensive Survey," Concurrency and Computation: Practice and Experience, vol. 38, no. 1, p. e70494, 2026.

A. Shrivastava, R. Rameshan, and S. Agnihotri, "Robust Representation Learning in Masked Autoencoders," arXiv preprint arXiv:2602.03531, 2026.

C. Chen, R. Fang, and J. Lai, "Causal representation learning for robust and interpretable audit risk identification in financial systems," in Proceedings of the 2025 7th International Conference on Economic Management and Model Engineering (ICEMME 2025), Springer Nature, 2026, p. 454.

Z. Li, X. Yin, M. Guang, and C. Jiang, "Exposing Disguises and Tracing Illicit Flows: Dual-View Graph Representation Learning for Money Laundering Detection," IEEE Transactions on Computational Social Systems, 2026.

J. P. Jiang, S. Y. Liu, H. R. Cai, Q. L. Zhou, and H. J. Ye, "Representation learning for tabular data: A comprehensive survey," IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.

Y. Liu, Q. Wang, W. Chen, and T. Shen, "TPSformer: knowledge graph representation learning with text and position structure for link prediction," Complex & Intelligent Systems, 2026.

G. Lozupone, A. Bria, F. Fontanella, F. J. Meijer, C. De Stefano, and H. Huisman, "Latent Diffusion Autoencoders: Toward Efficient and Meaningful Unsupervised Representation Learning in Medical Imaging–A Case Study on Alzheimer's Disease," Medical Image Analysis, p. 103932, 2026.

M. Fuest, P. Ma, M. Gui, J. Schusterbauer, V. T. Hu, and B. Ommer, "Diffusion models and representation learning: A survey," IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.

Z. Guo, C. Jiang, T. Zhao, J. Cao, G. Dai, and B. Zhang, "ToPT: Task-Oriented Prompt Tuning for Urban Region Representation Learning," arXiv preprint arXiv:2602.01610, 2026.

J. Zhang, L. Lin, S. Yang, and J. Liu, "Self-Supervised Skeleton-Based Action Representation Learning: A Benchmark and Beyond," International Journal of Computer Vision, vol. 134, no. 1, p. 38, 2026.

M. Wang, N. Wang, L. Mei, Y. Li, X. Liu, S. Hua, and M. Li, "Data-Driven Cross-Lingual Anomaly Detection via Self-Supervised Representation Learning," Electronics, vol. 15, no. 1, p. 212, 2026.

B. W. Yin, J. L. Cao, D. Xu, M. M. Cheng, and Q. Hou, "DFormer++: Improving RGBD Representation Learning for Semantic Segmentation," IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.

Y. Xie, J. Jia, C. Wen, D. Li, and M. Li, "Multi-topology contrastive graph representation learning," Science China Information Sciences, vol. 69, no. 2, p. 122102, 2026.

H. Duan, J. Dong, Y. Zhao, S. Wang, and W. Wang, "Multi-View Fusion Feature Representation Learning for Drug-Target Interaction Prediction," Knowledge-Based Systems, p. 115364, 2026.

P. N. Bui, T. D. Nguyen, J. Bum, D. T. Le, and H. Choo, "Representation Learning with Semantic-aware Instance and Sparse Token Alignments," arXiv preprint arXiv:2601.08165, 2026.

J. Wei, S. Wu, S. Cheng, P. Wang, and F. Lu, "Structure-aware multi-view urban representation learning with coordinated fusion and alignment," Information Processing & Management, vol. 63, no. 5, p. 104672, 2026.

F. Yang, X. Li, W. Wang, and X. Yuan, "Representation learning for 12-lead ECGs via dual-view conditional diffusion and lead-aware attention," Information Processing & Management, vol. 63, no. 3, p. 104569, 2026.

M. E. Peters, M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer, "Deep contextualized word representations," in Proceedings of NAACL-HLT 2018, 2018, pp. 2227–2237.

J. Devlin, M. W. Chang, K. Lee, and K. Toutanova, "BERT: Pre-training of deep bidirectional transformers for language understanding," in Proceedings of NAACL-HLT 2019, 2019, pp. 4171–4186.

Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov, "RoBERTa: A robustly optimized BERT pretraining approach," arXiv:1907.11692, 2019.

E. H. Huang, R. Socher, C. D. Manning, and A. Y. Ng, "Improving word representations via global context and multiple word prototypes," in Proceedings of ACL 2012, 2012, pp. 873–882.

S. Bartunov, D. Kondrashkin, A. Osokin, and D. Vetrov, "Breaking sticks and ambiguities with AdaGram," Journal of Artificial Intelligence Research, vol. 55, pp. 105–154, 2016.

D. Loureiro and A. M. Jorge, "Language modelling makes sense: Propagating representations through WordNet for full-coverage word sense disambiguation," in Proceedings of ACL 2019, 2019, pp. 5682–5691.

Y. Levine, B. Lenz, O. Dagan, O. Ram, D. Padnos, O. Sharir, S. Shalev-Shwartz, A. Shashua, and Y. Shoham, "SenseBERT: Driving some sense into BERT," in Proceedings of ACL 2020, 2020, pp. 4656–4667.

J. Weston, S. Chopra, and A. Bordes, "Memory Networks," in Proceedings of ICLR 2015, 2015.

A. Kumar, O. Irsoy, P. Ondruska, M. Iyyer, J. Bradbury, I. Gulrajani, V. Zhong, R. Paulus, and R. Socher, "Ask me anything: Dynamic Memory Networks for natural language processing," in Proceedings of ICML 2016, 2016, pp. 1378–1387.

T. Gao, X. Yao, and D. Chen, "SimCSE: Simple contrastive learning of sentence embeddings," in Proceedings of EMNLP 2021, 2021, pp. 6894–6910.

P. Khosla, P. Teterwak, C. Wang, A. Sarna, Y. Tian, P. Isola, A. Maschinot, C. Liu, and D. Krishnan, "Supervised contrastive learning," in Advances in Neural Information Processing Systems (NeurIPS), vol. 33, 2020, pp. 18661–18673.

M. Bevilacqua and R. Navigli, "Breaking Through the 80% Glass Ceiling: Raising the State of the Art in Word Sense Disambiguation by Incorporating Knowledge Graph Information," in Proc. 58th Annual Meeting of the Association for Computational Linguistics (ACL), Online, 2020, pp. 2854–2864.

B. Scarlini, T. Pasini, and R. Navigli, "SensEmBERT: Context-Enhanced Sense Embeddings for Multilingual Word Sense Disambiguation," in Proc. 34th AAAI Conf. Artificial Intelligence (AAAI), New York, NY, USA, 2020, pp. 8758–8765.

S. Conia and R. Navigli, "Consec: Word Sense Disambiguation as Continuous Sense Comprehension," in Proc. Conf. Empirical Methods in Natural Language Processing (EMNLP), Punta Cana, Dominican Republic, 2021, pp. 1492–1503.

N. Reimers and I. Gurevych, "Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks," in Proc. Conf. Empirical Methods in Natural Language Processing and Int. Joint Conf. Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China, 2019, pp. 3982–3992.

R. Navigli, "Word Sense Disambiguation: A Survey," ACM Computing Surveys, vol. 41, no. 2, pp. 1–69, Feb. 2009.

M. T. Pilehvar and J. Camacho-Collados, "Embeddings in Natural Language Processing: Theory and Advances in Vector Representations of Meaning," Synth. Lect. Human Language Technologies, vol. 13, no. 4, pp. 1–188, 2020.

R. V. Raja, K. A. Kumar, and V. G. Krishnan, "Condition based ensemble deep learning and machine learning classification technique for integrated potential fishing zone future forecasting," International Journal on Recent and Innovation Trends in Computing and Communication, vol. 11, no. 2, pp. 75–85, 2023.

P. Satyanarayana, U. B. Sofi, B. F. Ahmed, N. Naga Saranya, G. V. S. Padma Rao, and V. Gokula Krishnan, "Enhancement of network security in MANET using refined adaptive Harris Hawks optimization algorithm (RAHHO) for IoT applications," in Proceedings of the 2024 International Conference on Emerging Smart Computing and Informatics (ESCI), Pune, India, 2024, pp. 1–5.

"SemCor Dataset." [Online]. Available: https://www.kaggle.com/datasets/nltkdata/semcor-corpus

"WiC Dataset." [Online]. Available: https://pilehvar.github.io/wic/

Downloads

Published

2026-06-28

How to Cite

S Subi, & B. Shanthini. (2026). HomonymSenseNet: A Context-Aware Transformer Framework with Dynamic Sense Memory and Adaptive Negative Sampling for Semantic Representation Learning. VFAST Transactions on Software Engineering, 14(2), 382–404. https://doi.org/10.21015/vtse.v14i2.2478

Issue

Section

Articles