Abstract
In domains like financial risk management and e-commerce, expert-engineered features remain vital due to the poor inductive bias of standard deep learning architectures for specific symbolic logic. This paper introduces SHORING, a novel architecture that bridges the gap between manual feature engineering and end-to-end learning. SHORING employs a symbolic testing framework to diagnose model failures and introduces a provable reparameterization trick for efficient high-order feature interactions. Evaluated on massive industrial datasets, including a 1.3-billion-event fraud detection task, SHORING demonstrates significant performance gains over state-of-the-art models by effectively capturing complex conditional logic.
Introduction
Deep learning is often touted as a solution to automate feature extraction, yet in high-stakes fields like fraud detection, human-designed "expert features" (e.g., "number of unique cities a user accessed in the last hour") still provide critical signals. Standard architectures like Transformers often fail to learn these "symbolic" expressions efficiently. This paper addresses two core challenges: formally testing a neural network's ability to learn specific symbolic features and designing an architecture that can provably and efficiently model high-order interactions.
Symbolic Testing Framework
To identify why standard models fail, the authors propose a diagnostic framework based on kernel two-sample tests, specifically Maximum Mean Discrepancy (MMD). By generating synthetic data using known symbolic formulas—such as sum, mean, or count distinct—researchers can test if a network's output distribution matches the ground truth. If the $p$-value is low, the model has failed to learn the underlying logic of that feature.
A key finding from this testing is the "failure of self-attention." Even stacked self-attention (SSA) fails the symbolic test for conditional count distinct. While attention mechanisms are adept at weighting events, they lack the explicit "group-by" logic required to track unique occurrences across a sequence.
The SHORING Architecture
SHORING (Symbolic High-Order Interaction Network) is designed with specific inductive biases to handle these complex operations efficiently.
The architecture consists of two primary innovations:
- Event Network (High-Order Interactions): Modeling interactions between three or more features typically scales exponentially. SHORING utilizes a "reparameterization trick" that transforms $d$-th order interactions into a summation of exponential embeddings. This allows the model to capture arbitrarily high-order interactions in linear time and memory, making it practical for real-time systems.
- Conditional Sequence Network: To address the "count distinct" problem, this module mimics SQL-like operations. It uses an assignment matrix to group events by entity (e.g., City ID) and applies non-linear aggregations, effectively "memorizing" states for individual entities before final pooling.
Experimental Evaluation
The researchers evaluated SHORING across synthetic benchmarks and massive real-world datasets:
- Synthetic Tasks: SHORING achieved an $R^2$ of 0.99 on the "count distinct" task, whereas standard Self-Attention reached only ~0.45, effectively "solving" the logic of the feature.
- Taobao Dataset: For click-through rate (CTR) prediction on 100 million events, SHORING improved recall by 4.2% over strong baselines.
- Industrial Fraud Detection: On the Financial-1 dataset, SHORING achieved a 19.2% relative improvement in recall (at 99% precision) compared to the Deep & Cross Network (DCN). This represents a massive margin in the context of industrial financial systems.
The scale of testing is notable; the Financial-2 dataset contains 1.3 billion events, representing one of the largest scales tested in recent literature.
Conclusion
SHORING demonstrates that "bigger" is not always better in deep learning. By incorporating small, modular units that mimic the structure of symbolic logic, SHORING achieves superior performance with better computational efficiency. Future work aims to extend this "neural symbolic" approach to lifelong behavior sequences and dynamic graph structures to capture more complex spatial interactions.
Summary updated