Skip to content

This repository is for the ICML'24 paper: "Unveiling the Cycloid Trajectory of EM Iterations in Mixed Linear Regression"

Notifications You must be signed in to change notification settings

dassein/cycloid_em_mlr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Unveiling the Cycloid Trajectory of EM Iterations in Mixed Linear Regression

License: CC BY 4.0

Overview

This repository contains the code used for the experimental results in our paper:

"Unveiling the Cycloid Trajectory of EM Iterations in Mixed Linear Regression"

Authors: Zhankun Luo, Abolfazl Hashemi
Conference: International Conference on Machine Learning (ICML)
Year: 2024

The paper can be accessed here.

Abstract

We study the trajectory of iterations and the convergence rates of the Expectation-Maximization (EM) algorithm for two-component Mixed Linear Regression (2MLR). The fundamental goal of MLR is to learn the regression models from unlabeled observations. The EM algorithm finds extensive applications in solving the mixture of linear regressions. Recent results have established the super-linear convergence of EM for 2MLR in the noiseless and high SNR settings under some assumptions and its global convergence rate with random initialization has been affirmed. However, the exponent of convergence has not been theoretically estimated and the geometric properties of the trajectory of EM iterations are not well-understood. In this paper, first, using Bessel functions we provide explicit closed-form expressions for the EM updates under all SNR regimes. Then, in the noiseless setting, we completely characterize the behavior of EM iterations by deriving a recurrence relation at the population level and notably show that all the iterations lie on a certain cycloid. Based on this new trajectory-based analysis, we exhibit the theoretical estimate for the exponent of super-linear convergence and further improve the statistical error bound at the finite-sample level. Our analysis provides a new framework for studying the behavior of EM for Mixed Linear Regression.

Table of Contents

Installation

Prerequisites

Setup

Clone the repository:

git clone https://github.com/dassein/cycloid_em_mlr.git
cd cycloid_em_mlr/code

Experiments

Detailed instructions on how to reproduce the experiments from the paper.

Experiment 1: Cycloid Trajectory of EM Iterations

To validate the Cycloid trajectories of EM iterations when $d=2, 3, 50$, use the following commands:

python trajectotry_dim2.py
python trajectotry_dim3.py
python trajectotry_dimhigh.py

The results are shown in the figure below.

d=2 d=3 d=50

Experiment 2: Quadratic Convergence for 2 Mixtures

To show the super-linear convergence under high SNR regimes, use the following command:

python superlinear.py

The convergence curves are shown below, the slopes of lines at different SNR values consistently hover around or slightly exceed 2. superlinear

Experiment 3: Error of Mixing Weights and Angle

To demonstrate the linear correlation between the error of mixing weights and the angle, use the following command:

python mixingweight.py

The experimental results are depicted in the following figure. mixingweight

Experiment 4: Comparison with Different Mixing Weights

To show that the EM update for regression parameters is independent of the true mixing weights, and the final error in mixing weights depends on the error in regression parameters and true mixing weights, use the following command:

python plot_iters.py

The experimental results align with our theoretical analysis, see the figures below. dists

Citation

@inproceedings{luo2024cycloid,
  title={Unveiling the Cycloid Trajectory of EM Iterations in Mixed Linear Regression},
  author={Luo, Zhankun and Hashemi, Abolfazl},
  booktitle={Proceedings of the International Conference on Machine Learning (ICML)},
  year={2024}
}

License

This project is licensed under the Creative Commons Attribution 4.0 International License. To view this license, visit CC BY 4.0.

Acknowledgements

We are grateful to the ICML area chair and anonymous reviewers for their insightful input that improved the paper.

About

This repository is for the ICML'24 paper: "Unveiling the Cycloid Trajectory of EM Iterations in Mixed Linear Regression"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages