Abstract
Researchers have developed TSA (Text Semantics Augmentation), a new framework that significantly improves how AI classifies nodes in "text-attributed graphs" (TAGs)—such as citation networks or e-commerce maps—when labeled data is scarce or non-existent. By mining deeper semantic relationships through "semantic neighbors" and generating "semantic opposites," TSA outperforms state-of-the-art models by an average of over 5% in accuracy.
Introduction
Many real-world datasets are structured as Text-Attributed Graphs (TAGs). In a citation network, for example, each node represents a paper with associated text (title/abstract), and edges represent citations. Classifying these nodes into categories is vital for recommendation engines and social network analysis. However, the challenge lies in Few-Shot and Zero-Shot scenarios where labeling data is expensive. Existing methods often align graph structures with text descriptions in a "shallow" manner, ignoring the broader semantic context and the "negative" space—what the text doesn't mean.
Methodology
The TSA framework introduces two novel augmentation techniques to provide richer supervision signals during training:
1. Positive Semantics Matching (PSM)
Instead of just pairing a node with its own description, TSA maintains a "text bank" of 32,000 embeddings. For any given node, it retrieves the $K$ most similar text embeddings from this bank. This forces the model to recognize that nodes with similar semantic descriptions should reside in the same neighborhood of the embedding space.
2. Negative Semantics Contrast (NSC)
To make the model more robust, TSA learns what a node is not. It uses a learnable negative prompt (a set of optimized vectors) to transform a description like "a paper about AI" into a semantically opposite representation. A Margin Loss is then applied to ensure the node is significantly closer to its true description than to this "anti-description."
3. Probability-Average Inference
For zero-shot tasks, TSA calculates the probability of a match using the positive encoder and the probability of a mismatch using the negative encoder. These are averaged to produce a more reliable final classification.
Key Results and Insights
TSA was evaluated on five diverse datasets, including Cora and several Amazon product categories (Art, Industrial, Musical Instruments, and Fitness). The model consistently outperformed 13 state-of-the-art baselines:
- Superior Accuracy: In few-shot settings, TSA improved accuracy by an average of 4.6%. In zero-shot settings, the improvement was even more dramatic, averaging 8.8%.
- Breakthrough Performance: On the Fitness dataset, TSA achieved a staggering 18.3% improvement in zero-shot accuracy over the previous best-performing model (G2P2).
- The Power of Negation: The authors demonstrated that learnable negative prompts have higher information entropy than hand-crafted ones (like simply adding the word "not"), allowing the model to automatically discover effective "opposite" meanings for specific domains.
Limitations and Future Work
While highly effective, TSA's performance is sensitive to the number of "similar texts" ($K$) retrieved; too high a value can introduce noise. Additionally, while Negative Semantics Contrast (NSC) is powerful for zero-shot tasks, it can introduce noise in few-shot settings where prompts are already being tuned with labeled data. Future work may extend this methodology of generating node-text pairs to other multi-modal graph tasks beyond classification.
Summary updated