Causality and Machine Learning

80816/80516, Spring 2025

Key Information and Links

Instructor: Kun Zhang
Lectures: Time: Tuesdays and Thursdays 12:30 – 1:50 PM.
Location: Tepper Building 1308.
Office Hours: Time: Wednesdays 3:00 – 4:00 PM (other times by appointment).
Location: 161B Baker Hall or zoom (if needed).
Canvas: https://canvas.cmu.edu/courses/46438

Syllabus

1. Course description

In the past decades, significant progress has been made in tackling long-standing causality problems, such as discovering causality from observational data and inferring causal effects. Moreover, it has recently been shown that the causal perspective aids in understanding and solving various machine learning problems such as transfer learning, out-of-distribution prediction, disentanglement, representation learning, and adversarial vulnerability. Accordingly, this course is concerned with understanding causality, learning it from observational data, and using it to tackle other learning problems.

The course covers representations of causal models, how causality is different from association, methods for causal discovery and causal representation learning, and how causality enhances advanced learning tasks, including generative AI. We will address the following questions. Why is causality essential? How can we learn it, including latent variables, from observational data? How can we make sure the estimated representation is causal? What role does causality play in learning under data heterogeneity? Can causal principles make generative AI more controllable and capable of extrapolation? How can deep learning benefit from a causal perspective?

Two main causality problems are emphasized. One is causal discovery or causal representation learning. It is well known that “correlation does not imply causality,” but we will make it more precise by asking what assumptions, what information in the data, and what procedures enable us to successfully recover causal information. Causal relations may happen among the underlying hidden variables—we will also see how to uncover the underlying hidden “causal” variables as well as their causal relations from the measured variables. The other is how to properly make use of causal information. This includes identification of causal effects, counterfactual reasoning, and improving machine learning with causal knowledge.

2. Course objectives

As an outcome of this course, participants are expected to:

3. Who can attend

Prerequisites are not required, but introductory statistics or machine learning would be helpful. This course is accessible to students from across disciplines – we especially welcome students from different departments.

4. Course materials

Reading materials will be available online or distributed in class. In addition, we will refer to several chapters of the following two books frequently (some chapters will be available on Canvas):

5. Grading

Class participation is 5% of your grade. You are allowed to miss two classes without any penalty; after that, missing each class lowers your final course grade by 1% (5% is the maximum), unless you get an approval. In addition, we have 10% for active involvement in in-class discussions (raising or answering questions and participation in discussions).

There will be four homework assignments. These will be worth 40% of your grade. Students should submit their homework on Canvas as MS Word or pdf files (in special situations, you may submit the homework by email to the instructor). 20% will be deducted if it is late unless you get the instructor's approval in advance.

We have 10% for the project/essay proposal for each individual or team of two students, due on March 14, 11:59PM and 35% for the final project report or essay (due on May 2, 11:59PM). Please work together with the instruction to decide on the topic for your project/essay by February 28. (See more detail after Class Schedule.)

Remark: For evaluation of the project report and presentations, we will adopt discipline-specific criteria for students from different disciplines (e.g., philosophy, machine learning, statistics, computer science, psychology, information systems, social and decision sciences, public policy, and biology). The evaluation is partly based on the significance, expected output, and novelty of the problems in the students’ respective fields and their interest to general audiences.


Class schedule

Class meetings consist of lecture presentations on principles and methodologies for causal discovery, causal inference, counterfactual reasoning, and causal representation learning. If time permits, we may have guest lectures on various topics.

The course is divided into nine sessions; see below. Students are expected to finish the readings and try to come up with questions before coming to class.

Part I. Introduction (1 week)

Part II. Preliminaries: Statistics, information theory, basic machine learning, graphical models, and traditional multivariate analysis (2 weeks)

Part III. Identification of causal effects & counterfactual reasoning (1 week)

Part IV. Traditional approaches to causal discovery: “Independence” in causal models, constraint- and score-based causal discovery (1 week)

Part V. Functional causal model-based approaches to causal discovery: Linear, non-Gaussian methods and beyond (2.5 weeks)

Part VI. Practical issues in causal discovery (1 week)

Part VII. Causal representation learning (CRL) (2 weeks)

Part VIII. Causal view for machine learning and artificial intelligence (2 weeks)

Part IX. Real applications of causal discovery, review, and outlook (1 week)

Final project

Topics

Participants are encouraged to present your own causality-related problems or data sets for the final project (if they prefer not to do the problem sets nor write an essay). Alternatively, you can choose one from the following topics (reading materials will be provided to you). Please determine the topic together with the instructor by 02/28.

Requirements

Students are expected to present the selected problems, make progress on the topics, and summarize their achievements. You may complete them alone or in two-person groups.

Key dates


Staff

Instructor

Kun Zhang
Kun

Teaching assistants

Yujia
Haoyue


Additional information

To students

Take care of yourself. Do your best to maintain a healthy lifestyle this semester by eating well, exercising properly, avoiding drugs and alcohol, getting enough sleep and taking some time to relax. This will help you achieve your goals and cope with stress.

All of us benefit from support during times of struggle. You are not alone. There are many helpful resources available on campus and an important part of the college experience is learning how to ask for help. Asking for support sooner rather than later is often helpful.

If you or anyone you know experiences any academic stress, difficult life events, or feelings like anxiety or depression, we strongly encourage you to seek support. Counseling and Psychological Services (CaPS) is here to help: call 412-268-2922 and visit their website at http://www.cmu.edu/counseling/. Consider reaching out to a friend, faculty or family member you trust for help getting connected to the support that can help.

Diversity statement

We must treat every individual with respect. We are diverse in many ways, and this diversity is fundamental to building and maintaining an equitable and inclusive campus community. Diversity can refer to multiple ways that we identify ourselves, including but not limited to race, color, national origin, language, sex, disability, age, sexual orientation, gender identity, religion, creed, ancestry, belief, veteran status, or genetic information. Each of these diverse identities, along with many others not mentioned here, shape the perspectives our students, faculty, and staff bring to our campus. We, at CMU, will work to promote diversity, equity and inclusion not only because diversity fuels excellence and innovation, but because we want to pursue justice. We acknowledge our imperfections while we also fully commit to the work, inside and outside of our classrooms, of building and sustaining a campus community that increasingly embraces these core values.

Each of us is responsible for creating a safer, more inclusive environment.

Unfortunately, incidents of bias or discrimination do occur, whether intentional or unintentional. They contribute to creating an unwelcoming environment for individuals and groups at the university. Therefore, the university encourages anyone who experiences or observes unfair or hostile treatment on the basis of identity to speak out for justice and support, within the moment of the incident or after the incident has passed. Anyone can share these experiences using the following resources:

  • Center for Student Diversity and Inclusion: csdi@andrew.cmu.edu, (412) 268-2150
  • Report-It online anonymous reporting platform: reportit.net username: tartans password: plaid

All reports will be documented and deliberated to determine if there should be any following actions. Regardless of incident type, the university will use all shared experiences to transform our campus climate to be more equitable and just.

Course policies

Remember: If you registered for this class, you have until March 31st to change your grade in this course from a letter grade to a Pass/Fail grade.

Cheating and plagiarism

It is the responsibility of each student to be aware of the university policies on academic integrity, including the policies on cheating and plagiarism. This information is available at http://www.cmu.edu/academic-integrity.

Disability

If you have a disability and have an accommodations letter from the Disability Resources office, I encourage you to discuss your accommodations and needs with me as early in the semester as possible. I will work with you to ensure that accommodations are provided as appropriate. If you suspect that you may have a disability and would benefit from accommodations but are not yet registered with the Office of Disability Resources, I encourage you to contact them at access@andrew.cmu.edu.

Student well-being

Take care of yourself. Do your best to maintain a healthy lifestyle this semester by eating well, exercising, avoiding drugs and alcohol, getting enough sleep and taking some time to relax. This will help you achieve your goals and cope with stress.

All of us benefit from support during times of struggle. There are many helpful resources available on campus and an important part of the college experience is learning how to ask for help. Asking for support sooner rather than later is almost always helpful.

If you or anyone you know experiences any academic stress, difficult life events, or feelings like anxiety or depression, we strongly encourage you to seek support. Counseling and Psychological Services (CaPS) is here to help: call 412-268-2922 and visit their website at http://www.cmu.edu/counseling/. Consider reaching out to a friend, faculty or family member you trust for help getting connected to the support that can help.




Template from CMU 10-701 Course. Many thanks to the original creators!