Neural Signed Distance Fields (Neural SDFs) provide compact, continuous, and topologically flexible geometric representations for inverse rendering, generative 3D modeling, and scientific visualization. However, real-time ray casting through neural implicit volumes remains severely constrained by computational cost: unlike analytical primitives, every ray marching step incurs multiple spatial feature hash lookups and multi-layer perceptron (MLP) forward evaluations. Classical sphere tracing exhibits acute ray deceleration near grazing silhouettes due to conservative Lipschitz step sizing, while aggressive overstepping heuristics frequently cause tunneling and overshoot across thin boundaries. Furthermore, traversing unculled empty space between the camera frustum and active geometric boundaries squanders dozens of redundant neural evaluations per primary ray. In this paper, we introduce a unified, zero-heap neural ray marching architecture that couples in-situ empty space bounding volume culling with an analytical Jacobian directional curvature contractor and an idempotent zero-level-set manifold projection (Phit2 = Phit). By integrating exact analytical backpropagation through multi-resolution hash grids and TinyMLPs directly into AVX2 vector registers, our architecture computes directional curvature and analytical surface normals in a single evaluation with strictly zero auxiliary memory reads, eliminating numerical finite-difference stencil overhead. Through an extensive empirical ablation across three authentic real-world datasets spanning distinct geometric domains—the Stanford Bunny 3D range scan (35,947 vertices), authentic human cortical geometry featuring dense sulcal folds, and an ASME B16.5 industrial CAD flange—we isolate the distinct contributions of geometric bounding volume culling and analytical curvature contraction. On the Stanford Bunny (512×512), IdemRender achieves 55.87 ms (4.69 MRays/s), delivering a 1.34× wall-clock speedup over classical sphere tracing (74.60 ± 3.91 ms, 3.51 MRays/s) and slashing iteration steps from 12.50 to 5.85 steps/ray, while delivering over 219 FPS at 1282 (4.56 ± 0.37 ms). Concurrently, in-situ culling and bounded exit clamping deliver up to 3.72× speedup on CAD (16.66 ± 0.10 ms, 15.73 MRays/s) and 3.34× on Cortex (22.57 ± 0.88 ms, 11.62 MRays/s). Furthermore, whereas relaxed sphere tracing catastrophically collapses (yielding hit rates of only 0.87% on Cortex and 2.92% on CAD due to overstepping tunneling), our adaptive formulation eliminates tunneling entirely, achieving >99.9% geometric hit agreement on continuous scan geometry (Stanford Bunny: 34.06% vs. 34.08%) and >99.2% on CAD (7.56% vs. 7.62%), while resolving step-limit stalls in narrow anatomical fissures on Human Cortex (2.60% vs. 2.00% on unculled classical tracing), with near-zero operator idempotency error (~10-3). The accompanying SIMD AVX2 C++ engine executes with strictly O(1) stack allocation (< 1.0 KB) and zero dynamic heap allocation, providing hard deterministic bounds for interactive neural graphics on compute-constrained edge platforms.
A. Emre Cetin· Zenodo (CERN European Organi...· 0 citations
Neural Signed Distance Fields (Neural SDFs) provide compact, continuous, and topologically flexible geometric representations for inverse rendering, generative 3D modeling, and scientific visualization. However, real-time ray casting through neural implicit volumes remains severely constrained by computational cost: unlike analytical primitives, every ray marching step incurs multiple spatial feature hash lookups and multi-layer perceptron (MLP) forward evaluations. Classical sphere tracing exhibits acute ray deceleration near grazing silhouettes due to conservative Lipschitz step sizing, while aggressive overstepping heuristics frequently cause tunneling and overshoot across thin boundaries. Furthermore, traversing unculled empty space between the camera frustum and active geometric boundaries squanders dozens of redundant neural evaluations per primary ray. In this paper, we introduce a unified, zero-heap neural ray marching architecture that couples in-situ empty space bounding volume culling with an analytical Jacobian directional curvature contractor and an idempotent zero-level-set manifold projection (Phit2 = Phit). By integrating exact analytical backpropagation through multi-resolution hash grids and TinyMLPs directly into AVX2 vector registers, our architecture computes directional curvature and analytical surface normals in a single evaluation with strictly zero auxiliary memory reads, eliminating numerical finite-difference stencil overhead. Through an extensive empirical ablation across three authentic real-world datasets spanning distinct geometric domains—the Stanford Bunny 3D range scan (35,947 vertices), authentic human cortical geometry featuring dense sulcal folds, and an ASME B16.5 industrial CAD flange—we isolate the distinct contributions of geometric bounding volume culling and analytical curvature contraction. On the Stanford Bunny (512×512), IdemRender achieves 55.87 ms (4.69 MRays/s), delivering a 1.34× wall-clock speedup over classical sphere tracing (74.60 ± 3.91 ms, 3.51 MRays/s) and slashing iteration steps from 12.50 to 5.85 steps/ray, while delivering over 219 FPS at 1282 (4.56 ± 0.37 ms). Concurrently, in-situ culling and bounded exit clamping deliver up to 3.72× speedup on CAD (16.66 ± 0.10 ms, 15.73 MRays/s) and 3.34× on Cortex (22.57 ± 0.88 ms, 11.62 MRays/s). Furthermore, whereas relaxed sphere tracing catastrophically collapses (yielding hit rates of only 0.87% on Cortex and 2.92% on CAD due to overstepping tunneling), our adaptive formulation eliminates tunneling entirely, achieving >99.9% geometric hit agreement on continuous scan geometry (Stanford Bunny: 34.06% vs. 34.08%) and >99.2% on CAD (7.56% vs. 7.62%), while resolving step-limit stalls in narrow anatomical fissures on Human Cortex (2.60% vs. 2.00% on unculled classical tracing), with near-zero operator idempotency error (~10-3). The accompanying SIMD AVX2 C++ engine executes with strictly O(1) stack allocation (< 1.0 KB) and zero dynamic heap allocation, providing hard deterministic bounds for interactive neural graphics on compute-constrained edge platforms.
A. Emre Cetin· Zenodo (CERN European Organi...· 0 citations
The serving of autoregressive Large Language Models (LLMs) is severely constrained by the computational and memory capacity limits of the Key-Value (KV) cache, commonly referred to as the Memory Wall. While dynamic context pruning algorithms mitigate memory expansion by discarding tokens of low attention mass, conventional systems incur severe hardware overheads: they either require out-of-place memory allocation spikes (O(N) auxiliary buffers via operating system calls like cudaMalloc) or introduce high page-table indirection latencies via virtualized paged attention mechanisms. In this paper, we propose a novel hardware-software co-designed architecture and GPU execution kernel for zero-copy in-place KV-cache compaction. By formulating eviction as an algebraic mapping satisfying the idempotence condition (f(f(x)) = f(x)), our method stabilizes retained tokens into mathematical fixed points and partitions the permutation space into mutually disjoint permutation cycles. We prove that minimal-index cycle leaders can be deterministically verified on-the-fly with strictly O(1) scalar auxiliary memory, completely eliminating marking bitmasks and temporary global buffers. We implement our algorithm as a high-performance Triton kernel and evaluate it on an NVIDIA Ada Lovelace GPU accelerator (RTX 500 Generation, sm_89) with a sequence length of 8,192 tokens and 50% context pruning. Empirical results demonstrate a 100% elimination of peak auxiliary VRAM (dropping from 384.00 MB to exactly 0.00 MB), zero numerical degradation, and guaranteed physical memory contiguity for downstream tensor cores.
A. Emre Cetin· Zenodo (CERN European Organi...· 0 citations
The serving of autoregressive Large Language Models (LLMs) is severely constrained by the computational and memory capacity limits of the Key-Value (KV) cache, commonly referred to as the Memory Wall. While dynamic context pruning algorithms mitigate memory expansion by discarding tokens of low attention mass, conventional systems incur severe hardware overheads: they either require out-of-place memory allocation spikes (O(N) auxiliary buffers via operating system calls like cudaMalloc) or introduce high page-table indirection latencies via virtualized paged attention mechanisms. In this paper, we propose a novel hardware-software co-designed architecture and GPU execution kernel for zero-copy in-place KV-cache compaction. By formulating eviction as an algebraic mapping satisfying the idempotence condition (f(f(x)) = f(x)), our method stabilizes retained tokens into mathematical fixed points and partitions the permutation space into mutually disjoint permutation cycles. We prove that minimal-index cycle leaders can be deterministically verified on-the-fly with strictly O(1) scalar auxiliary memory, completely eliminating marking bitmasks and temporary global buffers. We implement our algorithm as a high-performance Triton kernel and evaluate it on an NVIDIA Ada Lovelace GPU accelerator (RTX 500 Generation, sm_89) with a sequence length of 8,192 tokens and 50% context pruning. Empirical results demonstrate a 100% elimination of peak auxiliary VRAM (dropping from 384.00 MB to exactly 0.00 MB), zero numerical degradation, and guaranteed physical memory contiguity for downstream tensor cores.
A. Emre Cetin· Zenodo (CERN European Organi...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.