NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Encoding Spatial Distribution of Convolutional Features for Texture Representation

Yong Xu, Feng Li, Zhile Chen, Jinxiu Liang, Yuhui Quan

Overview

This paper introduces Fractal Encoding (FE), a novel neural network module that uses multi-fractal geometry to capture the complex spatial distribution of features in an image. By moving beyond simple averaging techniques, FE allows Convolutional Neural Networks (CNNs) to represent textures with high discriminative power while remaining robust to common spatial transformations like rotation and scaling.

The Problem with Standard Pooling

In standard CNNs, the final layers usually employ Global Average Pooling (GAP) to condense feature maps into a single vector. While GAP is efficient and provides some translation invariance, it is essentially "spatial-blind"—it tells you what features are present but completely ignores how they are spread out across the image.

For tasks like material recognition (e.g., distinguishing between sand and stone), the spatial arrangement of "textons" is vital. Traditional alternatives, like Fully Connected (FC) layers, capture spatial layout but are extremely sensitive to rotation and scaling. The authors aim to find a middle ground: a representation that captures complex spatial patterns but remains invariant to the messy transformations found in real-world images.

Methods: The Fractal Encoding Module

The authors propose the Fractal Encoding (FE) module, grounded in the mathematical theory of fractal dimensions—a measure of how "irregular" or "dense" a set of points is across different scales.

Architecture of the Fractal Encoding (FE) module, detailing the Local Dimension Estimation, Point Grouping, and Global Dimension Calculation blocks.

The FE module consists of three main components designed to extract a multi-dimensional "fingerprint" of the texture:

  1. Local Dimension Estimation Block (LDEB): Instead of looking at the whole image at once, this block calculates a "local fractal dimension" (or Hölder exponent) for every pixel in a feature map. It uses multi-scale convolutions to observe how feature intensity changes as the network zooms in or out.
  2. Point Grouping Block (PGB): This block groups pixels that share similar local fractal properties. To keep the network differentiable for end-to-end training, it uses a "soft" membership approach, functioning similarly to a histogram with learnable bins.
  3. Global Dimension Calculation Block (GDCB): For each group of pixels, this block calculates a global fractal dimension. This results in a "fractal spectrum" that describes the overall regularity of the feature distribution.

Finally, the FE output is combined with standard GAP features using Bi-Linear Pooling (BLP). This ensures the network benefits from both the numerical intensity of the features and their complex spatial arrangement.

Key Insights

  • Fractal Invariance: Fractal dimension is theoretically invariant to bi-Lipschitz transformations. In practical terms, if you stretch, rotate, or slightly deform an image, its fractal signature stays largely the same. This makes FE naturally more robust than standard FC layers.
  • Beyond Single Numbers: A single fractal dimension isn't enough to describe a complex texture. By using multi-fractal analysis (grouping points by local dimensions and then measuring the global dimension of those groups), the authors create a much richer representation.
  • End-to-End Trainability: Traditionally, fractal analysis involves discrete "box-counting," which is not differentiable. The authors cleverly re-imagined these steps using standard CNN operations (convolutions, max-pooling, and softmax), allowing the fractal parameters to be optimized alongside the rest of the network.

Datasets and Results

The authors evaluated their model, FENet, on six prominent texture and material benchmarks: GTOS, GTOS-M, KTH-TIPS2b, MINC, DTD, and FMD.

Precision-Recall curve on the GTOS-M dataset, demonstrating FENet's superior performance over baselines like DEPNet and DeepTEN.
  • State-of-the-Art Performance: FENet outperformed existing specialized texture networks like DeepTEN and DEPNet. On the KTH dataset, it achieved 88.24% accuracy using a ResNet-50 backbone, marking a significant jump over previous methods.
  • Scale Robustness: In experiments on the GTOS-M dataset (which includes images captured at different distances), FENet showed much higher "concentration" in t-SNE visualizations compared to baselines. This proves the model produces similar descriptors for the same material even when the scale changes drastically.
  • Plug-and-Play: The authors demonstrated that adding the FE module to an existing specialized network (DeepTEN) improved its accuracy across the board, proving that fractal information is highly complementary to existing texture encoding methods.

Limitations and Future Work

While highly effective for physical materials, the model performed less impressively on the DTD dataset. The authors note that DTD labels are based on subjective human descriptions (e.g., "elegant"), whereas fractal analysis is better suited for objective physical properties.

Additionally, this paper focuses exclusively on static images. The authors suggest that extending fractal analysis to the temporal dimension (video) could be a promising path for recognizing "dynamic textures" like fire, water, or swaying grass. Finally, while the authors argue the computational overhead is small, the multi-scale convolutions and Least Squares Fitting (LSF) operations within the module do add complexity compared to simple GAP.

Summary updated

BibTeX
@inproceedings{xu2021encoding,
  author = {Yong Xu and Feng Li and Zhile Chen and Jinxiu Liang and Yuhui Quan},
  title = {{Encoding Spatial Distribution of Convolutional Features for Texture Representation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure