Skip to content
Back to skills

Task Generalization

ASecurity

"Operate Transfer Learning Library domain-generalization and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill task-generalization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Task Generalization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Task Generalization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-task-generalization/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-task-generalization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: task-generalization
description: "Operate Transfer Learning Library domain-generalization and
  task-adaptation workflows using TLLib regularization, normalization, and
  reweighting APIs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Task Generalization Skill

Use this sub-skill when a user needs TLLib guidance for **domain generalization** or **task adaptation / fine-tuning** rather than unsupervised domain adaptation.

## Route here for

- Domain generalization with source-domain-only training: ERM baselines, MixStyle, IBN, StochNorm-style normalization, CORAL as a DG penalty, GroupDRO, IRM, VREx, and MLDG-style meta-learning patterns.
- Task adaptation / fine-tuning regularizers: L2, L2-SP, DELTA, BSS, Co-Tuning, LwF, StochNorm, and Bi-Tuning.
- Safe CPU-level checks of `tllib.regularization`, `tllib.normalization`, `tllib.reweight.groupdro`, and CORAL loss components.
- Checkpoint conversion planning for MoCo-style pretraining outputs before fine-tuning.

## Route elsewhere

- Datasets, image-list formats, dataloaders, model factories, transforms, and metrics: [vision-data-models](../vision-data-models/SKILL.md).
- Unsupervised, partial, open-set, or adversarial domain adaptation: [domain-adaptation](../domain-adaptation/SKILL.md).
- Semi-supervised learning, pseudo-labeling, Mean Teacher, FixMatch/FlexMatch, UDA, DST, and Noisy Student workflows: [self-training](../self-training/SKILL.md).

## Operating sequence

1. Identify whether the task is **DG** (train on labeled source domains and test on held-out unseen domains) or **task adaptation** (fine-tune a pretrained model on a new labeled target task).
2. Confirm data/model readiness through [vision-data-models](../vision-data-models/SKILL.md) before discussing full training. The benchmark-scale workflows require datasets, pretrained weights, and usually CUDA; this sub-skill only claims CPU component-level verification.
3. Choose the method family:
   - DG style/normalization: MixStyle or IBN.
   - DG robust objective: GroupDRO, IRM, VREx, MLDG, or CORAL penalty.
   - Fine-tuning regularization: L2-SP/DELTA/BSS/Co-Tuning/LwF/StochNorm/Bi-Tuning.
4. Use the bundled references for implementation details and warning checks; do not copy or execute repository benchmark trainers as runtime helpers.
5. For installation/API sanity, run `scripts/tllib_task_generalization_smoke.py` from any directory where `tllib` is installed.

## References

- [API reference](references/api-reference.md)
- [Domain-generalization workflows](references/domain-generalization-workflows.md)
- [Task-adaptation workflows](references/task-adaptation-workflows.md)
- [Checkpoint conversion](references/checkpoint-conversion.md)
- [Troubleshooting](references/troubleshooting.md)

## Verification status

The bundled smoke script exercises small CPU tensors for regularization, normalization, reweighting, and CORAL components. It does **not** run benchmark training, download datasets, download pretrained checkpoints, or verify optional `timm`, `higher`, WILDS, Detectron2, or CUDA training stacks.

Files in this skill

  • SKILL.md3 KB
  • references/api-reference.md8.6 KB
  • references/checkpoint-conversion.md5 KB
  • references/domain-generalization-workflows.md8.1 KB
  • references/task-adaptation-workflows.md9.9 KB
  • references/troubleshooting.md7.6 KB
  • scripts/tllib_task_generalization_smoke.py9.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.