Meta-Learning Suite (MAML/FOMAML/Reptile + MAML++ Enhancements)

Execute meta-learning workflows for MAML, FOMAML, Reptile, and MAML++ enhancements.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/sovr610/refffiy --skill meta-learning-suite-maml-fomaml-reptile-maml-enhancements
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Meta-Learning Suite (MAML/FOMAML/Reptile + MAML++ Enhancements)
Source: https://github.com/sovr610/refffiy/tree/main/brain-ai-dev/skills/meta-learning-suite
Command: npx skills add https://github.com/sovr610/refffiy --skill meta-learning-suite-maml-fomaml-reptile-maml-enhancements

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, pytest, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

The Meta-Learning Suite standardizes the learn-to-adapt pipeline, providing a self-contained framework for designing, evaluating, and reproducing gradient-based meta-learning algorithms (MAML, FOMAML, Reptile) with MAML++ enhancements.

Core Features & Use Cases

  • Supports second-order and first-order inner loops through pluggable backends (torch.func, higher, or custom SGD).
  • Implements MAML++ enhancements: per-layer per-step learning rates (LSLR), multi-step loss (MSL), derivative-order annealing, and per-step batch-norm handling.
  • Deterministic episodic sampling, comprehensive checkpointing, and a consistent evaluation interface for research and prototyping.

Quick Start

Define a model, configure a meta-algorithm (MAML or FOMAML), and run a training loop to observe the inner-loop adaptations and outer meta-gradients.

Frequently Asked Questions about Meta-Learning Suite (MAML/FOMAML/Reptile + MAML++ Enhancements)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement MAML and FOMAML for few-shot learning tasks?

You can implement MAML and FOMAML by defining a model, configuring a meta-algorithm, and running a training loop. The suite executes the complete workflow, handling inner-loop adaptations and outer meta-gradients for fast adaptation.

What is meta-learning and how does LSLR improve MAML?

Meta-learning trains models to rapidly adapt to new tasks from few examples. LSLR, a MAML++ enhancement, improves MAML by applying per-layer per-step learning rates within the inner loop to optimize adaptation.

Does this meta-learning suite support first-order and second-order gradient backends?

Yes, the suite supports first-order and second-order inner loops through pluggable backends. It prefers torch.func for gradient flow, with higher or a custom SGD fallback available for meta-learning experiments.

Can I run Reptile and MAML++ enhancements like multi-step loss on toy datasets?

Yes, you can run Reptile and MAML++ enhancements on toy datasets and real benchmarks. The framework targets episodic few-shot tasks, enabling experiments with multi-step loss, annealing, and batch-norm handling.

How do I ensure reproducible gradient flow in episodic few-shot training?

To ensure reproducible gradient flow in episodic few-shot training, use deterministic episode sampling and robust checkpointing. The suite standardizes the learn-to-adapt pipeline to guarantee experiment reproducibility.

What dependencies do I need to run gradient-based meta-learning experiments?

You need PyTorch and pytest dependencies to run gradient-based meta-learning experiments. The suite uses these to support pluggable inner-loop engines and a consistent evaluation interface for research.