Meta-learning In-Context approach for training-free cross-subject brain decoding. Uses meta-trained models to decode fMRI activity patterns across different subjects without retraining. Activation: meta-learning, brain decoding, cross-subject, fMRI decoding, training-free, in-context learning, neural decoding, generalizable decoding
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill meta-learning-context-enables-training --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Meta Learning Context Enables Training?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-meta-learning-context-enables-training)More formats (shields.io, HTML) on the badges page.
---
name: meta-learning-context-enables-training
description: "Meta-learning In-Context approach for training-free cross-subject brain decoding. Uses meta-trained models to decode fMRI activity patterns across different subjects without retraining. Activation: meta-learning, brain decoding, cross-subject, fMRI decoding, training-free, in-context learning, neural decoding, generalizable decoding"
---
# Meta-learning In-Context Enables Training-Free Cross-Subject Brain Decoding
## Overview
Meta-learning approach that enables training-free cross-subject brain decoding by learning to adapt to new subjects at inference time. Instead of fine-tuning models for each individual subject's fMRI data, the meta-trained model uses in-context learning to generalize across subjects using only a few calibration samples.
## Source Paper
- **Title:** Meta-learning In-Context Enables Training-Free Cross-Subject Brain Decoding
- **arXiv:** Available on arXiv
- **Categories:** neuroscience, fMRI, meta-learning
## Core Concepts
### Key Innovation
- **In-context learning for brain decoding**: Apply few-shot meta-learning to fMRI data
- **Training-free adaptation**: No gradient updates needed for new subjects
- **Cross-subject generalization**: Decode brain activity across different individuals
- **Calibration samples**: Use small set of paired (stimulus, brain activity) samples for adaptation
### Methodology
1. **Meta-training phase**: Train model on multiple subjects to learn adaptation patterns
2. **Context embedding**: Encode calibration samples as context
3. **Attention-based decoding**: Use attention over context + query to decode
4. **Zero gradient inference**: No parameter updates at test time
## Implementation Pattern
```python
class MetaLearningBrainDecoder:
"""Meta-learning decoder for cross-subject fMRI decoding."""
def __init__(self, embedding_dim=768, num_context=8):
self.context_size = num_context
self.encoder = BrainEncoder(embedding_dim)
self.cross_attention = CrossAttention(embedding_dim)
self.decoder = StimulusDecoder(embedding_dim)
def meta_train(self, subjects_data, num_episodes=10000):
"""Train on multiple subjects to learn adaptation."""
for episode in range(num_episodes):
# Sample support set (calibration) and query
support_subject = random.choice(subjects_data)
context, query = self.sample_episode(support_subject)
# Encode context and query
context_emb = self.encoder(context)
query_emb = self.encoder(query)
# Attention-based decoding
output = self.cross_attention(query_emb, context_emb)
loss = self.compute_loss(output, query.stimulus)
self.backward(loss)
def decode(self, brain_activity, calibration_samples):
"""Decode without training - in-context adaptation."""
context_emb = self.encoder(calibration_samples)
query_emb = self.encoder(brain_activity)
output = self.cross_attention(query_emb, context_emb)
return self.decoder(output)
```
## Practical Applications
### fMRI Visual Decoding
- Decode visual stimuli from fMRI across different subjects
- Clinical applications for communication with locked-in patients
- Cross-subject cognitive state classification
### Brain-Computer Interfaces
- Rapid BCI calibration for new users
- Zero-training setup for neurofeedback applications
## Limitations
- Requires calibration samples from new subjects
- Performance depends on similarity to meta-training population
- May struggle with extreme inter-subject variability
- Quality of calibration pairs affects decoding accuracy
## Activation Keywords
- meta-learning
- brain decoding
- cross-subject
- fMRI decoding
- training-free
- in-context learning
- neural decoding
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!