Constraining Neural Network Architecture with Domain Knowledge

20 concepts17 papers1 proposal

When applying machine learning to complex domains like genomics, signal processing, or economics, models frequently encounter the "curse of dimensionality." In a typical multi-omics dataset, for instance, a model might evaluate tens of thousands of genetic features ($p$) across only a few dozen or hundred patient samples ($n$).

In this $p \gg n$ regime, standard, unconstrained neural networks possess too much architectural freedom. As noted by Ghosal et al. in their work on disease phenotype prediction, flexible and unstructured networks are highly susceptible to overfitting because they readily capture statistical noise rather than the underlying biological hierarchies governing the disease.

To solve this, a growing body of research focuses on domain-knowledge regularization. Instead of allowing a network to learn arbitrary mathematical functions, researchers hard-code established structural constraints directly into the network's topology. By forcing models to operate within the boundaries of real-world physics, biological pathways, or symbolic rules, we drastically shrink the search space, preventing overfitting and achieving "glass-box" interpretability.


The Intuition: Masking the Weight Matrix

To understand why structural regularization works, consider a standard fully connected layer. The layer multiplies an input vector of features by a dense weight matrix to produce a hidden representation. If the inputs are thousands of individual genes, a dense layer allows every single gene to interact with every hidden neuron.

Structural regularization replaces this dense matrix with a partially connected layer guided by a binary mask. If a gene does not belong to a specific biological pathway, its connection weight to the corresponding hidden unit is hard-coded to zero.

Standard Dense Layer (Unconstrained)       Biologically Constrained Layer
     [Genes]       [Hidden Units]               [Genes]       [Hidden Units]
      Gene 1 --------> Unit 1                    Gene 1 --------> Pathway 1
         \  X  /________/                           |
          \/  X  /                                  v
      Gene 2 --------> Unit 2                    Gene 2 --------> Pathway 2

This architectural constraint acts as an incredibly strict regularizer. The network cannot exploit coincidental correlations between unrelated features because the physical pathways to transmit those signals simply do not exist.


Pathway-Informed Connectivity in Biology

This strategy of masking network layers using biological ontologies has proven highly effective across transcriptomics and clinical survival analysis:

  • Signaling Pathways as Layers: Zhang et al. developed consDeepSignaling to predict drug responses by constraining internal neural layers to mimic known signaling pathways. Similarly, Feng et al. designed DeepSigSurvNet, demonstrating that restricting connectivity to pathways like mTOR or Hedgehog reduces noise and prevents overfitting in multi-omics datasets.
  • Hierarchical Ontologies: Beyond single layers, models can mirror entire biological hierarchies. Qiu et al. introduced PONET, which embeds the Reactome pathway database into a multimodal survival architecture. For single-cell RNA-Seq data, Peng et al. utilized Gene Ontology to build GOAE and GONN, proving that limiting the parameter space to biologically plausible interactions makes models robust against technical artifacts like gene dropout.
  • Graph and Factor Networks: Rather than simple feedforward masking, Guo et al. leveraged graph-embedded neural networks to map genotype-phenotype interactions, while Zhang et al. introduced the Factor Graph Neural Network (FGNN). In these architectures, hidden units cease to be abstract mathematical constructs; they explicitly represent real-world genes, regulators, and proteins.

This concept is not exclusive to deep learning. In classical statistics, incorporating known relationships prevents models from chasing noise. For example, Safo et al. integrated biological network information as structural constraints within sparse Canonical Correlation Analysis (CCA), and Hu et al. grouped genes into functional modules prior to linear discriminant analysis. Even when discovering novel relationships, frameworks like PathExpSurv use known gene-pathway structures as a baseline regularizer before expanding the network to find missing links.


Algorithmic and Functional Bottlenecks

The philosophy of structural regularization extends far beyond genomics. Instead of masking weights based on networks, models can be forced to route their decisions through classical mathematical equations or symbolic rules.

Classical Filter Bottlenecks

In speech enhancement, a pure deep learning model might try to map noisy audio directly to clean audio, often memorizing training environments and failing on unseen noise. Nie et al. solved this with the Deep Noise Tracking Network (DNTN). Instead of generating clean audio directly, the neural network is constrained to output only the internal parameters (such as speech presence probabilities) for a classical Wiener filter. The filter handles the actual signal separation. This structural bottleneck forces the network to learn the underlying mechanics of noise tracking rather than memorizing raw waveforms.

Hybrid Data-Driven and Knowledge-Driven Models

In economics and behavioral analysis, Sifringer et al. enhanced discrete choice models by splitting the utility function into two parts: an expert-defined, structured linear model and a data-driven neural network. The expert-defined component provides a rigid baseline prior, allowing the neural network to focus purely on capturing residual, non-linear patterns without overfitting the small sample sizes typical of survey data.

Biomimetic and Symbolic Inductive Biases

Domain constraints can also dictate the mathematical operations allowed within layers. Lucasius et al. designed a biomimetic network using Volterra-kernel-based convolutional layers that explicitly perform differentiation and integration to mimic the nonlinear dynamics of the human brain for seizure prediction. In computer vision, Zhao et al. injected fixed mathematical directional transforms into MSDA-Net to guide attention toward fine-grained infrared targets. Similarly, in educational AI, Hooshyar et al. regularized deep networks by blending them with symbolic educational knowledge, ensuring the model's generalizations remain aligned with established pedagogical rules.


Why It Works: Soft vs. Hard Regularization

Traditional regularization techniques like $L_1$ (Lasso) or $L_2$ (Ridge) penalties act as "soft" constraints. They add a penalty term to the loss function, encouraging weights to shrink toward zero, but the optimization landscape still allows those weights to grow if the training noise is strong enough.

Structural domain regularization acts as a "hard" constraint. By setting unaligned weights to zero or forcing outputs through fixed mathematical equations, it alters the model's hypothesis space.

  1. Drastic Parameter Reduction: Pruning connections based on domain knowledge eliminates millions of unnecessary parameters, shifting the effective capacity of the model to match small sample sizes.
  2. Elimination of Spurious Paths: If a model cannot physically route an input feature to an output neuron through an unapproved pathway, it cannot learn a false correlation between them, no matter how strong the coincidental statistical alignment is in the training data.
  3. Intrinsic Interpretability: Because the internal architecture maps directly to real-world entities (like biological pathways or classical filters), understanding why a model made a prediction simply requires looking at which constrained nodes or pathways are active. Interpretability is no longer an afterthought calculated via post-hoc approximations; it is baked directly into the mechanics of the forward pass.

Key Foundational Work

Gene network modular-based classification of microarray samples (2012) — contributed 1 concept elements to this direction.
Integrative analysis of transcriptomic and metabolomic data via sparse canonical correlation analysis with incorporation of biological information (2016) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_domain_knowledge_regularization_9f62eaee,
  title = {domain-knowledge regularization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/domain-knowledge-regularization/rdr_9f62eaeededd496e97db2b257e5a986d},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_domain_knowledge_regularization_9f62eaee_v1,
  title = {domain-knowledge regularization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/domain-knowledge-regularization/rdr_9f62eaeededd496e97db2b257e5a986d/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake