A Coordinate-Based MLP (Multilayer Perceptron) is a fully-connected neural network that takes spatial coordinates (e.g., x, y, z) as input and directly outputs a property of the scene at that location, such as color, density, or signed distance. This architecture serves as the core component of Implicit Neural Representations (INRs), including Neural Radiance Fields (NeRF) and Signed Distance Functions (SDFs), by acting as a continuous, memory-efficient alternative to discrete data structures like voxel grids or point clouds.
Glossary
Coordinate-Based MLP

What is a Coordinate-Based MLP?
A foundational architecture for encoding continuous 3D scenes as neural networks.
To effectively model high-frequency scene details, raw coordinates are typically transformed via positional encoding or a learned feature grid (like a multi-resolution hash grid) before being processed by the MLP. The network is trained through differentiable rendering, where gradients from 2D image losses are backpropagated through the rendering equation to optimize the scene parameters. This enables the synthesis of novel views and high-fidelity 3D reconstruction from sparse image sets.
Core Characteristics of Coordinate-Based MLPs
A coordinate-based MLP is a fully-connected neural network that maps spatial coordinates to scene properties, forming the foundational architecture for implicit neural representations like NeRF and SDFs. Its design choices directly impact reconstruction quality, training speed, and memory efficiency.
Fully-Connected Architecture
A coordinate-based MLP is a Multilayer Perceptron (MLP) composed of stacked, fully-connected layers. It takes a low-dimensional coordinate vector (e.g., [x, y, z]) as input and outputs a property of the scene at that location, such as color, density, or signed distance. This simple, continuous function approximator can represent complex signals without any convolutional or recurrent layers, making it a universal function approximator for spatial data.
- Core Operation:
f_θ(x) → y, wherexis a coordinate,θare network weights, andyis the output signal. - Typical Structure: 4-8 hidden layers with 64-256 neurons each, using non-linear activation functions like ReLU or sine.
Input Encoding for High Frequencies
A raw MLP with ReLU activations suffers from spectral bias, tending to learn low-frequency functions and blurring fine details. To overcome this, input coordinates are transformed into a higher-dimensional space before being fed to the network. Two primary techniques are used:
- Positional Encoding (PE): Maps coordinates using a set of sinusoidal functions:
γ(p) = [sin(2^0 π p), cos(2^0 π p), ..., sin(2^(L-1) π p), cos(2^(L-1) π p)]. This allows the MLP to easily represent high-frequency scene content. - Feature Grid/Hash Encoding: Stores learnable feature vectors in a multi-resolution grid or hash table. The coordinate is used to interpolate these features, which are then passed to a small MLP. This is the core of Instant NGP, drastically reducing the required network size and training time.
Outputs Define the Scene Representation
The MLP's output defines the type of implicit neural representation being modeled. The network architecture is largely consistent; it is the interpretation of the output that changes:
- NeRF (Neural Radiance Field): Outputs a volume density (σ) and RGB color
c. The density defines geometry, and the view-dependent color enables photorealistic rendering. - Neural SDF (Signed Distance Function): Outputs a signed distance
dto the nearest surface. A value of zero defines the surface, negative is inside, positive is outside. - Occupancy Network: Outputs a probability (0 to 1) of a coordinate being inside an object.
- Neural Reflectance Field: Outputs decomposed material properties like albedo, roughness, and normal, enabling relighting.
Differentiable Optimization via Rendering
The coordinate-based MLP is not trained on paired (coordinate, value) data. Instead, it is optimized end-to-end through a differentiable renderer. A rendering loss between synthesized and ground-truth images drives the learning.
- Process: For a training image, camera rays are cast. Points along each ray are sampled, and the MLP is queried at those 3D coordinates.
- Volume Rendering Integral: The sampled densities and colors are composited into a final pixel color using the differentiable volume rendering equation.
- Loss: The mean squared error (MSE) between the rendered pixel colors and the actual image pixels is backpropagated through the renderer and into the MLP's weights, teaching it the correct 3D scene structure.
Advantages and Trade-offs
This architecture offers distinct benefits and limitations compared to explicit 3D representations like meshes or point clouds.
Advantages:
- Continuous Resolution: Infinitely queryable at any spatial resolution, avoiding discretization artifacts.
- Memory Efficiency: Can represent complex scenes with a relatively small number of network parameters compared to a high-resolution voxel grid.
- Differentiability: Seamlessly integrates with gradient-based optimization for reconstruction from images.
Trade-offs:
- Computational Cost: Rendering requires thousands of network queries per ray, which is slow for vanilla MLPs.
- Editability: The scene is encoded in a black-box weight distribution, making localized editing non-trivial.
- Initialization Sensitivity: Training can be unstable and prone to local minima without careful initialization and regularization.
Evolution and Acceleration Techniques
The core coordinate-MLP concept has been extended and accelerated for practical use:
- Hybrid Representations (e.g., Instant NGP): Replace the deep MLP with a tiny network (1-2 layers) fed by features from a fast, multi-resolution hash table. This decouples detail (stored in the grid) from smooth interpolation (handled by the MLP).
- Explicit Primitive Integration (e.g., 3D Gaussians): While not an MLP, 3D Gaussian Splatting represents a shift towards explicit, differentiable primitives for real-time performance, addressing the primary speed bottleneck of pure coordinate-MLP rendering.
- Modular & Structured Networks: Architectures like Neural Scene Graphs decompose the scene into object-level MLPs for independent manipulation, moving beyond a single monolithic function.
How Does a Coordinate-Based MLP Work?
A coordinate-based MLP is the core neural network architecture for encoding continuous 3D scenes as implicit functions.
A coordinate-based MLP (Multilayer Perceptron) is a fully-connected neural network that acts as a continuous function approximator, taking spatial coordinates (e.g., x, y, z) as input and directly outputting a scene property like color, density, or signed distance at that location. This architecture forms the foundational implicit neural representation (INR) for techniques like NeRF and Neural SDFs, bypassing traditional discrete data structures like voxel grids or meshes. Its parameters are optimized via differentiable rendering to match observed 2D images.
The network's ability to represent complex, high-frequency scene details is critically enabled by an input encoding step, such as positional encoding or hash encoding, which projects low-dimensional coordinates into a higher-dimensional feature space. During inference, the MLP is queried at millions of points via ray marching to solve the volume rendering integral, synthesizing novel views. This pure coordinate-to-value mapping creates a compact, infinitely resolution-independent scene model, though it requires significant compute for evaluation.
Applications and Examples
The coordinate-based MLP is the foundational neural architecture for encoding continuous signals like 3D scenes. Its primary applications leverage its ability to act as a universal function approximator for spatial data.
Generative 3D Content Creation
Coordinate-based MLPs serve as the 3D representation in generative models. A generative model (like a GAN or diffusion model) learns to produce the weights of a coordinate-MLP that represents a coherent 3D object.
- pi-GAN: Uses a periodic positional encoding and a StyleGAN2-inspired generator to produce MLP parameters that render consistent 3D objects from any viewpoint.
- Score Distillation Sampling (SDS): In text-to-3D systems like DreamFusion, a coordinate-based MLP (a NeRF) is optimized. Its 2D renders are scored by a pretrained 2D diffusion model (e.g., Stable Diffusion), providing gradients to update the 3D representation without any 3D training data.
Scientific & Medical Data Representation
Beyond computer graphics, coordinate-MLPs are used as continuous models for complex scientific data defined over space.
- Climate Modeling: Representing continuous temperature or pressure fields from sparse sensor data.
- Medical Imaging: Modeling MRI or CT scan data as a continuous intensity function
I(x,y,z), allowing for super-resolution and smooth interpolation between slices. - Physics-Informed Neural Networks (PINNs): The coordinate-MLP is trained not just on data points but also to satisfy the underlying partial differential equations (PDEs) governing the system, by incorporating the PDE residuals into the loss function.
Frequently Asked Questions
A coordinate-based MLP (Multilayer Perceptron) is the foundational neural architecture for encoding continuous 3D scenes. This FAQ addresses its core mechanics, applications, and relationship to advanced neural graphics primitives.
A coordinate-based MLP is a fully-connected neural network that takes spatial (or spatio-temporal) coordinates as its sole input and outputs a property of the scene at that location, such as color, density, or signed distance. It functions as a continuous, parameterized function approximator, mapping a low-dimensional coordinate (e.g., (x, y, z)) to a high-dimensional signal value. The network is trained via gradient descent to minimize the difference between its predicted outputs and observed data (e.g., 2D images), effectively memorizing the scene in its weights. This architecture forms the core of Implicit Neural Representations (INRs), including Neural Radiance Fields (NeRF) and Neural Signed Distance Functions (SDFs).
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Coordinate-based MLPs are the core engine for many advanced neural scene representations. These related concepts define the specific architectures, encoding strategies, and rendering techniques built upon this foundational model.
Implicit Neural Representation (INR)
An Implicit Neural Representation (INR) is the overarching paradigm where a continuous, parameterized function—most commonly a coordinate-based MLP—maps spatial (or spatio-temporal) coordinates directly to an output signal value. This output can represent color, volume density, signed distance, or acoustic pressure. INRs provide a resolution-independent, memory-efficient alternative to discrete grids (voxels, point clouds) for representing complex signals like 3D shapes, images, and radiance fields.
- Core Principle: The scene is a continuous function, not a discrete data structure.
- Key Benefit: Infinite resolution and differentiable optimization.
- Common Outputs: RGB color, signed distance, occupancy probability, volume density.
Positional Encoding
Positional Encoding (or Fourier Feature mapping) is a critical preprocessing technique for coordinate-based MLPs. It transforms low-dimensional input coordinates (e.g., [x, y, z]) into a higher-dimensional vector using a set of sinusoidal functions. This mapping helps standard MLPs, which have a spectral bias towards learning low-frequency functions, to effectively represent the high-frequency details present in images and 3D geometry.
- Function:
γ(v) = [sin(2^0 π v), cos(2^0 π v), ..., sin(2^{L-1} π v), cos(2^{L-1} π v)] - Purpose: Alleviates the spectral bias of ReLU MLPs.
- Result: Enables the network to learn fine details like texture and sharp edges, which is essential for photorealistic NeRF synthesis.
Hash Encoding
Hash Encoding is a memory-efficient, multi-resolution feature indexing technique that accelerates coordinate-based MLPs. Instead of using a large, dense feature grid, it employs a trainable multi-resolution hash table. For a given 3D coordinate, the encoding performs a fast hash lookup to retrieve and interpolate stored feature vectors from multiple resolution levels, which are then fed into a tiny MLP. This is the core innovation behind Instant Neural Graphics Primitives (Instant NGP).
- Mechanism: Uses a spatial hash function to index a compact table of learnable features.
- Advantage: Enables real-time training and rendering with a fraction of the parameters.
- Trade-off: Handles hash collisions via gradient-based training, which averages features in overlapping cells.
SIREN (Sinusoidal Representation Networks)
SIREN is a specialized type of coordinate-based MLP that uses periodic sine functions as activation functions for all layers (including the first). This architectural choice allows SIRENs to model complex natural signals and their derivatives with remarkable accuracy and detail, without requiring explicit positional encoding. The sinusoidal activations create an inherent bias for representing signals with strong higher-frequency components.
- Architecture:
Φ(x) = W_n ( sin( W_{n-1} ( ... sin(W_1 x + b_1) ... ) + b_{n-1} ) ) + b_n - Strength: Excellent for representing signals with fine details, such as images, audio waves, and 3D shapes defined by Signed Distance Functions (SDFs).
- Property: The derivative of a SIREN is itself a SIREN, making it ideal for solving differential equations.
Differentiable Rendering
Differentiable Rendering is the framework that makes training coordinate-based MLPs for 3D scenes possible. It formulates the classical graphics rendering pipeline—the process of generating a 2D image from 3D scene parameters—as a differentiable function. This allows gradients to flow from a loss computed on a rendered image back through the rendering equation to update the underlying scene parameters stored in the MLP's weights.
- Core Link: Connects the coordinate-MLP's outputs (color/density) to pixel-level image loss.
- Key Techniques: Includes differentiable ray marching and the Volume Rendering Integral.
- Application: Enables optimization of geometry, appearance, and lighting from only 2D image observations.
Ray Marching
Ray Marching is the iterative sampling algorithm used to render images from a coordinate-based MLP representing a volumetric scene (like a NeRF). For each pixel, a camera ray is cast into the scene. The algorithm then samples points along this ray, queries the MLP at each point for color and density, and numerically integrates these values using the volume rendering integral to compute the final pixel color.
- Process: 1. Cast ray. 2. Sample points. 3. Query MLP. 4. Composite results.
- Role: The physical bridge between the neural scene representation (MLP) and the 2D image plane.
- Optimization: Hierarchical or importance sampling is used to focus computation on relevant parts of the ray.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us