Back to projects
Minimum spanning tree model compression cover
Sep 15, 2022
2 min read

Lightweight Deep Learning with MST

Applied minimum spanning tree ideas to model compression and compared parameter count against performance.
Soongsil University

Overview

Lightweight Deep Learning with MST explored model compression through graph algorithms. The project represented model-weight relationships as a graph and used minimum-spanning-tree algorithms to reduce parameters while preserving useful structure.

Approach

  • Created correlations between model weights and graph edges.
  • Generated minimum spanning trees with Kruskal, Prim, and Floyd-style graph-processing experiments.
  • Compared compression behavior against model-performance retention.
  • Implemented and evaluated the experiments with PyTorch.

Result

The experiment verified that the model could be compressed by about 50% while preserving roughly 70% of the original performance in the tested setting.

Takeaway

The project connected classical graph algorithms with neural-network compression, giving a practical view of how algorithmic structure can be used to reason about model size and inference cost.

Materials

This visual summarizes the graph-based model-compression idea: representing weight relationships as a graph and preserving a compact structure through minimum spanning tree selection.

Minimum spanning tree model-compression concept visual