Interpretable Structure-Evolving LSTM

Xiaodan Liang, Liang Lin, Xiaohui Shen, Jiashi Feng, Shuicheng Yan, Eric P. Xing

Introduction

Traditional Recurrent Neural Networks (RNNs) and Long Short-Term Memory (LSTM) networks typically operate on fixed data structures, such as linear sequences or pre-defined trees. While effective for many tasks, these rigid topologies often struggle with real-world data that exhibits complex, multi-scale dependencies. For instance, in image parsing, a model must understand both local superpixel boundaries and global anatomical relationships. This paper introduces the Structure-Evolving LSTM, a framework that dynamically learns and evolves hierarchical graph representations of data during the training process.

Methodology

The core innovation lies in a "bottom-up" structure evolution mechanism. Instead of relying on a static graph, the model starts with a fine-grained element-level graph (e.g., image superpixels) and iteratively refines it into more abstract representations.

Overall architecture of the Structure-Evolving LSTM, showing the transition from input images to hierarchical graph representations through stacked LSTM layers.

The process involves several key steps:

  1. Adaptive Merging: Each stacked LSTM layer estimates the "compatibility" of connected nodes. By repurposing the LSTM’s internal adaptive forget gates, the model calculates a merging probability. High compatibility leads to nodes being merged into higher-level "cliques" in the subsequent layer.
  2. Metropolis-Hastings Sampling: To prevent the model from converging on suboptimal structures, a stochastic Metropolis-Hastings algorithm is employed. It generates candidate structures and accepts them based on a probability that balances transition costs with discriminative performance.
  3. Information Propagation: As the graph becomes more abstract in higher layers, the LSTM propagates information across the new topology, effectively filtering redundant data and capturing long-range dependencies that would be missed in a flat graph.

Key Insights

  • Learnable Topology: The data's structure is treated as a learnable latent variable rather than a fixed input, allowing the model to discover the optimal hierarchy for the task.
  • Functional Reuse of Forget Gates: The mechanism traditionally used to manage temporal memory is elegantly adapted to manage spatial merging, suggesting a deep link between temporal and structural abstraction.
  • Stochastic Exploration: Using sampling rather than simple heuristics allows the model to explore a wider variety of structural hierarchies, leading to better generalization and robustness against local optima.

Key Results

The Structure-Evolving LSTM was evaluated on several semantic object parsing benchmarks, including PASCAL-Person-Part and the ATR dataset. It consistently outperformed state-of-the-art models, such as standard Graph LSTMs and DeepLab.

Qualitative comparison of parsing results between standard Graph LSTM and the Structure-Evolving LSTM. The proposed model shows superior performance in resolving complex labels like "skirt" vs "dress" by leveraging global context.

On the PASCAL-Person-Part dataset, the model achieved a 63.57% Average IoU, a significant jump from the 60.16% achieved by standard Graph LSTMs. On the ATR dataset, it reached 87.88% accuracy. Qualitatively, the model excels at resolving ambiguous labels—such as distinguishing between a "skirt" and a "dress"—by considering the global context of an object rather than relying solely on local textures.

Conclusion and Future Work

The Structure-Evolving LSTM represents a significant step toward more interpretable and flexible deep learning architectures. By allowing the model to define its own data hierarchy, it achieves superior performance in complex spatial tasks. Future research may explore "reversible" evolution (allowing nodes to split) and expanding the framework to other hierarchical domains like social network analysis or document processing.

Summary updated

BibTeX
@inproceedings{liang2017interpretable,
  author = {Xiaodan Liang and Liang Lin and Xiaohui Shen and Jiashi Feng and Shuicheng Yan and Eric P. Xing},
  title = {{Interpretable Structure-Evolving LSTM}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.234},
}
Figure