BLR23:50:36
···18:20:36
00:00
X0.0000
Y0.0000
← Back to featured
Open Source • Personal

PHYSCLIP - Contrastive Regime Classification for Physics-Informed Models

Regime recognition from cross-modal alignment between symbolic physics and observed fields - the perception layer upstream of physics-constrained solving.

The Upstream Problem

Physics-informed models - PINNs and their variants - assume the governing equation is already known. That assumption is often the weakest link in the pipeline. The harder, upstream problem is regime classification: given an observed field, which governing equation applies? This question has to be answered before physics-constrained training can begin, and it is rarely discussed.

Traditional approaches hand-code regime boundaries or rely on domain expert annotation. Neither scales. The regime identification step becomes a bottleneck for any physics-informed pipeline operating on real-world, partially observed data - the exact setting where PINNs are most useful.

The Approach

PHYSCLIP uses dual encoders to map two modalities into a shared latent space: symbolic physics descriptions (PDEs, governing equations expressed in text form) and field observations (numerical data, measurements). Regime recognition emerges from cross-modal alignment - not from hand-coded classification rules or expert-labeled boundaries.

The contrastive objective pulls matched (description, observation) pairs together in the latent space and pushes mismatched pairs apart. The same mechanism that makes CLIP work for vision-language alignment - applied to the physics-symbolic and physics-observational modalities instead.

Position in the Pipeline

PHYSCLIP is designed as a perception layer upstream of PINN-style enforcement, not as a standalone model. The intended flow: observation → regime identification via PHYSCLIP → physics-constrained solving with the identified governing equation. This makes the full pipeline end-to-end without requiring domain expert intervention at the classification step.

Latent proximity carries physical meaning. Nearby embeddings in the shared space indicate similar physics regimes - enabling interpretable regime identification under partial observability, where the full field is never observed and hard analytic boundaries cannot be computed. Partial observations produce embeddings that cluster near the correct regime even when the complete solution is unknown.

↗ View on GitHub