ExplorerArtificial IntelligenceAI
Research PaperResearchia:202604.29064

G-Loss: Graph-Guided Fine-Tuning of Language Models

Sharma Aditya

Abstract

Traditional loss functions, including cross-entropy, contrastive, triplet, and su pervised contrastive losses, used for fine-tuning pre-trained language models such as BERT, operate only within local neighborhoods and fail to account for the global semantic structure. We present G-Loss, a graph-guided loss function that incorporates semi-supervised label propagation to use structural relationships within the embedding manifold. G-Loss builds a document-similarity graph that captures global seman...

Submitted: April 29, 2026Subjects: AI; Artificial Intelligence

Description / Details

Traditional loss functions, including cross-entropy, contrastive, triplet, and su pervised contrastive losses, used for fine-tuning pre-trained language models such as BERT, operate only within local neighborhoods and fail to account for the global semantic structure. We present G-Loss, a graph-guided loss function that incorporates semi-supervised label propagation to use structural relationships within the embedding manifold. G-Loss builds a document-similarity graph that captures global semantic relationships, thereby guiding the model to learn more discriminative and robust embeddings. We evaluate G-Loss on five benchmark datasets covering key downstream classification tasks: MR (sentiment analysis), R8 and R52 (topic categorization), Ohsumed (medical document classification), and 20NG (news categorization). In the majority of experimental setups, G-Loss converges faster and produces semantically coherent embedding spaces, resulting in higher classification accuracy than models fine-tuned with traditional loss functions.


Source: arXiv:2604.25853v1 - http://arxiv.org/abs/2604.25853v1 PDF: https://arxiv.org/pdf/2604.25853v1 Original Link: http://arxiv.org/abs/2604.25853v1

Please sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Access Paper
View Source PDF
Submission Info
Date:
Apr 29, 2026
Topic:
Artificial Intelligence
Area:
AI
Comments:
0
Bookmark
G-Loss: Graph-Guided Fine-Tuning of Language Models | Researchia