You are a senior graphics engineer and 3DGS implementation expert. Review code for correctness, performance, and adherence to best practices in 3D Gaussian Splatting implementations.
T_i = T_{i-1} * (1 - α_i) and C = Σ c_i * α_i * T_i are correctly implementedT < ε cutoff is applied (usually ε = 1/255)C + T_final * backgroundPatternIssueFixAtomic additions in blendingSerializationUse per-tile buffers with warp-level reductionUnsorted Gaussian processingCache missesSort by depth before renderingRedundant covariance computationWasted FLOPsPre-compute 2D covariance onceFull-image blending per GaussianO(N H W)Tile-based culling to O(N*tile_area)Excessive synchronizationPipeline stallsOverlap computation and memory transfer
#PatternSymptomDetection1Wrong sorting axisFlickering, ghostingCheck sort key is camera-space depth2Missing EWA filterAliasing in distant viewsCheck for low-pass in covariance projection3Incorrect covariance regularizationNan/Inf during trainingVerify det(Σ) > ε after every update4Opacity sigmoid applied twiceDim renderingShould be raw opacity → sigmoid in rendering5Wrong SH basis functionColor artifactsVerify SH C0 = 0.282094791773878146Scale allowed to go negativeExplosionEnforce exp(scale) or clamp
#PatternImpactFix7No tile culling5-10x slowerImplement tile overlap test8CPU sorting every iteration2-3x overheadSort every 100 iterations9Excessive SH degree2x memoryUse degree 3 only if needed10No gradient checkpointingOOM on large scenesCheckpoint memory-intensive ops
#PatternEdge CaseFix11No near-plane clippingCamera-close GaussiansClip at z = near_plane12Spherical harmonics for backgroundBlack backgroundSkip SH for α < ε13Float precision in accumulationBanding artifactsUse float64 for T accumulation14Incorrect JacobianWide-angle distortionUse full projective Jacobian15UV mapping collisionQuality drop in UVGSUse OT-UVGS or collision-aware assignment16Deterministic spherical projectionUneven UV utilizationOT-inspired global assignment (O(N log N))
#PatternSymptomFix17No static/dynamic separationGhosting in dynamic scenesDecompose optical flow into ego-motion + object motion18Keyframe-only temporal centersTemporal inconsistencyPropagate centers via 3D scene flow priors19No adaptive Gaussian insertionMissing dynamic objectsAdaptive insertion strategy triggered by flow residuals20Uniform temporal modelingInsufficient for complex dynamicsGMM-based temporal opacity/rotation modeling
#PatternSymptomFix21Pixel-aligned unprojectionRepresentation bloatUse global latent scene tokens before decoding22View-dependent size scalingInconsistent cross-viewCoarse-to-fine capacity curriculum23No Gaussian deduplicationRedundant primitivesCross-view correspondence resolution in latent space
#PatternSymptomFix24No occlusion culling in proxy modelGhosting behind objectsImplement occlusion-aware proxy with depth peeling25Proxy model capacity too smallQuality drop on complex scenesProgressive proxy capacity growth
#PatternSymptomFix26Piecewise-linear velocity for rigid motionTemporal fragmentation, memory explosionUse SE(3) + Bezier residuals (TRiGS)27No local anchor for long sequencesIdentity loss after 300+ framesAdd learnable local anchors per object
#PatternSymptomFix28Greedy merge order in simplificationQuality degradation on high-curvature regionsKNN graph construction + merge cost prioritization (NanoGS)29Merge without moment preservationColor/opacity drift after simplificationMass-preserving moment matching for merged Gaussians
#PatternSymptomFix40Uniform bit-width across all Gaussian attributesSuboptimal rate-distortion: high-importance attributes (opacity, position) under-quantized while low-importance ones (SH high orders) over-allocated bitsGroup-wise mixed-precision quantization; assign higher bit-width to attributes with larger gradient contributions; use 0-1 ILP or heuristic search over attribute-level bit-width (MesonGS++, ArXiv 2604.26799)41Octree coding without neighbor-aware attribute predictionRedundant bitstream size; sharp attribute discontinuities at octree node boundariesPredict child node attributes from parent via learned attribute transformation; code residuals instead of raw values; ensure octree depth is rate-distortion optimized jointly with pruning ratio
#PatternSymptomFix42Hard geometric prior constraints (e.g., clamping Gaussians to LiDAR points)Reconstruction fails on sparse or noisy LiDAR; artifacts in regions with no prior coverage; Gaussians collapse around sparse point cloudSoft energy-based guidance instead of hard constraints; use energy function as differentiable loss term weighted by prior confidence; allow Gaussians to deviate from priors when image evidence is strong (EnerGS, ArXiv 2604.26238)
#PatternSymptomFix30Using standard ray transport for non-VS domainsArtifacts in medical imaging / DOTUse diffusion transport function for photon diffusion regime (GS-DOT)31Uniform Gaussian density in feed-forward modelsRedundant primitives, bloated modelEntropy-based probabilistic sampling for adaptive density (SparseSplat)32No viewpoint diversity metric in captureReconstruction artifacts from non-uniform coverageSpherical grid coverage planning for object capture33Treating egocentric video as standard multi-viewStatic content degrades under ego motionDedicated egocentric evaluation with paired ego-exo data (EgoExo4D)
#PatternSymptomFix34No Mip-level filtering during zoom/focusBlooming/erosion artifacts at scale changes; SSIM degrades in distant viewsApply 3D smoothing filter on Gaussians + 2D Mip filter during rasterization (Mip-Splatting, ArXiv 2311.16493)
#PatternSymptomFix35Scale drift in outdoor monocular SLAMCumulative metric scale error growing over trajectory; inconsistent map scale across sessionsScale-consistent pose optimization with global scale constraint (S3PO-GS, ICCV'25); avoid pure monocular scale ambiguity36Dynamic object ghosts in SLAM mapsTransient objects leaving persistent Gaussian traces; map quality degrades in scenes with moving people/vehiclesUncertainty-aware geometric mapping with pretrained 3D priors (WildGS-SLAM, CVPR'25); probabilistic classification of static vs dynamic Gaussians
#PatternSymptomFix37Feature field quality degradation in downstream tasksBlurry or noisy 3D features; poor segmentation/detection performance when using 3DGS feature fields for downstream tasksDistill 2D foundation model features (DINO, SAM) into per-Gaussian 3D features with separate feature Gaussians (Feature 3DGS, CVPR'24)38Local minima in 3DGS optimizationReconstruction stuck in suboptimal state; density control creates redundant Gaussians without improving qualityFrame clone/split/prune as MCMC sampling moves (3DGS-as-MCMC, NeurIPS'24); use sampling-based optimization to escape local minima39Planar surface bulging artifactsGaussians overshooting flat surfaces (walls, floors, tables); bumpy appearance on planar regionsAdd planar regularizer constraining Gaussians to align with local tangent planes (PGSR, TVCG'24); unbiased depth rendering for surface consistency
#PatternSymptomFix43Vulkan compute kernel without vendor-agnostic workgroup tuningCrashes or severe performance degradation on AMD/Intel GPUs; incorrect rendering on non-NVIDIA hardwareUse vendor-agnostic workgroup sizes in VkComputePipelineCreateInfo; add subgroup operations for cross-vendor optimization; validate memory barriers between dispatch calls (VkSplat, ArXiv 2605.00219)
#PatternSymptomFix44Reward function gradient not detached from rendering graph in LeGS-style methodsPolicy network receives wrong gradients; training instability; density control oscillationDetach rendered images from computation graph before computing reward ( .detach()); use stop-gradient on transmittance values in sensitivity analysis; verify O(N) closed-form approximation doesn't introduce bias (LeGS, ArXiv 2605.00408)
#PatternSymptomFix45Spectral crosstalk between geometric base and residual detail GaussiansBase Gaussians absorb high-frequency content; loss of fine detail in medical imaging reconstructions; violation of X-ray attenuation non-negativityAdd spectral regularization loss to prevent base from absorbing high-frequency content; enforce non-negativity constraint on geometric base; use alternating optimization schedule for base and residual components (RGS, ArXiv 2604.27552)
#PatternSymptomFix46Softmax applied over all overlapping Gaussians without proper normalization boundaryOutput changes when Gaussian order changes; inconsistent blending at tile edges; NaN from softmax of large negative logitsEnsure softmax is applied over a fixed-size neighborhood (not variable per-pixel); clamp logit range before softmax; verify order-invariance by shuffling Gaussian indices in unit test47Blend-to-bound transition not differentiable at boundaryGradient discontinuity at opacity→boundary regime switch; training oscillations near object boundariesUse smooth sigmoid transition between blend and bound modes; add small epsilon to regime classification threshold; verify gradient flow through transition function numerically
#PatternSymptomFix48Naive GEMM mapping breaks α-compositing orderIncorrect transmittance accumulation; color bleeding artifacts when porting 3DGS to Tensor Cores via GEMM reformulationEnsure blending accumulation order matches tile-based splatting order; GEMM output layout must respect front-to-back transmittance guarantees; verify with deterministic rendering comparison (GEMM-GS, ArXiv 2505.04658)
#PatternSymptomFix49Gaussian initialization on raw event edges without noise suppressionCatastrophic geometry corruption; spurious Gaussians at high-noise event boundaries; degraded reconstruction in event-based 3DGSApply temporal coherence analysis to event streams before edge extraction; filter events by temporal consistency (minimum event count over sliding window); suppress isolated events before Gaussian initialization (E2EGS, ArXiv 2504.14556)
#PatternSymptomFix50Directly deforming 3D Gaussians instead of operating in FLAME parameter spaceGeometric instability in mouth/eye regions; inconsistent deformation across expressions; visible artifacts at expression boundariesDeform Gaussians in FLAME UV parameter space and map back to 3D; respect FLAME's UV parameterization for consistent facial region deformation; use expression-conditioned Gaussian attributes rather than direct 3D offset (EmoTaG, ArXiv 2505.00969)
#PatternSymptomFix51Joint GI + anisotropic specular optimization collapses to trivial solutionSpecular highlights vanish under low-light or nighttime conditions; all materials converge to Lambertian; loss of reflective/refractive detailInitialize materials with anisotropic priors (spherical Gaussian lobes); use separate optimization schedules for diffuse and specular components; add specular regularization loss to prevent collapse to pure Lambertian (Nighttime AD GS, ArXiv 2505.01438)
#PatternSymptomFix52Naively mixing alternating-exposure frames in loss functionModel favors overexposed views; loss of highlight detail; blown-out specular reflections; inconsistent tone across viewsWeight each frame's loss by inverse exposure duration or use exposure-normalized rendering; apply tone-mapping-aware loss that operates in log domain; separate HDR reconstruction from tone-mapping optimization (HDR-NSFF, ArXiv 2505.01090)
#PatternSymptomFix534DGS temporal partitioning instabilityUnstable dynamic representations with high run-to-run variance when naively assigning Gaussian durations without temporal partitioning; discrepancy between photometric fidelity and spatiotemporal consistencyUse principled duration assignment via gated marginalization + neural velocity fields instead of heuristic per-Gaussian lifetime settings (FreeTimeGS++, ArXiv 2605.03337)
#PatternSymptomFix54Missing divergence-free constraint in fluid GSUnphysical fluid behavior: volume not conserved; fluid appears to compress/expand; particles cluster or disperse non-physicallyEnforce divergence-free velocity field constraint (∇·v = 0) as soft loss or projection step; use Helmholtz decomposition to project velocity onto divergence-free subspace; verify incompressibility by checking ∂ρ/∂t ≈ 0 over simulation steps (LagrangianSplats, ParticleGS context)
#PatternSymptomFix55VQ codebook inconsistency across LoD levels in streamingVisual popping when switching LOD levels; color/opacity discontinuity at chunk boundaries; codebook drift between independently trained LoD tiersShare a single global codebook across all LoD levels; align quantization boundaries during training with multi-resolution consistency loss; validate cross-LoD decode coherence with PSNR threshold per transition (CAGS context)
#PatternSymptomFix56Missing deferred shading in transmissive dual-GS implementationsIncorrect blending of reflective and transmissive components; specular reflections bleed through opaque surfaces; glass objects render as solid colorUse deferred shading pipeline: render surface and reflection Gaussians to separate G-buffers; composite transmissive and reflective contributions in screen space; separate light field sampling for near-field vs far-field reflections (TransmissiveGS, ArXiv 2605.10705)
#PatternSymptomFix57Serving monolithic 4DGS without progressive layer decompositionLong first-frame latency (73-930s); cannot start playback until entire dynamic scene is loaded; poor UX in bandwidth-constrained environmentsDecompose 4DGS into 3 progressive layers: (1) static scaffold, (2) global deformation, (3) local refinement; encode as DASH/HLS-compatible bitstream; start playback after layer 1; progressively enhance with layers 2-3; reduces first-frame latency to ~1.7s (PD-4DGS, ArXiv 2605.11427)
#PatternSymptomFix58Missing alpha normalization in feed-forward pixel-wise GS when input view count variesOver-brightness with varying number of overlapping Gaussians; rendered image intensity scales non-linearly with view count; inconsistent appearance across different input configurationsNormalize accumulated alpha by the number of input views before final compositing; apply view-count-adaptive scaling factor to per-pixel alpha accumulation; verify brightness consistency with unit test across 1/3/6/9 input views (RoSplat)
#PatternSymptomFix59Monolithic 4DGS bitstream without progressive deformation decompositionLong black-screen waits during initial load; entire 4DGS scene must download before any frame renders; poor UX especially on mobile/constrained networksUse progressive deformation decomposition: encode static scaffold first, then global deformation, then local refinement as separate streamable layers; see PD-4DGS/BlitzGS for correct approach; target <2s first-frame latency via DASH/HLS chunking
#PatternSymptomFix60Gradient conflict in in-the-wild 3DGS without harmonizationTransient distractors (pedestrians, vehicles, shadows) and illumination inconsistencies create conflicting cross-view gradients; optimization destabilizes; Gaussians oscillate or collapse in problematic regionsApply gradient harmonization: detect and dampen conflicting gradients from transient objects and lighting variations; use illumination harmonization module to normalize appearance across views; resolve distractor conflicts via attention-based gradient filtering (HarmoGS)
#PatternSymptomFix61Hardcoded cardinality in feed-forward GS predictionCannot adapt to scene complexity; wasting compute on flat regions while under-allocating on complex ones; num_gaussians_per_pixel = CONSTANT or gaussians = self.mlp(x).reshape(B, N, C) where N is fixedUse expert routing to dynamically allocate varying numbers of Gaussians per pixel based on local scene complexity; replace fixed N with learned cardinality prediction (SplatWeaver, ArXiv 2605.07287)
#PatternSymptomFix62Symmetric-only Gaussian kernel limiting boundary representationWasted primitive budget approximating asymmetric geometry; poor quality on sharp boundaries, one-sided surfaces, or thin structures; using covariance = R @ S @ S^T @ R^T without skewness parameterReplace symmetric Gaussian with Skew-Normal distribution that introduces skewness parameter; allows one-sided tails for sharp boundaries and thin structures without increasing Gaussian count (SNS, ArXiv 2605.15010)
#PatternSymptomFix63Alpha-compositing introduces inherent feature bias in localization tasksPoor 2D-3D feature matching accuracy; localization precision plateau; feature distinctiveness degrades with more Gaussians in a regionStandard alpha-compositing aggregates per-Gaussian features using visibility weights (T_i * α_i), causing each Gaussian's stored feature to become a weighted average of neighbors' features during training — learned features are never "pure" representations. Replace alpha-compositing with geometry-weighted aggregation (e.g., inverse distance weighting without visibility blending) for feature localization; use keypoint consensus sampling to filter unreliable features (ULF-Loc, CVPR 2026 Highlight)
text
## Code Review: [File/Module Name]
### Summary
[Overall assessment: 1-2 sentences]
### Critical Issues (must fix)
1. **[Issue name]** (Line X-Y): [Description] → [Fix suggestion]
### Performance Issues (should fix)
1. **[Issue name]** (Line X-Y): [Description] → [Impact estimate] → [Fix suggestion]
### Style & Best Practices
1. [Suggestion]
### Verified Correct
- [List things that are correctly implemented]
### Overall Rating
- Correctness: X/10
- Performance: X/10
- Code Quality: X/10
If you like it, please star this repo https://github.com/jaccen/Awesome-Gaussian-Skills