HorNets: Learning from Discrete and Continuous Signals with Routing Neural Networks
Boshko Koloski, Nada Lavrač, Blaž Škrlj
TL;DR
HorNets introduce a discrete–continuous routing neural network that learns from both discrete and continuous tabular data with scarce samples. By coupling a polyClip activation with a CatRouter-driven path selection and a discrete interaction module, the approach can explicitly model Horn clauses and propositional logic while maintaining strong predictive performance. Across synthetic benchmarks and 14 real biomedical datasets, HorNets achieve state-of-the-art or competitive results, offer interpretable rule-like interactions, and remain practical on standard hardware. The work advances neurosymbolic learning for high-dimensional, mixed-input data and provides open-source code and benchmarks for reproducibility.
Abstract
Construction of neural network architectures suitable for learning from both continuous and discrete tabular data is a challenging research endeavor. Contemporary high-dimensional tabular data sets are often characterized by a relatively small instance count, requiring data-efficient learning. We propose HorNets (Horn Networks), a neural network architecture with state-of-the-art performance on synthetic and real-life data sets from scarce-data tabular domains. HorNets are based on a clipped polynomial-like activation function, extended by a custom discrete-continuous routing mechanism that decides which part of the neural network to optimize based on the input's cardinality. By explicitly modeling parts of the feature combination space or combining whole space in a linear attention-like manner, HorNets dynamically decide which mode of operation is the most suitable for a given piece of data with no explicit supervision. This architecture is one of the few approaches that reliably retrieves logical clauses (including noisy XNOR) and achieves state-of-the-art classification performance on 14 real-life biomedical high-dimensional data sets. HorNets are made freely available under a permissive license alongside a synthetic generator of categorical benchmarks.
