Skip to content

Add recurrent model attribution tutorial (#1205) (#1834)#1834

Open
craymichael wants to merge 1 commit into
meta-pytorch:masterfrom
craymichael:docs/1205-recurrent-model-tutorial
Open

Add recurrent model attribution tutorial (#1205) (#1834)#1834
craymichael wants to merge 1 commit into
meta-pytorch:masterfrom
craymichael:docs/1205-recurrent-model-tutorial

Conversation

@craymichael

@craymichael craymichael commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary:
Fixes #1205.

Issue: #1205
Issue summary: Captum lacked a recurrent-model tutorial showing sequence and recurrent-layer attribution.

  • Add an LSTM sequence-classification tutorial with input attribution and time/feature aggregation.
  • Include LayerIntegratedGradients on the recurrent layer with attribute_to_layer_input=True.

Test Plan:

  • venv/uv/bin/python -m json.tool tutorials/Recurrent_Model_Interpret.ipynb
  • Pyre: not applicable; tutorial-only change.

Reviewed By: Ayush-Warikoo

Differential Revision: D106053939

Pulled By: craymichael

@meta-cla meta-cla Bot added the cla signed label May 22, 2026
@meta-codesync

meta-codesync Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

@craymichael has imported this pull request. If you are a Meta employee, you can view this in D106053939.

…torch#1834)

Summary:
Fixes meta-pytorch#1205.

Issue: meta-pytorch#1205
Issue summary: Captum lacked a recurrent-model tutorial showing sequence and recurrent-layer attribution.
- Add an LSTM sequence-classification tutorial with input attribution and time/feature aggregation.
- Include LayerIntegratedGradients on the recurrent layer with attribute_to_layer_input=True.


Test Plan:
- venv/uv/bin/python -m json.tool tutorials/Recurrent_Model_Interpret.ipynb
- Pyre: not applicable; tutorial-only change.

Reviewed By: Ayush-Warikoo

Differential Revision: D106053939

Pulled By: craymichael
@meta-codesync meta-codesync Bot changed the title Add recurrent model attribution tutorial (#1205) Add recurrent model attribution tutorial (#1205) (#1834) Jun 16, 2026
@craymichael
craymichael force-pushed the docs/1205-recurrent-model-tutorial branch from b498dd7 to 1e8b4cc Compare June 16, 2026 17:23
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@craymichael has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106053939.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Tutorial for Recurrent based models

1 participant