All models

Sociologically-Informed Neural Network (SINN)

Feedforward network that predicts users' opinions over time while obeying an opinion dynamics equation.

Time series · 41 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (45 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4.8K
Operations
41
Framework
PyTorch
Recurrent
No
Published
KDD 2022
Cited by
33 (as of 28 October 2026)
Authors
Maya Okawa, Tomoharu Iwata
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20482
Graph hash
a1ed18378f27aabd4a7c7ccf6ec4a8adc2ef8b94f179dd7254b384c380b979aa
Skeleton hash
5ad3d19ca196842843b3b59f7366e345ead4d993752eeddb634e46d61bd9bd5b
Architecture hash
976f294b66c4d6a4100da089bd97f4f45cb82867d156693e8855d2090ba49681
Diagram SHA-256
697ea72057f1c480ecaedbd8cd6c704082c1c91bbb41ce3b9146f7c4055106e6
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The Sociologically-Informed Neural Network (SINN) is a deep learning framework for modeling and predicting how the opinions of individuals in a social network evolve. It carries the concepts of physics-informed neural networks from physics into sociology and social psychology. Theoretical models of opinion dynamics are recast as ordinary differential equations (ODEs), and a neural network is trained to approximate the data and conform to those ODEs at once.

The network is a feedforward neural network that takes a time and a user as inputs and outputs the latent opinion of that user at that time. The implementation uses tanh activation for all layers. Besides a data term, the loss has a term that measures the residual of the ODEs and so enforces the sociological and social psychological constraints they describe. The paper also integrates matrix factorization and a language model to incorporate side information such as user profiles, and its training procedure uses a Gumbel-Softmax approximation to include stochastic mechanisms of social interaction.

Experiments were run on three synthetic datasets and three real-world datasets collected from Twitter and Reddit. The paper reports that SINN outperforms six baseline methods in predicting opinion dynamics.

Key idea. SINN recasts theoretical opinion dynamics models as ordinary differential equations and trains a neural network that fits social media data while conforming to them.

  • SINN
  • Sociologically-Informed Neural Network
  • opinion dynamics
  • opinion prediction
  • social networks
  • physics-informed neural network
  • ordinary differential equations
  • social media
  • stochastic bounded confidence model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{okawa2022predictingopiniondynamicssociologicallyinformed,
      title={Predicting Opinion Dynamics via Sociologically-Informed Neural Networks}, 
      author={Maya Okawa and Tomoharu Iwata},
      year={2022},
      eprint={2207.03990},
      archivePrefix={arXiv},
      primaryClass={cs.SI},
      doi={https://doi.org/10.1145/3534678.3539228},
      url={https://arxiv.org/abs/2207.03990}, 
}