Residency Octree: A Hybrid Approach for Scalable Web-Based Multi-Volume Rendering

Lukas Herzberger, Markus Hadwiger, Robert Krüger, Peter K. Sorger, Hanspeter Pfister, Eduard Gröller, Johanna Beyer · DOI

TL;DR

This paper introduces the "Residency Octree," a novel data structure for efficient web-based rendering of massive, multi-channel volumetric data. It decouples data resolution from spatial subdivision, enabling flexible mixed-resolution rendering and significantly improving empty-space skipping for faster, more memory-efficient visualization.

What Problem Does This Paper Address?

Visualizing large-scale volumetric data, especially from fields like digital histopathology (e.g., Immunofluorescence imaging), presents a significant challenge. These datasets can be terabytes in size, far exceeding available memory, necessitating "out-of-core" rendering techniques that stream data on demand. Furthermore, these datasets often have many "channels" (representing different molecular markers), and users may want to visualize only a subset at varying resolutions. Existing methods, like standard octrees or page tables, have limitations: octrees tightly couple resolution and spatial structure, hindering efficient empty-space skipping, while page tables lack a clear strategy for substituting missing high-resolution data with lower-resolution alternatives. This paper aims to bridge this gap by developing a hybrid approach that offers the flexibility of page tables with the efficient spatial culling of octrees, specifically for web-based, multi-channel rendering.

Methods

The core contribution is the Residency Octree, a hybrid data structure that combines aspects of octrees and page tables.

  • Decoupling Resolution and Spatial Subdivision: Unlike traditional octrees where each node maps to a single brick of a specific resolution, a Residency Octree node represents a spatial region and can map to multiple bricks across different resolution levels. This decoupling is key.
  • Cache Residency Management: The Residency Octree stores information about which bricks (across various resolutions and channels) are currently resident in the GPU's cache, mapped to specific spatial regions (octree nodes).
  • Flexible Mixed-Resolution Rendering: Because a node can reference bricks from multiple resolutions, the system can adaptively choose and mix resolutions for different channels or even different parts of the same channel. This allows rendering more important channels or regions at higher resolutions while using lower resolutions for less critical data, saving memory and computation.
  • Fine-Grained Empty-Space Skipping: The Residency Octree stores transfer-function-independent metadata (like min/max scalar values) for each spatial region. This allows for efficient culling of empty or homogeneous regions, independent of the bricking granularity, leading to faster rendering.
  • Web-Based Implementation: The entire system is implemented as a pure client-side renderer using WebGPU and WebAssembly, eliminating the need for local data storage and facilitating collaboration and outreach.

Datasets

The paper evaluates their method on several datasets:

  • Single-channel datasets: Aneurism, Bonsai, Kingsnake, Beechnut, Rayleigh-Taylor Instability, and 3DNeurons15Sept2016. For multi-channel evaluation, these were simulated by duplicating the volume and assigning different transfer functions.
  • Biomedical datasets: CyCIF Small (29 channels) and CyCIF Large (38 channels).

The authors note that their server does not support querying culling metadata, so it's computed on the client.

Key Insights and Ideas

  • The power of decoupling: The core insight is that separating the spatial subdivision of the rendering structure (the octree) from the actual data organization (bricked multi-resolution hierarchy) unlocks significant flexibility. This allows for more intelligent data loading and rendering strategies.
  • Hybridization is key: By combining the strengths of page tables (direct access, flexibility) and octrees (efficient spatial culling), the Residency Octree overcomes the limitations of each individual approach.
  • WebGPU and WebAssembly are game-changers: The successful implementation on the web using these technologies demonstrates the feasibility of high-performance, out-of-core visualization directly in the browser, democratizing access to large scientific datasets.
  • Mixed-resolution rendering is crucial for multi-channel data: The ability to assign different resolutions to different channels is not just a nice-to-have; it's essential for managing the complexity and memory demands of high-channel count datasets.

Key Results

  • Performance Improvement: The Residency Octree approach consistently outperforms both a multi-resolution multi-channel page table (MRMCPT) and a standard octree-based approach across various datasets and channel counts. For example, on the Kingsnake dataset with 4 channels, their method achieved 5.1 ms/frame compared to MRMCPT's 15.0 ms/frame and Octree's 15.8 ms/frame.
  • Significant gains for sparse volumes and many channels: The most substantial performance improvements were observed for sparse datasets (Kingsnake, Beechnut, 3DNeurons) and when visualizing a large number of channels (CyCIF Small).
  • Reduced Cache Usage: The Residency Octree requires significantly less GPU memory per frame compared to the other methods, as it only loads necessary bricks. For the CyCIF Large dataset with 4 channels, their method used 0.17 GB of cache compared to MRMCPT's 0.24 GB and Octree's 0.20 GB.
  • Efficient Empty-Space Skipping: The method achieves finer-grained empty-space skipping, leading to better performance, especially when the spatial subdivision for culling is more granular than the bricking granularity.

Limitations and Future Work

  • Memory scaling with channels: The memory required for the residency octree itself scales linearly with the number of simultaneously visualized channels, which can be problematic for datasets with many channels. The authors suggest dimensionality reduction techniques or interleaved channel storage as potential solutions.
  • Automatic resolution range determination: Currently, users manually control the resolution range for each channel. Future work could explore automatically determining these ranges based on factors like frequency content and viewing parameters.
  • Texture compression: The current implementation does not utilize 3D texture compression, which could further reduce memory footprint.
  • Exploring different spatial subdivisions: The authors plan to experiment with other spatial subdivision schemes to further exploit the benefits of decoupling data resolutions and subdivisions.

Summary updated

Abstract

We present a hybrid multi-volume rendering approach based on a novel Residency Octree that combines the advantages of out-of-core volume rendering using page tables with those of standard octrees. Octree approaches work by performing hierarchical tree traversal. However, in octree volume rendering, tree traversal and the selection of data resolution are intrinsically coupled. This makes fine-grained empty-space skipping costly. Page tables, on the other hand, allow access to any cached brick from any resolution. However, they do not offer a clear and efficient strategy for substituting missing high-resolution data with lower-resolution data. We enable flexible mixed-resolution out-of-core multi-volume rendering by decoupling the cache residency of multi-resolution data from a resolution-independent spatial subdivision determined by the tree. Instead of one-to-one node-to-brick correspondences, each residency octree node is mapped to a set of bricks from different resolution levels. This makes it possible to efficiently and adaptively choose and mix resolutions, adapt sampling rates, and compensate for cache misses. At the same time, residency octrees support fine-grained empty-space skipping, independent of the data subdivision used for caching. Finally, to facilitate collaboration and outreach, and to eliminate local data storage, our implementation is a web-based, pure client-side renderer using WebGPU and WebAssembly. Our method is faster than prior approaches and efficient for many data channels with a flexible and adaptive choice of data resolution.
BibTeX
@article{herzberger2024residency,
  author = {Lukas Herzberger and Markus Hadwiger and Robert Krüger and Peter K. Sorger and Hanspeter Pfister and Eduard Gröller and Johanna Beyer},
  title = {{Residency Octree: A Hybrid Approach for Scalable Web-Based Multi-Volume Rendering}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2024},
  doi = {10.1109/tvcg.2023.3327193},
}
Figure