SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.20697 · EMNLP · 2023

TEXT-TRANSPORT: Toward Learning Causal Effects of Natural Language

Louis-Philippe Morency, Victoria Lin, Eli Ben-Michael

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.20697.json · badge: /api/ran/2310.20697.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
torylin/text-transport canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
add_prefix Ran
ran; our contract draft was wrong, not the code
torylin/text-transport/code/openai_classification.py
pointer only (licence: NONE) · get_code("c38c8c2ea3432d51")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

eliminate_dups Ran
ran; our contract draft was wrong, not the code
torylin/text-transport/code/generate_randomization_corpus.py
pointer only (licence: NONE) · get_code("bfc6ed7f407ced83")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

getDF Ran
ran; our contract draft was wrong, not the code
torylin/text-transport/code/process_amazon_data.py
pointer only (licence: NONE) · get_code("829e8cce913d9815")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_prob_clm Ran
ran, honoured the contract we drafted
torylin/text-transport/code/estimate.py
pointer only (licence: NONE) · get_code("262b55b0b9f742ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_prob_mlm Ran
ran, honoured the contract we drafted
torylin/text-transport/code/estimate.py
pointer only (licence: NONE) · get_code("83d6ac4ce867348d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess Ran
ran; our contract draft was wrong, not the code
torylin/text-transport/code/finetune.py
pointer only (licence: NONE) · get_code("f062e594c6f41912")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_num_tokens Not yet run
unverified (harvested, no recorded run)
torylin/text-transport/code/openai_classification.py
pointer only (licence: NONE) · get_code("8b6ef2cf5081fcf4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_sent_groups Not yet run
unverified (harvested, no recorded run)
torylin/text-transport/code/process_speeches.py
pointer only (licence: NONE) · get_code("c63d2ec7cd83721c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, torylin/text-transport when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
getDF 3 other papers
2 dated earlier, 1 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2104.06828 (2021-04)
Ask what's missing and what's useful: Improving Clarification Question Generation using Global Knowledge
2408.11767 (2024-08)
Do We Really Need to Drop Items with Missing Modalities in Multimodal Recommendation?

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

As language technologies gain prominence in real-world settings, it is important to understand how changes to language affect reader perceptions. This can be formalized as the causal effect of varying a linguistic attribute (e.g., sentiment) on a reader's response to the text. In this paper, we introduce TEXT-TRANSPORT, a method for estimation of causal effects from natural language under any text distribution. Current approaches for valid causal effect estimation require strong assumptions about the data, meaning the data from which one can estimate valid causal effects often is not representative of the actual target domain of interest. To address this issue, we leverage the notion of distribution shift to describe an estimator that transports causal effects between domains, bypassing the need for strong assumptions in the target domain. We derive statistical guarantees on the uncertainty of this estimator, and we report empirical results and analyses that support the validity of TEXT-TRANSPORT across data settings. Finally, we use TEXT-TRANSPORT to study a realistic setting-hate speech on social media-in which causal effects do shift significantly between text domains, demonstrating the necessity of transport when conducting causal inference on natural language.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.20697")
get_code_for_paper("2310.20697")
have("2310.20697")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.20697.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.20697.svg)](https://syntology.ai/paper/2310.20697)

Connect an agent — have() is free.