Sparse-by-Design Cross-Modality Prediction: L0-Gated Representations for Reliable and Efficient Learning
Organizations: School of Computing, Macquarie University, Sydney, Australia
Abstract
Predictive systems increasingly span heterogeneous modalities such as graphs, language, and tabular records, but sparsity and efficiency remain modality-specific (graph edge or neighborhood sparsification, Transformer head or layer pruning, and separate tabular feature-selection pipelines). This fragmentation makes results hard to compare, complicates deployment, and weakens reliability analysis across end-to-end KDD pipelines. A unified sparsification primitive would make accuracy-efficiency trade-offs comparable across modalities and enable controlled reliability analysis under representation compression. We ask whether a single representation-level mechanism can yield comparable accuracy-efficiency trade-offs across modalities while preserving or improving probability calibration. We propose L0-Gated Cross-Modality Learning (L0GM), a modality-agnostic, feature-wise hard-concrete gating framework that enforces L0-style sparsity directly on learned representations. L0GM attaches hard-concrete stochastic gates to each modality's classifier-facing interface: node embeddings (GNNs), pooled sequence embeddings such as CLS (Transformers), and learned tabular embedding vectors (tabular models). This yields end-to-end trainable sparsification with an explicit control knob for the active feature fraction. To stabilize optimization and make trade-offs interpretable, we introduce an L0-annealing schedule that induces clear accuracy-sparsity Pareto frontiers. Across three public benchmarks (ogbn-products, Adult, IMDB), L0GM achieves competitive predictive performance while activating fewer representation dimensions, and it reduces Expected Calibration Error (ECE) in our evaluation. Overall, L0GM establishes a modality-agnostic, reproducible sparsification primitive that supports comparable accuracy, efficiency, and calibration trade-off analysis across heterogeneous modalities.
Figures & tables
| Notation | Definition |
|---|---|
| input features (tabular: fields; graph: node features; text: tokens) | |
| predicted probability, ground-truth label | |
| modality interface representation (embedding / node rep / pooled text rep) | |
| binary gate (hard-concrete relaxation in training) | |
| gated representation ( : elementwise product) | |
| sparsity-control weight (higher fewer active dims) |
| Property | Adult | IMDB | ogbn-products |
|---|---|---|---|
| Modality | Tabular | Text | Graph |
| Task | Income ( {>}\50$ K) cls. | Sentiment cls. | Node cls. (category) |
| Instances / Nodes | 48,842 | 50,000 | 2,449,029 |
| Edges | – | – | 61,859,140 |
| Classes | 2 | 2 | 47 |
| Input features | 14 (mixed) | raw text | 100-d node feats |
| Q1: Standalone (module validity) | Q2: Integrated (system benefit) | |||||||||||
| Mod. | Method | Acc/AUC | Worst (seed) | ECE | Rob | Mod. | Method | Acc/AUC | Worst (seed) | ECE | Rob | Latency( s) |
| Tab | MLP | 0.8407 | 0.7703 | 0.0954 | 0.7926 | Tab | MLP | 0.8289 | 0.7426 | 0.1123 | 0.7768 | 6.83 |
| XGBoost | 0.8705 | 0.7804 | 0.0113 | 0.8207 | XGBoost | 0.8667 | 0.7709 | 0.0146 | 0.8095 | 1.93 | ||
| LightGBM | 0.8606 | 0.7802 | 0.0431 | 0.8178 | LightGBM | 0.8548 | 0.7684 | 0.0497 | 0.8068 | 2.67 | ||
| CatBoost | 0.8704 | 0.7801 | 0.0067 | 0.8199 | CatBoost | 0.8659 | 0.7723 | 0.0094 | 0.8092 | 3.47 | ||
| Ours (L0GM) | 0.8906 | 0.8702 | 0.0107 | 0.8714 | Ours (L0GM) | 0.8887 | 0.8668 | 0.0124 | 0.8696 | 1.24 | ||
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| torch | cuda | gpu | cudnn |
|---|---|---|---|
| 2.5.1+cu121 | 12.1 | NVIDIA RTX 6000 Ada Generation | 90100 |
| Notation | Definition |
|---|---|
| sigmoid / activation function | |
| predictor / classification head | |
| parameters (module / all parameters) | |
| number of tabular fields | |
| embedding dimension per field | |
| embedding of field |
| Variant | Adult | IMDB | ogbn-prod | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Metric | Active% | ECE | Metric | Active% | ECE | Metric | Active% | ECE | |
| Dense backbone (No Gate) | 0.8729 | 100.0 | 0.0247 | 0.9318 | 100.0 | 0.0216 | 0.6893 | 100.0 | 0.1167 |
| Static/global mask (non-conditional) | 0.8696 | 19.7 | 0.0209 | 0.9284 | 21.3 | 0.0207 | 0.6768 | 24.6 | 0.1049 |
| L0 gate (interface-aligned, default) | 0.8794 | 12.5 | 0.0158 | 0.9356 | 11.8 | 0.0189 | 0.7017 | 15.2 | 0.0716 |
| Fine-grained gate (overly granular) | 0.8657 | 16.4 | 0.0296 | 0.9261 | 14.9 | 0.0313 | 0.6712 | 18.7 | 0.1124 |
| No annealing / fixed- schedule | 0.8619 | 13.1 | 0.0417 | 0.9227 | 12.4 | 0.0398 | 0.6668 | 15.9 | 0.1396 |
| Hyperparameter | Search range / candidates |
|---|---|
| Learning rate (LR) | |
| Weight decay | |
| Dropout | |
| Batch size | (hardware-limited) |
| Gate penalty | log-grid over (e.g., 5–9 points) |
| annealing schedule | warmup ; end-temp |
| Mod. | Active% | Acc/AUC | Worst | ECE | |
|---|---|---|---|---|---|
| Tab | 100.0 | 0.890 | 0.870 | 0.018 | |
| 35.0 | 0.889 | 0.868 | 0.012 | ||
| 15.0 | 0.887 | 0.866 | 0.010 | ||
| 7.0 | 0.881 | 0.852 | 0.019 | ||
| Text | 100.0 | 0.933 | 0.143 | 0.024 | |
| 30.0 | 0.932 | 0.143 | 0.020 |
| Mod. | Variant | Acc/AUC | Worst | ECE |
|---|---|---|---|---|
| Tab | No annealing (fixed) | 0.862 | 0.842 | 0.042 |
| Tab | With annealing (default) | 0.889 | 0.867 | 0.012 |
| Text | No annealing (fixed) | 0.923 | 0.158 | 0.040 |
| Text | With annealing (default) | 0.933 | 0.143 | 0.020 |
| Graph | No annealing (fixed) | 0.667 | 0.651 | 0.140 |
| Graph | With annealing (default) | 0.724 | 0.708 | 0.033 |
| Mod. | Regime | Active% | Acc/AUC | ECE (no coup.) | ECE (coup.) | |
|---|---|---|---|---|---|---|
| Tab | Moderate | 15.0 | 0.887 | 0.010 | 0.010 | |
| Tab | High | 7.0 | 0.881 | 0.019 | 0.014 | |
| Text | Moderate | 12.0 | 0.930 | 0.017 | 0.017 | |
| Text | High | 6.0 | 0.922 | 0.026 | 0.021 | |
| Graph | Moderate | 15.0 | 0.721 | 0.028 | 0.028 | |
| Graph | High | 8.0 | 0.712 | 0.045 | 0.036 |
Activation Sparsity
Activation sparsity studies how neural networks can use mostly inactive units to reduce computation, memory, and energy while preserving useful representations.
See all 56 papers