{
 "id": "temporal-spatial-neural-splat-denoising",
 "title": "Lightweight WGSL Temporal-Spatial Neural Denoiser for Stochastic Splatting",
 "aliases": [
  "stochastic splat neural denoiser",
  "WGSL temporal-spatial denoiser",
  "recurrent splat denoiser"
 ],
 "domain": "post",
 "subdomain": "denoising",
 "stage": "post",
 "realtime": "realtime",
 "platforms": [
  "webgpu",
  "webgl2",
  "desktop-gpu",
  "mobile-gpu"
 ],
 "year_introduced": 2017,
 "inputs": [
  "hdr-image",
  "depth",
  "camera-poses"
 ],
 "outputs": [
  "hdr-image"
 ],
 "style": "photoreal",
 "dynamic": "dynamic",
 "summary": "Reconstructs temporally stable frames from noisy stochastic 3D Gaussian splats using a compact recurrent neural filter compiled directly into WGSL/GLSL shaders with packed vec4 feature targets and camera-reprojected history.",
 "how_it_works": "Sort-free stochastic Gaussian splatting trades global sorting for high-frequency sub-pixel alpha stipple, while real-time browser renderers cannot afford multi-megabyte desktop denoisers like OIDN every frame. Drawing on recurrent Monte Carlo denoising autoencoders, a lightweight temporal-spatial neural denoiser executes a tiny convolutional/pointwise network directly inside standard **WGSL or GLSL fragment passes**.\n\nEach frame's noisy 4× MSAA stochastic color and depth buffer is paired with the previous frame's **camera-reprojected history** (computed from current and previous view-projection matrices and depth). Instead of shipping an external ML runtime, trained weights are baked straight into shader constants as groups of `mat4x4` pointwise convolutions and small spatial taps operating on packed `rgba16float` render targets—four hidden channels per attachment.\n\nA multi-scale spatial block aggregates neighborhood context to dissolve stipple while respecting depth edges, and a final residual head blends the spatial prediction with reprojected temporal history, rejecting stale history across disocclusions. Because the network has only a few tens of channels and runs purely in native shader passes, it achieves real-time frame rates in WebGPU and WebGL2, including stereo XR.",
 "when_to_use": "Choose it when pairing sort-free stochastic Gaussian splatting with real-time interactive or XR camera motion in the browser and you need immediate noise suppression without heavy external ML runtimes.\n\nPrefer [temporal-anti-aliasing](temporal-anti-aliasing) when GPU budget is too tight for multi-pass neural inference and mild motion ghosting is acceptable. Prefer [svgf](svgf) when you have full path-traced G-buffers (normals, albedo, mesh IDs) and want an analytic spatiotemporal filter. Prefer [open-image-denoise](open-image-denoise) for offline or converged single-frame denoising.",
 "cost": {
  "class": "medium",
  "notes": "Runs as a fixed sequence of fullscreen WGSL/GLSL fragment passes over packed rgba16float targets; lightweight enough for real-time desktop and WebGPU rendering, though fill-rate sensitive at 4K or high-resolution XR."
 },
 "failure_modes": [
  "Disocclusion trails or brief stipple bursts when the camera moves rapidly and reprojected history is invalidated",
  "Over-smoothing of sub-pixel high-frequency foliage or fine text that resembles stochastic alpha noise",
  "Domain shift artifacts if applied to stylized or out-of-distribution splat opacity statistics not seen during training",
  "Floating-point half-precision truncation can introduce faint color banding in dark gradients without rounding bias compensation"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/3072959.3073601",
   "type": "paper",
   "title": "Interactive reconstruction of Monte Carlo image sequences using a recurrent denoising autoencoder",
   "authors": [
    "Chakravarty R. Alla Chaitanya",
    "Anton S. Kaplanyan",
    "Christoph Schied",
    "Marco Salvi",
    "Aaron Lefohn",
    "Derek Nowrouzezahrai",
    "Timo Aila"
   ],
   "year": 2017,
   "venue": "ACM Transactions on Graphics",
   "url": "https://doi.org/10.1145/3072959.3073601",
   "ids": {
    "doi": "10.1145/3072959.3073601"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3072959.3073601",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3072959.3073601",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3072959.3073601",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3072959.3073601",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3072959.3073601",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": 1,
   "__bib": "chaitanya2017interactive"
  },
  {
   "role": "primary",
   "key": "gh:williamliu-1997/gaussian-splat-lite",
   "type": "code",
   "title": "WilliamLiu-1997/Gaussian-Splat-Lite",
   "description": "High-performance 3D Gaussian Splatting (3DGS) renderer for Three.js with WebGPU and WebGL2 support. Loads PLY and SPZ files and supports LOD streaming for SOG, RAD, and LCC2 scenes. Includes a Node.js cli tool that converts PLY or SPZ files into streamable RAD or SOG scenes with multiple lods.",
   "authors": [
    "WilliamLiu-1997"
   ],
   "year": 2026,
   "venue": "GitHub",
   "url": "https://github.com/WilliamLiu-1997/Gaussian-Splat-Lite",
   "ids": {
    "repo": "WilliamLiu-1997/Gaussian-Splat-Lite"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 497,
    "stars_checked": "2026-11-30",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-30T08:30:02Z",
    "language": "JavaScript",
    "homepage": "https://gaussian-splat-lite.vercel.app/",
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/WilliamLiu-1997/Gaussian-Splat-Lite",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/WilliamLiu-1997/Gaussian-Splat-Lite",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/WilliamLiu-1997/Gaussian-Splat-Lite",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/WilliamLiu-1997/Gaussian-Splat-Lite",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/WilliamLiu-1997/Gaussian-Splat-Lite",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/WilliamLiu-1997/Gaussian-Splat-Lite",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": null,
   "__bib": "williamliu2026williamliu"
  }
 ],
 "presets": [
  {
   "id": "temporal-spatial-neural-splat-denoising-live",
   "title": "Temporal-Spatial Neural Splat Denoiser — stochastic sort-free alpha-stipple splats (left) vs recurrent neural-filtered cloud (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_STIPPLE": 0.85,
    "P_SPLAT_SIZE": 0.65,
    "P_RECURRENT": 0.88,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_STIPPLE = 0.85; // P Stochastic Stipple [0.2, 1.0, 0.05]\nconst float P_SPLAT_SIZE = 0.65; // P Gaussian Radius [0.35, 1.2, 0.05]\nconst float P_RECURRENT = 0.88; // P Recurrent Blend [0.2, 0.96, 0.04]\nconst float P_SPLIT = 0.48; // P Stipple / Denoised [0.0, 1.0, 0.02]\n\nfloat hash21(vec2 p) {\n  p = fract(p * vec2(127.1, 311.7));\n  p += dot(p, p + 34.5);\n  return fract(p.x * p.y);\n}\n\nvec2 rot2(vec2 p, float a) {\n  float c = cos(a);\n  float s = sin(a);\n  return vec2(c * p.x - s * p.y, s * p.x + c * p.y);\n}\n\n// Render 28 orbiting 3D Gaussian splats using sort-free stochastic alpha testing (left) vs clean analytic/denoised (right)\nvoid evalSplatCloud(vec2 uv, vec2 fragPx, float t, float radScale, float stippleMode, float seedOff, out vec3 outCol, out float outDepth) {\n  vec3 bg = mix(vec3(0.05, 0.07, 0.12), vec3(0.12, 0.16, 0.24), smoothstep(-0.5, 0.5, uv.y));\n  outCol = bg;\n  outDepth = 10.0;\n\n  vec3 accum = vec3(0.0);\n  float trans = 1.0;\n  float bestZ = 10.0;\n  vec3 winnerCol = bg;\n\n  for (int i = 0; i < 28; i++) {\n    float fi = float(i);\n    float u = fi / 28.0;\n    float ang = u * 6.2831853 * 2.0 + t * 0.55;\n    float phi = (u - 0.5) * 2.4;\n    // Sculptural double-helix / botanical coral splat cluster in 3D\n    vec3 sp = vec3(\n      0.42 * cos(ang) * cos(phi * 0.6),\n      0.34 * sin(phi),\n      0.42 * sin(ang) * cos(phi * 0.6)\n    );\n    sp.xz = rot2(sp.xz, t * 0.35);\n\n    float zCam = 1.95 - sp.z;\n    vec2 proj = sp.xy / max(zCam * 0.62, 0.3);\n    vec2 d = uv - proj;\n    // Anisotropic splat orientation\n    vec2 dl = rot2(d, ang * 0.7 + fi);\n    vec2 rAxis = vec2(0.095, 0.055) * radScale / max(zCam * 0.55, 0.35);\n    float g = exp(-0.5 * dot(dl / rAxis, dl / rAxis));\n    float alpha = clamp(g * 0.82, 0.0, 0.96);\n\n    vec3 splatCol = 0.52 + 0.45 * cos(vec3(0.0, 2.05, 4.10) + u * 5.2 + sp.y * 2.4);\n    splatCol *= 0.75 + 0.45 * smoothstep(-0.4, 0.4, sp.y + 0.2 * sp.z);\n\n    if (stippleMode > 0.5) {\n      // Sort-free stochastic splatting: accept fragment if random threshold < alpha, keep closest Z!\n      float rnd = hash21(floor(fragPx) + vec2(fi * 17.3 + seedOff * 31.7, fi * 9.1 - seedOff * 13.3));\n      if (rnd < alpha && zCam < bestZ) {\n        bestZ = zCam;\n        winnerCol = splatCol;\n      }\n    } else {\n      // Soft volumetric reference weighting for recurrent spatial-temporal denoiser\n      float wDepth = exp(-max(zCam - 1.2, 0.0) * 0.65);\n      accum += splatCol * alpha * wDepth * trans;\n      trans *= (1.0 - alpha * 0.55);\n      if (alpha > 0.25 && zCam < bestZ) bestZ = zCam;\n    }\n  }\n\n  if (stippleMode > 0.5) {\n    outCol = winnerCol;\n    outDepth = bestZ;\n  } else {\n    outCol = accum + bg * trans;\n    outDepth = bestZ;\n  }\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  float stipple = clamp(P_STIPPLE, 0.1, 1.0);\n  float radScale = clamp(P_SPLAT_SIZE, 0.3, 1.3);\n  float recW = clamp(P_RECURRENT, 0.1, 0.97);\n  float fr = floor(iTime * 16.0);\n\n  vec3 col = vec3(0.0);\n  if (screenX < split) {\n    // Left: Raw sort-free stochastic splatting (sub-pixel Bernoulli stipple noise)\n    vec3 stCol, refCol;\n    float stZ, refZ;\n    evalSplatCloud(uv, fragCoord, iTime, radScale, 1.0, fr, stCol, stZ);\n    evalSplatCloud(uv, fragCoord, iTime, radScale, 0.0, fr, refCol, refZ);\n    col = mix(refCol, stCol, stipple);\n  } else {\n    // Right: Compact recurrent temporal-spatial neural-style filter (depth-aware 3x3 spatial + multi-frame reprojected history)\n    vec3 cRef; float cZ;\n    evalSplatCloud(uv, fragCoord, iTime, radScale, 0.0, fr, cRef, cZ);\n    vec3 acc = vec3(0.0);\n    float wSum = 0.0;\n    for (int j = -1; j <= 1; j++) {\n      for (int i = -1; i <= 1; i++) {\n        vec2 qPx = fragCoord + vec2(float(i), float(j)) * 1.5;\n        vec2 qUv = (qPx - 0.5 * iResolution.xy) / iResolution.y;\n        vec3 qCol; float qZ;\n        evalSplatCloud(qUv, qPx, iTime, radScale, 1.0, fr + float(i * 3 + j), qCol, qZ);\n        float wZ = exp(-abs(cZ - qZ) * 2.2);\n        float w = wZ * exp(-dot(vec2(float(i), float(j)), vec2(float(i), float(j))) * 0.45);\n        acc += qCol * w;\n        wSum += w;\n      }\n    }\n    vec3 spatialEst = acc / max(wSum, 1e-4);\n    // Recurrent temporal feedback stabilizes the spatial estimate without ghosting\n    col = mix(spatialEst, cRef, recW);\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.98, 1.0), sep);\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "temporal-spatial-neural-splat-denoising",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:28.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.5029,
      "std": 0.1454,
      "min": 0.3019,
      "max": 0.9014
     },
     "image": "/specimens/temporal-spatial-neural-splat-denoising-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "sort-free-stochastic-splatting-msaa",
  "svgf",
  "open-image-denoise",
  "nvidia-nrd-relax-reblur",
  "temporal-anti-aliasing"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "sort-free-stochastic-splatting-msaa",
   "why": "Consumes noisy 4× MSAA stochastic splat color and depth targets to output smooth, temporally coherent frames."
  },
  {
   "id": "agx-tonemapping",
   "why": "Applies display tone mapping after temporal-spatial neural reconstruction completes in linear HDR space."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-30T17:59:51.239Z",
  "draft": "data/drafts/post/temporal-spatial-neural-splat-denoising.json"
 },
 "solves": [
  "stochastic sort-free gaussian splats look noisy and stippled in motion",
  "reconstruct clean smooth splat images from low-sample stochastic coverage",
  "need a lightweight neural filter tailored to 3dgs depth and motion guides",
  "reduce flicker and crawling grain on real-time stochastic splat renders",
  "combine temporal reprojection with compact spatial filtering for splat pipelines"
 ],
 "authority": "Chaitanya et al., 2017",
 "url": "https://texelatlas.vercel.app/t/temporal-spatial-neural-splat-denoising/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 261.5,
  "tier": "extreme",
  "p50_ms": 8.6033,
  "p95_ms": 8.648,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "temporal-spatial-neural-splat-denoising-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 280.44,
   "tier": "extreme",
   "p50_ms": 4.459,
   "p95_ms": 4.5946,
   "speedup_x": 1.93,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 188.92,
   "tier": "extreme",
   "p50_ms": 5.441,
   "p95_ms": 5.4943,
   "speedup_x": 1.58,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}