Halal-NeSyNet: Clause-Scoped Neuro-Symbolic Cross-Attention for Automated Food Ingredient Auditing and Risk-Aware Halal Logistics Triage
Not on the map. Why?
Abstract (arXiv)
Verifying that a packaged food is Halal requires reading ingredient declarations and E-number additives before goods enter certified warehouses. Dual-origin additives such as E471, E422, E441 and E920 are Mushbooh (doubtful) unless a botanical, microbial or certified-Halal qualifier appears in the same ingredient clause, so a plant-based qualifier on one clause must not clear an unqualified additive in another. We call a failure to respect this scope cross-clause modifier confounding and build a benchmark of 3,199 items (277 Open Food Facts records and 2,922 template-generated clause-swap items, labelled by an explicit 50-code rule base rather than by a certification authority) with a 540-item counterfactual suite. We propose Halal-NeSyNet, which couples a DistilBERT encoder with a 16-dimensional rule-derived symbolic vector through cross-attention and gated fusion, trained with an asymmetric false-Halal risk loss. Over five seeds, text-only TF-IDF baselines reach 86.25-86.71 % accuracy with 13.42-21.73 % false-Halal leakage and 6.33-26.00 % counterfactual triad consistency, whereas Halal-NeSyNet reaches 97.04+/-0.34 % and 99.67+/-0.50 %. Gradient boosting given the same symbolic vector reaches 96.25+/-1.24 % (+0.59 points from Halal-NeSyNet, 95 % CI [-1.11, +2.28]), so most of the gain comes from clause-scoped symbolic features and not from the network, and the risk loss did not help. Holding out whole template families, text-only models fall to 61.91-78.35 %, Halal-NeSyNet to 90.87+/-11.76 % and logistic regression with the symbolic vector to 91.11+/-2.88 %, with far more spread for Halal-NeSyNet. A three-lane receiving simulation auto-clears 49.33 % of cargo at 0.76 % green-lane contamination. Because labels and features come from one rule engine and 91.3 % of the items are templated, the results measure fidelity to a rule policy, not religious certification.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 30 of its 76 references that are in the map. Submitted 1 Nov 2026.
Builds on
30 of 76 references.
References · 30
- 2017Attention Is All You Needcited by 62,125
- 2015Deep Residual Learning for Image Recognitioncited by 53,116
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,787
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,802
- 2016Layer Normalizationcited by 6,002
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,384
- 2017On Calibration of Modern Neural Networkscited by 5,356
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,529
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,481
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,494
- 2020Shortcut Learning in Deep Neural Networkscited by 2,138
18 more
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,170
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 1,086
- 2017Selective Classification for Deep Neural Networkscited by 1,025
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 923
- 2018Annotation Artifacts in Natural Language Inference Datacited by 722
- 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 536
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 478
- 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 386
- 2019K-BERT: Enabling Language Representation with Knowledge Graphcited by 305
- 2019Knowledge Enhanced Contextual Word Representationscited by 302
- 2020Neurosymbolic AI: The 3rd Wavecited by 269
- 2017Neural-Symbolic Learning and Reasoning: A Survey and Interpretationcited by 207
- 2020The Next Decade in AI: Four Steps Towards Robust Artificial Intelligencecited by 207
- 2018Recipe1M+: A Dataset for Learning Cross-Modal Embeddings for Cooking Recipes and Food Imagescited by 121
- 2018A Survey on Food Computingcited by 60
- 2024A Blockchain and Artificial Intelligence based System for Halal Food Traceabilitycited by 2
- 2025Halal or Not: Knowledge Graph Completion for Predicting Cultural Appropriateness of Daily Productscited by 2
- 2026HalalBench: A Multilingual OCR Benchmark for Food Packaging Ingredient Extractioncited by 1
Built on by
Not cited yet.