Journal of Cheminformatics (Aug 2023)

Similarity-based pairing improves efficiency of siamese neural networks for regression tasks and uncertainty quantification

  • Yumeng Zhang,
  • Janosch Menke,
  • Jiazhen He,
  • Eva Nittinger,
  • Christian Tyrchan,
  • Oliver Koch,
  • Hongtao Zhao

DOI
https://doi.org/10.1186/s13321-023-00744-6
Journal volume & issue
Vol. 15, no. 1
pp. 1 – 12

Abstract

Read online

Abstract Siamese networks, representing a novel class of neural networks, consist of two identical subnetworks sharing weights but receiving different inputs. Here we present a similarity-based pairing method for generating compound pairs to train Siamese neural networks for regression tasks. In comparison with the conventional exhaustive pairing, it reduces the algorithm complexity from O(n2) to O(n). It also results in a better prediction performance consistently on the three physicochemical datasets, using a multilayer perceptron with the circular fingerprint as a proof of concept. We further include into a Siamese neural network the transformer-based Chemformer, which extracts task-specific features from the simplified molecular-input line-entry system representation of compounds. Additionally, we propose a means to measure the prediction uncertainty by utilizing the variance in predictions from a set of reference compounds. Our results demonstrate that the high prediction accuracy correlates with the high confidence. Finally, we investigate implications of the similarity property principle in machine learning. Graphical Abstract