xiaohongshu
xiaohongshu
mechinterp-crossmodel-matcher
Match SAE features between Ultra (24K) and Full (2K) models based on activation patterns and token overlap
Full skill instructions
Match features between the Ultra (24K features) and Full (2K features) SAE models to understand feature correspondence and discover monosemantic representations.
The cross-model matcher skill:
Use this skill when you:
from splatnlp.mechinterp.analysis import FeatureMatcher
from splatnlp.mechinterp.skill_helpers import load_context
# Load source context (the model with your known feature)
source_ctx = load_context("ultra")
# Initialize matcher (automatically loads target model)
matcher = FeatureMatcher(source_ctx)
# Find matches for an Ultra feature in the Full model
report = matcher.find_matches(
source_feature=18712,
n_candidates=500, # How many Full features to check
n_top_matches=10 # How many matches to return
)
# View results
print(f"Searched {report.n_candidates_tested} candidates")
print(f"Best correlation: {report.best_correlation:.3f}")
for match in report.matches:
print(f"\nFull feature {match.target_feature}:")
print(f" Token overlap: {match.top_token_overlap:.3f}")
print(f" Shared tokens: {match.shared_top_tokens[:5]}")
print(f" Notes: {match.notes}")
# Compare two specific features in detail
comparison = matcher.compare_features(
source_fid=18712, # Ultra feature
target_fid=1024, # Full feature
)
print(f"Jaccard similarity: {comparison['jaccard_similarity']:.3f}")
print(f"Shared tokens: {comparison['shared_tokens'][:10]}")
print(f"Ultra-only tokens: {comparison['source_only_tokens'][:10]}")
print(f"Full-only tokens: {comparison['target_only_tokens'][:10]}")
Compares top tokens between features:
overlap = |source_top ∩ target_top| / |source_top ∪ target_top|
High overlap suggests:
Low overlap with similar activation patterns suggests:
# Example: A Full model feature that might be polysemantic
full_ctx = load_context("full")
matcher = FeatureMatcher(full_ctx) # Source = Full
# Find what Ultra features correspond to Full feature 512
report = matcher.find_matches(source_feature=512)
# If multiple Ultra features match, the Full feature may be polysemantic
if len([m for m in report.matches if m.combined_score > 0.1]) > 3:
print("Full feature 512 appears to be polysemantic")
print("Ultra decomposition:")
for m in report.matches[:5]:
print(f" Ultra {m.target_feature}: {m.shared_top_tokens[:3]}")
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience