InstructG2I: Synthesizing Images from Multimodal Attributed Graphs

Authors: bowen  jin
ziqi  pang
bingjun  guo
yu-xiong  wang
jiaxuan  you
jiawei  han
Venue: NeurIPS_cc_2024_Conference
Published: 2024-05-15 00:26:33

Abstract: In this paper, we approach an overlooked yet critical task Graph2Image: generating images from multimodal attributed graphs (MMAGs). This task poses significant challenges due to the explosion in graph size, dependencies among graph entities, and the need for controllability in graph conditions. To address these challenges, we propose a graph context-conditioned diffusion model called InstructG2I. InstructG2I first exploits the graph structure and multimodal information to conduct informative neighbor sampling by combining personalized page rank and re-ranking based on vision-language features. Then, a graph QFormer encoder adaptively encodes the graph nodes into an auxiliary set of graph prompts to guide the denoising process of diffusion. Finally, we propose graph classifier-free guidance, enabling controllable generation by varying the strength of graph guidance and multiple connected edges to a node. Extensive experiments conducted on three datasets from different domains demonstrate the effectiveness and controllability of our approach. The code is available at https://github.com/PeterGriffinJin/InstructG2I.

Main paper: 
 introduction: 
 This paper investigates an overlooked yet critical source of information for image generation: the pervasive graph-structured relationships of real-world entities. In contrast to the commonly adopted language conditioning in models represented by Stable Diffusion [32] , graph connections have combinatorial complexity and cannot be trivially captured as a sequence. Such graph-structured relationships among the entities are expressed through "Multimodal Attributed Graphs" (MMAGs), where nodes are enriched with image and text information. As a concrete example (Figure 1(a) ), the graph of artworks is constructed by nodes containing images (pictures) and texts (titles), as well as edges corresponding to shared genre and authorship. Such a graph uniquely depicts a piece of artwork by its thousands of peers in the graph, beyond the mere description of language.To this end, we formulate and propose the Graph2Image challenge, requiring the generative models to synthesize image conditioning on both text descriptions and graph connections of a node. This task featuring the image generation on MMAGs is well-grounded in real-world applications. For instance, generating an image for a virtual artwork node in the art MMAG is akin to creating virtual artwork according to the nuanced styles of artists and genres [5] (as in Figure 1(a) ). Similarly, generating an image for a product node connected to other products through co-purchase links in an e-commerce MMAG equates to recommending future products for users [24] . Without surprise, our exploiting the graph-structured information indeed improves the consistency of generated images compared to models only using texts or images as conditioning (Figure 1 Despite the usefulness of graph information, existing methods conditioning on either text [32] or images [2, 41] are incapable of direct integration with MMAGs. Therefore, we propose a graph context-aware diffusion model INSTRUCTG2I inherited from Stable Diffusion that mitigates gaps. A most prominent challenge directly originates from the combinatorial complexity of graphs, which we term as Graph Size Explosion: inputting the entire local subgraph structure to a model, including all the images and texts, is impractical due to the exponential increase in size, especially with additional hops. Therefore, INSTRUCTG2I learns to compress the massive amounts of contexts from the graph into a set of graph conditioning tokens with fixed capacity, which functions alongside the common text conditioning tokens in Stable Diffusion. Such a compression process is enhanced with a semantic personalized pagerank-based graph sampling approach to actively select the most informative neighboring nodes based on both structural and semantic perspectives.Besides the number of contexts, the graph structures in MMAGs additionally specify the proximity of entities, which is not captured in conventional text or image conditioning. This challenge of "Graph Entity Dependency" reflects the implicit preference of image generation: synthesizing a shirt image linked to "light-colored" clothing is likely to have a "pastel tone" (image-image dependency), and generating a picture titled "a running horse" should reference interconnected animal images rather than scenic ones (text-image dependency). To enable the nuanced proximity understanding on graphs, we further improve our graph conditioning tokens via a Graph-QFormer architecture learning to encode the graph information guided by texts.Finally, we propose that our graph conditioning is a natural interface for controllable generation, reflecting the strength of edges in MMAGs. Take the virtual art generation (Figure 1 (c)) for example: INSTRUCTG2I can flexibly offer different strengths of graph guidance and can smoothly transition between the style of Monet and Kandinsky, defined by its strength of connection with either of the two artists. Such an advantage is grounded for real-world application and is a plug-and-play test-time algorithm inspired by classifier-free guidance [18] . In sum, our contributions include:• Formulation and Benchmark. We are the first to identify the usefulness of multimodal attributed graphs (MMAGs) in image synthesis and formulate the Graph2Image problem. Our formulation is supported by three benchmarks grounded in the real-world applications of art and e-commerce.• Algorithm. Methodologically, we propose INSTRUCTG2I, a context-aware diffusion model that effectively encodes graph conditional information as graph prompts for controllable image generation (as shown in Figure 1(b, c )).• Experiments and Evaluation. Empirically, we conduct experiments on graphs from three different domains, demonstrating that INSTRUCTG2I consistently outperforms competitive baselines (as shown in Figure 1 (b)).2 Problem FormulationQuestion: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? Answer: [Yes] Justification: The contributions and scope is reflected in the abstract and introduction. Guidelines:• The answer NA means that the abstract and introduction do not include the claims made in the paper. • The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. • The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. • It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. 
multimodal attributed graphs: 
 Definition 1 (Multimodal Attributed Graphs (MMAGs)) A multimodal attributed graph can be defined as G " pV, E, P, Dq, where V, E, P and D represent the sets of nodes, edges, images, and documents, respectively. Each node v i P V is associated with some textual information d vi P D and some image information p vi P P.For example, in an e-commerce product graph, nodes (v P V) represent products, edges (e P E) denote co-viewed semantic relationships, images (p P P) are product images, and documents (d P D) are product titles. Similarly, in an art graph (shown in Figure 1 ), nodes represent artworks, edges signify shared artists or genres, images are artwork pictures, and documents are artwork titles.In this work, we focus on graphs where edges provide semantic correlations between images (nodes). For instance, in an e-commerce product graph, connected products (those frequently co-viewed by many users) are highly related. Similarly, in an art graph, linked artworks (those created by the same author or within the same genre) are likely to have similar styles.In this work, we explore the problem of node image generation on MMAGs. Given a node v i in an MMAG G, our objective is to generate p vi based on d vi and G. This problem has multiple real-world applications. For example, in e-commerce, it translates to generating the image (p vi ) for a product (v i ) based on a user query (d vi ) and user purchase history (G), which is a generative retrieval task. In the art domain, it involves generating the picture (p vi ) for an artwork (v i ) based on its title (d i ) and its associated artist style or genre (G), which is a virtual artwork creation task.Definition 2 (Node Image Generation on MMAGs) In a multimodal attributed graph G " pV, E, P, Dq, given a node v i P V within the graph G with a textual description d vi , the goal is to synthesize p vi , the corresponding image at v i , with a learned model pvi " f pv i , d vi , Gq.Our evaluation emphasizes instance-level similarity, assessing how closely pvi matches p vi . We conduct evaluations on artwork graphs, e-commerce graphs, and literature graphs. More details can be found in Section 4.1.Question: Does the paper discuss the limitations of the work performed by the authors? Answer: [Yes] Justification: We discuss the limitations of this work in the conclusion section and Appendix section A.1. Guidelines:• The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. • The authors are encouraged to create a separate "Limitations" section in their paper.• The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. • The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. • The authors should reflect on the factors that influence the performance of the approach.For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. • The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. • If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. • While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. 
methodology: 
 In this section, we present our INSTRUCTG2I framework, overviewed in Figure 2 . We begin by introducing graph conditions into stable diffusion models in Section 3.1. Next, we discuss semantic personalized PageRank-based sampling to select informative graph conditions in Section 3.2. Furthermore, we propose Graph-QFormer to extract dependency-aware representations for graph conditions in Section 3.3. Finally, we introduce controllable generation to balance the condition scale between text and graph guidance, as well as manage multiple graph guidances in Section 3.4.Stable Diffusion (SD). INSTRUCTG2I is built upon Stable Diffusion (SD). SD conducts diffusion in the latent space, where an input image x is first encoded from pixel space into a latent representation z " Encpxq. A decoder then transfers the latent representation z 1 back to the pixel space, yielding x 1 " Decpz 1 q. The diffusion model generates the latent representation z 1 conditioned on a text prompt c T . The training objective of SD is defined as follows:L " E z"Encpxq,c T ,ϵ"N p0,1q,t " }ϵ ´ϵθ pz t , t, hpc T qq} 2 ‰ .(1) At each timestep t, the denoising network ϵ θ p¨q predicts the noise by conditioning on the current latent representation z t , timestep t and text prompt vectors hpc T q. To compute hpc T q P R dˆlc T , where l c T is the length of c T and d is the hidden dimension, the text prompt c T is processed by the CLIP text encoder [31] : hpc T q " CLIPpc T q.Introducing Graph Conditions into SD. In the context of MMAGs, synthesizing the image for a node v i involves not only the text d vi , but also the semantic information from the node's proximity on the graph. Therefore, we introduce an auxiliary set of graph conditioning tokens h G pc G q to the SD models (as shown in Figure 2 (c)), working in parallel with the existing text conditions h T pc T q.EQUATIONwhere l c G is the length of the graph condition. The training objective then becomes:L " E z"Encpxq,c T ,c G ,ϵ"N p0,1q,t " }ϵ ´ϵθ pz t , t, hpc T , c G qq} 2 ‰ .For h T pc T q, we can directly use the CLIP text encoder as in the original SD. However, determining c G and h G p¨q is more complex. We will discuss the details of c G and h G p¨q in the following sections.A straightforward approach to developing c G pv i q involves using the entire local subgraph of v i . However, this is impractical due to the exponential growth in size with each additional hop, leading to excessively long context sequences. To address this, we leverage both graph structure and node semantics to select informative c G .Structure Proximity: Personalized PageRank (PPR). Inspired by [10] , we first adopt PPR [15] to identify related nodes from a graph structure perspective. PPR processes the graph structure to derive a ranking score P i,j for each node v j relative to node v i , where a higher P i,j indicates a greater degree of "similarity" between v i and v j . Let P P R nˆn be the PPR matrix of the graph, where each row P i,: represents a PPR vector toward a target node v i . The matrix P is determined by:EQUATION)where β is the reset probability for PPR and Â is the normalized adjacency matrix. Once P is computed, we define the PPR-based graph condition c Gppr of node v i as the top-K ppr PPR neighbors of node v i :EQUATIONSemantic Proximity: Similarity-based Reranking. However, solely relying on PPR may result in a graph condition set containing images (e.g., scenery pictures) that are not semantically related to our target node (e.g., a picture titled "running horse"). To address this, we propose using a semantic-based similarity calculation function Simpd, pq (e.g., CLIP) to rerank v j P c Gppr pv i q based on the relatedness of p vj to d vi . The final graph condition c G pv i q is calculated by:c G pv i q " argmax c G pviqĂc Gppr pviq,|c G pviq|"K ÿ vj Pc G pviqSimpd vi , p vj q.(6)After we derive c G pv i q from the previous step, the problem comes to how can we design h G p¨q to extract meaningful representations from c G pv i q. Here we focus more on how to utilize the image features from c G pv i q (i.e., tp vj |v j P c G pv i qu) since we find they are more informative for v i image generation compared with text features from c G pv i q (i.e., td vj |v j P c G pv i qu) (shown in Section 4.3).Simple Baseline: Encoding with Pretrained Image Encoders [31] . A straightforward way to obtain representations for v j P c G pv i q is to directly apply some pretrained image encoders g img p¨q (e.g., CLIP [31] ):EQUATIONwhere ' denotes the concatenation operation. However, this simple design has two significant limitations: 1) The encoding for each p vj pv j P c G pv i qq is isolated from others in c G pv i q and failed to capture the image-image graph dependency. For example, the style extraction from one picture (p vj ) can benefit from the other pictures created by the same artist (in c G pv i q). 2) The encoding for each p vj is independent to d vi , which fails to capture the text-image graph dependency. For example, when we are creating a picture titled "running horse" (d vi ), it is desired to offer more weight on horse pictures in c G pv i q rather than scenery pictures.Graph-QFormer. To address these limitations, we propose Graph-QFormer as h G p¨q to learn representations for c G while considering the graph dependency information. As shown in Figure 2 , Graph-QFormer consists of two Transformer [35] modules motivated by [26] : (1) a self-attention module that facilitates deep mutual information exchange between previous layer hidden states, capturing image-image dependencies and (2) a cross-attention module that weights samples in c G using text guidance, capturing text-image dependencies.Let H ptq c G pviq P R dˆlc G denote the hidden states outputted by the t-th Graph-QFormer layer. We use the token embeddings of d vi as the input query embeddings to provide text guidance:EQUATIONwhere x k is the k-th token embedding in d vi and l c G " |d vi |. The multi-head self-attention layer (MHA SAT ) is calculated byEQUATIONwhere q, k, v denotes query, key, and value channels in the Transformer. The output H 1ptq c G pviq is then inputted to the multi-head cross-attention layer (MHA CAT ), calculated byEQUATIONwhere Z c G pviq " 'rg img pp vj qs vj Pc G pviq P R dˆn represents the image embeddings extracted from a fixed pretrained image encoder and n is the number of embeddings. Finally we adopt h G pc G pv i qq " H pLq c G pviq , where L is the number of layers in Graph-QFormer. Connection between INSTRUCTG2I and GNNs. As illustrated in Figure 2 , INSTRUCTG2I employs a Transformer-based architecture as the graph encoder. However, it can also be interpreted as a Graph Neural Network (GNN) model. GNN models [38] primarily use a propagation-aggregation paradigm to obtain node representations (N piq denotes the neighbor set of i):a pl´1q ij " PROP plq ´hpl´1q i , h pl´1q j ¯, `@j P N piq ˘; h plq i " AGG plq ´hpl´1q i , ta pl´1q ij |j P N piqu ¯.Similarly, in INSTRUCTG2I, Eq.(4)(5)(6) can be regarded as the propagation function PROP plq , while the aggregation step AGG plq corresponds to the combination of Eq.( 9) and Eq.( 10).The concept of classifier-free guidance, introduced by [18] , enhances the performance of conditional image synthesis by modifying the noise prediction, e θ p¨q, with the output from an unconditional model. This is formulated as: εθ pz t , cq " ϵ θ pz t , ∅q `s ¨pϵ θ pz t , cq ´ϵθ pz t , ∅qq, where spą 1q is the guidance scale. The intuition is that ϵ θ learns the gradient of the log image distribution and increasing the contribution of ϵ θ pcq ´ϵθ p∅q will enlarge the convergence to the distribution conditioned on c.In our task, the score network εθ pz t , c G , c T q is conditioned on both text c T " d i and the graph condition c G . We compose the score estimates from these two conditions and introduce two guidance scales, s T and s G , to control the contribution strength of c T and c G to the generated samples respectively. Our modified score estimation function is:EQUATIONFor cases requiring fine-grained control over multiple graph conditions (i.e., different edges), we extend the formula as follows:EQUATIONwhere c pkq G is the k-th graph condition. For example, to create an artwork that combines the styles of Monet and Van Gogh, the neighboring artworks by Monet and Van Gogh on the graph would be c p1q G and c p2q G , respectively. Further details on the derivation of our classifier-free guidance formulations can be found in Appendix A.3.Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? • Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. 
experimental setups: 
 Datasets. We conduct experiments on three MMAGs from distinct domains: ART500K [27] , Amazon [16] , and Goodreads [37] . ART500K is an artwork graph with nodes representing artworks and edges indicating same-author or same-genre relationships. Each artwork node includes a title (text) and a picture (image). Amazon is a product graph where nodes represent products and edges denote co-view relationships. Each product is associated with a title (text) and a picture (image). Goodreads is a literature graph where nodes represent books and edges convey similar-book semantics. Each book node contains a title and a front cover image. Dataset statistics can be found in Appendix A.4.Baselines. We compare INSTRUCTG2I with two groups of baselines: 1) Text-to-image methods: This includes Stable Diffusion 1.5 (SD-1.5) [32] and SD 1.5 fine-tuned on our datasets (SD-1.5 FT).2) Image-to-image methods: This includes InstructPix2Pix [2] and ControlNet [41] , both initialized with SD 1.5 and fine-tuned on our datasets. We use the most relevant neighbor, as selected in Section 3.2 as the input image for these baselines, allowing them to partially utilize graph information.Metrics. As indicated in Section 2.2, our evaluation mainly concerns the consistency of synthesized images with the ground truth image on the node. Therefore, our evaluation adopts the CLIP [31] and DINOv2 [29] score for instance-level similarity, in addition to the conventional FID [17] metric for image generation. For the CLIP and DINOv2 scores, we utilize CLIP and DINOv2 to obtain representations for both the generated and ground truth images and then calculate their cosine similarity. For FID, we calculate the distance between the distribution of the ground truth images and the distribution of the generated images.Quantitative Evaluation. The quantitative results are presented in Table 1 and Figure 3 . From Table 1 , we observe the following: 1) INSTRUCTG2I consistently outperforms all the baseline methods, highlighting the importance of graph information in image synthesis on MMAGs. 2) Although InstructPix2Pix and ControlNet partially consider graph context, they fail to capture the semantic signals from the graph comprehensively. In Figure 3 , we plot the aver- Qualitative Evaluation. We conduct a qualitative evaluation by randomly selecting some generated cases. The results are shown in Figure 4 , where we provide the sampled neighbor images from the graph, text prompts, and the ground truth images.From these results, we observe that INSTRUCTG2I generates images that best fit the semantics of the text prompt and context from the graph. For instance, when generating a picture for "the crater and the clouds", the baselines either capture only the content ("crater" and "clouds") without the style learned from the graph (Stable Diffusion and InstructPix2Pix) or adopt a similar style but lose the desired content (ControlNet). In contrast, INSTRUCTG2I effectively learns from the neighbors on the graph and conveys the content accurately. Study of Graph Condition for SD Variants. In INSTRUCTG2I, we introduce graph conditions into SD by encoding the images from c G into graph prompts, which serve as conditions together with text prompts for SD's denoising step. In this section, we demonstrate the significance of this design by comparing it with other variants that utilize graph conditions in SD: InstructPix2Pix (IP2P) with neighbor images and SD finetuned with neighbor texts. For the first variant, we perform mean pooling on the latent representations of images in c G , according to the IP2P's setting, and use this as the input image representation for IP2P. This variant has the same input information as INSTRUCTG2I. For the second variant, we utilize text information from neighbors instead of images, concatenate it with the text prompt, and fine-tune the SD. The results are shown in Table 2 , where INSTRUCTG2I consistently outperforms both variants. This demonstrates the advantage of leveraging image features from c G and the effectiveness of our model design.Study of Graph-QFormer. We first demonstrate the effectiveness of Graph-QFormer by replacing it with the simple baseline mentioned in Eq.( 7), denoted as "-Graph-QFormer". We then compare it with graph neural network (GNN) baselines including GraphSAGE [13] and GAT [36] , integrated into INSTRUCTG2I in the same manner. The results, presented in Table 2 , show that INSTRUCTG2I with Graph-QFormer consistently outperforms both the ablated version and GNN baselines. This demonstrates the effectiveness of Graph-QFormer design.Study of the Semantic PPR-based Neighbor Sampling. We propose a semantic PPR-based sampling method that combines structure and semantics for neighbor sampling on graphs, as detailed in Section 3.2. In this section, we demonstrate the effectiveness of this approach by conducting ablation studies that remove either or both components. The results, shown in Figure 5 , indicate that our sampling methods effectively identify neighbor images that contribute most significantly to the ground truth in both semantics and style. This underscores the value of integrating both structural and semantic information in our sampling approach. prompt "a man playing piano" conditioned on single or multiple graph guidance (styles of "Picasso" and "Courbet"). Please refer to Figure 1 for another example between Monet and Kandinsky.Text Guidance & Graph Guidance. In Eq.( 11), we discuss the control of guidance from both text and graph conditions. To illustrate its effectiveness, we provide an example in Figure 6 (a). The results show that as text guidance increases, the generated image incorporates more of the desired content. Conversely, as graph guidance increases, the generated image adopts a more desired style. This demonstrates the ability of our method to balance content and style through controlled guidance.Multiple Graph Guidance: Virtual Artist. In Eq.( 12), we demonstrate how multiple graph guidance can be managed for controllable image generation. We present a use case, virtual artwork creation, to showcase its effectiveness (shown in Figure 6(b) ). The goal of this task is to create an image that depicts specific content (e.g., a man playing piano) in the style of one or more artists (e.g., Picasso and Courbet). This is akin to adding a new node to the graph that links to the artwork nodes created by the specified artists and generating an image for this node. The results indicate that when single graph guidance is provided, the generated artwork aligns with that artist's style. As additional graph guidance is introduced, the styles of the two artists blend together. This demonstrates that our method offers the flexibility to meet various control requirements, effectively balancing different types of graph influences.Cross-attention Weight Study in Graph-QFormer. We conduct a cross-attention study for Graph-QFormer to understand how different sampled neighbors on the graph are selected based on the text prompt and contribute to the final image generation. We randomly select a case with the text prompt and neighbor images and plot the cross-attention weight map shown in Figure 7 . From the weight map, we can find that Graph-QFormer learns to assign higher weight to pictures 1 and 4 which are related to "raising" and "Lazarus" in the text prompt respectively. The results indicate that Graph-QFormer effectively learns to select the images that are most relevant to the text prompt. 
related works: 
 Diffusion Models. Recent advancements in diffusion models have demonstrated significant success in generative applications. Diffusion models [4, 7] generate compelling examples through a step-wise denoising process, which involves a forward process that introduces noise into data distributions and a reverse process that reconstructs the original data [19] . A notable example is the Latent Diffusion Model (LDM) [32] , which reduces computational costs by applying the diffusion process in a low-resolution latent space. In the domain of diffusion models, various forms of conditioning are employed to direct the generation process, including labels [6] , classifiers [8] , texts [28] , images [2] , and scene graphs [39] . These conditions can be incorporated into diffusion models through latent concatenation [33] , cross-attention [1] , and gradient control [12] . However, most existing works neglect the relational information between images and cannot be directly applied to image synthesis on MMAGs.Learning on Graphs. Early studies on learning on graphs primarily focus on representation learning for nodes or edges based on graph structures [3, 14] . Methods such as Deepwalk [30] and Node2vec [11] perform random walks on graphs to derive vector representation for each node. Graph neural networks (GNNs) [38, 43] are later introduced as a learnable component that incorporates both initial node features and graph structure. GNNs have been applied to various tasks, including classification [25] , link prediction [42] , and recommendation [21] . For instance, GraphSAGE [13] employs a propagation and aggregation paradigm for node representation learning, while GAT [36] introduces an attention mechanism into the aggregation process. Recently, research has increasingly focused on integrating text or image features with graph structures [22, 44] . For example, Patton [23] proposes pretraining language models on text-attributed graphs. However, these existing works mainly target representation learning on single-modal graphs and are not directly applicable to the image synthesis from multimodal attributed graph (MMAG) task addressed in this paper. 
conclusions: 
 In this paper, we identify the problem of image synthesis on multimodal attributed graphs (MMAGs).To address this challenge, we propose a graph context-conditioned diffusion model that: 1) Samples related neighbors on the graph using a semantic personalized PageRank-based method; 2) Effectively encodes graph information as graph prompts by considering their dependency with Graph-QFormer; 3) Generates images under control with graph classifier-free guidance. We conduct systematic experiments on MMAGs in the domains of art, e-commerce, and literature, demonstrating the effectiveness of our approach compared to competitive baseline methods. Extensive studies validate the design of each component in INSTRUCTG2I and highlight its controllability. Future directions include joint text and image generation on MMAGs and capturing the heterogeneous relations between image and text units on MMAGs.Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results?Answer: [Yes]Justification: Detailed experimental settings are discussed in Appendix A.5.Guidelines:• The answer NA means that the paper does not include experiments.• The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. • The full details can be provided either with the code, in appendix, or as supplemental material. 
experiment statistical significance: 
 Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?Answer: [Yes]Justification: We provide the p-value in section 4.2.Guidelines:• The answer NA means that the paper does not include experiments.• The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. • The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).• The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) • The assumptions made should be given (e.g., Normally distributed errors). • It should be clear whether the error bar is the standard deviation or the standard error of the mean. Guidelines:• The answer NA means that there is no societal impact of the work performed.• If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. • Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.• The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. • The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. • If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). 
safeguards: 
 Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)?Answer: [NA] Justification: The paper poses no such risks Guidelines:• The answer NA means that the paper poses no such risks.• Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. • Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. • We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.12. Licenses for existing assets Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?Answer: [Yes] Justification: The licenses for the assets are discussed in Appendix A.4.Guidelines:• The answer NA means that the paper does not use existing assets.• The authors should cite the original paper that produced the code package or dataset.• The authors should state which version of the asset is used and, if possible, include a URL. • The name of the license (e.g., CC-BY 4.0) should be included for each asset.• For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. • If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. • For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. 
 
 Appendix: In this work, we focus on node image generation from multimodal attributed graphs, utilizing Stable Diffusion 1.5 as the base model for INSTRUCTG2I. Due to computational constraints, we leave the exploration of larger diffusion models, such as SDXL, for future work. Additionally, we model the graph as homogeneous, not accounting for heterogeneous node and edge types. Considering that different types of nodes and edges convey distinct semantics, future research could investigate how to perform Graph2Image on heterogeneous graphs.While stable diffusion models [32] have demonstrated advanced image generation capabilities, studies highlight several drawbacks, such as the uncontrollable generation of NSFW content [9] , vulnerability to adversarial attacks [45] , and being computationally intensive and time-consuming [34] . In INSTRUCTG2I, we address these challenges by introducing graph conditions into the image generation process. However, since INSTRUCTG2I employs stable diffusion as the backbone model, it remains susceptible to these limitations.In Section 3.4, we discuss controllable generation to balance text and graph guidances (c T and c G ) as well as managing multiple graph guidances (c pkq G ). We introduce s T and s G to control the strength of text conditions and graph conditions and have the modified score estimation shown as follows (copied from Eq.( 11)):εθ pz t , c G , c T q " ϵ θ pz t , ∅, ∅q `sT ¨pϵ θ pz t , ∅, c T q ´ϵθ pz t , ∅, ∅qq `sG ¨pϵ θ pz t , c G , c T q ´ϵθ pz t , ∅, c T qq.In this section, we will provide mathematical derivation on how these modified score estimations are developed. Noted that INSTRUCTG2I learns P pz|c G , c T q, the distribution of image latents z conditioned on text information c T and graph information c G , which can be expressed as:EQUATION)INSTRUCTG2I learns and estimates the score [20] of the data distribution, which can also be interpreted as the gradient of the log distribution probability. By taking a log on both sides of Eq.( 13), we can attain the following equation:EQUATIONAfter calculating the derivation on both sides of Eq.( 14), we can obtain:EQUATIONThis corresponds to our classifier-free guidance equation shown in Eq. (11) , where s T controls how the data distribution shifts toward the zone where P pc T |zq assigns a high likelihood to c T and s G determines how the data distribution leans toward the region where P pc G |c T , zq assigns a high likelihood to c G . Although there are other ways to derive the modified score estimation function (e.g., switching c T and s G or making it symmetric), we empirically find that our derivation contributes to both advanced performance (since P pc T |zq is well learned in the base model) and high efficiency (since the denoising operation only needs to be conducted three times rather than four times compared with symmetric setting).If given multiple graph conditions, we utilize s pkq G to control the strength for each of them and have the derived score estimation function as follows (copied from Eq.( 12)): If multiple graph conditions are given, Eq.( 13) then becomes:εθ pz t , c G , c T q " ϵ θ pz t , ∅, ∅q `sT ¨pϵ θ pz t , ∅, c T q ´ϵθ pz t , ∅, ∅qq `ÿ s pkq G ¨pϵ θ pz t , c pkq G , c T q ´ϵθ pz t , ∅, c T qq.EQUATION)where M is the total number of graph conditions. Assume c pkq G are independent from each other, then we can attain:EQUATION)Similar to Eq.( 15), we can obtain:EQUATIONThis corresponds to the classifier-free guidance equation shown in Eq. (12) , where s pkq G determines how the data distribution leans toward the region where P pc pkq G |c T , zq assigns a high likelihood to the graph condition c pkq G .The statistics of the three datasets can be found in Table 3 . Since Amazon and Goodreads both have multiple domains, we select one from each of them considering the graph size: Beauty domain from Amazon and Mystery domain from Goodreads.We randomly mask 1,000 nodes as testing nodes from the graph for all three datasets and serve the remaining nodes and edges as the training graph.In implementing INSTRUCTG2I, we initialize the text encoder and U-Net with the pretrained parameters from Stable Diffusion 1.5 1 . We use the pretrained CLIP image encoder as our fixed image encoder to extract features from raw images. For Graph-QFormer, we empirically find that initializing it with the CLIP text encoder parameters can improve performance compared with random initialization.We use AdamW as the optimizer to train INSTRUCTG2I. The training of all methods including INSTRUCTG2I and baselines on ART500K and Amazon are conducted on two A6000 GPUs, while that on Goodreads is performed on four A40 GPUs. Each image is encoded as four feature vectors with the fixed image encoder following [40] and we insert one cross-encoder layer after every two self-attention layers in Graph-QFormer following [26] . The detailed hyperparameters are in Table 4 .https://huggingface.co/runwayml/stable-diffusion-v1-5 


Decision: The paper introduces the Graph2Image problem and develops the InstructG2I model to incorporate graph structure and multimodal information for better image generation. Empirical evaluations demonstrate the strong performance of the model. The paper is well-written and easy to follow. Reviewers are generally positive about this work. They agree that the paper studies a novel task and proposes a reasonable approach. The authors are suggested to address reviewers' comments, e.g., clearer motivation discussion and notations, for paper revision. 

Based on the above summary, I recommend acceptance.

Reviews: review: paper_summary: paper_summary: This paper introduces a novel approach for controllable image generation using both graph and text conditions. The authors propose that additional context information from multimodal attributed graphs (MMAGs) can enhance the performance of diffusion models. Specifically, they formulate the Graph2Image problem and develop the INSTRUCTG2I model to incorporate contextual information during the generation process. Empirical evaluations demonstrate the strong performance of the model.
strength_weakness: strength_weakness: 1. The overall setting is questionable. The authors integrate graph information using a Graph-QFormer and context information such as artists and genres, stored in graph prompt tokens. Given the large graph size, they only use subgraph structures. Consequently, the Stable Diffusion (SD) model absorbs additional information from similar artworks, which could be derived from image or text prompts alone. This raises the question of whether an additional condition structure is necessary. I suggest the authors demonstrate a unique application where standard models with text and image prompting capabilities are insufficient.
questions: questions: 1. Are there any unique scenarios where only graph input can significantly improve SD performance?

As my review is overdue, I welcome concise feedback and am open to clarifying any potential misunderstandings.
limitations: limitations: N/A
paper_summary: paper_summary: The paper introduces a new task graph2image which is to generate images conditioned on both text descriptions and graph information, which improves consistency of generated images compared to conditioned only on texts or images. To address combinatorial complexity of graphs and dependencies among graph entities, the paper proposes a graph context-conditioned diffusion model InstructG2I for generating images from multimodal attributed graph.
strength_weakness: strength_weakness: While I do not have a major concern, an ablation study on scalability to graph size seems to be missing. How large graphs is the method able to be applied?
questions: questions: - Why is the DINOv2 score on Goodreads dataset significantly low compared to that of ART500K or Amazon datsets?
limitations: limitations: Yes the paper addresses the limitation in Appendix A.1.
paper_summary: paper_summary: This paper focuses on the problem of image synthesis on multimodal attributed graphs (MMAGs) and proposes a graph context-conditioned diffusion model, INSTRUCTG2I, to address the challenge in this setting. In particular, it proposes a semantic personalized PageRank-based method to sample related neighbors in the graph.  Then, the INSTRUCTG2I can effectively encode graph conditional information as graph prompts with Graph-QFormer. Systematic experiments on MMAGs demonstrate the effectiveness of the methods proposed in this paper compared to competitive baseline methods.
strength_weakness: strength_weakness: 1. The description in eq.10 may be incorrect. Please check more carefully.
2. Subsection 3.4 is more challenging to understand when reading. The authors' descriptions of some symbols in Eq. 10 and Eq. 11 are not exhaustive.
3. The results of the ablation experiments in Table 2 indicate that using a GNN such as GAT or GraphSAGE to aggregate graph information seems to be worse than the straightforward approach in Eq.7. Authors are requested to give a more detailed discussion with a reasonable explanation.
4. The images sampled by the semantic PPR-based sampling shown in Figure 5 appear to have the same image as the ground truth. Does this indicate that the proposed method suffers from label leakage?
questions: questions: 1. Please see the weaknesses.
2. I wonder if the authors will compare it to other state-of-the-art image generation models, such as some Multimodal LLMs that are so prevalent nowadays.
limitations: limitations: This paper has reasonably discussed the limitations.
paper_summary: paper_summary: The authors propose an approach to enhance image synthesis using multimodal attributed graphs, adopting a strategy to condition image generation via a tokenization scheme on graph structure.
strength_weakness: strength_weakness: Please see questions and concerns below.  My general feeling is the paper is fairly incremental in its introduction of a mechanism to encode graph condition into the conditioning for generation.  Many design choices for graph conditioning are not discussed well and the quantitative results for some of these choices are missing which hurts the overall impact of the work.
questions: questions: - Typos: 
  - Line 18: "graph-structued"

- The motivation proposed in lines 28-30 is a little bit confusing, since the scenario the authors discuss here (e.g. virtual artwork creation based on nuanced styles of artists and genres) seems like it could be well-handled by text rather than explicitly using graph structure.   

- There is limited prior work in multimodal graph learning, as the authors mention.  The authors may want to reference and position their work with respect to the recent [1] which offers multiple datasets and focuses on utility of GNN methods for node/link/graph-level tasks rather than generative tasks.

- Nit: the notation is a bit awkward compared to conventional graph literature which typically uses $\mathcal{V}, \mathcal{E}, \mathcal{X}, \mathcal{F}$ or something similar to indicate node-set, edge-set, node-features, and edge-features.  The authors proposed notation in line 72 seems to define P and D as different sets of images / documents compared to the nodes V, but then mentions that each node has some textual information and image information corresponding to P and D (it should be made clear whether this information is just features, or actual node relationships -- if the latter, it seems that P and D should be contained within the nodeset V). 

- The process described in line 115 around introducing tokens to help condition the representation using graph structure is also explored in some related works, e.g. [2].  Perhaps the authors could consider adopting a similar approach if it makes sense in this task, since the tokenization scheme as the authors of [2] point out is key in injecting the right level of information to the model.

- Comment: the notation in pages 3-5 is quite heavy and would benefit from a symbol table.

- Section 3.2 proposes a heuristic solution for neighbor selection.   I'd encourage exploring solutions designed for learnable importance of multiple edge types similar to [3].

- Can the authors discuss what sort of techniques were used to incorporate graph conditions for the baseline models like InstructPix2Pix and SD?

- Is there a quantitative understanding or experiment for the PPR neighbor based sampling approach?  It seems this is one of the more heuristic parts of the paper where the design of the sampling procedure (two phase PPR + semantic re-ranking) is less conventional and deviates from other aggregation mechanisms explored in previous literature like attention-based selection, learnable importance of multiple edge types, etc.  The qualitative experiment is helpful but not terribly convincing in terms of the actual performance impact in aggregate.

[1] Multimodal Graph Benchmark (Zhu et al, 2024)

[2] LLaGA: Large Language and Graph Assistant (Chen et al, ICML 2024)

[3] Pathfinder Discovery Networks for Neural Message Passing (Rozemberczki et al, WWW 2021)
limitations: limitations: Yes, Appendix A.1

Comments: title: Thank you
reply to author's response
comment: Dear Reviewer 7dPX,

Thank you so much for your reply! We will add those discussions to the revision according to your suggestions.

We would like to emphasize the contributions of the work again here:
- (**Problem**). We are pioneers in recognizing the potential of multimodal attributed graphs (MMAGs) for image synthesis and introducing the Graph2Image problem. 
- (**Algorithm**). We introduce InstructG2I, a context-aware diffusion model that adeptly encodes graph conditional information as graph prompts for controllable image generation.
- (**Benchmark**). We construct a benchmark with graphs from three domains (art, e-commerce, literature) to evaluate the models on the Graph2Image problem. The benchmark can be used for future exploration of this problem.
- (**Experiments**). We perform experiments on the benchmark, showing that InstructG2I consistently surpasses competitive baselines.

For the (**Algorithm**) part, we propose four main novel components:
- *Semantic PPR-based neighbor sampling*: It helps discover the informative neighbors based on semantic and structure information for target node image generation.
- *Graph-QFormer*: It extracts the common features of the selected neighbors and aggregates the neighbor information as graph conditional tokens for the stable diffusion model, considering the image-image dependency and text-image dependency.
- *Graph conditions as tokens*: It enables stable diffusion to leverage the graph condition information for target image generation.
- *Graph-based controllable generation (Graph CFG)*: It enables controllable, tunable generation with multiple graph conditions.

Although the philosophy of “graph tokens” is used in graph-enhanced text generation with LLMs, it is not explored in graph-enhanced image generation with diffusion models. Besides, it is nontrivial to get those graph tokens (semantic PPR-based neighbor sampling and Graph-QFormer) and use them for controllable generation (graph CFG). 

We would like to argue that even though the reviewer insists that “graph tokens” are incremental, it is only a small part of our **Algorithm** designs. We have other novel design components in **Algorithm** and other contributions in addition to **Algorithm** (**Problem**, **Benchmark**, **Experiments**).

We would like to thank the reviewer again for the reply. If you have any more thoughts, we are happy to continue our discussion until the deadline.
Dear authors -- thank you for your response to my concerns.  I think adding this discussion to the work will help strengthen the positioning (especially the parts around necessity/utility of graph conditioning vs. text).  Overall, I stand by my initial review that parts of the work feel a bit heuristic and incremental, but the work is generally an interesting proposal which leans towards a different application of graph structure than most are used to seeing. I will retain my score.
Dear Reviewer 5RsF,

Thank you for your continuous support of our work! We will further enhance the submission according to your suggestions.

Best,

Authors
Dear Reviewer nWct,

We are glad that we address your raised issues and we are grateful that you increase the score!

We will further enhance the submission according to your suggestions.

Best,

Authors
Thank you for the responses. I believe this paper tackles an interesting task with novel approach, and do not find any major concerns. Thus I will keep my score.
Dear reviewers,

Could you take time to read the author's rebuttal and submit your feedback?
Thank you.

AC
Thank you for your detailed response, the author effectively addressed my issue, I will increase my score.