SHORING: Design Provable Conditional High-Order Interaction Network via Symbolic Testing

Hui Li, Xing Fu, Ruofan Wu, Jinyu Xu, Kai Xiao, Xiaofu Chang, Weiqiang Wang, Shuai Chen, Leilei Shi, Tao Xiong, Yuan QiarXiv 2021 · OpenReview

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.

Venn diagram of symbolic operations targeted by the SHORING framework.

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 SHORING architecture, illustrating the flow from event features (C1) to high-order interactions and conditional pooling (C3-C5).

The architecture consists of two primary innovations:

  1. 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.
  2. 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

Abstract

Deep learning provides a promising way to extract effective representations from raw data in an end-to-end fashion and has proven its effectiveness in various domains such as computer vision, natural language processing, etc. However, in domains such as content/product recommendation and risk management, where sequence of event data is the most used raw data form and experts derived features are more commonly used, deep learning models struggle to dominate the game. In this paper, we propose a symbolic testing framework that helps to answer the question of what kinds of expert-derived features could be learned by a neural network. Inspired by this testing framework, we introduce an efficient architecture named SHORING, which contains two components: \textit{event network} and \textit{sequence network}. The \textit{event} network learns arbitrarily yet efficiently high-order \textit{event-level} embeddings via a provable reparameterization trick, the \textit{sequence} network aggregates from sequence of \textit{event-level} embeddings. We argue that SHORING is capable of learning certain standard symbolic expressions which the standard multi-head self-attention network fails to learn, and conduct comprehensive experiments and ablation studies on four synthetic datasets and three real-world datasets. The results show that SHORING empirically outperforms the state-of-the-art methods.
BibTeX
@misc{li2021shoring,
  author = {Hui Li and Xing Fu and Ruofan Wu and Jinyu Xu and Kai Xiao and Xiaofu Chang and Weiqiang Wang and Shuai Chen and Leilei Shi and Tao Xiong and Yuan Qi},
  title = {{SHORING: Design Provable Conditional High-Order Interaction Network via Symbolic Testing}},
  year = {2021},
  eprint = {2107.01326},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.01326},
}
Figure