원시데이터 수집 시스템
선정목록으로

Property-guided generation of complex polymer topologies using variational autoencoders

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(19) 석유수지

기본 정보

저자
  1. Shengli Jiang — Department of Chemical and Biological Engineering, Princeton University, Princeton, NJ, USA
  2. Adji Bousso Dieng — Vertaix, Department of Computer Science, Princeton University, Princeton, NJ, USA
  3. Michael A. Webb — Department of Chemical and Biological Engineering, Princeton University, Princeton, NJ, USA
DOI
10.1038/s41524-024-01328-0
저널
npj Computational Materials
발행년도
2024
발행기관
Nature Portfolio
피인용수
39
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-024-01328-0
토픽
Polymer crystallization and properties
OpenAlex ID
W4400199267

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (19) 석유수지
R&D 측면
분석·모델링
확신도
0.80
근거 용어
polymer topologies, variational autoencoders, rheological properties, molecular dynamics simulations, machine learning
판단 근거
이 논문은 생성형 AI(VAE)를 활용하여 고분자의 복잡한 구조(topology)를 설계하고 그에 따른 유변학적 특성(점도 등)을 예측하는 방법론을 다룹니다. 이는 코오롱인더스트리의 컴파운드(23) 및 각종 수지(19, 21) 개발 시 원하는 물성을 가진 고분자 구조를 설계하는 R&D 프로세스에 간접적으로 응용될 수 있습니다.
R&D 활용 포인트
머신러닝 기반의 고분자 구조 설계 모델을 도입하여, 특정 점도나 기계적 강도를 가진 신규 컴파운드 및 기능성 수지 배합/구조 설계 시간을 단축하고 최적화할 수 있음.
평가 입력
본문 71,417자 중 30,032자 발췌

초록

Abstract The complexity and diversity of polymer topologies, or chain architectures, present substantial challenges in predicting and engineering polymer properties. Although machine learning is increasingly used in polymer science, applications to address architecturally complex polymers are nascent. Here, we use a generative machine learning model based on variational autoencoders and data generated from molecular dynamics simulations to design polymer topologies that exhibit target properties. Following the construction of a dataset featuring 1342 polymers with linear, cyclic, branch, comb, star, or dendritic structures, we employ a multi-task learning framework that effectively reconstructs and classifies polymer topologies while predicting their dilute-solution radii of gyration. This framework enables the generation of polymer topologies with target size, which is subsequently validated through molecular simulation. These capabilities are then exploited to contrast rheological properties of topologically distinct polymers with otherwise similar dilute-solution behavior. This research opens avenues for engineering polymers with more intricate and tailored properties with machine learning.

본문 71,417자

본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01328-0 # Property-guided generation of complex polymer topologies using variational autoencoders [Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-024-01328-0&domain=pdf) Shengli Jiang <sup>1</sup>, Adji Bousso Dieng 2 & Michael A. Webb 1 The complexity and diversity of polymer topologies, or chain architectures, present substantial challenges in predicting and engineering polymer properties. Although machine learning is increasingly used in polymer science, applications to address architecturally complex polymers are nascent. Here, we use a generative machine learning model based on variational autoencoders and data generated from molecular dynamics simulations to design polymer topologies that exhibit target properties. Following the construction of a dataset featuring 1342 polymers with linear, cyclic, branch, comb, star, or dendritic structures, we employ a multi-task learning framework that effectively reconstructs and classifies polymer topologies while predicting their dilute-solution radii of gyration. This framework enables the generation of polymer topologies with target size, which is subsequently validated through molecular simulation. These capabilities are then exploited to contrast rheological properties of topologically distinct polymers with otherwise similar dilute-solution behavior. This research opens avenues for engineering polymers with more intricate and tailored properties with machine learning. The topology of a polymer chain, or equivalently the chain architecture, can substantially influencetheirpropertiesand those of derivative materials.For example, in natural polymers, while linear amylose forms dense aggregates with low aqueous solubility, the analogous but highly branched structure of amylopectin impedes association of chains, thereby enhancing its solubility <sup>1</sup> . In the realm of synthetic polymers, the branching in low-density polyethylene improves its processability for applications like blow and extrusion molding, whereas linear high-density polyethylene possesses superior mechanical strength and chemical resistance. There is also growing interest in understanding implications of polymer topology due to advancements in various controllable synthetic methodologies <sup>2–5</sup> . These methods enable the creation of polymers with a wide range of complex topologies, such as stars <sup>6,7</sup>, combs <sup>8,9</sup>, branches <sup>10,11</sup>, hyperbranches <sup>12,13</sup>, dendrimers <sup>14,15</sup>, rings <sup>16,17</sup>, and brushes <sup>18,19</sup> . Establishing quantitative relationships between polymer topology and material properties remains challenging. Both experimental and computational investigations have enhanced understanding of how polymer topology influences properties of interest to many areas, such as enhanced oil recovery <sup>20,21</sup>, coatings and adhesives <sup>22,23</sup>, rheology and fluid dynamics <sup>24–26</sup>, energy storage <sup>27–33</sup>, and biomedical applications <sup>34–38</sup> . Nevertheless, the efforts of labor-intensive and potentially costly synthesis and characterization typically limits experimental studies to a small set of systems, which may still not yield well-defined topological ensembles <sup>3,39</sup> . Computationally, although there is no ambiguity associated with the underlying topologies of the polymers or their construction, simulations are often restricted to a particular class of topologies owing to computational costs and perhaps uncertainty with how to tangibly compare diverse topologies <sup>40,41</sup> . Overall, these factors obfuscate the construction of general topology-property correlations, which also precludes facile design of topologically complex polymers. Recent advancements in and applications of machine learning have spurred significant developments in polymer design. These efforts span many applications, such as tailoring the structures of single-chain nanoparticles <sup>42,43</sup>, enhancing enzyme stability <sup>44,45</sup>, delivering drugs and therapeutics <sup>46–48</sup>, and identifying gas-separation membranes <sup>49</sup> . Generative machine learning models <sup>50</sup> are a particularly intriguing class of algorithms for chemical design. For example, variational autoencoders (VAEs) are adept at encoding complex data into lower-dimensional latent spaces <sup>51,52</sup> and have previously facilitated the generation of small molecules <sup>53,54</sup> . Applications of VAEs in polymer science are also emerging <sup>55,56</sup> . Shmilovich et al. combined VAEs with molecular dynamics (MD) simulations and Bayesian optimization to guide the discovery of π-conjugated oligopeptides <sup>57</sup> with desirable aggregation behavior to influence optoelectronic properties. In devising the Open Macromolecular Genome (OMG), 1Department of Chemical and Biological Engineering, Princeton University, Princeton, NJ, USA. 2Vertaix, Department of Computer Science, Princeton University, Princeton, NJ, USA. [e-mail: adji@princeton.edu; mawebb@princeton.edu](mailto:adji@princeton.edu) Kim et al. utilized a generative framework with VAEs that can not only provide polymer structures but also retrosynthesis <sup>58</sup>, thereby facilitating optimization of synthetically accessible materials. Nevertheless, these and other studies primarily focus on specific chemical spaces or linear polymers, highlighting the need for methods to generate polymers with complex topologies and tailored properties. In this study, we create a multi-task VAE to generate polymers with specified topology and desired characteristics. This model is developed using an original dataset comprising coarse-grained MD data for over 1300 polymers of various topologies, including star, comb, αω-branched, linear, cyclic, and dendrimer structures, spanning a range of molecular weights. Input and encoding strategies are critically assessed by training several models that aim to reconstruct the polymer topology and also perform auxiliary tasks of estimating the characteristic size of the polymer and classifying its topology. We find that auxiliary tasks enhance the physical interpretability of the learned latent space of the VAE. Our most effective generative modeling framework, TopoGNN, incorporates both graph and topological descriptor features. For demonstrative purposes, TopoGNN is leveraged to produce sets of topologically diverse polymers that exhibit the same characteristic size in dilute solution (Fig. 1, top) but contrasting rheological behavior at finite concentrations (Fig. 1, bottom). This work expands the utility of generative modeling for polymer design and demonstrates how such I. Training Phase algorithms can also facilitate controlled studies across complex, topologically diverse polymers. Results Polymer dataset We first generate and characterize a topologically diverse set of polymers for training and evaluating the VAE. In particular, we initially prepare and simulate 1342 polymers across six architectural classes (11 each for linear and cyclic and 330 each for αω-branched, comb, star and dendrimer); the αω-branched architecture possesses side-chains at two backbone termini and is simply denoted “branch” in figures and tables. The degree of polymerization ranges from 90 to 100 for each architectural class. The VAE here is tasked to encode and decode a specific manifestation of a polymer topology, although the representation of ensembles of such structures is of future interest. Figure 2a showcases the diversity of structures across a representative set of these polymers. This diversity is also manifest through the variation of numerous topological descriptors shown in Fig. 2b: Nnodes represents the numberof nodes, Nedges thenumberof edges, d <sup>�</sup> theaveragenode degree, d <sup>�</sup> nb the average neighbor degree, δ the graph density, ϕdiam the graph diameter, ϕrad the graph radius, λalg the algebraic connectivity, Cdeg the degree centrality, Cbet the betweenness centrality, and rdeg the degree assortativity. These descriptors, which are derived purely from knowledge of the Topological Descriptors ANN 〈 _R_ g2 〉 Regression Topology Classification Linear 0.01 Branch 0.01 <u>Comb</u> <u>0.95</u> Cyclic 0.01 Graph GNN DendrimerStar 0.01 0.01 Linear Branch <u>Comb</u> Cyclic Dendrimer Star MD Simulation Representations II. Search Phase 〈 _R_ g2 〉 Latent Space Search with Target Properties Generated Decoder Polymer Encoders Latent Space Decoder Reconstruction η t Viscosity Analysis MD 〈 _R_ g2 〉 Validation MD 〈 _R_ g2 〉 2 Fig. 1 | Strategy underlying a variational autoencoder of polymer topology. In the Training Phase (top), molecular dynamics (MD) simulations are employed to compute computationally tractable descriptors, such as the average squared radius of gyration, hR <sup>2</sup> g <sup>i, for a set of polymers. Information regarding topological descrip-</sup> tors and the polymer graph are then encoded into a lower-dimensional latent space using an artificial neural network (ANN) and a graph neural network (GNN). The latent space is decoded to accomplish reconstruction, regression, and classification tasks. These encoded features are concatenated to form a reduced-dimensional latent space, from which a decoder reconstructs the polymer structure. In the Search Phase (bottom), points are sampled from the latent space to proffer polymers that are predicted to exhibit a target hR <sup>2</sup> g <sup>i and specified topology. These predictions are</sup> evaluated against MD simulations, and post-validation, enable systematic analysis of how topology impacts additional properties, such as viscosity. a b c Fig. 2 | Characteristics of generated polymers. a Representative graphs of polymers from each architectural class. The number of polymers is proportional to occurrence in the dataset. b Comparison of topological descriptors across architectural classes. Values are standard-normalized for the dataset for each topological descriptor. Within a class, data for polymers are organized from left-to-right in ascending order of descriptor values, starting with the top (i.e., “Number of nodes”) and proceeding molecular graph/polymer connectivity, provide a first means to quantitatively characterize and distinguish polymer topologies. The current dataset isrestricted to architecturesthatpossessatmostonecycle (correspondingto the macrocycle of the cyclic polymer) and also does not describe polymer networks; however, including descriptors related to cyclization or meshes may benefit future models. Despite the uniformity in the number of nodes and edges, which are commonly used to characterize polymers, significant variations are observed in othertopological descriptors. For instance, comb, branch, star, and dendrimer topologies, exhibit notable differences in descriptors like graph diameter, radius, betweenness centrality, and degree assortativity, even when node and edge counts are identical. Our primary aim is to assess the efficacy of ML to describe properties of topologically complexpolymers.Consequently,theCGsimulationsusedtogeneratedata, for training and benchmarking, are based on the phenomenological Kremer-Grest (KG) model, which is agnostic to constitutional unit chemistry. Furthermore, the results do not represent any specific polymer, althoughKGcanbedescriptiveofmanypolymersystemsbasedonmapping schemes <sup>59</sup> . We anticipate that future work could straightforwardly leverage similar ML architectures of chemically specific parameterized CG models, including those with hydrodynamic interactions. Figure 2c and Supplementary Fig.1 illustrate the range of characteristic polymer sizes, as expressed through the simulated mean squared radius of gyration hR <sup>2</sup> g <sup>i, observed in each class. Because the present study imposes a</sup> maximum number of monomers, polymers from the linear, cyclic, and dendrimer classes exhibit relatively narrow distributions in hR <sup>2</sup> g <sup>i by contrast</sup> to comb, branch, and star classes. Dendrimers notably form compact, globular structures over the range of simulated molecular weights relative to all other classes. Overall, the dataset is partitioned into a 64/16/20 train/ validation/test split for future model construction and evaluation; stratified downward to successively break ties. c The distribution of simulated hR <sup>2</sup> g <sup>i for each</sup> architectural class. The white dot represents the median, the black bar spans the inter-quartile range (i.e., 25% to 75% percentiles), and the width indicates the distribution density. The color of the graphs in (b) align with those of the violins positioned over the respective classes in (c). sampling is used to ensure proportional representation of architectural classes across all splits. Polymer reconstruction and property prediction Based on prior work on linear polymer featurization <sup>60,61</sup>, we hypothesized that polymer reconstruction with a VAE could be enhanced if derived topologicaldescriptorsweresuppliedasinputs.Toexaminethis,weevaluate three distinct encoding strategies: TopoGNN, which integrates topological descriptors with graph features; GNN, which exclusively relies on graph features; and Topo, which solely employs topological descriptors. For each strategy, we consider a multitude of models with distinct hyperparameters and their performance across a broad range of evaluation metrics. For example, reconstruction performance is quantitatively evaluated with balanced accuracy (BACC), which measures the accuracy of individual entries in the reconstructed adjacency matrix. For topology classification, F1 score is chosen to address the class imbalance in our dataset. Other metrics include the coefficient of determination R <sup>2</sup> for regression on hR <sup>2</sup> g <sup>i and the</sup> Kullback-Leibler(KL) divergence. Representative models for each encoding strategy are selected using a comprehensive evaluation score (CES) that simultaneously considers all criteria: where <u>a denotes the min-max normalized value of</u> a;CEScanbe interpreted asthedistancefromtheorigin(aperfectmodel)inavectorspacespannedby error metrics. Table 1 summarizes the performance of these representative models. Across encoding strategies, TopoGNN emerges as the most overall effective, CES qf f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f <u>ð1 �</u> BACCÞ2 þ ðKLÞ2 þ ð1 � R2Þ2 þ ð1 � F1Þ2 ð1Þ Table 1 | Performance of representative models for each encoding strategy on validation set <u><mark>Models</mark></u> <u><mark>Balanced Accuracy</mark></u> <u><mark>Regression R</mark></u> <sup>2</sup> <u><mark>Classif</mark></u> i <u><mark>cation F1</mark></u> <u><mark>KL Divergence</mark></u> <u><mark>Distance to Origin</mark></u> TopoGNN 0.9439 0.9915 0.9953 18.7244 0.3829 GNN 0.9448 0.9634 0.9768 15.6018 0.8348 Topo 0.9281 0.9949 0.9953 16.0418 0.3992 Bold number indicates the best result. Fig. 3 | Performance of variational autoencoder models. Comparison of TopoGNN, GNN, and Topo in terms of polymer graph reconstruction, hR <sup>2</sup> g <sup>i</sup> regression, and topology classification. BACC represents balanced accuracy, R <sup>2</sup> is the coefficient of determination, and F1 measures accuracy based on the harmonic mean of precision and recall. The error bars represent the standard deviation arising from 10 random samplings of the latent space. registering the smallest CES. By comparison, the Topo modelyields slightly superior performance on regression and comparable F1 score. Conversely, the GNN model demonstrates a slightly higher balanced accuracy in reconstruction tasks and a lower KL divergence; however, it significantly underperforms in regression and classification. These results support the inclusion of topological descriptors during construction of the VAE. To assess model generalizability, we examine the performance of the representative models on the held-out test set. Figure 3 again indicates that TopoGNN delivers consistently strong performance across several evaluation criteria, while GNN and Topo can be deficient in particular metrics. Balanced accuracy is highest for GNN (0.9397), closely followed by TopoGNN (0.9369) and then Topo (0.9164). This suggests that topological descriptors do not necessarily enhance reconstruction performance, although the ability of Topo to effectively reconstruct certain topologies (e.g., branch polymers) highlights the extensive information content encompassed by the 11 topological descriptors. By contrast, directly supplying topological information is clearly advantageous for predicting the characteristicpolymersize.Here, TopoGNN standsoutasthemosteffective, achieving the highest mean value (0.9920), surpassing Topo (0.9854)and GNN (0.9639). Meanwhile, GNN achieves the highest mean F1 score (0.9783), followed by TopoGNN (0.9689) and Topo (0.9678); however all models display statistically comparable results regarding this classification metric. Taken together, this suggest workflows with VAEs can effectively address complexities induced by these polymer architectures. For a more nuanced assessment of model quality, Fig. 4 breaks down TopoGNN performance across architectures; comparable information for other models is in Supplementary Figs. 2 and 3. In polymer reconstruction, TopoGNN excels but faces challenges with specific cyclic and comb polymers (Fig. 4a, gray dashed boxes). Notably, GNN generates errors, especially for star polymers, while Topo exhibits minor errors across most architectures. Regarding the prediction of hR <sup>2</sup> g <sup>i</sup> <sup>(Fig.</sup> <sup>4b),</sup> <sup>TopoGNN</sup> <sup>performs</sup> well regardless of polymer class. Both GNN and Topo display high correlation, but errors are generally larger for GNN (Supplementary Fig. 2), indicating the difficulty in establishing a direct relationship between graph features and hR <sup>2</sup> g <sup>i. A saliency analysis (Supplementary Fig. 3) reveals that</sup> graph diameter, betweenness centrality, and algebraic connectivity most strongly influence hR <sup>2</sup> g <sup>i,</sup> <sup>aligning</sup> <sup>with</sup> <sup>their</sup> <sup>direct</sup> <sup>correlation</sup> <sup>with</sup> <sup>hR2</sup> g <sup>i</sup> (Supplementary Fig. 1). For topology classification, TopoGNN (Fig. 4c) is broadly effective, with most misclassifications occurring in linear, αωbranched, and comb architectures. These issues are more pronounced in Topo and GNN (Supplementary Fig. 3) and can be augmented with other misclassifciations. Overall, TopoGNN, which utilizes both graph and topological features, not only consistently outperforms other models but also delivers high-quality results. The remainder of the article therefore focuses on analysis and applications of TopoGNN to illustrate its practical deployment. Latent space exploration and polymer generation Figure 5 presents the UMAP projection of the 8-dimensional latent space of topoGNN into a 2-dimensional space for visualization. Distinct topological clusters emerge in Fig. 5a and b, which reveals organization of the latent space that depends on relationships amongst architectures and their physical properties. Dendrimers, characterized by their high orders of branches, form three, mostly isolated and distinct clusters that reflect how the dendrimer architectures were algorithmically generated; they are most closely related to star polymers and αω-branched polymers (particularly those with pom-pom architectures). Branch, comb, and star polymers all notably overlap within the latent space, whichis attributed to topological similarities (Fig. 2b). Cyclic and linear polymers are interspersed within comb and branch clusters, with linear polymers sharing a long backbone and cyclic polymers possessing a long ring-closed backbone. This organization is clearly informed training with auxiliary tasks for predicting hR <sup>2</sup> g <sup>i and clas-</sup> sifying topologies, as illustrated in Fig. 5b. A vertical trajectory in the UMAP space (marked by an increase in Z2) results in an almost monotonic increase in hR <sup>2</sup> g <sup>i for the generated polymer topologies (Fig. 5c). Conversely, a hor-</sup> izontal trajectory (associated with an increase in Z1) moreso transitions topology classes with slight variations in hR <sup>2</sup> g <sup>i</sup> <sup>((Fig.</sup> <sup>5d).</sup> <sup>Omitting</sup> <sup>the</sup> auxiliary tasks leads to less distinct separation of topological classes and disrupts the monotonicity of the hR <sup>2</sup> g <sup>i</sup> <sup>(Supplementary Fig. 6). The latent</sup> spaces of GNN and Topo (Supplementary Fig. 5) are prone to similar issues. Overall, this highlights the effectiveness of the workflow for TopoGNN to produce an intuitive and physically meaningful latent space. The latent space of TopoGNN can be used to generate a diverse set of polymer topologies. This is exemplified by computing the Vendi Score (VS) for each architecture (see section “Machine Learning Details” for details) and comparing it to that of the originally constructed dataset. Whereas the VS for the original dataset (1342 points) is 2.0968, that for 1342 topologies generated using TopoGNN is 5.0684, which exceeds those for GNN (4.9580) and Topo (4.3305).Examplesofthegeneratedpolymertopologiesandtheir distribution are shown in Supplementary Figs. 7–10. This indicates that all models can generate a more diverse range of polymer topologies compared Fig. 4 | Performance decomposition of TopoGNN. a Polymer graph reconstructions by TopoGNN, contrasting true (blue) and predicted (red) polymer topologies. b Regression parity plot. The diagonal line signifies ideal regression accuracy, and error bars show standard deviation from random latent space sampling. c Confusion to the original handcrafted dataset, which could have implications for downstream tasks, as explored in the next section. Property-guided polymer topology generation To illustrate one application for TopoGNN, we generate a series of distinct polymer topologies that exhibit specific hR <sup>2</sup> g <sup>i. While hR2</sup> g <sup>i itself is a funda-</sup> mental characteristic of the polymers, the rationale here is moreso to demonstrate the production of alternative materials with similar characteristics and further to assess how topology affects other polymer properties, such as rheology, without conflation of other factors. We therefore select target hR <sup>2</sup> g <sup>i ranges of 7.5 ± 2, 30 ± 2, and 50 ± 2 which represent the</sup> low, intermediate, and high regions of hR <sup>2</sup> g <sup>i in the dataset, respectively (Fig.</sup> 2) and conditionally sample polymers from the latent space across the different topological classes. The hR <sup>2</sup> g <sup>i are then validated for the generated</sup> polymer topologies using MD simulation. These results are shown in Fig. 6, which illustrates that TopoGNN can indeed produce a range� of distinct structures that exhibit effectively similar hR <sup>2</sup> g <sup>i.</sup> <sup>Targeting</sup> ¼ 7:5 ± 2 pre <sup>2</sup> g <sup>i. While hR2</sup> g which illustrates that TopoGNN can indeed produce a range� of distinct structures that exhibit effectively similar hR <sup>2</sup> g <sup>i.</sup> <sup>Targeting</sup> ¼ 7:5 ± 2 pre dominantly yields dendrimer and star topologies, targeting hR <sup>2</sup> g <sup>i ¼ 30 ± 2</sup> yields branch, comb, cyclic, and star topologies, and targeting hR <sup>2</sup> g <sup>i ¼ 50 ± 2</sup> mostly yields in branch and comb architectures. With the current approach, however, architectures that satisfy specific targets cannot be arbitrarily produced based on the molecular-weight restrictions. For example, dendrimers are more or less restricted to low hR <sup>2</sup> g <sup>i, while linear polymers are</sup> mostly restricted to larger hR <sup>2</sup> g <sup>i. Moreover, relatively few polymers meet the</sup> ambitioustargetof50 ± 2,whichisconsistentwiththepaucityofdatapoints around hR <sup>2</sup> g <sup>i ¼ 50 ± 2</sup> <sup>within</sup> <sup>the</sup> <sup>original</sup> <sup>dataset;</sup> <sup>however,</sup> <sup>the</sup> <sup>group</sup> <sup>of</sup> polymers here uniformly exceed those of the smaller 30 ± 2 target. Interestingly, TopoGNN also proffers architectures, such as irregular dendrimers and nuanced branching patters in stars and combs, that go beyond those of the original dataset. Overall, these results reflect the intended capability of TopoGNN to generate a broad spectrum of original polymer topologies that align with a target property. <sup>2</sup> g <sup>i.</sup> <sup>Targeting</sup> Rheological Analysis The viscosity-modifying properties of polymers are key to numerous applications <sup>62–64</sup> and depend ona varietyoffactors,includingunitchemistry, polymer composition, and chain topology <sup>65,66</sup> . The relative impacts of such factors can be difficult to disentangle. Using TopoGNN, we specifically explore the influence of polymer topology on rheological characteristics. While solution viscosity at dilute concentrations is primarily determined by polymer size, which sets the overlap concentration <sup>67</sup>, we control for this factor by designing topologies with specified hR <sup>2</sup> g <sup>i and examine topological</sup> implications across a range of concentrations. Figure 7a examines the concentration-dependent shear viscosity as determined from MD simulations of four selected topologies. Figure 7a presents concentrationdependent shear viscosity from MD simulations of four selected matrix representing the classification performance across various topologies: linear (lin), cyclic (cyc), branch (brn), comb, star, and dendrimer (den). Diagonal entries correspond to accurate classifications, while off-diagonal entries indicate misclassifications. topologies.Differencesemergebeyond0.4 σ <sup>−3</sup>,withcyclicpolymersshowing lower viscosities due to reduced entanglements, and branched polymers exhibiting elevated viscosities due to extended side chains. Star and comb polymers demonstrate similar, somewhat lower shear viscosities compared to branched polymers, highlighting the impact of side-chain position and density on entanglement effectiveness. Additionally, we observe nuanced differences in frequency-dependent storage and loss moduli, G <sup>0</sup> and G″, across topologies and concentrations (Fig. 7b, c). While all solutions exhibit liquid-likeviscousbehavioratlowfrequenciesandsolid-likebehaviorathigh frequencies below 0.6 σ <sup>−3</sup>, star, branch, and comb polymers display three crossover frequencies as concentration increases. In contrast, cyclic polymers maintain a single crossover frequency, indicating less nuanced viscoelastic behavior. The presence of multiple crossover frequencies at higher concentrations (Fig. 7c and Supplementary Fig. 11) has been previously observed in both simulations and experiments <sup>68–72</sup> . Notably, the plateau between the lowest and second lowest crossover frequencies, where G <sup>0</sup> - G <sup>00</sup> signifies a rubbery plateau attributed to polymer entanglement. Regarding the relative viscosities of differing architectures, some results are also resonant with prior work. For example, cyclic polymers exhibit relatively lower viscosities, which is due to the absence of free ends that tends to reduce entanglements <sup>73</sup>, and αω-branched polymers tend to possess higher viscosities, which is consistent with expectations set by experimental investigation of the impact of side-chain length on viscosity <sup>74,75</sup> . Here, polymers classified with comb architectures have a similar number of side chains and similar backbone lengths as those classified as αω-branched architectures; however, the side-chains are shorter, resulting in less effective friction and lower viscosity. This highlights potential for how rheological properties might be modulated through strategic architecture design. Discussion This study employed variational autoencoders to address emergent combinatorialcomplexityofdiversepolymertopologies,whichhasbeenscarcely addressed in machine learning of macromolecules. We constructed an extensive dataset featuring the average squared radius of gyration (hR <sup>2</sup> g <sup>i) for</sup> 1342 polymers with various architectures, including linear, cyclic, branch, comb, star, and dendrimer structures. By analyzing different encoding strategies and input representations, we found that meaningful latent spaces of polymers with complex topologies can be established by (i) incorporating both graph-explicit and graph-derived features and (ii) coupling graph reconstruction tasks with auxiliary prediction tasks, such as those related to physical properties. Probabilistic sampling over the latent space was shown to result in rich topological diversity. These generative capabilities were then used to produce distinct polymer topologies with target characteristic sizes in dilute solution. This enabled subsequent investigation by coarse-grained molecular dynamics into how topology influences rheological properties, such as shear viscosity and viscoelastic moduli, while controlling for Fig. 5 | Visualization and exploration of the latent space. a Two-dimensional visualization of the TopoGNN latent space using the Uniform Manifold Approximation and Projection (UMAP) technique. A subset of the data is displayed for clarity, with each marker representing a polymer graph based on its latent vector. Different colors denote distinct topologies. b Organization of (left) hR <sup>2</sup> g <sup>i and (right)</sup> topology in the UMAP-coordinate space. The dots signify the latent vectors of polymer graphs. The two arrows mark regions in the latent space targeted for exploration (i.e., new polymer topology generation). c As exploration progresses with an increase in Z2 in the latent space (represented by a solid line), there is a nearmonotonic rise in hR <sup>2</sup> g <sup>i for the generated polymers. d Progression with an increase in</sup> Z1 (indicated by a dashed line) showcases shifts in polymer topology, moving through clusters characteristic of star, comb, and branch topologies. Fig. 6 | Generation of polymer topologies with target hR <sup>2</sup> g Fig. 6 | Generation of polymer topologies with target hR <sup>2</sup> g <sup>i. Topologies are gen-</sup> erated aiming for target hR <sup>2</sup> g <sup>i values of 7.5 ± 2, 30 ± 2, and 50 ± 2. Each generated</sup> topology is accompanied by its type and the predicted hR <sup>2</sup> g <sup>i from TopoGNN, pre-</sup> sented in parentheses on the x-axis. A violin plot showcases the revalidation of hR <sup>2</sup> g via MD simulation for every topology. The gold dot marks the hR <sup>2</sup> g <sup>2</sup> g <sup>. Two dashed lines highlight the hR2</sup> g <sup>2</sup> g <sup>i</sup> via MD simulation for every topology. The gold dot marks the hR <sup>2</sup> g <sup>i, while the white</sup> dot stands for the median. The black bar represents the interquartile range, and the plot width reflects the distribution density of R <sup>2</sup> g <sup>. Two dashed lines highlight the hR2</sup> g <sup>i</sup> range used in the guided search. Fig. 7 | Effect of polymer topology on shear viscosity and complex moduli at comparable hR <sup>2</sup> g <sup>i.</sup> a Influence of polymer topology and concentration on viscosity, featuring topologies such as star, branch, comb, and cyclic, each with a hR <sup>2</sup> g <sup>i of</sup> approximately 30 ± 2. b Relationship between polymer topology, concentration, and complex moduli crossover frequencies. c Complex moduli for various topologies at concentrations of 0.1 and 0.8, with the star symbol marking the crossover point. polymer size. While all architectures exhibited similar rheological behavior at relatively low concentrations, distinct responses emerged at higher concentrations. For instance, localized branches at chain ends resulted in more viscous solutions compared to other architectures, including cyclic structures that exhibited minimal entanglements. Apart from illustrating how rheologicalbehaviormightbetuned or altered viapolymerarchitecture,this also showcases a paradigm for studying the physical properties of topologically distinct systems. This work also invites several future research directions. Particularly, TopoGNN exhibits promising potential as a generative model, offering a cost-effective alternative to experiments or simulations in predicting properties like hR <sup>2</sup> g <sup>i. While hR2</sup> g <sup>i serves as a straightforward and computa-</sup> tionally accessible quantity, there is interest in extending the strategy to incorporate or utilize other properties. Although this work leveraged TopoGNN to simply compare rheological properties in systematic fashion, in the future, it may be deployed to guide design efforts aimed at optimizing polymer properties. We also note that the dataset and machine learning framework are currently limited to polymers with a narrow range of bead numbers (equivalently, molecular weights). Future research will explore the extensibility and transferability of machine learning architectures across various molecular weights, potentially through the use of string-based representations <sup>76–78</sup> . This study also focused on specific structural and rheological characterizations of chemically homogeneous and precise polymers at coarsegrained resolution. The ML framework might be feasibly extended to address compositional complexity; however, such efforts will need to address increased data burdens to capture the behavior of such systems. For this and other reasons, TopoGNN and related ML strategies will benefit from advancements that accelerate molecular simulation to increase data throughput, and those that improve the accuracy of CG models, which will expandthevalidityand rangeofpropertiesthat canbereliablycomputed.In particular, parameterized CG models may not be transferable across all thermodynamic conditions of interest, and dynamical consistency between CG models and high-resolution systems poses a persistent challenge <sup>40</sup> . Finally,thedatasetandMLmodelsintroducedherefeaturepreciselydefined polymer architectures. Although the architectural classes studied are broadly accessible, precision control over architecture is beyond current synthetic capabilities.Therefore, future efforts inboth the ML and modeling space must address how to predict and represent ensembles of polymer structures <sup>77</sup> that are accessible with modern synthetic approaches and appropriately tailoring generative capabilities towards these <sup>58</sup> . Overall, understanding and controlling the properties of polymers, which involve chemical, compositional, and topological complexity, and aligning these properties with synthesizable polymer systems remains a significant challenge in polymer science. This study provides a foundation to pursue these directions. Methods Description of dataset Thedatasetcomprises1342polymerarchitectures,eachcontainingbetween 90 and 100 constitutional units, or beads. Polymer architectures encompass a wide range of topologies, including linear, cyclic, branch, comb, star, and dendrimer structures. Due to limitations bead count, linear and cyclic topologies are restricted to 11 distinct polymers each, whereas other topologies are represented by 330 distinct polymers each. The polymers are chemically homogeneous with all beads treatedequivalently. The procedure forgeneratingpolymergraphsisdescribedintheSupplementaryDiscussion Section 2. For each polymer graph, we calculate an 11-dimensional topological descriptor vector <sup>43,79</sup> using the number of nodes, number of edges, average degree, average neighbor degree, density, diameter, radius, algebraic connectivity, degree centrality, betweenness centrality, and degree assortativity as elements. For further details on these descriptors, readers are referred to Supplementary Discussion Section 1. Calculation of polymer properties Radiusofgyration. We investigate thestructural properties of individual polymer chains using coarse-grained molecular dynamics. To do so, we compute the gyration tensor S: and quantifies the size of a given polymer conformation. The ensemble average hR <sup>2</sup> g <sup>i</sup> <sup>is</sup> <sup>the</sup> <sup>constructed using</sup> <sup>a</sup> <sup>series all</sup> <sup>sampled</sup> <sup>configurations.</sup> This ensemble-averaged quantity serves as the target for the regression auxiliary task. Rheological properties. We also characterize several rheology-related properties for select polymer systems. The shear viscosity η of the polymer solution is formally calculated via Z 1 Here, G <sup>0</sup> ðωÞ, the storage modulus, reflects the elastic, or energy-storing, aspect of the material, while G″(ω), the loss modulus, represents the viscous, or energy-dissipating, component. This analysis is thus restricted to linear viscoelasticity. MD simulation details MD simulations are used to generate polymer configurations for the characterization of polymer properties. All simulations are conducted using the LAMMPS simulation package <sup>81</sup> in reduced units; the units of mass, distance, and energy are denoted by m, σ, and ε, respectively. The reduced time unit follows as ðmσ <sup>2</sup> =εÞ <sup>1=2</sup> . All simulations are considered to take place in an implicit athermal solvent environment, with dynamics of the polymer(s) governed by the Langevin equation, such that hydrodynamic interactions are neglected. The equations-of-motion are numerically integrated using the velocity-Verlet integration scheme with a 0.001 timestep. The solvent friction coefficient is set to ς = 0.1. Polymer interactions are modeled via a combination of bonded and nonbonded potential energy contributions. The total potential energy U of a system with configuration r <sup>N</sup> is expressed as: η ¼ GðtÞdt ð4Þ 0 where G(t) denotes the stress relaxation modulus. We determine G(t) using the Green-Kubo relation GðtÞ ¼ <sup><u>1</u></sup> 3 X V αβ¼xy;xz;yz kBT <sup>hσαβðtÞσαβð0Þi;</sup> ð5Þ with V representing the simulation box volume, ~~σ~~ αβðtÞ signifying the offdiagonal stress tensor components averaged at intervals of 1000 steps, and 〈 ⋯ 〉 denoting an ensemble-average. Often, G(t) exhibits significant noise at long times, which renders direct numerical integration of Eq. (4) unreliable. Therefore, following prior work <sup>80</sup>, we fit the simulated G(t) data to a generalized Maxwell model, given by GðtÞ ¼ <sup>P</sup> p <sup>G</sup> p <sup>expð�t=τ</sup> p <sup>Þ, where Gp</sup> and τp represent the modulus and relaxation time of the p-th element, respectively.Thisapproachyieldstheviscosity η = ∑pGpτp.Wealsocompute thestoragemodulus(G <sup>0</sup> )andthelossmodulus(G″) tobettercharacterizethe viscoelastic properties of the polymers. These moduli are obtained from the Fourier transform of the stress relaxation modulus, yielding R 1 G <sup>�</sup> ðωÞ ¼ iω ð6Þ iω 0 <sup>GðtÞe�iωtdt</sup> ¼ G <sup>0</sup> ðωÞ þ iG <sup>00</sup> ðωÞ: X bonds U vibðrijÞ þ X i<j U nbðrijÞ; ð7Þ S ¼ <sup><u>1</u></sup> N XN - �� �T ri � rcm ri � rcm ð2Þ i¼1 Uðr <sup>N</sup> Þ ¼ where ri denotes the position vector of the ith bead, rcm represents the center-of-mass position of the polymer, and T indicates the transpose operation. Diagonalizing yields S ¼ diagðλ <sup>2</sup> 1 <sup>; λ2</sup> 2 <sup>; λ2</sup> 3 <sup>Þ</sup> <sup>where</sup> <sup>the</sup> <sup>diagonal</sup> elements are the principal moments of the gyration tensor ordered as λ1 ≤ λ2 ≤ λ3. The squared radius of gyration can be subsequently computed as where rij represents the internal distance calculated from the coordinates r <sup>N</sup> . The nonbonded energy contributions for all pairs of beads are computed using the following equation: < σij U nbðrijÞ ¼ 4εij rij : 8 < : ���σij 12 ��σij 6� rij - rij þ ϵij; if i; j are bonded and rij < 2 <sup>1=6</sup> 0; otherwise; ��σij 12 ��σij rij - rij <sup>2</sup> g <sup>¼ λ</sup> 1 <sup>2</sup> ð8Þ R <sup>2</sup> g 1 <sup>2</sup> <sup>þ λ2</sup> 2 <sup>þ λ</sup> 3 <sup>2</sup> ð3Þ where εij and σij are setto 1. For directly bonded beads, the stretching energy is calculated as: U vibðrijÞ ¼ � <sup><u>1</u></sup> 2 <sup>K</sup> <sup>ijðR</sup> ij <sup>ð0ÞÞ</sup> 2 ln 1 � rij R <sup>ð0Þ</sup> " !2# ij ; ð9Þ where Kij is assigned a value of 30, and Rij <sup>ð0Þ</sup> <sup>is fixed at 1.5.</sup> Single-chain simulations. Simulations of single coarse-grained polymer chains (no boundary conditions) are used to characterize hR <sup>2</sup> g <sup>i.</sup> <sup>Each</sup> simulation is conducted for 2 × 10 <sup>7</sup> steps, allocating the first half for system equilibration. Configurations for analysis are sampled every 2 × 10 <sup>3</sup> timesteps during the latter half of the simulation. Many-chain simulations. Simulations of many chains within a simulation cell with cubic periodic boundary conditions are used for rheological analysis of a subset of polymers with comparable ensembleaveraged square radii of gyration, hR <sup>2</sup> g <sup>i. Simulations are performed across</sup> various concentrations (0.1 to 0.8) to cover both semi-dilute and semiconcentrated regimes. Each simulation uses 100 chains with the simulation cell dimensions adjusted to match the desired concentration. Equilibration periods of 10 <sup>7</sup> steps are utilized for all simulation concentrations. Upon achieving equilibrium, data are collected for 10 <sup>7</sup> steps at a timestep of 0.001. We note that using an implicit-solvent environment and neglecting hydrodynamic interactions has implications for simulating rheological properties <sup>82</sup> . However, while these choices affect data generation and its interpretation relative to the physics of real polymer solutions, they do not affect the analysis of the ML task. Machine learning details Data preprocessing. Polymers are represented using graph notation G ¼ ðV; EÞ, where V is the set of nodes, and E is the set of edges. To address the variability in node counts across different polymers, ranging from 90 to 100, we introduce “ghost” nodes with zero-edge connections to standardize graph sizes to 100 nodes using node padding <sup>83,84</sup> . Because all polymer beads are equivalent, the adjacency vector ai 2 R <sup>100</sup> serves as the sole node feature for each polymer bead. Elements of this vector are defined such that ai = 1 if node i is connected to the current node, and ai = 0 otherwise. All bonds are also equivalent, and so edge features are not included in the representation. Polymers are also characterized by an 11-dimensional topological descriptor vector t 2 R <sup>11</sup> as previously described. For the task of polymer reconstruction, an adjacency matrix A 2 R <sup>100 × 100</sup> is associated with each polymer, where Aij = 1 indicates an edge between nodes i and j, and Aij = 0 indicates no edge. For the auxiliary regression task, each polymer is associated with a label for hR <sup>2</sup> g <sup>i, denoted</sup> yr 2 R. For the auxiliary classification task, each polymer is associated with a one-hot encoded topology label, denoted yt 2 R <sup>6</sup> . The dataset of 1342 polymers is divided into three subsets: 858 for training (64%), 215 for validation (16%), and 269 for testing (20%). Stratified splitting is used to ensure each subset represents all polymer topologies. The training set is utilized to train the VAE, the validation set for hyperparameter optimization, and the test set to evaluate the model generalizability. Model architectures. Overall, we explore three distinct encoder architectures while maintaining a uniform decoder architecture. The first model, designated as TopoGNN, combines a graph encoder with a topological descriptor encoder, thus operating as a multi-input model. The second model, GNN, exclusively employs the graph encoder. The third model, Topo, relies solely on the topological descriptor encoder. The architecture of the VAE for TopGNN is depicted in Fig. 8. The encoder transforms input data into a latent space representation. Graph inputs are represented using an adjacency matrix A 2 R <sup>100 × 100</sup> and a node feature matrix X 2 R <sup>100 × 100</sup>, with the adjacency vector serving as the node feature due to identical nodes. The Graph Isomorphism Fig. 8 | Architecture of the variational autoencoder (VAE) for TopGNN. The model compresses information from the graph and topological descriptors. These two sets of compressed features are then concatenated and passed to the latent space, where the model learns a normal distribution characterized by parameters μ and σ. Subsequently, samples drawn from this distribution are used by the decoder to reconstruct the adjacency matrix of the input graph. Additionally, the same samples are used in two auxiliary tasks: predicting the radius of gyration and classifying the topology. The numbers in the parentheses indicates the size of the layer. Network encoder <sup>85</sup>, equipped with two graph convolutional layers, maps these inputs into a 32-dimensional feature vector hg. Despite its shallow architecture and narrow receptive fields, GIN has demonstrated robust performance across a range of tasks in materials science and chemistry <sup>86,87</sup> . The topological descriptor vector is similarly converted into a 32-dimensional feature vector ht by a dense neural network (DNN) encoder. Subsequently, the feature vectors hg and ht are concatenated to yield a combined feature vector h 2 R <sup>64</sup> . Additional dense layers generate the parameters of the latent Gaussian distribution: the mean μ and the logarithm of variance log σ <sup>2</sup> . These parameters define the latent space embedding z ∼ N ðμ; σÞ, which has a dimensionality of 8. The decoder then samples from z to reconstruct data. A convolutional neural network is used to reconstruct the adjacency matrix A <sup>^</sup> . Additionally, two additional and distinct neural networks are tasked with predicting ^yr and ^yt. We note that the present approach does not enforce symmetry of the reconstructed adjacency matrix during training, similar to the approach of prior work using VAE to generate conjugated peptides <sup>57</sup> . However, symmetry is enforced during the polymer graph Treconstruction and generation process by selecting A <sup>^</sup> sym ¼ maxijfA <sup>^</sup> ij; A <sup>^</sup> ij <sup>g.</sup> Loss functions. Training of the VAE uses a composite loss function LVAE LVAE ¼ LRec þ LKL þ λRegLReg þ λClsLCls; ð10Þ which features terms associated with reconstruction, LRec via binary crossentropy (BCE); Kullback-Leibler (KL) divergence, LKL; regression for yrLReg; and classification for yt via cross-entropy (CE), LCls. In Eq. (10), λReg and λCls are hyperparameter weights that are adjustable for optimizing performance. The individual loss terms are defined as follows: LRec ¼ BCEðA; A <sup>^</sup> Þ ¼ - <sup>P</sup> 100 i¼1 P100 j¼1 ð11Þ AijlogðA <sup>^</sup> ijÞ þ ð1 � AijÞlogð1 � A <sup>^</sup> ijÞ; LKL ¼ DKLðz jj N ð0; IÞÞ <sup>2</sup> i <sup>Þ �</sup> <sup>σ2</sup> i difference between the pre- and post-cleansing latent vectors is less than 1. These criteria preserve the inherent properties of the generated polymers. Polymer generation with target properties. To generate polymers with specific target properties, namely hR <sup>2</sup> g <sup>i and topology, “parent” polymers</sup> that exhibit these desired characteristics are first identified from the original dataset. The criterionfor hR <sup>2</sup> g <sup>i is relaxed to allowa tolerance range</sup> of ± 2 around the target value. Points are then sampled near the latentspace vectors of the parent polymers by introducing Gaussian noise with a mean of 0 and a variance of 0.1. The hR <sup>2</sup> g <sup>i and topology of each generated</sup> candidate polymer is then predicted using the trained ML model. Candidates that do not exhibit target topology or deviate in hR <sup>2</sup> g <sup>i by more than</sup> 2 σ <sup>2</sup> are discarded. Following this initial screening, polymer graphs undergo cleansing as previously described, except that hR <sup>2</sup> g <sup>i of candidates</sup> must more stringently remain within 2 σ <sup>2</sup> of both the initial target and pre-cleansing values. Subsequently, non-distinct graphs, either duplicated from the original dataset or already present within the generated pool, are identified and removed through graph isomorphism checks. Additional details are in the Supplementary Discussion Section 4. The proportion of generated polymer graphs with target properties that undergo graph cleansing and pass all validation checks is detailed in Supplementary Table 1. Latent-space visualization. The latent space is visualized using the Uniform Manifold Approximation and Projection (UMAP) algorithm <sup>90</sup> . The parameters follow that of prior work <sup>43</sup>, wherein the UMAP local neighborhood size is fixed at 200, the minimum embedding distance between points is set to 1, and the Euclidean distance metric is utilized in feature space analysis. This results in a mapping from R <sup>8</sup> to R <sup>2</sup> : UMAP(z) = u, where z denotes a latent vector and u its corresponding low-dimensional representation. Diversity evaluation. To calculate the diversity of a set of polymer topologies, each graph representation undergoes transformation into a Laplacian spectrum, encapsulating all eigenvalues of the graph Laplacian matrix. The Laplacian matrix is defined as the difference between the adjacency matrix and the degree matrix of the graph. Diversity quantification employs the Vendi Score (VS) <sup>91</sup>, defined as: ¼ - <sup><u>1</u></sup> 2 X8 i¼1 ð1 þ logðσ <sup>2</sup> i <sup>2</sup> i <sup>�</sup> <sup>μ2</sup> i ð12Þ <sup>2</sup> i <sup>Þ;</sup> LReg ¼ MAEðyr; ^yrÞ ð13Þ ¼ jyr � ^yrj; LCls ¼ CEðyt; ^ytÞ ¼ - <sup>P</sup> 6 i¼1 ð14Þ yt;i logð^yt;iÞ: Model training and hyperparameter tuning. All models are implemented using TensorFlow <sup>88</sup> . Models undergo training for 1000 epochs with theAdam optimizer <sup>89</sup> . Abroad range ofhyperparametersisexplored, encompassing batch sizes {32, 64, 128}, learning rates {0.0001, 0.001, 0.01},andregularizationterms λReg ∈ {0.01, 0.1, 1, 10, 100} and λCls ∈ {0.01, 0.1, 1, 10, 100}. Criteria for model weight saving include overall validation loss, Evidence Lower Bound (ELBO), and reconstruction balanced accuracy. Across three encoder types, this approach results in 2025 distinct hyperparameter combinations. For each encoder type, the optimal hyperparameter configuration is selected based on a composite validation metric that combines several key performance indicators: reconstruction balanced accuracy (BACC), KL divergence, hR <sup>2</sup> g <sup>i</sup> <sup>regres-</sup> sion R <sup>2</sup> value, and the topology classification F1 score. These metrics are min-max normalized <u>a �</u> <u>minðaÞ</u> �a ¼ ð15Þ maxðaÞ � minðaÞ and consolidated into a four-dimensional vector as <u>h</u> i Xn i¼1 λi log λi ! ; ð17Þ v ¼ 1 � BACC; KL; 1 � R <sup>2</sup> ; 1 � F1 : ð16Þ VSðKÞ ¼ exp Subsequently, the optimal hyperparameter configuration is determined as that nearest to the origin (0, 0, 0, 0). Since hyperparameter optimization does not involve updating model weights, compared to abstract loss functions, these metrics are more interpretable and directly related to our objectives, such as improving reconstruction, prediction accuracy, and model generalization. Random polymer generation. To generate random polymer topologies, points are sampled from a predefined latent distribution, and the resultant latent vector, zgen, is transformed into an adjacency matrix, Agen. Each element in Agen indicates the connectivity between nodes. To avoid spurious and unphysical edge-formation or other errors during reconstruction, generated polymers then undergo a graph-cleansing step. This step principally removes isolated nodes and breaks small rings. Because this modifies the original adjacency matrix, we implement a validation protocol, which is fully described in Supplementary Discussion Section 3. Briefly, the cleansed graph and its recalculated topological descriptors are re-encoded to derive updated values for hR <sup>2</sup> g <sup>i and topology class. Cleansed</sup> graphs are considered valid if they satisfy three criteria. First, the difference in hR <sup>2</sup> g <sup>i values before and after cleansing is less than 2 σ2. Second,</sup> the topology classification is unchanged. Third, the mean squared where λi represents the eigenvalues of the matrix K/n, with the convention 0 log 0 ¼ 0. The similarity function in use is the dot product between normalized Laplacian spectra, denoted as X 2 R <sup>n × 100</sup>, with 100 indicating the maximum eigenvalue count. For spectral vectors shorter than 100, zeropadding ensures length standardization. For reference, the minimum VS value is unity. Data availability [The data associated with this study are publicly accessible at https://doi.org/](https://doi.org/10.5281/zenodo.10672434) [10.5281/zenodo.10672434.](https://doi.org/10.5281/zenodo.10672434) Code availability [The code associated with this study is publicly accessible at https://github.](https://github.com/webbtheosim/poly-topoGNN-vae) [com/webbtheosim/poly-topoGNN-vae.](https://github.com/webbtheosim/poly-topoGNN-vae) Received: 16 February 2024; Accepted: 14 June 2024; References 1. Bertoft, E. Understanding starch structure: recent progress. Agronomy 7, 56 (2017). 2. Gao, Y. et al. Complex polymer architectures through free-radical polymerization of multivinyl monomers. Nat. Rev. Chem. 4, 194–212 (2020). 3. Blosch, S. E., Scannelli, S. J., Alaboalirat, M. & Matson, J. B. Complex polymer architectures using ring-opening metathesis polymerization: synthesis, applications, and practical considerations. Macromolecules 55, 4200–4227 (2022). 4. Matyjaszewski, K. Atom transfer radical polymerization (ATRP): current status and future perspectives. Macromolecules 45, 4015–4039 (2012). 5. Chiefari, J. et al. Living free-radical polymerization by reversible addition-fragmentation chain transfer: the RAFT process. Macromolecules 31, 5559–5562 (1998). 6. Bazan, G. C. & Schrock, R. R. Synthesis of star block copolymers by controlled ring-opening metathesis polymerization. Macromolecules 24, 817–823 (1991). 7. Levi, A. E. et al. Efficient synthesis of asymmetric miktoarm star polymers. Macromolecules 53, 702–710 (2020). 8. Yoo, J., Runge, M. B. & Bowden, N. B. Synthesis of complex architectures of comb block copolymers. Polymer 52, 2499–2504 (2011). 9. Bousquet, A., Barner-Kowollik, C. & Stenzel, M. H. Synthesis of comb polymers via grafting-onto macromolecules bearing pendant diene groups via the hetero-Diels-Alder-RAFT click concept. J. Polym. Sci. Part A: Polym. Chem. 48, 1773–1781 (2010). 10. Bayer, U. & Stadler, R. Synthesis and properties of amphiphilic “dumbbell”-shaped grafted block copolymers, 1. anionic synthesis via a polyfunctional initiator. Macromol. Chem. Phys. 195, 2709–2722 (1994). 11. Knauss, D. M. & Huang, T. Star-block-linear-block-star triblock (pompom) polystyrene by convergent living anionic polymerization. Macromolecules 35, 2055–2062 (2002). 12. Liu, B., Kazlauciunas, A., Guthrie, J. T. & Perrier, S. One-pot hyperbranched polymer synthesis mediated by reversible addition fragmentation chain transfer (RAFT) polymerization. Macromolecules 38, 2131–2136 (2005). 13. Chen, S., Xu, Z. & Zhang, D. Synthesis and application of epoxyended hyperbranched polymers. Chem. Eng. J. 343, 283–302 (2018). 14. Hawker, C. J. & Frechet, J. M. Preparation of polymers with controlled molecular architecture. a new convergent approach to dendritic macromolecules. J. Am. Chem. Soc. 112, 7638–7647 (1990). 15. Lepoittevin, B., Matmour, R., Francis, R., Taton, D. & Gnanou, Y. Synthesis of dendrimer-like polystyrene by atom transfer radical polymerization and investigation of their viscosity behavior. Macromolecules 38, 3120–3128 (2005). 16. Lepoittevin, B. et al. Synthesis and characterization of ring-shaped polystyrenes. Macromolecules 33, 8218–8224 (2000). 17. Iatrou, H., Hadjichristidis, N., Meier, G., Frielinghaus, H. & Monkenbusch, M. Synthesis and characterization of model cyclic block copolymers of styrene and butadiene. comparison of the aggregation phenomena in selective solvents with linear diblock and triblock analogues. Macromolecules 35, 5426–5437 (2002). 18. Zhang, H., Gnanou, Y. & Hadjichristidis, N. Well-defined polyethylene molecular brushes by polyhomologation and ring opening metathesis polymerization. Polym. Chem. 5, 6431–6434 (2014). 19. Zhang, H. & Hadjichristidis, N. Well-defined bilayered molecular cobrushes with internal polyethylene blocks and ω-hydroxylfunctionalized polyethylene homobrushes. Macromolecules 49, 1590–1596 (2016). 20. Wever,D. A. Z., Picchioni,F. & Broekhuis, A. A. Polymers for enhanced oil recovery:a paradigmfor structure-property relationship inaqueous solution. Prog. Polym. Sci. 36, 1558–1628 (2011). 21. Wever, D. A. Z., Polgar, L. M., Stuart, M. C. A., Picchioni, F. & Broekhuis, A. A. Polymer molecular architecture as a tool for controlling the rheological properties of aqueous polyacrylamide solutions for enhanced oil recovery. Ind. Eng. Chem. Res. 52, 16993–17005 (2013). 22. Fan, Z. W. et al. Topology and dynamic regulations of comb-like polymers as strong adhesives. Macromolecules 56, 1514–1526 (2023). 23. Xiong, C., Xiong, W., Mu, Y., Pei, D. & Wan, X. Mussel-inspired polymeric coatings with the antifouling efficacy controlled by topologies. J. Mater. Chem. B 10, 9295–9304 (2022). 24. Modica, K. J., Martin, T. B. & Jayaraman, A. Effect of polymer architecture on the structure and interactions of polymer grafted particles: theory and simulations. Macromolecules 50, 4854–4866 (2017). 25. Khabaz, F. & Khare, R. Effect of chain architecture on the size, shape, and intrinsic viscosity of chains in polymer solutions: a molecular simulation study. J. Chem. Phys. 141 21, 214904 (2014). 26. Wijesinghe, S., Perahia, D. & Grest, G. S. Polymer topology effects on dynamics of comb polymer melts. Macromolecules 51, 7621–7628 (2018). 27. Liu, Y. et al. Recent development in topological polymer electrolytes for rechargeable lithium batteries. Adv. Sci. 10, e2206978 (2023). 28. Zhou, Y. et al. Dicationic tetraalkylammonium-based polymeric ionic liquid with star and four-arm topologies as advanced solid-state electrolyte for lithium metal battery. React. Funct. Polym. 145, 104375 (2019). 29. Zhang, L., Wang, S., Wang, Q., Shao, H. & Jin, Z. Dendritic solid polymer electrolytes: a new paradigm for high-performance lithiumbased batteries. Adv. Mater. 35, e2303355 (2023). 30. Su, Y. et al. Rational design of a topological polymeric solid electrolyte for high-performance all-solid-state alkali metal batteries. Nat. Commun. 13, 4181 (2022). 31. Webb, M. A. et al. Systematic computational and experimental investigation of lithium-ion transport mechanisms in polyester-based polymer electrolytes. ACS Cent. Sci. 1, 198–205 (2015). 32. Fong, K. D. et al. Ion transport and the true transference number in nonaqueous polyelectrolyte solutions for lithium ion batteries. ACS Cent. Sci. 5, 1250–1260 (2019). 33. Brandell, D., Priimägi, P., Kasemägi, H. & Aabloo, A. Branched polyethylene/poly (ethylene oxide) as a host matrix for Li-ion battery electrolytes: a molecular dynamics study. Electrochim. Acta 57, 228–236 (2011). 34. Cook, A. B. & Perrier, S. Branched and dendritic polymer architectures: functional nanomaterials for therapeutic delivery. Adv. Funct. Mater. 30, 1901001 (2020). 35. Yu, C. et al. Molecular dynamics simulation studies of hyperbranched polyglycerols and their encapsulation behaviors of small drug molecules. Phys. Chem. Chem. Phys. 18, 22446–22457 (2016). 36. Javan Nikkhah, S. & Thompson, D. Molecular modelling guided modulation of molecular shape and charge for design of smart selfassembled polymeric drug transporters. Pharmaceutics 13, 141 (2021). 37. Ahmad, S. et al. In silico modelling of drug–polymer interactions for pharmaceutical formulations. J. R. Soc. Interface 7, S423–S433 (2010). 38. Martinho, N. et al. Molecular modeling to study dendrimers for biomedical applications. Molecules 19, 20424–20467 (2014). 39. Polymeropoulos, G. et al. 50th anniversaryperspective: polymerswith complex architectures. Macromolecules 50, 1253–1290 (2017). 40. Dhamankar, S. & Webb, M. A. Chemically specific coarse-graining of polymers: methods and prospects. J. Polym. Sci. 59, 2613–2643 (2021). 41. Gartner III, T. E. & Jayaraman, A. Modeling and simulations of polymers: a roadmap. Macromolecules 52, 755–786 (2019). 42. Webb, M. A., Jackson, N. E., Gil, P. S. & de Pablo, J. J. Targeted sequence design within the coarse-grained polymer genome. Sci. Adv. 6, eabc6216 (2020). 43. Patel, R. A., Colmenares, S. & Webb, M. A. Sequence patterning, morphology, and dispersity in single-chain nanoparticles: insights from simulation and machine learning. ACS Polym. Au 3, 284–294 (2023). 44. Kosuri, S. et al. Machine-assisted discovery of chondroitinase abc complexes toward sustained neural regeneration. Adv. Healthc. Mater. 11, e2102101 (2022). 45. Tamasi, M. J. et al. Machine learning on a robotic platform for the design of polymer–protein hybrids. Adv. Mater. 34, e2201809 (2022). 46. Kumar, R. et al. Efficient polymer-mediated delivery of gene-editing ribonucleoprotein payloads through combinatorial design, parallelized experimentation, and machine learning. ACS Nano 14, 17626–17639 (2020). 47. Kumar, R. Materiomically designed polymeric vehicles for nucleic acids: quo vadis? ACS Appl. Bio Mater. 5, 2507–2535 (2022). 48. Panganiban, B. et al. Random heteropolymers preserve protein function in foreign environments. Science 359, 1239–1243 (2018). 49. Barnett, J. W. et al. Designing exceptional gas-separation polymer membranes using machine learning. Sci. Adv. 6, eaaz4301 (2020). 50. Sanchez-Lengeling, B. & Aspuru-Guzik, A. Inverse molecular design using machine learning: generative models for matter engineering. Science 361, 360–365 (2018). 51. Kingma, D. P. & Welling, M. Auto-encoding variational bayes. In International Conference on Learning Representations (2014). 52. Dieng, A. B., Kim, Y., Rush, A. M. & Blei, D. M. Avoiding latent variable collapse with generative skip models. In International Conference on Artificial Intelligence and Statistics, 2397–2405 (PMLR, 2019). 53. Jin, W., Barzilay, R. & Jaakkola, T. Junction tree variational autoencoder for molecular graph generation. In International Conference on Machine Learning, 2323–2332 (PMLR, 2018). 54. Gómez-Bombarelli, R. et al. Automatic chemical design using a datadriven continuous representation of molecules. ACS Cent. Sci. 4, 268–276 (2018). 55. Batra, R. et al. Polymers for extreme conditions designed using syntax-directed variational autoencoders. Chem. Mater. 32, 10489–10500 (2020). 56. Chiu, Y.-H., Liao, Y.-H. & Juang, J.-Y. Designing bioinspired composite structures via genetic algorithm and conditional variational autoencoder. Polymers 15, 281 (2023). 57. Shmilovich, K. et al. Discovery of self-assembling π-conjugated peptides by active learning-directed coarse-grained molecular simulation. J. Phys. Chem. B 124, 3873–3891 (2020). 58. Kim, S., Schroeder, C. M. & Jackson, N. E. Open macromolecular genome: generative design of synthetically accessible polymers. ACS Polym. Au 3, 318–330 (2023). 59. Everaers, R., Karimi-Varzaneh, H. A., Fleck, F., Hojdis, N. & Svaneborg, C. Kremer–grest models for commodity polymer melts: linking theory, experiment, and simulation at the kuhn scale. Macromolecules 53, 1901–1916 (2020). 60. Patel, R. A., Borca, C. H. & Webb, M. A. Featurization strategies for polymer sequence or composition design by machine learning. Mol. Syst. Des. Eng. 7, 661–676 (2022). 61. Patel, R. A. & Webb, M. A. Data-driven design of polymer-based biomaterials: high-throughput simulation, experimentation, and machine learning. ACS Appl. Bio Mater. 7, 510–527 (2024). 62. Inoue, K. Functional dendrimers, hyperbranched and star polymers. Prog. Polym. Sci. 25, 453–571 (2000). 63. Scott, A. J., Romero-Zerón, L. & Penlidis, A. Evaluation of polymeric materials for chemical enhanced oil recovery. Processes 8, 361 (2020). 64. Alves, T. F. R. et al. Applications of natural, semi-synthetic, and synthetic polymers in cosmetic formulations. Cosmetics 7, 75 (2020). 65. Martini, A., Ramasamy, U. S. & Len, M. Review of viscosity modifier lubricant additives. Tribol. Lett. 66, 58 (2018). 66. van Ravensteijn, B. G. P., Zerdan, R. B., Hawker, C. J. & Helgeson, M. E. Role of architecture on thermorheological properties of poly(alkyl methacrylate)-based polymers. Macromolecules 54, 5473–5483 (2021). 67. Larson, R. G. The rheology of dilute solutions of flexible polymers: progress and problems. J. Rheol. 49, 1–70 (2005). 68. Colby, R. H., Fetters, L. J. & Graessley, W. W. The melt viscositymolecular weight relationship for linear polymers. Macromolecules 20, 2226–2237 (1987). 69. Rubinstein, M. & Colby, R. H. Polymer Physics (Oxford Univ. Press, 2003). 70. Ferry, J. D. Viscoelastic Properties of Polymers (John Wiley & Sons, 1980). 71. Johnson, K. J., Glynos, E., Sakellariou, G. & Green, P. Dynamics of star-shaped polystyrene molecules: from arm retraction to cooperativity. Macromolecules 49, 5669–5676 (2016). 72. Roland, C., Archer, L., Mott, P. & Sanchez-Reyes, J. Determining rouse relaxation times from the dynamic modulus of entangled polymers. J. Rheol. 48, 395–403 (2004). 73. Pasquino, R. et al. Viscosity of ring polymer melts. ACS Macro Lett. 2, 874–878 (2013). 74. Inkson, N., Graham, R., McLeish, T., Groves, D. & Fernyhough, C. Viscoelasticity of monodisperse comb polymer melts. Macromolecules 39, 4217–4227 (2006). 75. Abbasi, M., Faust, L. & Wilhelm, M. Comb and bottlebrush polymers with superior rheological and mechanical properties. Adv. Mater. 31, 1806484 (2019). 76. Lin, T.-S. et al. BigSMILES: a structurally-based line notation for describing macromolecules. ACS Cent. Sci. 5, 1523–1531 (2019). 77. Lin, T.-S., Rebello, N. J., Lee, G.-H., Morris, M. A. & Olsen, B. D. Canonicalizing BigSMILES for polymers with defined backbones. ACS Polym. Au 2, 486–500 (2022). 78. Schneider, L., Walsh, D., Olsen, B. & de Pablo, J. Generative BigSMILES: an extension for polymer informatics, computer simulations & ML/AI. Digit. Discov. 3, 51–61 (2024). 79. Hu, G., Yan, W., Zhou, J. & Shen, B. Residue interaction network analysisof Dronpa anda DNA clamp. J. Theor.Biol. 348, 55–64(2014). 80. Liang, H., Webb, M. A., Chawathe, M., Bendejacq, D. & de Pablo, J. J. Understanding the structure and rheology of galactomannan solutions with coarse-grained modeling. Macromolecules 56, 177–187 (2022). 81. Plimpton, S. J. Fast parallel algorithms for short-range molecular dynamics. J. Comput. Phys. 117, 1–19 (1993). 82. Ripoll, M., Winkler, R. & Gompper, G. Hydrodynamic screening of star polymers in shear flow. Eur. Phys. J. E, 23, 349–354 (2007). 83. Niepert, M., Ahmed, M. & Kutzkov, K. Learning convolutional neural networks for graphs. In International Conference on Machine Learning, 2014–2023 (PMLR, 2016). 84. Grattarola, D. & Alippi, C. Graph neural networks in Tensorflow and Keras with Spektral [application notes]. IEEE Comput. Intell. Mag. 16, 99–106 (2021). 85. Xu, K., Hu, W., Leskovec, J. & Jegelka, S. How powerful are graph neural networks? In International Conference on Learning Representations (2018). 86. Peng, Y. et al. Enhanced graph isomorphism network for molecular ADMET properties prediction. IEEE Access 8, 168344–168360 (2020). 87. Bao, L. et al. Kinome-wide polypharmacology profiling of small molecules by multi-task graph isomorphism network approach. Acta Pharm. Sin. B 13, 54–67 (2023). 88. Abadi, M. et al. TensorFlow: large-scale machine learning on heterogeneous systems. In OSDI’16: Proc. 12th USENIX Conf. Operating Systems Design and Implementation, 265–283 (USENIX Association, 2016). 89. Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. In International Conference on Learning Representations (2015). 90. McInnes, L., Healy, J., Saul, N. & Großberger, L. Umap: uniform manifold approximation and projection. J. Open Source Softw. 3, 861 (2018). 91. Friedman, D. & Dieng, A. B. The vendi score: a diversity evaluation metric for machine learning. Trans. Mach. Learn. Res. (2023). Acknowledgements M.A.W. and A.B.D acknowledge funding from the Princeton Catalysis Initiative for this research. M.A.W. and S.J. also acknowledge support from the donors of ACS Petroleum Research Fund under Doctoral New Investigator Grant 66706-DNI7. Author contributions S.J. performed all computations and analyses. S.J. wrote the paper with input from M.A.W.andA.B.D.M.A.W.andA.B.D.supervisedall the workand edited the paper. M.A.W. and A.B.D. acquired funding for the work. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-024-01328-0.](https://doi.org/10.1038/s41524-024-01328-0) Correspondence and requests for materials should be addressed to Adji Bousso Dieng or Michael A. Webb. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral withregardtojurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this [licence, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 52문단 · 47,208자

(제목 없음)

1The complexity and diversity of polymer topologies, or chain architectures, present substantial challenges in predicting and engineering polymer properties.Although machine learning is increasingly used in polymer science, applications to address architecturally complex polymers are nascent.Here, we use a generative machine learning model based on variational autoencoders and data generated from molecular dynamics simulations to design polymer topologies that exhibit target properties.Following the construction of a dataset featuring 1342 polymers with linear, cyclic, branch, comb, star, or dendritic structures, we employ a multi-task learning framework that effectively reconstructs and classifies polymer topologies while predicting their dilute-solution radii of gyration.This framework enables the generation of polymer topologies with target size, which is subsequently validated through molecular simulation.These capabilities are then exploited to contrast rheological properties of topologically distinct polymers with otherwise similar dilute-solution behavior.This research opens avenues for engineering polymers with more intricate and tailored properties with machine learning.

2The topology of a polymer chain, or equivalently the chain architecture, can substantially influence their properties and those of derivative materials.For example, in natural polymers, while linear amylose forms dense aggregates with low aqueous solubility, the analogous but highly branched structure of amylopectin impedes association of chains, thereby enhancing its solubility 1 .In the realm of synthetic polymers, the branching in low-density polyethylene improves its processability for applications like blow and extrusion molding, whereas linear high-density polyethylene possesses superior mechanical strength and chemical resistance.There is also growing interest in understanding implications of polymer topology due to advancements in various controllable synthetic methodologies [2][3][4][5] .These methods enable the creation of polymers with a wide range of complex topologies, such as stars 6,7 , combs 8,9 , branches 10,11 , hyperbranches 12,13 , dendrimers 14,15 , rings 16,17 , and brushes 18,19 .

3Establishing quantitative relationships between polymer topology and material properties remains challenging.Both experimental and computational investigations have enhanced understanding of how polymer topology influences properties of interest to many areas, such as enhanced oil recovery 20,21 , coatings and adhesives 22,23 , rheology and fluid dynamics [24][25][26] , energy storage [27][28][29][30][31][32][33] , and biomedical applications [34][35][36][37][38] .Nevertheless, the efforts of labor-intensive and potentially costly synthesis and characterization typically limits experimental studies to a small set of systems, which may still not yield well-defined topological ensembles 3,39 .Computationally, although there is no ambiguity associated with the underlying topologies of the polymers or their construction, simulations are often restricted to a particular class of topologies owing to computational costs and perhaps uncertainty with how to tangibly compare diverse topologies 40,41 .Overall, these factors obfuscate the construction of general topology-property correlations, which also precludes facile design of topologically complex polymers.

4Recent advancements in and applications of machine learning have spurred significant developments in polymer design.These efforts span many applications, such as tailoring the structures of single-chain nanoparticles 42,43 , enhancing enzyme stability 44,45 , delivering drugs and therapeutics [46][47][48] , and identifying gas-separation membranes 49 .Generative machine learning models 50 are a particularly intriguing class of algorithms for chemical design.For example, variational autoencoders (VAEs) are adept at encoding complex data into lower-dimensional latent spaces 51,52 and have previously facilitated the generation of small molecules 53,54 .Applications of VAEs in polymer science are also emerging 55,56 .Shmilovich et al. combined VAEs with molecular dynamics (MD) simulations and Bayesian optimization to guide the discovery of π-conjugated oligopeptides 57 with desirable aggregation behavior to influence optoelectronic properties.In devising the Open Macromolecular Genome (OMG), Kim et al. utilized a generative framework with VAEs that can not only provide polymer structures but also retrosynthesis 58 , thereby facilitating optimization of synthetically accessible materials.Nevertheless, these and other studies primarily focus on specific chemical spaces or linear polymers, highlighting the need for methods to generate polymers with complex topologies and tailored properties.

5In this study, we create a multi-task VAE to generate polymers with specified topology and desired characteristics.This model is developed using an original dataset comprising coarse-grained MD data for over 1300 polymers of various topologies, including star, comb, αω-branched, linear, cyclic, and dendrimer structures, spanning a range of molecular weights.Input and encoding strategies are critically assessed by training several models that aim to reconstruct the polymer topology and also perform auxiliary tasks of estimating the characteristic size of the polymer and classifying its topology.We find that auxiliary tasks enhance the physical interpretability of the learned latent space of the VAE.Our most effective generative modeling framework, TopoGNN, incorporates both graph and topological descriptor features.For demonstrative purposes, TopoGNN is leveraged to produce sets of topologically diverse polymers that exhibit the same characteristic size in dilute solution (Fig. 1, top) but contrasting rheological behavior at finite concentrations (Fig. 1, bottom).This work expands the utility of generative modeling for polymer design and demonstrates how such algorithms can also facilitate controlled studies across complex, topologically diverse polymers.

Polymer dataset

6We first generate and characterize a topologically diverse set of polymers for training and evaluating the VAE.In particular, we initially prepare and simulate 1342 polymers across six architectural classes (11 each for linear and cyclic and 330 each for αω-branched, comb, star and dendrimer); the αω-branched architecture possesses side-chains at two backbone termini and is simply denoted "branch" in figures and tables.The degree of polymerization ranges from 90 to 100 for each architectural class.The VAE here is tasked to encode and decode a specific manifestation of a polymer topology, although the representation of ensembles of such structures is of future interest.

7Figure 2a showcases the diversity of structures across a representative set of these polymers.This diversity is also manifest through the variation of numerous topological descriptors shown in Fig. 2b: N nodes represents the number of nodes, N edges the number of edges, d the average node degree, d nb the average neighbor degree, δ the graph density, ϕ diam the graph diameter, ϕ rad the graph radius, λ alg the algebraic connectivity, C deg the degree centrality, C bet the betweenness centrality, and r deg the degree assortativity.These descriptors, which are derived purely from knowledge of the g i, for a set of polymers.Information regarding topological descriptors and the polymer graph are then encoded into a lower-dimensional latent space using an artificial neural network (ANN) and a graph neural network (GNN).The latent space is decoded to accomplish reconstruction, regression, and classification tasks.These encoded features are concatenated to form a reduced-dimensional latent space, from which a decoder reconstructs the polymer structure.In the Search Phase (bottom), points are sampled from the latent space to proffer polymers that are predicted to exhibit a target hR 2 g i and specified topology.These predictions are evaluated against MD simulations, and post-validation, enable systematic analysis of how topology impacts additional properties, such as viscosity.molecular graph/polymer connectivity, provide a first means to quantitatively characterize and distinguish polymer topologies.The current dataset is restricted to architectures that possess at most one cycle (corresponding to the macrocycle of the cyclic polymer) and also does not describe polymer networks; however, including descriptors related to cyclization or meshes may benefit future models.Despite the uniformity in the number of nodes and edges, which are commonly used to characterize polymers, significant variations are observed in other topological descriptors.For instance, comb, branch, star, and dendrimer topologies, exhibit notable differences in descriptors like graph diameter, radius, betweenness centrality, and degree assortativity, even when node and edge counts are identical.Our primary aim is to assess the efficacy of ML to describe properties of topologically complex polymers.Consequently, the CG simulations used to generate data, for training and benchmarking, are based on the phenomenological Kremer-Grest (KG) model, which is agnostic to constitutional unit chemistry.Furthermore, the results do not represent any specific polymer, although KG can be descriptive of many polymer systems based on mapping schemes 59 .We anticipate that future work could straightforwardly leverage similar ML architectures of chemically specific parameterized CG models, including those with hydrodynamic interactions.

MD Simulation

8Figure 2c and Supplementary Fig. 1 illustrate the range of characteristic polymer sizes, as expressed through the simulated mean squared radius of gyration hR 2 g i, observed in each class.Because the present study imposes a maximum number of monomers, polymers from the linear, cyclic, and dendrimer classes exhibit relatively narrow distributions in hR 2 g i by contrast to comb, branch, and star classes.Dendrimers notably form compact, globular structures over the range of simulated molecular weights relative to all other classes.Overall, the dataset is partitioned into a 64/16/20 train/ validation/test split for future model construction and evaluation; stratified sampling is used to ensure proportional representation of architectural classes across all splits.

Polymer reconstruction and property prediction

9Based on prior work on linear polymer featurization 60,61 , we hypothesized that polymer reconstruction with a VAE could be enhanced if derived topological descriptors were supplied as inputs.To examine this, we evaluate three distinct encoding strategies: TopoGNN, which integrates topological descriptors with graph features; GNN, which exclusively relies on graph features; and Topo, which solely employs topological descriptors.For each strategy, we consider a multitude of models with distinct hyperparameters and their performance across a broad range of evaluation metrics.For example, reconstruction performance is quantitatively evaluated with balanced accuracy (BACC), which measures the accuracy of individual entries in the reconstructed adjacency matrix.For topology classification, F 1 score is chosen to address the class imbalance in our dataset.Other metrics include the coefficient of determination R 2 for regression on hR 2 g i and the Kullback-Leibler (KL) divergence.Representative models for each encoding strategy are selected using a comprehensive evaluation score (CES) that simultaneously considers all criteria:

10where a denotes the min-max normalized value of a; CES can be interpreted as the distance from the origin (a perfect model) in a vector space spanned by error metrics.Table 1 summarizes the performance of these representative models.Across encoding strategies, TopoGNN emerges as the most overall effective, registering the smallest CES.By comparison, the Topo model yields slightly superior performance on regression and comparable F 1 score.Conversely, the GNN model demonstrates a slightly higher balanced accuracy in reconstruction tasks and a lower KL divergence; however, it significantly underperforms in regression and classification.These results support the inclusion of topological descriptors during construction of the VAE.

11To assess model generalizability, we examine the performance of the representative models on the held-out test set.Figure 3 again indicates that TopoGNN delivers consistently strong performance across several evaluation criteria, while GNN and Topo can be deficient in particular metrics.Balanced accuracy is highest for GNN (0.9397), closely followed by TopoGNN (0.9369) and then Topo (0.9164).This suggests that topological descriptors do not necessarily enhance reconstruction performance, although the ability of Topo to effectively reconstruct certain topologies (e.g., branch polymers) highlights the extensive information content encompassed by the 11 topological descriptors.By contrast, directly supplying topological information is clearly advantageous for predicting the characteristic polymer size.Here, TopoGNN stands out as the most effective, achieving the highest mean value (0.9920), surpassing Topo (0.9854)and GNN (0.9639).Meanwhile, GNN achieves the highest mean F 1 score (0.9783), followed by TopoGNN (0.9689) and Topo (0.9678); however all models display statistically comparable results regarding this classification metric.Taken together, this suggest workflows with VAEs can effectively address complexities induced by these polymer architectures.

12For a more nuanced assessment of model quality, Fig. 4 breaks down TopoGNN performance across architectures; comparable information for other models is in Supplementary Figs. 2 and 3.In polymer reconstruction, TopoGNN excels but faces challenges with specific cyclic and comb polymers (Fig. 4a, gray dashed boxes).Notably, GNN generates errors, especially for star polymers, while Topo exhibits minor errors across most architectures.Regarding the prediction of hR 2 g i (Fig. 4b), TopoGNN performs well regardless of polymer class.Both GNN and Topo display high correlation, but errors are generally larger for GNN (Supplementary Fig. 2), indicating the difficulty in establishing a direct relationship between graph features and hR 2 g i.A saliency analysis (Supplementary Fig. 3) reveals that graph diameter, betweenness centrality, and algebraic connectivity most strongly influence hR 2 g i, aligning with their direct correlation with hR 2 g i (Supplementary Fig. 1).For topology classification, TopoGNN (Fig. 4c) is broadly effective, with most misclassifications occurring in linear, αωbranched, and comb architectures.These issues are more pronounced in Topo and GNN (Supplementary Fig. 3) and can be augmented with other misclassifciations.Overall, TopoGNN, which utilizes both graph and topological features, not only consistently outperforms other models but also delivers high-quality results.The remainder of the article therefore focuses on analysis and applications of TopoGNN to illustrate its practical deployment.

13Latent space exploration and polymer generation Figure 5 presents the UMAP projection of the 8-dimensional latent space of topoGNN into a 2-dimensional space for visualization.Distinct topological clusters emerge in Fig. 5a and b, which reveals organization of the latent space that depends on relationships amongst architectures and their physical properties.Dendrimers, characterized by their high orders of branches, form three, mostly isolated and distinct clusters that reflect how the dendrimer architectures were algorithmically generated; they are most closely related to star polymers and αω-branched polymers (particularly those with pom-pom architectures).Branch, comb, and star polymers all notably overlap within the latent space, which is attributed to topological similarities (Fig. 2b).Cyclic and linear polymers are interspersed within comb and branch clusters, with linear polymers sharing a long backbone and cyclic polymers possessing a long ring-closed backbone.This organization is clearly informed training with auxiliary tasks for predicting hR 2 g i and classifying topologies, as illustrated in Fig. 5b.A vertical trajectory in the UMAP space (marked by an increase in Z 2 ) results in an almost monotonic increase in hR 2 g i for the generated polymer topologies (Fig. 5c).Conversely, a horizontal trajectory (associated with an increase in Z 1 ) moreso transitions topology classes with slight variations in hR 2 g i ((Fig.5d).Omitting the auxiliary tasks leads to less distinct separation of topological classes and disrupts the monotonicity of the hR 2 g i (Supplementary Fig. 6).The latent spaces of GNN and Topo (Supplementary Fig. 5) are prone to similar issues.Overall, this highlights the effectiveness of the workflow for TopoGNN to produce an intuitive and physically meaningful latent space.

14The latent space of TopoGNN can be used to generate a diverse set of polymer topologies.This is exemplified by computing the Vendi Score (VS) for each architecture (see section "Machine Learning Details" for details) and comparing it to that of the originally constructed dataset.Whereas the VS for the original dataset (1342 points) is 2.0968, that for 1342 topologies generated using TopoGNN is 5.0684, which exceeds those for GNN (4.9580) and Topo (4.3305).Examples of the generated polymer topologies and their distribution are shown in Supplementary Figs.7-10.This indicates that all models can generate a more diverse range of polymer topologies compared to the original handcrafted dataset, which could have implications for downstream tasks, as explored in the next section.

Property-guided polymer topology generation

15To illustrate one application for TopoGNN, we generate a series of distinct polymer topologies that exhibit specific hR 2 g i.While hR 2 g i itself is a fundamental characteristic of the polymers, the rationale here is moreso to demonstrate the production of alternative materials with similar characteristics and further to assess how topology affects other polymer properties, such as rheology, without conflation of other factors.We therefore select target hR 2 g i ranges of 7.5 ± 2, 30 ± 2, and 50 ± 2 which represent the low, intermediate, and high regions of hR 2 g i in the dataset, respectively (Fig. 2) and conditionally sample polymers from the latent space across the different topological classes.The hR 2 g i are then validated for the generated polymer topologies using MD simulation.These results are shown in Fig. 6, which illustrates that TopoGNN can indeed produce a range of distinct structures that exhibit effectively similar hR 2 g i. Targeting ¼ 7:5 ± 2 predominantly yields dendrimer and star topologies, targeting hR 2 g i ¼ 30 ± 2 yields branch, comb, cyclic, and star topologies, and targeting hR 2 g i ¼ 50 ± 2 mostly yields in branch and comb architectures.With the current approach, however, architectures that satisfy specific targets cannot be arbitrarily produced based on the molecular-weight restrictions.For example, dendrimers are more or less restricted to low hR 2 g i, while linear polymers are mostly restricted to larger hR 2 g i.Moreover, relatively few polymers meet the ambitious target of 50 ± 2, which is consistent with the paucity of data points around hR 2 g i ¼ 50 ± 2 within the original dataset; however, the group of polymers here uniformly exceed those of the smaller 30 ± 2 target.Interestingly, TopoGNN also proffers architectures, such as irregular dendrimers and nuanced branching patters in stars and combs, that go beyond those of the original dataset.Overall, these results reflect the intended capability of TopoGNN to generate a broad spectrum of original polymer topologies that align with a target property.

Rheological Analysis

16The viscosity-modifying properties of polymers are key to numerous applications [62][63][64] and depend on a variety of factors, including unit chemistry, polymer composition, and chain topology 65,66 .The relative impacts of such factors can be difficult to disentangle.Using TopoGNN, we specifically explore the influence of polymer topology on rheological characteristics.While solution viscosity at dilute concentrations is primarily determined by polymer size, which sets the overlap concentration 67 , we control for this factor by designing topologies with specified hR 2 g i and examine topological implications across a range of concentrations.Figure 7a examines the concentration-dependent shear viscosity as determined from MD simulations of four selected topologies.Figure 7a presents concentrationdependent shear viscosity from MD simulations of four selected topologies.Differences emerge beyond 0.4 σ −3 , with cyclic polymers showing lower viscosities due to reduced entanglements, and branched polymers exhibiting elevated viscosities due to extended side chains.Star and comb polymers demonstrate similar, somewhat lower shear viscosities compared to branched polymers, highlighting the impact of side-chain position and density on entanglement effectiveness.Additionally, we observe nuanced differences in frequency-dependent storage and loss moduli, G 0 and G″, across topologies and concentrations (Fig. 7b, c).While all solutions exhibit liquid-like viscous behavior at low frequencies and solid-like behavior at high frequencies below 0.6 σ −3 , star, branch, and comb polymers display three crossover frequencies as concentration increases.In contrast, cyclic polymers maintain a single crossover frequency, indicating less nuanced viscoelastic behavior.The presence of multiple crossover frequencies at higher concentrations (Fig. 7c and Supplementary Fig. 11) has been previously observed in both simulations and experiments [68][69][70][71][72] .Notably, the plateau between the lowest and second lowest crossover frequencies, where G 0 > G 00 signifies a rubbery plateau attributed to polymer entanglement.Regarding the relative viscosities of differing architectures, some results are also resonant with prior work.For example, cyclic polymers exhibit relatively lower viscosities, which is due to the absence of free ends that tends to reduce entanglements 73 , and αω-branched polymers tend to possess higher viscosities, which is consistent with expectations set by experimental investigation of the impact of side-chain length on viscosity 74,75 .Here, polymers classified with comb architectures have a similar number of side chains and similar backbone lengths as those classified as αω-branched architectures; however, the side-chains are shorter, resulting in less effective friction and lower viscosity.This highlights potential for how rheological properties might be modulated through strategic architecture design.

Discussion

17This study employed variational autoencoders to address emergent combinatorial complexity of diverse polymer topologies, which has been scarcely addressed in machine learning of macromolecules.We constructed an extensive dataset featuring the average squared radius of gyration (hR 2 g i) for 1342 polymers with various architectures, including linear, cyclic, branch, comb, star, and dendrimer structures.By analyzing different encoding strategies and input representations, we found that meaningful latent spaces of polymers with complex topologies can be established by (i) incorporating both graph-explicit and graph-derived features and (ii) coupling graph reconstruction tasks with auxiliary prediction tasks, such as those related to physical properties.Probabilistic sampling over the latent space was shown to result in rich topological diversity.These generative capabilities were then used to produce distinct polymer topologies with target characteristic sizes in dilute solution.This enabled subsequent investigation by coarse-grained molecular dynamics into how topology influences rheological properties, such as shear viscosity and viscoelastic moduli, while controlling for Fig. 5 | Visualization and exploration of the latent space.a Two-dimensional visualization of the TopoGNN latent space using the Uniform Manifold Approximation and Projection (UMAP) technique.A subset of the data is displayed for clarity, with each marker representing a polymer graph based on its latent vector.Different colors denote distinct topologies.b Organization of (left) hR 2 g i and (right) topology in the UMAP-coordinate space.The dots signify the latent vectors of polymer graphs.The two arrows mark regions in the latent space targeted for exploration (i.e., new polymer topology generation).c As exploration progresses with an increase in Z 2 in the latent space (represented by a solid line), there is a nearmonotonic rise in hR 2 g i for the generated polymers.d Progression with an increase in Z 1 (indicated by a dashed line) showcases shifts in polymer topology, moving through clusters characteristic of star, comb, and branch topologies.polymer size.While all architectures exhibited similar rheological behavior at relatively low concentrations, distinct responses emerged at higher concentrations.For instance, localized branches at chain ends resulted in more viscous solutions compared to other architectures, including cyclic structures that exhibited minimal entanglements.Apart from illustrating how rheological behavior might be tuned or altered via polymer architecture, this also showcases a paradigm for studying the physical properties of topologically distinct systems.This work also invites several future research directions.Particularly, TopoGNN exhibits promising potential as a generative model, offering a cost-effective alternative to experiments or simulations in predicting properties like hR 2 g i.While hR 2 g i serves as a straightforward and computationally accessible quantity, there is interest in extending the strategy to incorporate or utilize other properties.Although this work leveraged TopoGNN to simply compare rheological properties in systematic fashion, in the future, it may be deployed to guide design efforts aimed at optimizing Fig. 7 | Effect of polymer topology on shear viscosity and complex moduli at comparable hR 2 g i. a Influence of polymer topology and concentration on viscosity, featuring topologies such as star, branch, comb, and cyclic, each with a hR 2 g i of approximately 30 ± 2. b Relationship between polymer topology, concentration, and complex moduli crossover frequencies.c Complex moduli for various topologies at concentrations of 0.1 and 0.8, with the star symbol marking the crossover point.

18Fig. 6 | Generation of polymer topologies with target hR 2 g i. Topologies are generated aiming for target hR 2 g i values of 7.5 ± 2, 30 ± 2, and 50 ± 2. Each generated topology is accompanied by its type and the predicted hR 2 g i from TopoGNN, presented in parentheses on the x-axis.A violin plot showcases the revalidation of hR 2 g i via MD simulation for every topology.The gold dot marks the hR 2 g i, while the white dot stands for the median.The black bar represents the interquartile range, and the plot width reflects the distribution density of R 2 g .Two dashed lines highlight the hR 2 g i range used in the guided search.polymer properties.We also note that the dataset and machine learning framework are currently limited to polymers with a narrow range of bead numbers (equivalently, molecular weights).Future research will explore the extensibility and transferability of machine learning architectures across various molecular weights, potentially through the use of string-based representations [76][77][78] .

19This study also focused on specific structural and rheological characterizations of chemically homogeneous and precise polymers at coarsegrained resolution.The ML framework might be feasibly extended to address compositional complexity; however, such efforts will need to address increased data burdens to capture the behavior of such systems.For this and other reasons, TopoGNN and related ML strategies will benefit from advancements that accelerate molecular simulation to increase data throughput, and those that improve the accuracy of CG models, which will expand the validity and range of properties that can be reliably computed.In particular, parameterized CG models may not be transferable across all thermodynamic conditions of interest, and dynamical consistency between CG models and high-resolution systems poses a persistent challenge 40 .Finally, the dataset and ML models introduced here feature precisely defined polymer architectures.Although the architectural classes studied are broadly accessible, precision control over architecture is beyond current synthetic capabilities.Therefore, future efforts in both the ML and modeling space must address how to predict and represent ensembles of polymer structures 77 that are accessible with modern synthetic approaches and appropriately tailoring generative capabilities towards these 58 .Overall, understanding and controlling the properties of polymers, which involve chemical, compositional, and topological complexity, and aligning these properties with synthesizable polymer systems remains a significant challenge in polymer science.This study provides a foundation to pursue these directions.

Description of dataset

20The dataset comprises 1342 polymer architectures, each containing between 90 and 100 constitutional units, or beads.Polymer architectures encompass a wide range of topologies, including linear, cyclic, branch, comb, star, and dendrimer structures.Due to limitations bead count, linear and cyclic topologies are restricted to 11 distinct polymers each, whereas other topologies are represented by 330 distinct polymers each.The polymers are chemically homogeneous with all beads treated equivalently.The procedure for generating polymer graphs is described in the Supplementary Discussion Section 2. For each polymer graph, we calculate an 11-dimensional topological descriptor vector 43,79 using the number of nodes, number of edges, average degree, average neighbor degree, density, diameter, radius, algebraic connectivity, degree centrality, betweenness centrality, and degree assortativity as elements.For further details on these descriptors, readers are referred to Supplementary Discussion Section 1.

Calculation of polymer properties

21Radius of gyration.We investigate the structural properties of individual polymer chains using coarse-grained molecular dynamics.To do so, we compute the gyration tensor S:

22where r i denotes the position vector of the ith bead, r cm represents the center-of-mass position of the polymer, and T indicates the transpose operation.Diagonalizing yields S ¼ diagðλ 2 1 ; λ 2 2 ; λ 2 3 Þ where the diagonal elements are the principal moments of the gyration tensor ordered as λ 1 ≤ λ 2 ≤ λ 3 .The squared radius of gyration can be subsequently computed as

23and quantifies the size of a given polymer conformation.The ensemble average hR 2 g i is the constructed using a series all sampled configurations.This ensemble-averaged quantity serves as the target for the regression auxiliary task.

24Rheological properties.We also characterize several rheology-related properties for select polymer systems.The shear viscosity η of the polymer solution is formally calculated via

25where G(t) denotes the stress relaxation modulus.We determine G(t) using the Green-Kubo relation

26with V representing the simulation box volume, σ αβ ðtÞ signifying the offdiagonal stress tensor components averaged at intervals of 1000 steps, and 〈 ⋯ 〉 denoting an ensemble-average.Often, G(t) exhibits significant noise at long times, which renders direct numerical integration of Eq. ( 4) unreliable.Therefore, following prior work 80 , we fit the simulated G(t) data to a generalized Maxwell model, given by GðtÞ ¼ P p G p expðÀt=τ p Þ, where G p and τ p represent the modulus and relaxation time of the p-th element, respectively.This approach yields the viscosity η = ∑ p G p τ p .We also compute the storage modulus (G 0 ) and the loss modulus (G″) to better characterize the viscoelastic properties of the polymers.These moduli are obtained from the Fourier transform of the stress relaxation modulus, yielding

27Here, G 0 ðωÞ, the storage modulus, reflects the elastic, or energy-storing, aspect of the material, while G″(ω), the loss modulus, represents the viscous, or energy-dissipating, component.This analysis is thus restricted to linear viscoelasticity.

MD simulation details

28MD simulations are used to generate polymer configurations for the characterization of polymer properties.All simulations are conducted using the LAMMPS simulation package 81 in reduced units; the units of mass, distance, and energy are denoted by m, σ, and ε, respectively.The reduced time unit follows as ðmσ 2 =εÞ 1=2 .All simulations are considered to take place in an implicit athermal solvent environment, with dynamics of the polymer(s) governed by the Langevin equation, such that hydrodynamic interactions are neglected.The equations-of-motion are numerically integrated using the velocity-Verlet integration scheme with a 0.001 timestep.

29The solvent friction coefficient is set to ς = 0.1.Polymer interactions are modeled via a combination of bonded and nonbonded potential energy contributions.The total potential energy U of a system with configuration r N is expressed as:

30where r ij represents the internal distance calculated from the coordinates r N .The nonbonded energy contributions for all pairs of beads are computed using the following equation:

31where ε ij and σ ij are set to 1.For directly bonded beads, the stretching energy is calculated as:

32where K ij is assigned a value of 30, and R ð0Þ ij is fixed at 1.5.

33Single-chain simulations.Simulations of single coarse-grained polymer chains (no boundary conditions) are used to characterize hR 2 g i.Each simulation is conducted for 2 × 10 7 steps, allocating the first half for system equilibration.Configurations for analysis are sampled every 2 × 10 3 timesteps during the latter half of the simulation.

34Many-chain simulations.Simulations of many chains within a simulation cell with cubic periodic boundary conditions are used for rheological analysis of a subset of polymers with comparable ensembleaveraged square radii of gyration, hR 2 g i. Simulations are performed across various concentrations (0.1 to 0.8) to cover both semi-dilute and semiconcentrated regimes.Each simulation uses 100 chains with the simulation cell dimensions adjusted to match the desired concentration.Equilibration periods of 10 7 steps are utilized for all simulation concentrations.Upon achieving equilibrium, data are collected for 10 7 steps at a timestep of 0.001.We note that using an implicit-solvent environment and neglecting hydrodynamic interactions has implications for simulating rheological properties 82 .However, while these choices affect data generation and its interpretation relative to the physics of real polymer solutions, they do not affect the analysis of the ML task.

Machine learning details

35Data preprocessing.Polymers are represented using graph notation G ¼ ðV; EÞ, where V is the set of nodes, and E is the set of edges.To address the variability in node counts across different polymers, ranging from 90 to 100, we introduce "ghost" nodes with zero-edge connections to standardize graph sizes to 100 nodes using node padding 83,84 .Because all polymer beads are equivalent, the adjacency vector a i 2 R 100 serves as the sole node feature for each polymer bead.Elements of this vector are defined such that a i = 1 if node i is connected to the current node, and a i = 0 otherwise.All bonds are also equivalent, and so edge features are not included in the representation.Polymers are also characterized by an 11-dimensional topological descriptor vector t 2 R 11 as previously described.For the task of polymer reconstruction, an adjacency matrix A 2 R 100 × 100 is associated with each polymer, where A ij = 1 indicates an edge between nodes i and j, and A ij = 0 indicates no edge.For the auxiliary regression task, each polymer is associated with a label for hR 2 g i, denoted y r 2 R.For the auxiliary classification task, each polymer is associated with a one-hot encoded topology label, denoted y t 2 R 6 .The dataset of 1342 polymers is divided into three subsets: 858 for training (64%), 215 for validation (16%), and 269 for testing (20%).Stratified splitting is used to ensure each subset represents all polymer topologies.The training set is utilized to train the VAE, the validation set for hyperparameter optimization, and the test set to evaluate the model generalizability.

36Model architectures.Overall, we explore three distinct encoder architectures while maintaining a uniform decoder architecture.The first model, designated as TopoGNN, combines a graph encoder with a topological descriptor encoder, thus operating as a multi-input model.The second model, GNN, exclusively employs the graph encoder.The third model, Topo, relies solely on the topological descriptor encoder.The architecture of the VAE for TopGNN is depicted in Fig. 8.The encoder transforms input data into a latent space representation.Graph inputs are represented using an adjacency matrix A 2 R 100 × 100 and a node feature matrix X 2 R 100 × 100 , with the adjacency vector serving as the node feature due to identical nodes.The Graph Isomorphism Network encoder 85 , equipped with two graph convolutional layers, maps these inputs into a 32-dimensional feature vector h g .Despite its shallow architecture and narrow receptive fields, GIN has demonstrated robust performance across a range of tasks in materials science and chemistry 86,87 .The topological descriptor vector is similarly converted into a 32-dimensional feature vector h t by a dense neural network (DNN) encoder.Subsequently, the feature vectors h g and h t are concatenated to yield a combined feature vector h 2 R 64 .Additional dense layers generate the parameters of the latent Gaussian distribution: the mean μ and the logarithm of variance log σ 2 .These parameters define the latent space embedding z ∼ N ðμ; σÞ, which has a dimensionality of 8.The decoder then samples from z to reconstruct data.A convolutional neural network is used to reconstruct the adjacency matrix Â.Additionally, two additional and distinct neural networks are tasked with predicting ŷr and ŷt .We note that the present approach does not enforce symmetry of the reconstructed adjacency matrix during training, similar to the approach of prior work using VAE to generate conjugated peptides 57 .However, symmetry is enforced during the polymer graph reconstruction and generation process by selecting Âsym ¼ max ij f Âij ; ÂT ij g.

Loss functions. Training of the VAE uses a composite loss function

37which features terms associated with reconstruction, L Rec via binary crossentropy (BCE); Kullback-Leibler (KL) divergence, L KL ; regression for y r L Reg ; and classification for y t via cross-entropy (CE), L Cls .In Eq. ( 10), λ Reg and λ Cls are hyperparameter weights that are adjustable for optimizing performance.The individual loss terms are defined as follows:

38Model training and hyperparameter tuning.All models are implemented using TensorFlow 88 .Models undergo training for 1000 epochs with the Adam optimizer 89 .A broad range of hyperparameters is explored, encompassing batch sizes {32, 64, 128}, learning rates {0.0001, 0.001, 0.01}, and regularization terms λ Reg ∈ {0.01, 0.1, 1, 10, 100} and λ Cls ∈ {0.01, 0.1, 1, 10, 100}.Criteria for model weight saving include overall validation loss, Evidence Lower Bound (ELBO), and reconstruction balanced accuracy.Across three encoder types, this approach results in 2025 distinct hyperparameter combinations.For each encoder type, the optimal hyperparameter configuration is selected based on a composite validation metric that combines several key performance indicators: reconstruction balanced accuracy (BACC), KL divergence, hR 2 g i regression R 2 value, and the classification F 1 score.

39These metrics are min-max normalized a ¼ a À minðaÞ maxðaÞ À minðaÞ ð15Þ

40and consolidated into a four-dimensional vector as

41Subsequently, the optimal hyperparameter configuration is determined as that nearest to the origin (0, 0, 0, 0).Since hyperparameter optimization does not involve updating model weights, compared to abstract loss functions, these metrics are more interpretable and directly related to our objectives, such as improving reconstruction, prediction accuracy, and model generalization.

42Random polymer generation.To generate random polymer topologies, points are sampled from a predefined latent distribution, and the resultant latent vector, z gen , is transformed into an adjacency matrix, A gen .Each element in A gen indicates the connectivity between nodes.To avoid spurious and unphysical edge-formation or other errors during reconstruction, generated polymers then undergo a graph-cleansing step.This step principally removes isolated nodes and breaks small rings.Because this modifies the original adjacency matrix, we implement a validation protocol, which is fully described in Supplementary Discussion Section 3. Briefly, the cleansed graph and its recalculated topological descriptors are re-encoded to derive updated values for hR 2 g i and topology class.Cleansed graphs are considered valid if they satisfy three criteria.First, the difference in hR 2 g i values before and after cleansing is less than 2 σ 2 .Second, the topology classification is unchanged.Third, the mean squared difference between the pre-and post-cleansing latent vectors is less than 1.These criteria preserve the inherent properties of the generated polymers.

43Polymer generation with target properties.To generate polymers with specific target properties, namely hR 2 g i and topology, "parent" polymers that exhibit these desired characteristics are first identified from the original dataset.The criterion for hR 2 g i is relaxed to allow a tolerance range of ± 2 around the target value.Points are then sampled near the latentspace vectors of the parent polymers by introducing Gaussian noise with a mean of 0 and a variance of 0.1.The hR 2 g i and topology of each generated candidate polymer is then predicted using the trained ML model.Candidates that do not exhibit target topology or deviate in hR 2 g i by more than 2 σ 2 are discarded.Following this initial screening, polymer graphs undergo cleansing as previously described, except that hR 2 g i of candidates must more stringently remain within 2 σ 2 of both the initial target and pre-cleansing values.Subsequently, non-distinct graphs, either duplicated from the original dataset or already present within the generated pool, are identified and removed through graph isomorphism checks.Additional details are in the Supplementary Discussion Section 4. The proportion of generated polymer graphs with target properties that undergo graph cleansing and pass all validation checks is detailed in Supplementary Table 1.

44Latent-space visualization.The latent space is visualized using the Uniform Manifold Approximation and Projection (UMAP) algorithm 90 .The parameters follow that of prior work 43 , wherein the UMAP local neighborhood size is fixed at 200, the minimum embedding distance between points is set to 1, and the Euclidean distance metric is utilized in feature space analysis.This results in a mapping from R 8 to R 2 : UMAP(z) = u, where z denotes a latent vector and u its corresponding low-dimensional representation.

45Diversity evaluation.To calculate the diversity of a set of polymer topologies, each graph representation undergoes transformation into a Laplacian spectrum, encapsulating all eigenvalues of the graph Laplacian matrix.The Laplacian matrix is defined as the difference between the adjacency matrix and the degree matrix of the graph.Diversity quantification employs the Vendi Score (VS) 91 , defined as:

46where λ i represents the eigenvalues of the matrix K/n, with the convention 0 log 0 ¼ 0. The similarity function in use is the dot product between normalized Laplacian spectra, denoted as X 2 R n × 100 , with 100 indicating the maximum eigenvalue count.For spectral vectors shorter than 100, zeropadding ensures length standardization.For reference, the minimum VS value is unity.

2 Fig. 1 |

47Fig. 1 | Strategy underlying a variational autoencoder of polymer topology.In the Training Phase (top), molecular dynamics (MD) simulations are employed to compute computationally tractable descriptors, such as the average squared radius of gyration, hR 2 g i, for a set of polymers.Information regarding topological descriptors and the polymer graph are then encoded into a lower-dimensional latent space using an artificial neural network (ANN) and a graph neural network (GNN).The latent space is decoded to accomplish reconstruction, regression, and classification

Fig. 2 |

48Fig. 2 | Characteristics of generated polymers.a Representative graphs of polymers from each architectural class.The number of polymers is proportional to occurrence in the dataset.b Comparison of topological descriptors across architectural classes.Values are standard-normalized for the dataset for each topological descriptor.Within a class, data for polymers are organized from left-to-right in ascending order of descriptor values, starting with the top (i.e., "Number of nodes") and proceeding downward to successively break ties.c The distribution of simulated hR 2 g i for each architectural class.The white dot represents the median, the black bar spans the inter-quartile range (i.e., 25% to 75% percentiles), and the width indicates the distribution density.The color of the graphs in (b) align with those of the violins positioned over the respective classes in (c).

Fig. 3 |

49Fig. 3 | Performance of variational autoencoder models.Comparison of TopoGNN, GNN, and Topo in terms of polymer graph reconstruction, hR 2 g i regression, and topology classification.BACC represents balanced accuracy, R 2 is the coefficient of determination, and F 1 measures accuracy based on the harmonic mean of precision and recall.The error bars represent the standard deviation arising from 10 random samplings of the latent space.

Fig. 4 |

50Fig. 4 | Performance decomposition of TopoGNN.a Polymer graph reconstructions by TopoGNN, contrasting true (blue) and predicted (red) polymer topologies.b Regression parity plot.The diagonal line signifies ideal regression accuracy, and error bars show standard deviation from random latent space sampling.c Confusion matrix representing the classification performance across various topologies: linear (lin), cyclic (cyc), branch (brn), comb, star, and dendrimer (den).Diagonal entries correspond to accurate classifications, while off-diagonal entries indicate misclassifications.

Fig. 8 |

51Fig.8| Architecture of the variational autoencoder (VAE) for TopGNN.The model compresses information from the graph and topological descriptors.These two sets of compressed features are then concatenated and passed to the latent space, where the model learns a normal distribution characterized by parameters μ and σ.Subsequently, samples drawn from this distribution are used by the decoder to reconstruct the adjacency matrix of the input graph.Additionally, the same samples are used in two auxiliary tasks: predicting the radius of gyration and classifying the topology.The numbers in the parentheses indicates the size of the layer.

Table 1 |

52Performance of representative models for each encoding strategy on validation set

참고문헌 82건

  1. Systematic Computational and Experimental Investigation of Lithium-Ion Transport Mechanisms in Polyester-Based Polymer Electrolytes ACS Central Science · American Chemical Society · 2015 10.1021/acscentsci.5b00195
  2. Synthesis of Dendrimer-Like Polystyrene by Atom Transfer Radical Polymerization and Investigation of Their Viscosity Behavior Macromolecules · American Chemical Society · 2005 10.1021/ma048106s
  3. Viscoelasticity of Monodisperse Comb Polymer Melts Macromolecules · American Chemical Society · 2006 10.1021/ma060018f
  4. Branched polyethylene/poly(ethylene oxide) as a host matrix for Li-ion battery electrolytes: A molecular dynamics study Electrochimica Acta · Elsevier BV · 2011 10.1016/j.electacta.2011.03.022
  5. Polymers for enhanced oil recovery: A paradigm for structure–property relationship in aqueous solution Progress in Polymer Science · Elsevier BV · 2011 10.1016/j.progpolymsci.2011.05.006
  6. Molecular Modeling to Study Dendrimers for Biomedical Applications Molecules · Multidisciplinary Digital Publishing Institute · 2014 10.3390/molecules191220424
  7. Functional dendrimers, hyperbranched and star polymers Progress in Polymer Science · Elsevier BV · 2000 10.1016/s0079-6700(00)00011-3
  8. Determining Rouse relaxation times from the dynamic modulus of entangled polymers Journal of Rheology · American Institute of Physics · 2004 10.1122/1.1645516
  9. Synthesis of comb polymers via grafting‐onto macromolecules bearing pendant diene groups via the hetero‐Diels‐Alder‐RAFT click concept Journal of Polymer Science Part A Polymer Chemistry · Wiley · 2010 10.1002/pola.23943
  10. Effect of chain architecture on the size, shape, and intrinsic viscosity of chains in polymer solutions: A molecular simulation study The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4902052
  11. Preparation of polymers with controlled molecular architecture. A new convergent approach to dendritic macromolecules Journal of the American Chemical Society · American Chemical Society · 1990 10.1021/ja00177a027
  12. Fast Parallel Algorithms for Short-Range Molecular Dynamics Journal of Computational Physics · Elsevier BV · 1995 10.1006/jcph.1995.1039
  13. One-Pot Hyperbranched Polymer Synthesis Mediated by Reversible Addition Fragmentation Chain Transfer (RAFT) Polymerization Macromolecules · American Chemical Society · 2005 10.1021/ma048035x
  14. Synthesis of complex architectures of comb block copolymers Polymer · Elsevier BV · 2011 10.1016/j.polymer.2011.04.020
  15. Well-defined polyethylene molecular brushes by polyhomologation and ring opening metathesis polymerization Polymer Chemistry · Royal Society of Chemistry · 2014 10.1039/c4py00815d
  16. Synthesis of star block copolymers by controlled ring-opening metathesis polymerization Macromolecules · American Chemical Society · 1991 10.1021/ma00004a001
  17. Synthesis and Characterization of Ring-Shaped Polystyrenes Macromolecules · American Chemical Society · 2000 10.1021/ma000059q
  18. Synthesis and properties of amphiphilic “dumbbell”‐shaped grafted block copolymers, 1. Anionic synthesis via a polyfunctional initiator Macromolecular Chemistry and Physics · Wiley · 1994 10.1002/macp.1994.021950803
  19. The rheology of dilute solutions of flexible polymers: Progress and problems Journal of Rheology · American Institute of Physics · 2005 10.1122/1.1835336
  20. Hydrodynamic screening of star polymers in shear flow The European Physical Journal E · Springer Science+Business Media · 2007 10.1140/epje/i2006-10220-0
  21. Synthesis and Characterization of Model Cyclic Block Copolymers of Styrene and Butadiene. Comparison of the Aggregation Phenomena in Selective Solvents with Linear Diblock and Triblock Analogues Macromolecules · American Chemical Society · 2002 10.1021/ma0121565
  22. The melt viscosity-molecular weight relationship for linear polymers Macromolecules · American Chemical Society · 1987 10.1021/ma00175a030
  23. Residue interaction network analysis of Dronpa and a DNA clamp Journal of Theoretical Biology · Elsevier BV · 2014 10.1016/j.jtbi.2014.01.023
  24. Atom Transfer Radical Polymerization (ATRP): Current Status and Future Perspectives Macromolecules · American Chemical Society · 2012 10.1021/ma3001719
  25. Star<i>-block</i>-Linear<i>-block</i>-Star Triblock (Pom-Pom) Polystyrene by Convergent Living Anionic Polymerization Macromolecules · American Chemical Society · 2002 10.1021/ma010949l
  26. Living Free-Radical Polymerization by Reversible Addition−Fragmentation Chain Transfer: The RAFT Process Macromolecules · American Chemical Society · 1998 10.1021/ma9804951
  27. <i>In silico</i> modelling of drug–polymer interactions for pharmaceutical formulations Journal of The Royal Society Interface · Royal Society · 2010 10.1098/rsif.2010.0190.focus
  28. Well-Defined Bilayered Molecular Cobrushes with Internal Polyethylene Blocks and ω-Hydroxyl-Functionalized Polyethylene Homobrushes Macromolecules · American Chemical Society · 2016 10.1021/acs.macromol.5b02652
  29. Viscosity of Ring Polymer Melts ACS Macro Letters · American Chemical Society · 2013 10.1021/mz400344e
  30. Polymer Molecular Architecture As a Tool for Controlling the Rheological Properties of Aqueous Polyacrylamide Solutions for Enhanced Oil Recovery Industrial & Engineering Chemistry Research · American Chemical Society · 2013 10.1021/ie403045y
  31. Molecular dynamics simulation studies of hyperbranched polyglycerols and their encapsulation behaviors of small drug molecules Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2016 10.1039/c6cp03726g
  32. Dynamics of Star-Shaped Polystyrene Molecules: From Arm Retraction to Cooperativity Macromolecules · American Chemical Society · 2016 10.1021/acs.macromol.6b00456
  33. Automatic Chemical Design Using a Data-Driven Continuous Representation of Molecules ACS Central Science · American Chemical Society · 2018 10.1021/acscentsci.7b00572
  34. <i>50th Anniversary Perspective</i>: Polymers with Complex Architectures Macromolecules · American Chemical Society · 2017 10.1021/acs.macromol.6b02569
  35. Effect of Polymer Architecture on the Structure and Interactions of Polymer Grafted Particles: Theory and Simulations Macromolecules · American Chemical Society · 2017 10.1021/acs.macromol.7b00524
  36. Understanding Starch Structure: Recent Progress Agronomy · Multidisciplinary Digital Publishing Institute · 2017 10.3390/agronomy7030056
  37. Synthesis and application of epoxy-ended hyperbranched polymers Chemical Engineering Journal · Elsevier BV · 2018 10.1016/j.cej.2018.03.014
  38. Review of Viscosity Modifier Lubricant Additives Tribology Letters · Springer Science+Business Media · 2018 10.1007/s11249-018-1007-0
  39. Random heteropolymers preserve protein function in foreign environments Science · American Association for the Advancement of Science · 2018 10.1126/science.aao0335
  40. Inverse molecular design using machine learning: Generative models for matter engineering Science · American Association for the Advancement of Science · 2018 10.1126/science.aat2663
  41. UMAP: Uniform Manifold Approximation and Projection The Journal of Open Source Software · Open Journals · 2018 10.21105/joss.00861
  42. Polymer Topology Effects on Dynamics of Comb Polymer Melts Macromolecules · American Chemical Society · 2018 10.1021/acs.macromol.8b01449
  43. Modeling and Simulations of Polymers: A Roadmap Macromolecules · American Chemical Society · 2019 10.1021/acs.macromol.8b01836
  44. Comb and Bottlebrush Polymers with Superior Rheological and Mechanical Properties Advanced Materials · 2019 10.1002/adma.201806484
  45. Branched and Dendritic Polymer Architectures: Functional Nanomaterials for Therapeutic Delivery Advanced Functional Materials · Wiley · 2019 10.1002/adfm.201901001
  46. Ion Transport and the True Transference Number in Nonaqueous Polyelectrolyte Solutions for Lithium Ion Batteries ACS Central Science · American Chemical Society · 2019 10.1021/acscentsci.9b00406
  47. BigSMILES: A Structurally-Based Line Notation for Describing Macromolecules ACS Central Science · American Chemical Society · 2019 10.1021/acscentsci.9b00476
  48. Dicationic tetraalkylammonium-based polymeric ionic liquid with star and four-arm topologies as advanced solid-state electrolyte for lithium metal battery Reactive and Functional Polymers · Elsevier BV · 2019 10.1016/j.reactfunctpolym.2019.104375
  49. Efficient Synthesis of Asymmetric Miktoarm Star Polymers Macromolecules · American Chemical Society · 2020 10.1021/acs.macromol.9b02380
  50. Kremer–Grest Models for Commodity Polymer Melts: Linking Theory, Experiment, and Simulation at the Kuhn Scale Macromolecules · American Chemical Society · 2020 10.1021/acs.macromol.9b02428
  51. Evaluation of Polymeric Materials for Chemical Enhanced Oil Recovery Processes · Multidisciplinary Digital Publishing Institute · 2020 10.3390/pr8030361
  52. Discovery of Self-Assembling π-Conjugated Peptides by Active Learning-Directed Coarse-Grained Molecular Simulation The Journal of Physical Chemistry B · American Chemical Society · 2020 10.1021/acs.jpcb.0c00708
  53. Complex polymer architectures through free-radical polymerization of multivinyl monomers Nature Reviews Chemistry · Nature Portfolio · 2020 10.1038/s41570-020-0170-7
  54. Designing exceptional gas-separation polymer membranes using machine learning Science Advances · American Association for the Advancement of Science · 2020 10.1126/sciadv.aaz4301
  55. Graph Neural Networks in TensorFlow and Keras with Spektral [Application Notes] IEEE Computational Intelligence Magazine · Institute of Electrical and Electronics Engineers · 2021 10.1109/mci.2020.3039072
  56. Enhanced Graph Isomorphism Network for Molecular ADMET Properties Prediction IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3022850
  57. Applications of Natural, Semi-Synthetic, and Synthetic Polymers in Cosmetic Formulations Cosmetics · Multidisciplinary Digital Publishing Institute · 2020 10.3390/cosmetics7040075
  58. Targeted sequence design within the coarse-grained polymer genome Science Advances · American Association for the Advancement of Science · 2020 10.1126/sciadv.abc6216
  59. Efficient Polymer-Mediated Delivery of Gene-Editing Ribonucleoprotein Payloads through Combinatorial Design, Parallelized Experimentation, and Machine Learning ACS Nano · American Chemical Society · 2020 10.1021/acsnano.0c08549
  60. Polymers for Extreme Conditions Designed Using Syntax-Directed Variational Autoencoders Chemistry of Materials · American Chemical Society · 2020 10.1021/acs.chemmater.0c03332
  61. Molecular Modelling Guided Modulation of Molecular Shape and Charge for Design of Smart Self-Assembled Polymeric Drug Transporters Pharmaceutics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/pharmaceutics13020141
  62. Role of Architecture on Thermorheological Properties of Poly(alkyl methacrylate)-Based Polymers Macromolecules · American Chemical Society · 2021 10.1021/acs.macromol.1c00149
  63. Chemically specific coarse‐graining of polymers: Methods and prospects Journal of Polymer Science · Wiley · 2021 10.1002/pol.20210555
  64. Machine‐Assisted Discovery of Chondroitinase ABC Complexes toward Sustained Neural Regeneration Advanced Healthcare Materials · Wiley · 2022 10.1002/adhm.202102101
  65. Featurization strategies for polymer sequence or composition design by machine learning Molecular Systems Design & Engineering · Royal Society of Chemistry · 2022 10.1039/d1me00160d
  66. Machine Learning on a Robotic Platform for the Design of Polymer–Protein Hybrids Advanced Materials · 2022 10.1002/adma.202201809
  67. Kinome-wide polypharmacology profiling of small molecules by multi-task graph isomorphism network approach Acta Pharmaceutica Sinica B · Elsevier BV · 2022 10.1016/j.apsb.2022.05.004
  68. Complex Polymer Architectures Using Ring-Opening Metathesis Polymerization: Synthesis, Applications, and Practical Considerations Macromolecules · American Chemical Society · 2022 10.1021/acs.macromol.2c00338
  69. Materiomically Designed Polymeric Vehicles for Nucleic Acids: Quo Vadis? ACS Applied Bio Materials · American Chemical Society · 2022 10.1021/acsabm.2c00346
  70. Rational design of a topological polymeric solid electrolyte for high-performance all-solid-state alkali metal batteries Nature Communications · Nature Portfolio · 2022 10.1038/s41467-022-31792-5
  71. Canonicalizing BigSMILES for Polymers with Defined Backbones ACS Polymers Au · American Chemical Society · 2022 10.1021/acspolymersau.2c00009
  72. Mussel-inspired polymeric coatings with the antifouling efficacy controlled by topologies Journal of Materials Chemistry B · Royal Society of Chemistry · 2022 10.1039/d2tb01851a
  73. Understanding the Structure and Rheology of Galactomannan Solutions with Coarse-Grained Modeling Macromolecules · American Chemical Society · 2022 10.1021/acs.macromol.2c01781
  74. Designing Bioinspired Composite Structures via Genetic Algorithm and Conditional Variational Autoencoder Polymers · Multidisciplinary Digital Publishing Institute · 2023 10.3390/polym15020281
  75. Data-Driven Design of Polymer-Based Biomaterials: High-throughput Simulation, Experimentation, and Machine Learning ACS Applied Bio Materials · American Chemical Society · 2023 10.1021/acsabm.2c00962
  76. Topology and Dynamic Regulations of Comb-like Polymers as Strong Adhesives Macromolecules · American Chemical Society · 2023 10.1021/acs.macromol.2c01851
  77. Open Macromolecular Genome: Generative Design of Synthetically Accessible Polymers ACS Polymers Au · American Chemical Society · 2023 10.1021/acspolymersau.3c00003
  78. Recent Development in Topological Polymer Electrolytes for Rechargeable Lithium Batteries Advanced Science · Wiley · 2023 10.1002/advs.202206978
  79. Dendritic Solid Polymer Electrolytes: A New Paradigm for High‐Performance Lithium‐Based Batteries Advanced Materials · 2023 10.1002/adma.202303355
  80. Sequence Patterning, Morphology, and Dispersity in Single-Chain Nanoparticles: Insights from Simulation and Machine Learning ACS Polymers Au · American Chemical Society · 2023 10.1021/acspolymersau.3c00007
  81. Polymer Physics Oxford University Press eBooks · Oxford University Press · 2003 10.1093/oso/9780198520597.001.0001
  82. Generative BigSMILES: an extension for polymer informatics, computer simulations &amp; ML/AI Digital Discovery · Royal Society of Chemistry · 2023 10.1039/d3dd00147d