• Stars
    star
    1,049
  • Rank 42,619 (Top 0.9 %)
  • Language
    Jupyter Notebook
  • Created over 6 years ago
  • Updated 6 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

EPFL Course - Optimization for Machine Learning - CS-439

EPFL Course - Optimization for Machine Learning - CS-439

Official coursebook information

Lectures: Fri 13:15-15:00 in CO2

Exercises: Fri 15:15-17:00 in BC01

This course teaches an overview of modern mathematical optimization methods, for applications in machine learning and data science. In particular, scalability of algorithms to large datasets will be discussed in theory and in implementation.

Team

Contents:

Convexity, Gradient Methods, Proximal algorithms, Subgradient Methods, Stochastic and Online Variants of mentioned methods, Coordinate Descent, Frank-Wolfe, Accelerated Methods, Primal-Dual context and certificates, Lagrange and Fenchel Duality, Second-Order Methods including Quasi-Newton Methods, Derivative-Free Optimization.

Advanced Contents:

Parallel and Distributed Optimization Algorithms

Computational Trade-Offs (Time vs Data vs Accuracy), Lower Bounds

Non-Convex Optimization: Convergence to Critical Points, Alternating minimization, Neural network training

Program:

Nr Date Topic Materials Exercises
1 24.2. Introduction, Convexity notes, slides lab01
2 3.3. Gradient Descent notes, slides lab02
3 10.3. Projected Gradient Descent notes, slides lab03
4 17.3. Proximal and Subgradient Descent notes, slides lab04
5 24.3. Stochastic Gradient Descent, Non-Convex Optimization notes, slides lab05
6 31.3. Non-Convex Optimization notes, slides lab06
. 7.4. easter vacation -
. 14.4. easter vacation -
7 21.4. Newton's Method & Quasi-Newton notes, slides lab07
8 28.4. Coordinate Descent notes, slides lab08
9 5.5. Frank-Wolfe notes, slides lab09
10 12.5. Accelerated Gradient, Gradient-free, adaptive methods notes, slides lab10
11 19.5. Mini-Project week -
12 26.5. Opt for ML in Practice notes, slides Q&A
13 2.6. Opt for ML in Practice notes, slides Q&A Projects

Videos:

Exercises:

The weekly exercises consist of a mix of theoretical and practical Python exercises for the corresponding topic each week (starting week 2). Solutions to exercises are available in the lab folder.

Project:

A mini-project will focus on the practical implementation: Here we encourage students to investigate the real-world performance of one of the studied optimization algorithms or variants, helping to provide solid empirical evidence for some behaviour aspects on a real machine-learning task. The project is mandatory and done in groups of 3 students. It will count 30% to the final grade. Project reports (3 page PDF) are due June 16th. Here is a detailed project description.

Assessment:

Final written exam on Monday 03.07.2023 from 15h15 to 18h15 (CO2, CO3). Format: Closed book. Theoretical questions similar to exercises. You are allowed to bring one cheat sheet (A4 size paper, both sides can be used). For practice:

Links to related courses and materials

Recommended Books

More Repositories

1

sent2vec

General purpose unsupervised sentence representations
C++
1,187
star
2

ML_course

EPFL Machine Learning Course, Fall 2023
Jupyter Notebook
1,169
star
3

attention-cnn

Source code for "On the Relationship between Self-Attention and Convolutional Layers"
Python
1,062
star
4

landmark-attention

Landmark Attention: Random-Access Infinite Context Length for Transformers
Python
258
star
5

federated-learning-public-code

Python
154
star
6

collaborative-attention

Code for Multi-Head Attention: Collaborate Instead of Concatenate
Python
146
star
7

powersgd

Practical low-rank gradient compression for distributed optimization: https://arxiv.org/abs/1905.13727
Python
135
star
8

disco

Decentralized & federated privacy-preserving ML training, using p2p networking, in JS
TypeScript
126
star
9

dynamic-sparse-flash-attention

Jupyter Notebook
112
star
10

DenseFormer

Python
68
star
11

ChocoSGD

Decentralized SGD and Consensus with Communication Compression: https://arxiv.org/abs/1907.09356
Python
59
star
12

llm-baselines

Python
55
star
13

sparsifiedSGD

Sparsified SGD with Memory: https://arxiv.org/abs/1809.07599
Jupyter Notebook
54
star
14

optML-pku

summer school materials
42
star
15

LocalSGD-Code

Python
41
star
16

error-feedback-SGD

SGD with compressed gradients and error-feedback: https://arxiv.org/abs/1901.09847
Jupyter Notebook
28
star
17

Bi-Sent2Vec

Robust Cross-lingual Embeddings from Parallel Sentences
C++
20
star
18

byzantine-robust-optimizer

Learning from history for Byzantine Robustness
Jupyter Notebook
20
star
19

opt-summerschool

Short Course on Optimization for Machine Learning - Slides and Practical Labs - DS3 Data Science Summer School, June 24 to 28, 2019, Paris, France
Jupyter Notebook
20
star
20

interpret-lm-knowledge

Extracting knowledge graphs from language models as a diagnostic benchmark of model performance (NeurIPS XAI 2021).
Jupyter Notebook
20
star
21

cola

CoLa - Decentralized Linear Learning: https://arxiv.org/abs/1808.04883
Python
18
star
22

opt-shortcourse

Short Course on Optimization for Machine Learning - Slides and Practical Lab - Pre-doc Summer School on Learning Systems, July 3 to 7, 2017, Zürich, Switzerland
Jupyter Notebook
18
star
23

powergossip

Code for "Practical Low-Rank Communication Compression in Decentralized Deep Learning"
Python
14
star
24

byzantine-robust-noniid-optimizer

Python
14
star
25

X2Static

X2Static embeddings
Python
12
star
26

kubernetes-setup

MLO group setup for kubernetes cluster
Dockerfile
12
star
27

relaysgd

Code for the paper “RelaySum for Decentralized Deep Learning on Heterogeneous Data”
Jupyter Notebook
10
star
28

topology-in-decentralized-learning

Code related to ’Beyond spectral gap: The role of the topology in decentralized learning‘.
Python
10
star
29

quasi-global-momentum

Python
9
star
30

piecewise-affine-multiplication

Python
7
star
31

rotational-optimizers

Python
6
star
32

byzantine-robust-decentralized-optimizer

Jupyter Notebook
6
star
33

uncertainity-estimation

Code for the paper “The Peril of Popular Deep Learning Uncertainty Estimation Methods”
Jupyter Notebook
6
star
34

getting-started

Python
6
star
35

text_to_image_generation

Python
5
star
36

easy-summary

difficulty-guided text summarization
Python
5
star
37

FeAI

Federated Learning with TensorFlow.js
Vue
4
star
38

autoTrain

Open Challenge - Automatic Training for Deep Learning
Python
3
star
39

ghost-noise

Python
3
star
40

pax

JAX-like API for PyTorch
Python
3
star
41

personalized-collaborative-llms

Python
2
star
42

phantomedicus

MedSurge: medical survey generator
Jupyter Notebook
1
star