﻿# TRELLIS sparse structure and SLAT: coordinates and features must remain paired

Trace original TRELLIS sparse-structure sampling into structured latent features, preserving coordinate-feature associations and separate sampler configurations.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-trellis-sparse-structure-slat-feature-association/
Language: en

## Identify the structured latent design

The [TRELLIS paper](https://arxiv.org/abs/2412.01506) introduces a sparse spatial structure with learned visual features, called SLAT. This guide concerns the original TRELLIS image-generation pipeline. Sparse support describes where represented elements exist, while features describe information at those locations. Treating the support alone as a complete asset loses the learned content, and treating the feature rows as an ordinary unordered embedding collection loses their spatial meaning.

## Trace the two samplers

The [official pipeline source](https://raw.githubusercontent.com/microsoft/TRELLIS/main/trellis/pipelines/trellis_image_to_3d.py) first samples and decodes a sparse occupancy representation into coordinates. It then constructs a sparse tensor with noise features at those coordinates and samples the structured latent. These operations have separate sampler configurations. A single generic steps field in a wrapper can conceal which stage it changes. Preserve the structure and SLAT settings independently so a generation comparison identifies the actual intervention.

## Preserve coordinate-feature identity

A sparse tensor associates each feature row with a spatial coordinate and batch identity. Sorting coordinates for storage without applying the corresponding permutation to features changes the represented object. Matching row counts cannot detect that error. Keep the relation intact when caching, transferring, or rebuilding the intermediate. Likewise, coordinates from one sample should not be paired with features generated for another sample merely because their sizes are compatible.

## Diagnose a custom intermediate cache

Imagine saving a structure to reuse while exploring later-stage settings. This deliberately fixes sparse support, but it does not guarantee identical final geometry or appearance because the structured features and decoder still contribute. Record the saved support, conditioning, and later sampler configuration. If a reconstructed object becomes corrupted after cache loading, compare coordinate-feature pairings and the documented SLAT normalization before increasing sampling steps. A storage reorder can break the representation without triggering a dimensional error.

## Keep decoding and postprocessing distinct

The [official repository](https://github.com/microsoft/TRELLIS) exposes multiple decoders and further export processing. Compare outputs generated from the same complete structured latent when studying decoder differences, and identify later texture or simplification work separately. Existing guides on [tensor axes](/journal/tensor-axes-batch-sequence-hidden/) and [identity relationships](/journal/data-guide-coco-instance-caption-identities/) provide background. TRELLIS' distinctive intermediate contract combines sparse support, feature association, normalization, and a versioned decoder; preserving only a feature array or only a coordinate list does not preserve the generated representation.
