Papers
Topics
Authors
Recent
Search
2000 character limit reached

Latent Slicing for Decoding

Updated 4 July 2026
  • Slicing latents to decode is a technique that partitions latent representations to reduce sequential depth and optimize computational efficiency.
  • It encompasses methods like discrete latent shortening, frame-wise partitioning for memory efficiency, scalable quality layer decoding, and concept-specific disentanglement.
  • These operations enhance decoding speed, reduce peak memory usage, and enable targeted retrieval and conditional generation across diverse data modalities.

In the literature considered here, “slicing latents to decode” denotes a family of operations in which a latent representation is partitioned, compressed, projected, or structured before decoding, retrieval, conditional generation, or progressive reconstruction. The common motive is to replace a monolithic latent-to-output mapping with a sequence of smaller or more structured latent operations: shortening a target sequence into a discrete latent string for parallel decoding, partitioning video latents into frame slices for memory-efficient VAE decoding, splitting scalable compression latents into base and enhancement layers, or decomposing embeddings into concept-specific components for concept-filtered downstream use. These mechanisms differ in objective and formalism, but they share a design pattern: decoding is made conditional on latent slices that are smaller, semantically constrained, or probabilistically conditioned (Kaiser et al., 2018, Xiao et al., 6 Oct 2025, Mari et al., 2024, Li et al., 27 Aug 2025).

1. Conceptual scope and recurring pattern

A concise way to organize the topic is by the kind of latent “slice” being manipulated and the decoding problem it serves.

Setting Latent slicing operation Downstream use
Latent Transformer Compress target sequence into a shorter discrete latent sequence z1,,zmz_1,\dots,z_m with m=n/Cm=n/C Parallel decoding of yy from zz
LightCache Partition FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W} into slices F(j)F^{(j)} of size SS Memory-efficient VAE decoding for video
SQH Slice latents into ybase:=yiy_{\text{base}}:=y_i and yenh:=yi+ny_{\text{enh}}:=y_{i+n} Progressive quality-scalable decoding
SLiCS Decompose an embedding into concept blocks vj=Bjαjv_j=B_j\alpha_j Concept-filtered retrieval and conditional generation

These instances are technically heterogeneous. In the Latent Transformer, slicing is temporal compression of a target sequence into a shorter discrete latent sequence (Kaiser et al., 2018). In LightCache, slicing is a decode-stage batching strategy over flattened video-frame latents (Xiao et al., 6 Oct 2025). In SQH, slicing is a layered partition across quality levels in a scalable bitstream (Mari et al., 2024). In SLiCS, slicing is a supervised decomposition of a single embedding into concept-specific non-negative components that lie in different subspaces (Li et al., 27 Aug 2025).

This suggests that the phrase identifies a structural intervention point rather than a single algorithmic family. The intervention point is the latent representation; the intended effect may be reduced sequential depth, reduced peak memory, scalable reconstruction, or disentangled concept access.

2. Discrete latent shortening for parallel sequence decoding

The clearest use of latent slicing as a decoding accelerator appears in the Latent Transformer, which replaces direct autoregressive sequence modeling

m=n/Cm=n/C0

with the latent-variable factorization

m=n/Cm=n/C1

The target sequence is auto-encoded into a shorter discrete latent sequence m=n/Cm=n/C2, where m=n/Cm=n/C3, and the output sequence is then decoded from this shorter latent sequence in parallel (Kaiser et al., 2018).

The encoder takes the full target m=n/Cm=n/C4, attends to the source m=n/Cm=n/C5, applies residual 1D-convolutions, attention, and m=n/Cm=n/C6 strided convolutions with downsampling factor m=n/Cm=n/C7, and produces a shorter continuous sequence m=n/Cm=n/C8. A discrete bottleneck then maps m=n/Cm=n/C9 to yy0. The latent predictor yy1 is a standard Transformer decoder with 6 layers, hidden 512, and filter 4096, factorized autoregressively over the yy2 latent positions. The decoder yy3 performs yy4 “up-convolution” steps, returns to length yy5, then applies a self-attention Transformer without causal masking so that all yy6 outputs can be produced in parallel (Kaiser et al., 2018).

The paper studies four discrete-latent bottlenecks: Gumbel–Softmax, improved semantic hashing, VQ-VAE, and Decomposed Vector Quantization (DVQ). DVQ prevents “index collapse” when yy7 is large by slicing the yy8-dimensional vector into yy9 chunks and quantizing each slice independently. This is a literal latent slicing operation inside the quantizer: the encoder output is partitioned as

zz0

When zz1, DVQ reduces to VQ-VAE; when zz2, it degenerates loosely to binary hashing (Kaiser et al., 2018).

The main significance is reduced sequential depth. Standard autoregressive decoding has zz3 sequential depth, whereas latent generation requires only zz4 autoregressive steps, followed by an zz5-depth parallel decode. The theoretical speed-up is therefore approximately zz6. On WMT’14 En→De newstest2014, the autoregressive Transformer baseline without beam reaches 22.7 BLEU at 408 ms/sentence for batch size zz7; the Latent Transformer with improved semantic hashing reaches 19.8 BLEU at 105 ms, and zz8 ms; rescoring the top 100 with a small autoregressive model recovers BLEU to 22.5 (Kaiser et al., 2018).

The trade-off is explicit. Larger compression zz9 is faster but harder to reconstruct, and purely parallel generation of FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}0 sacrifices some modelling capacity. A common misconception is that latent slicing here eliminates autoregression entirely; the model still generates the latent sequence autoregressively over FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}1 steps. The acceleration comes from shortening the sequential chain rather than removing it.

3. Frame-wise latent slicing in video diffusion decoding

In diffusion-based video generation, “slicing latents to decode” refers to a decode-stage memory-management strategy. LightCache decomposes inference into encoding, denoising, and decoding, and observes that cache-based acceleration methods often lead to substantial memory surges in the latter two stages. The key setting is a denoised latent tensor

FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}2

where FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}3 is batch, FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}4 is number of frames, FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}5 channels, and FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}6 spatial size. In standard practice, the VAE decoder flattens the first two dimensions and decodes

FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}7

in one call, which causes activation memory to grow as FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}8 (Xiao et al., 6 Oct 2025).

LightCache instead partitions FR(BT)×C×H×WF \in \mathbb{R}^{(B\cdot T)\times C\times H\times W}9 along its first dimension into slices of size F(j)F^{(j)}0: F(j)F^{(j)}1 Each slice is decoded independently by the VAE decoder, the decoded slices are concatenated, and the result is reshaped back to video format. In practice, F(j)F^{(j)}2 frame per slice is reported as most effective at minimizing memory. The method is sequential at decode time, although the paper notes that one could overlap data transfer for the next slice or decode multiple slices in parallel if GPU permits (Xiao et al., 6 Oct 2025).

The memory reduction is quantified by

F(j)F^{(j)}3

For F(j)F^{(j)}4 and F(j)F^{(j)}5, the decode memory is F(j)F^{(j)}6 of the full-batch case. In the ablation study, for SVDI2V-XT with 25 steps, DeepCache decode-stage peak memory is 21 416 MB and slicing reduces it to 9 254 MB, a 57% reduction in decode-stage memory. For AnimateDiff-Light with 8 steps, the decode-stage peak goes from 15 200 MB to 11 547 MB, approximately 24% reduction (Xiao et al., 6 Oct 2025).

The runtime effect is deliberately bounded. On SVDI2V-XT, full Euler inference takes 47.39 s, DeepCache 28.65 s, and LightCache 30.92 s; the approximately 2.3 s overhead includes chunk, swap, and slicing overhead, while total peak memory across GPUs falls from 37 570 MB to 15 964 MB (Xiao et al., 6 Oct 2025). The paper further states that decoding each frame independently causes zero quality loss from slicing itself and does not disturb the spatiotemporal coherency learned by the U-Net, because slicing only affects the final VAE step.

This usage is distinct from disentanglement or latent-variable learning. The slice is not a semantic factor but a batch partition chosen to control decoder activations.

4. Latent slicing for progressive and quality-scalable decoding

A different latent slicing strategy appears in point cloud geometry coding with the Scalable Quality Hyperprior. Here the latent domain is partitioned across quality levels rather than across time steps or frame batches. At quality F(j)F^{(j)}7, the latent feature map is

F(j)F^{(j)}8

and a two-layer scalable bitstream is formed by slicing into

F(j)F^{(j)}9

with SS0 (Mari et al., 2024).

The reference JPEG-PCC geometry codec uses an analysis transform SS1, a hyper-analysis SS2, quantization SS3, a hyper-synthesis SS4, and range encoding of SS5 under the Gaussian model

SS6

SQH keeps the base layer as the JPEG-PCC bitstream at quality index SS7, but encodes higher-quality latents SS8 by conditioning on already decoded base latents SS9 rather than retransmitting ybase:=yiy_{\text{base}}:=y_i0. A single network, the Quality-conditioned Latents Probability Estimator, models

ybase:=yiy_{\text{base}}:=y_i1

where

ybase:=yiy_{\text{base}}:=y_i2

The source and target quality indices are represented as one-hot vectors and embedded by two shared-weight MLPs before concatenation with ybase:=yiy_{\text{base}}:=y_i3 (Mari et al., 2024).

The base-layer decoder reconstructs ybase:=yiy_{\text{base}}:=y_i4 using the standard JPEG-PCC hyperprior. The enhancement-layer decoder then computes ybase:=yiy_{\text{base}}:=y_i5 from ybase:=yiy_{\text{base}}:=y_i6 and range-decodes ybase:=yiy_{\text{base}}:=y_i7 from the enhancement bitstream. This yields a progressively decodable hierarchy in which later latent slices are probabilistically conditioned on earlier ones (Mari et al., 2024).

The reported rate–distortion behavior is favorable. On the JPEG-PCC CTTC test set, full scalability SQH(1,2,3,4,5) incurs on average less than 0.5% bpp overhead versus non-scalable JPEG-PCC while enabling 5-point fine-grained decoding. Coarser scalability SQH(1,3,5) can slightly outperform JPEG-PCC at mid and high bitrates, with up to 5.2% bpp savings, and relative to a naïve “independent” scalable scheme, SQH(1,3,5) saves approximately 20–30% bpp across the three decoding points (Mari et al., 2024).

This case shows that latent slicing need not reduce decoder complexity directly. Instead, it can organize a bitstream so that decoding quality is progressively refinable with minimal rate penalty.

5. Concept-subspace slicing and interpretable latent decomposition

SLiCS extends the idea of slicing from computational partitioning to semantic decomposition. The method assumes a matrix of embeddings

ybase:=yiy_{\text{base}}:=y_i8

and multi-label indicators ybase:=yiy_{\text{base}}:=y_i9. It learns a block-structured dictionary

yenh:=yi+ny_{\text{enh}}:=y_{i+n}0

together with non-negative coefficients

yenh:=yi+ny_{\text{enh}}:=y_{i+n}1

by minimizing

yenh:=yi+ny_{\text{enh}}:=y_{i+n}2

subject to yenh:=yi+ny_{\text{enh}}:=y_{i+n}3 and the hard group-structure constraint yenh:=yi+ny_{\text{enh}}:=y_{i+n}4 whenever yenh:=yi+ny_{\text{enh}}:=y_{i+n}5 (Li et al., 27 Aug 2025).

The resulting latent slicing is concept-specific: each component is a non-negative combination of atoms associated to a label, and any new embedding can be decomposed as

yenh:=yi+ny_{\text{enh}}:=y_{i+n}6

The paper distinguishes full disentanglement, which solves for all active yenh:=yi+ny_{\text{enh}}:=y_{i+n}7 simultaneously via group-constrained NNLS, from partial disentanglement, which projects onto a single concept subspace yenh:=yi+ny_{\text{enh}}:=y_{i+n}8 (Li et al., 27 Aug 2025).

Optimization proceeds by alternating minimization. With yenh:=yi+ny_{\text{enh}}:=y_{i+n}9 fixed, each vj=Bjαjv_j=B_j\alpha_j0 is obtained by a convex NNLS problem with group constraints. With vj=Bjαjv_j=B_j\alpha_j1 fixed, each atom is updated by forming a residual over its support set, computing a rank-1 SVD, selecting the sign by majority rule, and setting the atom and coefficients accordingly. Convergence is guaranteed because each step either reduces or leaves unchanged the reconstruction error, making the algorithm a cyclic minimizer. The computational cost per iteration is dominated by vj=Bjαjv_j=B_j\alpha_j2 NNLS solves of order vj=Bjαjv_j=B_j\alpha_j3 plus vj=Bjαjv_j=B_j\alpha_j4 small SVDs on residuals (Li et al., 27 Aug 2025).

SLiCS also uses text co-embeddings for semantic labeling. Given a vocabulary of word embeddings vj=Bjαjv_j=B_j\alpha_j5, each word is approximated within a concept subspace by solving a non-negative least-squares problem, and words are ranked by approximation error or cosine similarity. The top five words serve as a semantic “caption” of the subspace. If ground-truth labels are unavailable, pseudo-labels can be acquired by CLIP zero-shot classification: compute vj=Bjαjv_j=B_j\alpha_j6 for concept-word embeddings vj=Bjαjv_j=B_j\alpha_j7, pick the top vj=Bjαjv_j=B_j\alpha_j8 concepts as active, and feed these pseudo-labels into the same dictionary-learning algorithm (Li et al., 27 Aug 2025).

The reported applications are concept-filtered retrieval and conditional generation. For retrieval, a query’s concept-specific component vj=Bjαjv_j=B_j\alpha_j9 scores a database embedding m=n/Cm=n/C00 by

m=n/Cm=n/C01

whereas unfiltered CLIP uses m=n/Cm=n/C02. For conditional generation, concept-specific image components are aligned to CLIP text-embedding space through an orthogonal Procrustes map and then used directly as conditions in a stable-diffusion pipeline (Li et al., 27 Aug 2025).

Quantitatively, supervised SLiCS on CLIP ViT-B/32 reaches mAP@20 of approximately 0.895 on MIR general retrieval, 0.757 on MIR sub-label retrieval, 0.929 on COCO general retrieval, and 0.742 on COCO sub-label retrieval, outperforming unfiltered CLIP by +0.17–0.14. Unsupervised SLiCS recovers most of the gains, with +0.08–0.13 in general retrieval. Applying SLiCS to TiTok embeddings raises general mAP from 0.523 to 0.738 on MIR and from 0.564 to 0.795 on COCO, while on DINOv2 it boosts general mAP@20 to 0.943 on MIR and 0.984 on COCO (Li et al., 27 Aug 2025).

This form of slicing differs from the previous sections because decoding is semantic rather than merely computational. The latent is sliced into interpretable concept cones, and decoding can be targeted at a selected component.

Lachapelle et al. analyze a more structural form of latent slicing through additive decoders. The latent vector m=n/Cm=n/C03 is partitioned into disjoint blocks m=n/Cm=n/C04, and the decoder is additive if

m=n/Cm=n/C05

Under exact reconstruction, a sufficient-nonlinearity condition, and mild assumptions on the support of m=n/Cm=n/C06, the composite m=n/Cm=n/C07 has a Jacobian that is block-permuted, so coordinates are not mixed across blocks. With path-connectedness and injectivity of each block decoder, the result strengthens to global block-disentanglement up to permutation and block-wise invertible re-parameterizations (Lachapelle et al., 2023).

The same framework proves Cartesian-product extrapolation. If m=n/Cm=n/C08 factors across blocks, its Cartesian-product extension is

m=n/Cm=n/C09

and the learned decoder agrees with the ground-truth decoder on m=n/Cm=n/C10. The practical consequence is that one can slice each latent block over its observed range and recombine blocks in novel ways to generate valid out-of-support images. On synthetic scenes of two colored disks, additive decoders achieve near-perfect block identification with LMS m=n/Cm=n/C11 and successful extrapolation, whereas non-additive decoders reconstruct but fail to disentangle with LMS m=n/Cm=n/C12 and fail to produce coherent new images (Lachapelle et al., 2023).

A different but related notion of slicing appears in Sliced Iterative Normalizing Flows. There, a generator iteratively slices a m=n/Cm=n/C13-dimensional distribution along orthonormal 1D directions, solves the exact 1D optimal transport map on each slice,

m=n/Cm=n/C14

and lifts the result back into m=n/Cm=n/C15 through rank-one updates

m=n/Cm=n/C16

Repeated composition approximates full m=n/Cm=n/C17-dimensional transport. This is not latent decoding in the narrow sense of reconstructing outputs from a partitioned latent code, but it is a latent-to-data map built from a sequence of slices, and it demonstrates that slicing can serve generative transport rather than compression or semantic disentanglement (Dai et al., 2020).

These results clarify several common confusions. Slicing is not equivalent to disentanglement: LightCache slices frames only to reduce decoder memory (Xiao et al., 6 Oct 2025). Slicing is not equivalent to parallel generation: the Latent Transformer still predicts m=n/Cm=n/C18 autoregressively, only over a shorter chain (Kaiser et al., 2018). Conversely, slicing can be central to identifiability, as in additive decoders, or to interpretability, as in SLiCS. A plausible implication is that “slicing latents to decode” is best understood as a structural bias applied at the latent interface, with consequences that depend on whether the slice is temporal, batch-wise, quality-conditioned, concept-specific, or block-additive.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Slicing Latents to Decode.