feat: add invariant basis extractor for atlas-embeddings#1
Closed
sylvaincormier wants to merge 1 commit intoUOR-Foundation:mainfrom
Closed
feat: add invariant basis extractor for atlas-embeddings#1sylvaincormier wants to merge 1 commit intoUOR-Foundation:mainfrom
sylvaincormier wants to merge 1 commit intoUOR-Foundation:mainfrom
Conversation
Add a lightweight Python module that extracts the stable invariant basis from evolving embedding states via the covariance operator. The dominant eigenmodes define the intrinsic geometric axes, separating meaningful structure from transient components. This acts as a coordinate-locking layer: instead of operating in an arbitrary embedding space, the system aligns to its own intrinsic geometry. Features: - Rolling buffer with configurable memory depth - Eigendecomposition of covariance operator (sorted descending) - Project/reconstruct for dimensionality reduction along invariant axes - Input validation and lazy computation with cache invalidation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a lightweight Python module that extracts the stable invariant basis from evolving embedding states via the covariance operator. The dominant eigenmodes define the intrinsic geometric axes of the system, separating meaningful structure from transient components.
Motivation
The atlas construction generates structure from seed graphs and embeds it into higher-order symmetry spaces. This module adds the missing step: explicitly extracting the invariant basis so downstream operations work in the correct coordinate system.
This acts as a coordinate-locking layer — instead of operating in an arbitrary embedding space, the system aligns to its own intrinsic geometry.
Features
InvariantExtractor(dim, memory)— rolling buffer with configurable depthupdate(state)— feed state observationsinvariants()— eigendecomposition of covariance operator (descending order)project(state, k)— project onto top-k invariant directionsreconstruct(coords)— reconstruct from reduced coordinatesTest results
Files
atlas-embeddings/python/invariant_extractor.pyatlas-embeddings/python/test_invariant_extractor.py