Homework 1: Generalization
Use PyTorch / HuggingFace / or any open-source codebase to perform a small generalization experiment:
- Select a dataset with distribution shift (e.g., PACS, Office-Home, or CIFAR-10-C).
- Train a standard model (e.g., ResNet-18 or ViT-small) using ERM.
- Evaluate it on: In-distribution test set and Out-of-distribution (OOD) test set
- Optionally implement one simple generalization method: Data augmentation, Domain generalization baseline (e.g., CORAL, MixStyle)
Write a 2-page report.
Homework 2: Transformers and LLMs
Use Hugging Face or OpenAI/Google/whatever you have API to perform prompt engineering experiments:
- Create 5 prompts and analyze output variation.
- Test for hallucination and discuss limitations.
After finishing your experiments, write a 2-page project report.
Homework 3: Privacy
Summary of the problem of privacy in machine learning, including:
- Training data leakage
- Membership inference / data reconstruction attacks
- Federated learning and differential privacy
- Which direction do you think is more promising for building privacy-preserving AI systems in the long term and why?