Skip to main content

Air-gapped neuro-symbolic AIoT framework: 1-bit LLM cognition over mathematically verified, temporally valid edge state.

Project description

epistemic-edge

Subjective-logic guardrails for LLM-driven IoT actuation — an air-gapped, neuro-symbolic AIoT framework that places calibrated uncertainty quantification between your sensors and any LLM that can touch the physical world.

Companion package for:

Epistemic Edge: Subjective Logic Guardrails for LLM-Driven IoT Actuation. Muntaser Syed and Marius Silaghi. IEEE 27th International Conference on Information Reuse and Integration for Data Science (IEEE IRI 2026), Seattle, WA. To appear.

Full reproduction materials — experiment scripts, immutable result sets, and the pinned inference fork — live in the repository: https://github.com/jemsbhai/epistemic-edge

Architecture

Epistemic Edge orchestrates four tiers into a strict verify–decay–generate pipeline:

Tier Layer Engine Function
1 Transport cbor-ld-ex Hyper-compressed binary payloads over MQTT/CoAP
2 Trust jsonld-ex Subjective Logic fusion + PROV-O audit trail
3 Memory chronofy Temporal decay toward the vacuous opinion (0, 0, 1)
4 Cognition llama-cpp-python Grammar-constrained local LLM inference behind threshold + whitelist guardrails

Locally deployed LLMs can act on conflicting or stale context. Epistemic Edge annotates every source with a calibrated Subjective Logic opinion, fuses them via Jøsang cumulative fusion, decays stale beliefs toward uncertainty, and verifies epistemic thresholds before any actuation is allowed. In the paper's ablation (seven locally-deployed LLMs, 2,800 controlled trials), removing this epistemic layer collapses threshold-guardrail accuracy from 1.00 to 0.40 for every model. On the BATADAL water-distribution benchmark, calibrated SL opinions reach AUROC 0.9004 with no trained weights and no labeled attack data.

Installation

pip install epistemic-edge                # core: transport + trust + memory
pip install "epistemic-edge[llm]"         # + local LLM inference (llama-cpp-python)
pip install "epistemic-edge[transport]"   # + MQTT / CoAP transports
pip install "epistemic-edge[all]"         # everything

Quick Start

import asyncio
from epistemic_edge import EdgeNode
from epistemic_edge.memory import DecayConfig

async def main():
    node = EdgeNode(
        node_id="gateway_alpha",
        llm_path="./models/bonsai-8b-1bit.gguf",
        decay=DecayConfig(mean_reversion_rate=1.5, threshold=0.2),
    )

    @node.guardrail(action="close_valve")
    def check_safety(state, intent):
        return state.max_uncertainty() < 0.15

    @node.on_actuate
    async def execute(intent, receipt):
        print(f"Executing: {intent.action} on {intent.target}")
        print(f"Audit trail: {receipt}")

    await node.start()

asyncio.run(main())

Citing

@inproceedings{syed2026epistemic,
  author    = {Syed, Muntaser and Silaghi, Marius},
  title     = {Epistemic Edge: Subjective Logic Guardrails for {LLM}-Driven {IoT} Actuation},
  booktitle = {2026 IEEE 27th International Conference on Information Reuse and
               Integration for Data Science (IRI)},
  year      = {2026},
  note      = {To appear}
}

Core Libraries

  • jsonld-ex — JSON-LD 1.2 extensions with Subjective Logic, FHIR R4, PROV-O
  • cbor-ld-ex — Compact Binary Linked Data for constrained IoT networks
  • chronofy — Temporal validity framework implementing TLDA

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epistemic_edge-0.1.0.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epistemic_edge-0.1.0-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file epistemic_edge-0.1.0.tar.gz.

File metadata

  • Download URL: epistemic_edge-0.1.0.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.2 Windows/11

File hashes

Hashes for epistemic_edge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32ac2946729fb3756c65b85de262d6152635adb5ba3573d08ee484c57b00ce76
MD5 7ca6b9f139355af08260bd2207face1d
BLAKE2b-256 b48cfef59d87dd4b5f0fcf1accc4bc202f47e2151e35eb0f4c0aedd92e83e736

See more details on using hashes here.

File details

Details for the file epistemic_edge-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: epistemic_edge-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.2 Windows/11

File hashes

Hashes for epistemic_edge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e99ef3c3b10f1d462bbf880b6b4079da4614134851d1de58c580e6e01f0c88fd
MD5 9d87e4a075ed2f2bfdcb2f3451d89199
BLAKE2b-256 6c9848afc2c9f27f17fff7ac313c9fa8867892d72cc9e3d6ed33fc28f142bfb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page