arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.01612cs.CLcs.AIcs.LG
收藏

Halal-NeSyNet:用于食品成分自动审核和风险感知清真物流分类的子句范围神经符号交叉注意力模型

Halal-NeSyNet: Clause-Scoped Neuro-Symbolic Cross-Attention for Automated Food Ingredient Auditing and Risk-Aware Halal Logistics Triage

National Taipei University of Technology(台北科技大学);Universitas Pendidikan Indonesia(印度尼西亚教育大学)

Mochamad Rizal Fauzan, Naila Nursyifa, Irgi Surya

AI总结:

该研究针对食品成分清真审核的跨子句修饰符混淆问题,构建了含3199条目的基准数据集,提出Halal-NeSyNet模型,其在准确率和反事实一致性上显著优于基线模型,可用于清真物流的风险感知分类。

摘要:

验证包装食品是否为清真食品,需要在货物进入认证仓库前读取成分声明和E编号添加剂。E471、E422、E441和E920等双源添加剂属于Mushbooh(可疑),除非在同一成分子句中出现植物、微生物或经认证的清真限定词,因此某一子句中的植物基限定词不能清除另一子句中无限定词的添加剂。我们将这种不遵守子句范围的情况称为跨子句修饰符混淆,并构建了一个包含3199个条目的基准数据集(其中277条来自Open Food Facts记录,2922条为模板生成的子句交换条目,由明确的50代码规则库而非认证机构标注),以及一个包含540个条目的反事实套件。我们提出Halal-NeSyNet,它将DistilBERT编码器与通过交叉注意力和门控融合得到的16维规则衍生符号向量相结合,采用非对称假清真风险损失进行训练。在5个随机种子下,仅文本的TF-IDF基线模型准确率为86.25%-86.71%,假清真泄漏率为13.42%-21.73%,反事实三元组一致性为6.33%-26.00%;而Halal-NeSyNet的对应指标为97.04±0.34%和99.67±0.50%。使用相同符号向量的梯度提升模型准确率为96.25±1.24%(比Halal-NeSyNet低0.59个百分点,95%置信区间为[-1.11, +2.28]),因此大部分性能提升来自子句范围的符号特征而非网络本身,且风险损失未起到作用。在保留整个模板家族的情况下,仅文本模型准确率降至61.91%-78.35%,Halal-NeSyNet降至90.87±11.76%,使用符号向量的逻辑回归模型降至91.11±2.88%,其中Halal-NeSyNet的波动范围大得多。三车道接收模拟系统可自动放行49.33%的货物,绿道污染率为0.76%。由于标签和特征来自同一规则引擎,且91.3%的条目为模板生成,因此结果衡量的是对规则策略的保真度,而非宗教认证。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑