{
 "id": "instant-ngp",
 "title": "Instant NGP (Multiresolution Hash Encoding)",
 "aliases": [
  "Instant-NGP",
  "hash grid encoding"
 ],
 "domain": "capture",
 "subdomain": "neural scene representation",
 "stage": "capture",
 "realtime": "interactive",
 "platforms": [
  "cuda"
 ],
 "year_introduced": 2022,
 "inputs": [
  "photos",
  "camera-poses"
 ],
 "outputs": [
  "radiance-field",
  "sdf"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "Replaces large coordinate MLPs with a small network fed by a multiresolution hash table of trainable features, training NeRFs and SDFs in seconds to minutes on one GPU.",
 "how_it_works": "The input position is looked up in several grids of increasing resolution. Each level hashes its integer corner coordinates into a fixed-size table of trainable feature vectors, interpolates trilinearly between corners, and the per-level features are concatenated. Hash collisions are tolerated: the small downstream MLP and gradient averaging resolve them in favour of the cells that matter. Because most of the capacity sits in the table, the MLP can be tiny and is fused into one CUDA kernel, so training is bandwidth-bound rather than FLOP-bound. An occupancy grid skips empty space during ray marching. The same encoding works for NeRF, signed distance functions, images and neural volumes.",
 "when_to_use": "Choose it when you want a NeRF or neural SDF trained in minutes and previewed interactively on an NVIDIA GPU. Prefer `gaussian-splatting-3dgs` for higher render speed and quality on large scenes, `mip-nerf-360` when anti-aliasing and unbounded quality matter more than training time, and `neuralangelo` for high-fidelity surfaces built on the same hash encoding.",
 "cost": {
  "class": "offline",
  "notes": "Paper-reported training in seconds to a few minutes on a single high-end NVIDIA GPU; requires CUDA/tiny-cuda-nn."
 },
 "failure_modes": [
  "Hash collisions add high-frequency noise and speckle when the table is too small for the scene",
  "Floaters and background fog in sparsely observed regions, as in vanilla NeRF",
  "Not anti-aliased across scales, so zoomed-out views alias",
  "Tied to NVIDIA GPUs and a non-commercial research licence in the reference code"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/3528223.3530127",
   "type": "paper",
   "title": "Instant neural graphics primitives with a multiresolution hash encoding",
   "authors": [
    "Thomas Müller",
    "Alex Evans",
    "Christoph Schied",
    "Alexander Keller"
   ],
   "year": 2022,
   "venue": "ACM Transactions on Graphics",
   "url": "https://doi.org/10.1145/3528223.3530127",
   "ids": {
    "doi": "10.1145/3528223.3530127"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3528223.3530127",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3528223.3530127",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3528223.3530127",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3528223.3530127",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3528223.3530127",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "mller2022instantb"
  },
  {
   "role": "primary",
   "key": "arxiv:2201.05989",
   "type": "paper",
   "title": "Instant Neural Graphics Primitives with a Multiresolution Hash Encoding",
   "authors": [
    "Thomas Müller",
    "Alex Evans",
    "Christoph Schied",
    "Alexander Keller"
   ],
   "year": 2022,
   "venue": "ACM Trans. Graph. 41, 4, Article 102 (July 2022), 15 pages",
   "url": "https://arxiv.org/abs/2201.05989",
   "ids": {
    "arxiv": "2201.05989",
    "doi": "10.1145/3528223.3530127"
   },
   "license": null,
   "extra": {
    "arxiv_version": "2",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2201.05989",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2201.05989",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2201.05989",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2201.05989",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2201.05989",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "mller2022instant"
  },
  {
   "role": "implementation",
   "key": "gh:nvlabs/instant-ngp",
   "type": "code",
   "title": "NVlabs/instant-ngp",
   "description": "Instant neural graphics primitives: lightning fast NeRF and more",
   "authors": [
    "NVlabs"
   ],
   "year": 2022,
   "venue": "GitHub",
   "url": "https://github.com/NVlabs/instant-ngp",
   "ids": {
    "repo": "NVlabs/instant-ngp"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 17609,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-02-02T12:32:34Z",
    "language": "Cuda",
    "homepage": "https://nvlabs.github.io/instant-ngp",
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVlabs/instant-ngp",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVlabs/instant-ngp",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVlabs/instant-ngp",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVlabs/instant-ngp",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVlabs/instant-ngp",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVlabs/instant-ngp",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "nvlabs2022nvlabs"
  },
  {
   "role": "tutorial",
   "key": "url:https://nvlabs.github.io/instant-ngp",
   "type": "tutorial",
   "title": "Instant Neural Graphics Primitives project page",
   "authors": [
    "NVIDIA Research"
   ],
   "year": null,
   "venue": "nvlabs.github.io",
   "url": "https://nvlabs.github.io/instant-ngp",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261102160530/https://nvlabs.github.io/instant-ngp/",
     "timestamp": "20261102160530"
    },
    "page_title": "Instant Neural Graphics Primitives with a Multiresolution Hash Encoding",
    "host": "nvlabs.github.io",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://nvlabs.github.io/instant-ngp → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://nvlabs.github.io/instant-ngp → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://nvlabs.github.io/instant-ngp → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.6153846153846154,
   "__bib": "researchinstant"
  }
 ],
 "presets": [
  {
   "id": "instant-ngp-hash-encoding-nerf",
   "title": "Hash encoding configuration used for NeRF",
   "runtime": "json-params",
   "params": {
    "n_levels": 16,
    "n_features_per_level": 2,
    "log2_hashmap_size": 19,
    "base_resolution": 16,
    "mlp_hidden_layers": 1,
    "mlp_neurons": 64
   },
   "basis": "0",
   "license_note": "Values follow the configuration reported in the paper; the reference repo NVlabs/instant-ngp is under NVIDIA's non-commercial source code licence.",
   "execution_fidelity": "parameter-only",
   "proof": {
    "kind": "parameter",
    "label": "parameter preset",
    "ok": true,
    "proof": null
   }
  },
  {
   "id": "instant-ngp-live",
   "title": "Instant NGP — multiresolution spatial hash-grid levels (left) vs decoded high-frequency NeRF (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_HASH_LEVELS": 5,
    "P_SIGMA_GAIN": 5.2,
    "P_ROT_SPEED": 0.58,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_HASH_LEVELS = 5.0; // P Hash Levels L [1.0, 6.0, 1.0]\nconst float P_SIGMA_GAIN = 5.2; // P Volume Sigma [1.5, 10.0, 0.25]\nconst float P_ROT_SPEED = 0.58; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P Hash Grid / NGP [0.0, 1.0, 0.02]\n\nmat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }\n\nfloat hash31(vec3 p) {\n  p = fract(p * 0.1031);\n  p += dot(p, p.yzx + 33.33);\n  return fract((p.x + p.y) * p.z);\n}\n\n// Multiresolution hash-encoded neural feature sum across geometric cascade resolutions N_l = N_min * b^l\nfloat evalHashFeatures(vec3 p, float maxL) {\n  float acc = 0.0;\n  float res = 3.0;\n  float amp = 0.5;\n  for (int l = 0; l < 6; l++) {\n    if (float(l) >= maxL) break;\n    vec3 gp = p * res;\n    vec3 cell = floor(gp);\n    vec3 f = fract(gp);\n    f = f * f * (3.0 - 2.0 * f);\n    // Trilinearly interpolated hashed vertex features (mimicking T-entry spatial hash table)\n    float v000 = hash31(cell);\n    float v100 = hash31(cell + vec3(1.0, 0.0, 0.0));\n    float v010 = hash31(cell + vec3(0.0, 1.0, 0.0));\n    float v110 = hash31(cell + vec3(1.0, 1.0, 0.0));\n    float v001 = hash31(cell + vec3(0.0, 0.0, 1.0));\n    float v101 = hash31(cell + vec3(1.0, 0.0, 1.0));\n    float v011 = hash31(cell + vec3(0.0, 1.0, 1.0));\n    float v111 = hash31(cell + vec3(1.0, 1.0, 1.0));\n    float c00 = mix(v000, v100, f.x);\n    float c10 = mix(v010, v110, f.x);\n    float c01 = mix(v001, v101, f.x);\n    float c11 = mix(v011, v111, f.x);\n    float c0 = mix(c00, c10, f.y);\n    float c1 = mix(c01, c11, f.y);\n    acc += (mix(c0, c1, f.z) - 0.5) * amp;\n    res *= 1.85;\n    amp *= 0.54;\n  }\n  return acc;\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  bool isGrid = screenX < split;\n  float maxL = clamp(floor(P_HASH_LEVELS + 0.5), 1.0, 6.0);\n  float sigmaGain = clamp(P_SIGMA_GAIN, 1.0, 12.0);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.22, 2.28);\n  vec3 rd = normalize(vec3(uv - vec2(0.0, 0.03), -1.52));\n  ro.xz = rot2(spin * 0.52) * ro.xz;\n  rd.xz = rot2(spin * 0.52) * rd.xz;\n\n  vec3 bg = mix(vec3(0.018, 0.025, 0.044), vec3(0.052, 0.072, 0.120), smoothstep(-0.55, 0.55, uv.y));\n  vec3 col = bg;\n\n  float b = dot(ro, rd);\n  float c = dot(ro, ro) - 1.02 * 1.02;\n  float disc = b * b - c;\n\n  if (disc > 0.0) {\n    float t0 = max(-b - sqrt(disc), 0.1);\n    float t1 = -b + sqrt(disc);\n    float dt = (t1 - t0) / 44.0;\n    vec3 acc = vec3(0.0);\n    float T = 1.0;\n    vec3 lDir = normalize(vec3(0.58, 0.80, 0.45));\n\n    for (int i = 0; i < 44; i++) {\n      float t = t0 + (float(i) + 0.5) * dt;\n      vec3 p = ro + rd * t;\n\n      // Sculpted bonsai-arch/crystal core modulated by multiresolution hash encoding\n      float baseD = length(p) - 0.58;\n      float ringD = length(vec2(length(p.xz) - 0.52, p.y)) - 0.16;\n      float dShape = min(baseD, ringD);\n      float hf = evalHashFeatures(p, maxL);\n      float d = dShape + hf * 0.22;\n\n      float sigma = exp(-max(d, 0.0) * 20.0) * smoothstep(0.14, -0.04, d) * sigmaGain;\n\n      if (isGrid) {\n        // Left: Visualize active occupancy grid + multiresolution hash-lattice wireframe\n        vec3 gCoarse = abs(fract(p * 4.0) - 0.5);\n        vec3 gFine = abs(fract(p * 10.0) - 0.5);\n        float wC = smoothstep(0.04, 0.01, min(gCoarse.x, min(gCoarse.y, gCoarse.z)));\n        float wF = smoothstep(0.05, 0.012, min(gFine.x, min(gFine.y, gFine.z))) * smoothstep(0.18, -0.05, dShape);\n        vec3 hashCol = 0.5 + 0.5 * cos(vec3(0.0, 2.1, 4.2) + hf * 8.0 + p.y * 2.5);\n        float sVis = sigma * 0.45 + wC * 0.35 + wF * 1.4;\n        float a = 1.0 - exp(-sVis * dt);\n        vec3 rad = mix(vec3(0.14, 0.78, 0.96) * wC + vec3(0.98, 0.62, 0.18) * wF, hashCol, clamp(sigma * 0.25, 0.0, 1.0));\n        acc += T * a * rad * 1.25;\n        T *= (1.0 - a);\n      } else {\n        // Right: Tiny fused MLP radiance decode with sharp high-frequency surface detail\n        float a = 1.0 - exp(-sigma * dt);\n        if (a > 0.005) {\n          vec3 n = normalize(p + vec3(hf * 0.8, hf * 0.6, -hf * 0.7) + vec3(1e-4));\n          float diff = max(dot(n, lDir), 0.0);\n          float spec = pow(max(dot(n, normalize(lDir - rd)), 0.0), 36.0);\n          vec3 alb = mix(vec3(0.16, 0.66, 0.88), vec3(0.96, 0.52, 0.22), smoothstep(-0.35, 0.35, hf + p.y * 0.5));\n          vec3 rad = alb * (0.30 + 0.82 * diff) + vec3(1.0, 0.95, 0.88) * spec * 0.45;\n          acc += T * a * rad;\n          T *= (1.0 - a);\n        }\n      }\n      if (T < 0.015) break;\n    }\n    col = acc + T * bg;\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\n\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": "instant-ngp",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T20:35:51.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.587,
      "std": 0.227,
      "min": 0.1477,
      "max": 0.9014
     },
     "image": "/specimens/instant-ngp-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "nerf",
  "mip-nerf-360",
  "neuralangelo",
  "gaussian-splatting-3dgs"
 ],
 "extends": [
  "nerf"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "neuralangelo",
   "why": "Neuralangelo uses the multiresolution hash grid as its SDF feature backbone."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/capture/instant-ngp.json"
 },
 "solves": [
  "nerf training takes hours",
  "want a neural radiance field in minutes on one gpu",
  "large coordinate network trains too slowly",
  "need interactive preview of a neural scene while training"
 ],
 "authority": "Müller et al., 2022",
 "url": "https://texelatlas.vercel.app/t/instant-ngp/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 476.58,
  "tier": "extreme",
  "p50_ms": 15.6795,
  "p95_ms": 15.8455,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 16,
  "preset_id": "instant-ngp-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 422.87,
   "tier": "extreme",
   "p50_ms": 6.7236,
   "p95_ms": 6.8025,
   "speedup_x": 2.33,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 363.57,
   "tier": "extreme",
   "p50_ms": 10.4709,
   "p95_ms": 10.5338,
   "speedup_x": 1.5,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}