{
 "id": "large-reconstruction-model",
 "title": "Large Reconstruction Model (LRM)",
 "aliases": [
  "LRM"
 ],
 "domain": "genai",
 "subdomain": "feed-forward image-to-3D",
 "stage": "generation",
 "realtime": "interactive",
 "platforms": [
  "cuda",
  "python"
 ],
 "year_introduced": 2023,
 "inputs": [
  "ldr-image"
 ],
 "outputs": [
  "radiance-field",
  "mesh"
 ],
 "style": "both",
 "dynamic": "static",
 "summary": "A big transformer that regresses a triplane NeRF from a single image in one forward pass, trained on about a million multi-view object renders; the template for most later feed-forward image-to-3D systems.",
 "how_it_works": "A pretrained vision transformer encodes the image into tokens. A transformer decoder with learned triplane queries cross-attends to those tokens and outputs a triplane feature grid, which a small MLP turns into density and colour. Training renders the predicted NeRF from other known camera views of the same object and minimises image and mask losses, so no 3D-specific supervision beyond multi-view renders is needed. At test time a single forward pass gives the reconstruction, which can be volume-rendered or meshed with marching cubes. The scaling insight was that data and model size matter more than hand-built 3D priors.",
 "when_to_use": "Choose it as the conceptual baseline for single-image to 3D in seconds. In practice use `triposr` (permissive, packaged) or `instantmesh` (mesh-focused with multi-view diffusion front end) rather than the original model, which has no official public weights. Prefer `zero-1-to-3` plus `score-distillation-sampling` when no feed-forward model fits your category and you can wait.",
 "cost": {
  "class": "heavy",
  "notes": "A single transformer forward pass; seconds on a datacentre GPU per the paper."
 },
 "failure_modes": [
  "Back of the object is blurry or mirrored because only one view is visible",
  "Fine texture and text are smoothed by the triplane resolution",
  "Out-of-distribution inputs (scenes, cluttered photos, unusual camera FOV) give melted shapes",
  "Triplane NeRF extraction yields staircase or noisy meshes without extra regularisation"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2311.04400",
   "type": "paper",
   "title": "LRM: Large Reconstruction Model for Single Image to 3D",
   "authors": [
    "Yicong Hong",
    "Kai Zhang",
    "Jiuxiang Gu",
    "Sai Bi",
    "Yang Zhou",
    "Difan Liu",
    "Feng Liu",
    "Kalyan Sunkavalli",
    "Trung Bui",
    "Hao Tan"
   ],
   "year": 2023,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2311.04400",
   "ids": {
    "arxiv": "2311.04400"
   },
   "license": null,
   "extra": {
    "arxiv_version": "2",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.04400",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.04400",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.04400",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.04400",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2311.04400",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "hong2023large"
  },
  {
   "role": "implementation",
   "key": "gh:3dtopia/openlrm",
   "type": "code",
   "title": "3DTopia/OpenLRM",
   "description": "An open-source impl. of Large Reconstruction Models",
   "authors": [
    "3DTopia"
   ],
   "year": 2023,
   "venue": "GitHub",
   "url": "https://github.com/3DTopia/OpenLRM",
   "ids": {
    "repo": "3DTopia/OpenLRM"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 1261,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2024-05-06T09:51:00Z",
    "language": "Python",
    "homepage": null,
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/3DTopia/OpenLRM",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/3DTopia/OpenLRM",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/3DTopia/OpenLRM",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/3DTopia/OpenLRM",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/3DTopia/OpenLRM",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/3DTopia/OpenLRM",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "dtopia20233dtopia"
  }
 ],
 "presets": [
  {
   "id": "large-reconstruction-model-live",
   "title": "Large Reconstruction Model (LRM) — single-view cross-attention tokens (left) vs triplane 3D NeRF decode (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_ATTN_GLOW": 1,
    "P_SIGMA": 5.5,
    "P_ROT_SPEED": 0.6,
    "P_SPLIT": 0.45
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_ATTN_GLOW = 1.0; // P Attention Glow [0.0, 1.8, 0.05]\nconst float P_SIGMA = 5.5; // P NeRF Density [1.5, 10.0, 0.25]\nconst float P_ROT_SPEED = 0.60; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.45; // P Tokens / 3D Recon [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\n// Stylized architectural teapot/capsule asset decoded from LRM triplane NeRF\nvoid evalLRM(vec3 q, out float sigma, out vec3 rgb) {\n  float body = length(q * vec3(1.0, 1.25, 1.0)) - 0.48;\n  float dome = length(q - vec3(0.0, 0.36, 0.0)) - 0.26;\n  float ring = length(vec2(length(q.xz) - 0.56, q.y + 0.06)) - 0.085;\n  float d = min(min(body, dome), ring);\n  sigma = exp(-max(d, 0.0) * 20.0) * smoothstep(0.14, -0.04, d);\n  float band = smoothstep(-0.1, 0.1, sin(q.y * 14.0));\n  rgb = mix(vec3(0.18, 0.54, 0.92), vec3(0.96, 0.72, 0.26), band * 0.65);\n  rgb = mix(rgb, vec3(0.95, 0.34, 0.42), smoothstep(0.45, 0.56, length(q.xz)));\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 attn = clamp(P_ATTN_GLOW, 0.0, 2.0);\n  float sigmaGain = clamp(P_SIGMA, 1.0, 12.0);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 bg = mix(vec3(0.022, 0.030, 0.052), vec3(0.062, 0.084, 0.138), smoothstep(-0.55, 0.55, uv.y));\n  vec3 col = bg;\n\n  if (screenX < split) {\n    // Left: DINO image patch grid (input single-view tokens) sending cross-attention beams into triplane tokens\n    vec2 p = uv + vec2(0.32, 0.0);\n    float boxMask = step(max(abs(p.x), abs(p.y)), 0.34);\n    vec2 patchUV = (p + 0.34) / 0.68;\n    vec2 cell = floor(patchUV * 8.0);\n    vec2 cf = fract(patchUV * 8.0);\n    // Input silhouette inside the patch token grid\n    float sil = smoothstep(0.30, 0.22, length(p * vec2(1.0, 1.2)));\n    float ringSil = smoothstep(0.06, 0.02, abs(length(p - vec2(0.0, -0.02)) - 0.24));\n    vec3 patchCol = mix(vec3(0.07, 0.11, 0.19), vec3(0.24, 0.62, 0.94), sil);\n    patchCol = mix(patchCol, vec3(0.98, 0.44, 0.36), ringSil);\n    float scan = exp(-abs(cell.y - mod(iTime * 5.0, 8.0)) * 0.9);\n    patchCol += vec3(0.98, 0.82, 0.32) * scan * 0.35 * attn;\n    float gridL = smoothstep(0.08, 0.02, min(cf.x, cf.y));\n    patchCol = mix(patchCol, vec3(0.18, 0.88, 0.96), gridL * 0.35);\n    col = mix(col, patchCol, boxMask);\n    // Cross-attention streams radiating rightward toward the 3D triplane\n    float rays = exp(-abs(sin(uv.y * 24.0 + uv.x * 6.0 - iTime * 3.5)) * 6.0) * smoothstep(-0.02, 0.35, uv.x + 0.25);\n    col += vec3(0.22, 0.78, 0.98) * rays * 0.35 * attn * (1.0 - boxMask * 0.7);\n  } else {\n    // Right: Feed-forward 3D triplane NeRF volume rendered from novel orbiting view\n    vec3 ro = vec3(0.0, 0.22, 2.25);\n    vec3 rd = normalize(vec3(uv - vec2(0.10, 0.03), -1.52));\n    ro.xz = rot2(spin * 0.62) * ro.xz;\n    rd.xz = rot2(spin * 0.62) * rd.xz;\n\n    float b = dot(ro, rd);\n    float c = dot(ro, ro) - 1.0 * 1.0;\n    float disc = b * b - c;\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.55, 0.80, 0.45));\n      for (int i = 0; i < 44; i++) {\n        float t = t0 + (float(i) + 0.5) * dt;\n        vec3 p = ro + rd * t;\n        float s; vec3 rgb;\n        evalLRM(p, s, rgb);\n        s *= sigmaGain;\n        vec3 n = normalize(p + vec3(1e-4));\n        float diff = max(dot(n, lDir), 0.0);\n        float spec = pow(max(dot(n, normalize(lDir - rd)), 0.0), 32.0);\n        vec3 lit = rgb * (0.35 + 0.75 * diff) + vec3(1.0) * spec * 0.38;\n        float a = 1.0 - exp(-s * dt);\n        acc += T * a * lit;\n        T *= (1.0 - a);\n        if (T < 0.015) break;\n      }\n      col = acc + T * bg;\n    }\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": "large-reconstruction-model",
     "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.5706,
      "std": 0.2395,
      "min": 0.1679,
      "max": 0.9014
     },
     "image": "/specimens/large-reconstruction-model-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "triposr",
  "instantmesh",
  "zero-1-to-3"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/genai/large-reconstruction-model.json"
 },
 "solves": [
  "want 3d from a single image in seconds",
  "optimisation per object is too slow",
  "need a feed-forward image-to-3d baseline",
  "predict a neural 3d representation without per-scene training"
 ],
 "authority": "Hong et al., 2023",
 "url": "https://texelatlas.vercel.app/t/large-reconstruction-model/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 38.49,
  "tier": "heavy",
  "p50_ms": 1.2663,
  "p95_ms": 1.2916,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "large-reconstruction-model-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 29.62,
   "tier": "heavy",
   "p50_ms": 0.471,
   "p95_ms": 0.4736,
   "speedup_x": 2.69,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 25.8,
   "tier": "heavy",
   "p50_ms": 0.7429,
   "p95_ms": 0.7467,
   "speedup_x": 1.7,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}