You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expanded the section on augmented graphs to explain the use of artificial nodes representing functional groups. Added details on connection schemes and provided commands for model and data configuration.
Copy file name to clipboardExpand all lines: README.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,20 @@ python -m chebai fit --trainer=configs/training/default_trainer.yml --trainer.lo
78
78
79
79
## Augmented Graphs
80
80
81
-
Below is the command for the model and data configuration that achieved the best classification performance using augmented graphs.
82
81
82
+
Graph Neural Networks (GNNs) often fail to explicitly leverage the chemically meaningful substructures present within molecules (i.e. **functional groups (FGs)**). To make this implicit information explicitly accessible to GNNs, we augment molecular graphs with **artificial nodes** that represent these substructures. The resulting graph are referred to as **augmented graphs**.
83
+
> Note: Rings are also treated as functional groups in our work.
84
+
85
+
In these augmented graphs, each functional group node is connected to the atoms that constitute the group. Additionally, two functional group nodes are connected if any atom belonging to one group shares a bond with an atom from the other group. We further introduce a **graph node**, an extra node connected to all functional group nodes.
86
+
87
+
Among all the connection schemes we evaluated, this configuration delivered the strongest performance. We denote it using the abbreviation **WFG_WFGE_WGN** in our work and is shown in below figure.
> With this pooling stratergy, the learned representations are first separated into **two distinct sets**: those from atom nodes and those from all artificial nodes (both functional groups and the graph node). The representations within each set are aggregated separately (using summation) to yield two distinct single vectors. These two resulting vectors are then concatenated before being passed to the classification layer.
> This approach employs a finer granularity of separation, distinguishing learned representations into **three distinct sets**: atom nodes, Functional Group (FG) nodes, and the single graph node. Summation is performed separately on the atom node set and the FG node set, yielding two vectors. These two vectors are then concatenated along with the single vector corresponding to the graph node before the final linear layer.
97
114
98
115
#### GAT-specific hyperparameters
99
116
100
117
-**Number of message-passing layers**: `--model.config.num_layers=5` (default: 4)
> **Note**: GATv2 addresses the limitation of static attention in GAT by introducing a dynamic attention mechanism. For further details, please refer to the [original GATv2 paper](https://arxiv.org/abs/2105.14491).
122
+
105
123
#### **ResGated Architecture**
106
124
107
125
To use a ResGated GNN model, choose **one** of the following configs:
@@ -117,9 +135,9 @@ These can be used for both GAT and ResGated architectures:
-**Number of final linear layers**: `--model.n_linear_layers=2` (default: 1)
119
137
120
-
# Random Node Initialization
138
+
##Random Node Initialization
121
139
122
-
## Static Node Initialization
140
+
###Static Node Initialization
123
141
124
142
In this type of node initialization, the node features (and/or edge features) of the given molecular graph are initialized only once during dataset creation with the given initialization scheme.
125
143
@@ -143,7 +161,7 @@ If you want all node (and edge) features to be drawn from a given distribution (
143
161
Refer to the data class code for details.
144
162
145
163
146
-
## Dynamic Node Initialization
164
+
###Dynamic Node Initialization
147
165
148
166
In this type of node initialization, the node features (and/or edge features) of the molecular graph are initialized at **each forward pass** of the model using the given initialization scheme.
0 commit comments