An interactive research lab for voxel-pooling performance, correctness, and workload-aware strategy selection.
Quick start · Features · Research question · Methodology · Reproducibility · Deployment
VoxelPool Explorer turns voxel-pooling experiments into something you can inspect, compare, and reproduce.
VoxelPool Explorer is a CPU-first research prototype for exploring how workload characteristics affect the behavior of voxel-pooling accumulation strategies. It combines an interactive web dashboard with a Python benchmarking API so users can configure workloads, inspect destination-voxel occupancy, compare implementations, and export experiment records.
The project is designed around a simple principle: a performance result is useful only when the output is correct and the experiment can be understood.
Research scope: The current implementation measures local Python/NumPy CPU strategies. It does not contain a verified Quadric CCL kernel, CUDA kernel, or accelerator backend. Do not interpret its measurements as GPU, NPU, or Quadric hardware results.
The GIF above is an animated transition between screenshots of the actual project UI, not a screen recording of a benchmark running. Replace it with a short browser recording when you capture a real end-to-end workflow.
Voxel pooling maps point or feature data to discrete voxel destinations and accumulates values that share a destination. The best implementation can depend on factors such as input size, feature channels, grid dimensions, destination occupancy, and collision patterns.
A single benchmark on one input cannot explain those trade-offs. VoxelPool Explorer provides a place to vary workload properties systematically, check correctness, collect timings, and investigate where implementation performance changes.
The longer-term research question is whether measurable workload features can help predict which implementation is likely to perform best on a previously unseen workload. This is a hypothesis to test, not a claim that the current prototype has solved the problem.
- Interactive workload controls for point count, feature channels, grid dimensions, distribution pattern, repetition count, and random seed.
- Voxel occupancy preview that helps visualize how points map to destination voxels.
- Multiple CPU strategies that implement the same basic accumulation task using different approaches.
- Correctness-gated timing so a candidate that fails comparison against the reference is not treated as a valid performance winner.
- Repeated measurements with summary statistics to make timing variability visible.
- Workload sweeps and performance landscape for exploring multiple configurations rather than relying on one hand-picked case.
- Workload-aware strategy-selection experiment with held-out evaluation against a fixed-strategy baseline. Results are exploratory and should be validated across more splits and workload families.
- Experiment exports in machine-readable formats for analysis outside the dashboard.
- Research report and notes documenting the question, experimental approach, and limitations.
- FastAPI backend and automated tests for the benchmark logic.
flowchart TD
A[Configure workload] --> B[Generate seeded inputs]
B --> C[Run reference implementation]
C --> D[Run candidate strategies]
D --> E{Correctness checks pass?}
E -- No --> F[Record failure; exclude timing as a valid win]
E -- Yes --> G[Collect repeated timing samples]
G --> H[Summarize latency and workload features]
H --> I[Visualize results and compare strategies]
I --> J[Export experiment bundle and report]
| Strategy | What it does | Interpretation |
|---|---|---|
python_reference |
A simple sequential reference implementation | Useful for understandable reference behavior; not a competitive optimized baseline. |
numpy_add_at |
Uses NumPy scatter-style accumulation | Executes much of the work inside compiled NumPy code. |
sort_segmented |
Sorts by destination and reduces values in destination segments | Sorting adds overhead; whether it pays off depends on the workload. |
These strategies are educational CPU implementations. Their relative performance can change with input shape, collision pattern, NumPy version, processor, and system load.
- Python 3.10 or newer
- Node.js 18 or newer (Node.js 20+ recommended)
- npm
- Internet access for the first dependency installation
No GPU is required.
- Download or clone the repository.
- Open the project root folder.
- Double-click
start_windows.bat. - Wait for the backend and frontend to start.
- Open http://localhost:5173.
The API is available at http://127.0.0.1:8000, and interactive API documentation is at http://127.0.0.1:8000/docs.
Terminal 1 — backend (from the repository root):
python -m venv .venvActivate the environment, then install and run the API:
# Windows PowerShell
.venv\Scripts\Activate.ps1
python -m pip install -r backend/requirements.txt
python -m uvicorn app.main:app --app-dir backend --reload --host 127.0.0.1 --port 8000# macOS / Linux
source .venv/bin/activate
python -m pip install -r backend/requirements.txt
python -m uvicorn app.main:app --app-dir backend --reload --host 127.0.0.1 --port 8000Terminal 2 — frontend (from the repository root):
cd frontend
npm install
npm run devOpen the local URL printed by Vite, normally http://localhost:5173.
From the repository root:
python -m pip install -r backend/requirements.txt
python -m unittest discover -s backend/tests -vIf you are working from inside backend/, use:
python -m unittest discover -s tests -vCan workload metadata help predict which voxel-pooling accumulation strategy will perform best on an unseen workload?
Potential predictors include:
- Number of input points
- Feature-channel count
- Voxel-grid dimensions and output size
- Occupancy and destination-collision statistics
- Distribution pattern and other workload descriptors
The selection experiment should be evaluated on held-out workload configurations and compared with simple baselines, including always choosing one fixed strategy. A useful evaluation reports not only selection accuracy but also performance regret: how much slower the selected strategy is than the best measured strategy for that workload.
- Define the workload families and evaluation protocol before examining test results.
- Keep training and held-out configurations separate; group related seeds/configurations to reduce leakage.
- Compare the selector against simple, transparent baselines.
- Repeat the evaluation across multiple splits and workload families.
- Report uncertainty, failed cases, and negative results as well as positive findings.
The current selector is exploratory. One split or a small held-out set is not enough to establish generalization.
A typical benchmark run follows these steps:
- Generate deterministic inputs from a recorded configuration and seed.
- Run the reference implementation to obtain expected output.
- Run each candidate implementation on the same input.
- Compare candidate output against the reference using the configured numerical tolerances.
- Exclude incorrect candidates from valid performance comparisons.
- Warm up and collect repeated timing samples for eligible candidates.
- Summarize timings and attach workload/environment metadata.
- Export the results so they can be analyzed independently.
Floating-point addition is order-sensitive. Different accumulation orders can produce small numerical differences, so tolerances must be explicit and appropriate to the intended operator. The current exploratory tolerance is not a substitute for a target-specific numerical contract.
- The sequential Python reference is primarily for clarity and correctness, not a fair optimized performance baseline.
- A speedup over the sequential reference should not be described as a general kernel speedup.
- Small timing differences may be noise; inspect repeated samples and variability.
- Results from one machine do not automatically generalize to other machines or accelerators.
- Synthetic workload patterns help isolate behavior but do not replace application-derived traces.
The repository includes research notes and experiment artifacts where available. Before publishing a result, preserve:
- The workload configuration and random seed
- Strategy identifiers and correctness outcomes
- Raw timing samples and summary statistics
- Python, NumPy, operating-system, and machine metadata when available
- The exact code revision and experiment protocol
- Any excluded cases and the reason they were excluded
Useful files:
RESEARCH_NOTES.md— research context and limitationsresearch-results/README.md— result artifact guideresearch-results/strategy_timings.csv— exported timing table, if included in this checkoutresearch-results/experiment_bundle.json— machine-readable experiment bundle, if included in this checkoutDEPLOYMENT.md— GitHub, Vercel, and backend deployment notes
If a listed result file is absent from a particular release, use the files actually present in research-results/; do not infer results from filenames.
React + TypeScript + Vite
│ HTTP / JSON
▼
FastAPI service
│
├── Workload generation
├── Reference implementation
├── CPU candidate strategies
├── Correctness checks
├── Repeated timing
└── Result serialization
The frontend is a visualization and experiment-control layer. The Python backend performs the CPU workload generation, correctness checks, and timing.
The local API includes endpoints for health/status, defaults, workload preview, and experiment execution. See the interactive API docs at /docs when the backend is running for the current request and response schemas.
Example workload configuration:
{
"points": 1200,
"channels": 32,
"grid_size": 32,
"pattern": "hotspot",
"repeats": 5,
"seed": 42
}The exact accepted values and validation rules are defined by the backend schema in the checked-out version.
The intended hosted architecture is:
- Vercel for the Vite frontend
- Render for the FastAPI backend
The frontend needs the deployed API base URL, and the backend must allow the deployed frontend origin through CORS. Follow DEPLOYMENT.md for environment variables and deployment steps.
A deployment is not verified merely because a build succeeds. Test the live end-to-end workflow, including API health, an experiment, correctness status, and exports. Do not expose private credentials in the repository.
- CPU-only Python/NumPy measurements; no verified CUDA, NPU, or Quadric backend.
- Synthetic workloads do not establish performance on real-world perception traces.
- Strategy-selection conclusions require larger, repeated held-out evaluations.
- Measurements are sensitive to hardware, software versions, and system load.
- The browser's local history is not a substitute for a shared experiment database.
- The hosted frontend requires a separately deployed API for real benchmark execution.
- Validate workload import/replay with documented application-derived traces
- Expand repeated and grouped held-out evaluation of strategy selection
- Add richer numerical-error diagnostics and edge-case tests
- Add persistent research projects and run metadata
- Improve benchmark isolation and uncertainty reporting
- Verify a target-specific accelerator backend only when the official SDK and execution environment are available
The project takes inspiration from public benchmarking and tuning workflows; it does not claim to reproduce or be affiliated with these projects.
- KernelBench — kernel performance evaluation with correctness checks.
- Kernel Tuner — configurable kernel tuning and measurement.
- TritonBench — operator benchmarking infrastructure.
- Quadric SDK — potential future target-specific development path, subject to access and validation.
Issues and pull requests are welcome. For benchmark-related contributions, please include the workload configuration, random seed, correctness results, measurement procedure, and environment details. Avoid submitting performance claims without reproducible data.
See LICENSE.
Built as an independent research and engineering project to explore reproducible benchmarking and workload-aware performance analysis.
Correctness first. Measure carefully. Publish reproducibly.


