TopoAlign: Topology-Aware Visual Representation Alignment

2026-05-25Computational Geometry

Computational GeometryArtificial IntelligenceHuman-Computer InteractionMachine Learning
AI summary

The authors introduce TopoAlign, a tool that compares how different neural networks organize information by looking at their internal structures from a topological viewpoint. Unlike methods that focus only on local geometric similarities, TopoAlign examines the global shape and connectivity of data representations using mapper graphs. It helps researchers see overall alignment between models, find matching parts, and inspect detailed patterns visually. The authors tested TopoAlign on language and multimodal models and found it offers useful insights into how different models represent information.

neural networksrepresentationstopological data analysismapper graphsforce-directed layoutBubble Setsmotifslanguage modelsmultimodal modelsmodel alignment
Authors
Xinyuan Yan, Rita Sevastjanova, Mennatallah El-Assady, Bei Wang
Abstract
Neural networks encode inputs as high-dimensional vectors, known as representations, that capture how models process data by encoding task-relevant structure and semantics. Representation alignment refers to the degree to which different models, layers, or training conditions produce similar representations for the same inputs, with important implications for model interpretation, selection, and robustness analysis. Existing approaches to measure alignment primarily rely on geometric properties, such as neighborhood and cluster similarity, offering limited insight into the global organization of representations. In this work, we present TopoAlign, a topology-aware framework for visually comparing model representations from a structural perspective. Leveraging mapper graphs from topological data analysis, TopoAlign jointly analyzes graphs constructed from representations of shared inputs across different models or layers. The framework supports a top-down comparative workflow: it first performs global structure alignment via joint force-directed optimization to produce coordinated graph layouts; it then identifies local correspondences through automated detection of structurally matching regions, visualized with Bubble Sets; and finally it enables fine-grained pattern inspection through motif-based queries and membrane-inspired visualizations. We demonstrate TopoAlign through case studies on language and multimodal models, complemented by expert feedback. Our results show that TopoAlign provides meaningful insights into representation structure and alignment from a topological perspective.