Search papers, labs, and topics across Lattice.
This paper introduces the Program Hypergraph (PHG), a generalization of the Program Semantic Graph (PSG), to represent multi-way relations in computations, particularly for spatial dataflow architectures and geometric algebra. The PHG uses hyperedges of arbitrary arity to address the limitations of binary edge relations in PSG for problems like tile co-location, routing constraints, and graded multi-way products in geometric algebra. The authors demonstrate that grade in Clifford algebra can be integrated into the Dimensional Type Systems (DTS) framework, enabling geometric product sparsity inference and closing a type-theoretic gap in existing geometric algebra libraries.
Unlock geometric algebra's performance potential in neural networks and spatial computing by compiling directly from multi-way relationships, eliminating manual specialization and ensuring geometric correctness.
The Program Semantic Graph (PSG) introduced in prior work on Dimensional Type Systems and Deterministic Memory Management encodes compilation-relevant properties as binary edge relations between computation nodes. This representation is adequate for scalar and tensor computations, but becomes structurally insufficient for two classes of problems central to heterogeneous compute: tile co-location and routing constraints in spatial dataflow architectures, which are inherently multi-way; and geometric algebra computation, where graded multi-way products cannot be faithfully represented as sequences of binary operations without loss of algebraic identity. This paper introduces the Program Hypergraph (PHG) as a principled generalization of the PSG that promotes binary edges to hyperedges of arbitrary arity. We demonstrate that grade in Clifford algebra is a natural dimension axis within the existing DTS abelian group framework, that grade inference derives geometric product sparsity eliminating the primary performance objection to Clifford algebra neural networks without manual specialization, and that the k-simplex structure of mesh topology is a direct instance of the hyperedge formalism. We assess the existing geometric algebra library ecosystem, identify the consistent type-theoretic gap that no current system addresses, and show that the PHG closes it within the Fidelity compilation framework. The result is a compilation framework where geometric correctness, memory placement, numerical precision selection, and hardware partitioning are jointly derivable from a single graph structure exposed as interactive design-time feedback.