· Masked / discrete diffusion, Reasoning, Post-training · Source

TAG-DLM: Diffusion Language Models for Text-Attributed Graph Learning

SourceFull paper

Article overview

Verdict

TAG-DLM is a credible unified way to embed graph message passing into a masked diffusion language model without a separate GNN or task-specific heads. It outperforms the listed baselines on all three TAG benchmarks and both tasks, but the formal equivalence is limited to attention-based message passing and the results are reported as single runs.

Main idea

The method linearizes a local ego-graph context and uses a binary topology attention mask to specify which text segments may exchange messages. The answer is placed at a prompt-defined position, allowing node classification and link prediction to share one language-model procedure.

Mechanism

Representation: the target node and sampled k-hop neighbors become text segments; the answer is a masked digit at one [M] position. Architecture: frozen LLaDA-8B-Instruct MDLM with rank-64 LoRA; a binary segment-level star mask lets the target attend to all neighbors, neighbors attend only to themselves and the target, and padding and direct neighbor-to-neighbor links are blocked. For NC, neighbor labels are masked to prevent copying; for LP, candidate edges are removed before context sampling. Training optimizes the MDLM evidence lower bound only at the answer position. With span pooling, fixed diffusion time, bidirectional attention, and approximately constant within-span weights, one denoising layer implements softmax-weighted message passing; additive attention gives a GAT special case, while reverse diffusion composes timestep-conditioned operators. Reproduction plan: (1) choose a target node or pair and remove the candidate edge for LP; (2) sample a 2-hop context with K=10 neighbors per hop; (3) linearize segments and apply the star mask; (4) train only rank-64 LoRA with the answer at [M]; (5) score valid digit logits and compare mask and K ablations. Exact optimizer settings, learning-rate schedule, and training-step count are not specified.

What this is useful for

The approach is useful for static homogeneous graphs whose local context can be serialized as text and whose task permits a prompt-based discrete answer. It is well suited to unifying NC, LP, and cross-dataset transfer without separate task heads; K=10 neighbors per hop is the supported default choice.

Risks / not proven

The formal connection to message passing holds only for softmax-weighted attention aggregation under the stated assumptions and does not cover arbitrary GNNs. The star mask blocks direct neighbor interaction and may lose useful inter-neighbor dependencies. The current system does not explicitly support evolving graphs or heterogeneous node and edge types. Larger contexts add less relevant information, and transfer weakens when label semantics diverge. The stability of the single-run results is unknown.

Full abstract

Text-attributed graphs (TAGs), where each node carries a natural language description, require models to jointly reason over text and graph topology. Existing approaches often handle the two modalities separately: graph neural networks operate on shallow text features, while hybrids of LLMs and graphs use the language model mainly as a text encoder and delegate structure learning to a separate graph module. We propose method that unifies textual reasoning and graph message passing within a masked diffusion language model, a language model with bidirectional attention and generative decoding. For each graph instance, method linearises a sampled local neighbourhood into a token sequence and injects graph structure through a topology attention mask, which realises message passing over the graph. Because the diffusion language model can both interpret and generate text, the method adapts to different tasks simply by changing the prompt, supporting node classification, link prediction, and cross-dataset transfer with no target-specific fine-tuning. Experiments show that method outperforms graph neural networks, graph transformers, and LLM-based baselines on all three TAG benchmarks across two tasks, improving over the strongest baseline by up to 3.9 points.

Source

BibTeX · RIS · Markdown · JSON