SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.06751 · ACL · 2021

Guiding Teacher Forcing with Seer Forcing for Neural Machine Translation

Yang Feng, Chenze Shao, Shuhao Gu, Zhengxin Yang, Dengji Guo

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2106.06751.json · badge: /api/ran/2106.06751.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
ictnlp/SeerForcingNMT canonical (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
FunctionStatusWhere it lives
distributed_init Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ictnlp/SeerForcingNMT/fairseq/distributed_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from dashenzi721/csp, is pointer only (licence: NONE) · get_code("07969f7041022050")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, ictnlp/SeerForcingNMT, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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_symbols_to_strip_from_output Ran
ran; our contract draft was wrong, not the code
ictnlp/SeerForcingNMT/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from urvashik/knnmt, is pointer only (licence: NONE) · get_code("88ce019380f10478")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, ictnlp/SeerForcingNMT, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

is_master Ran
ran, violated the contract we drafted
ictnlp/SeerForcingNMT/fairseq/distributed_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from agi-content-generation/EKD, is pointer only (licence: NOASSERTION) · get_code("90b79fe15491de83")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, ictnlp/SeerForcingNMT, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

safe_readline Ran
ran; our contract draft was wrong, not the code
ictnlp/SeerForcingNMT/fairseq/binarizer.py
pointer only (licence: MIT); the stored copy get_code serves, from agi-content-generation/EKD, is pointer only (licence: NOASSERTION) · get_code("82bdf940665aeeb4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, ictnlp/SeerForcingNMT, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

all_reduce Not yet run
unverified (harvested, no recorded run)
ictnlp/SeerForcingNMT/fairseq/distributed_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from agi-content-generation/EKD, is pointer only (licence: NOASSERTION) · get_code("199e96db5edd0edd")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, ictnlp/SeerForcingNMT, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 4 the same month, 5 later) and 0 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
safe_readline 66 other papers
23 dated earlier, 3 the same month, 38 later, 2 same year, order not determinable
1610.02424 (2016-10)
Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models
1802.06901 (2018-02)
Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinement
1904.01038 (2019-04)
FAIRSEQ: A Fast, Extensible Toolkit for Sequence Modeling
and 63 more not named here
is_master 18 other papers
8 dated earlier, 2 the same month, 7 later, 1 same year, order not determinable
1610.02424 (2016-10)
Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models
1902.01388 (2019-02)
Re-examination of the Role of Latent Variables in Sequence Modeling
2004.14524 (2020-04)
Simulated Multiple Reference Training Improves Low-Resource Machine Translation
and 15 more not named here
all_reduce 16 other papers
3 dated earlier, 2 the same month, 10 later, 1 same year, order not determinable
1610.02424 (2016-10)
Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models
2021.findings-emnlp.366 (2021 (year only))
Rethinking Zero-shot Neural Machine Translation: From a Perspective of Latent Variables
2104.08771 (2021-04)
Cross-Attention is All You Need: Adapting Pretrained Transformers for Machine Translation
and 13 more not named here
get_symbols_to_strip_from_output 13 other papers
3 dated earlier, 10 later
2010.00710 (2020-10)
Nearest Neighbor Machine Translation
2105.05498 (2021-05)
Improving Lexically Constrained Neural Machine Translation with Source-Conditioned Masked Span Prediction
2105.13022 (2021-05)
Adaptive Nearest Neighbor Machine Translation
and 10 more not named here
distributed_init 7 other papers
2 dated earlier, 2 the same month, 3 later
1610.02424 (2016-10)
Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models
2105.12967 (2021-05)
Selective Knowledge Distillation for Neural Machine Translation
2106.01540 (2021-06)
Luna: Linear Unified Nested Attention
and 4 more not named here

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

Although teacher forcing has become the main training paradigm for neural machine translation, it usually makes predictions only conditioned on past information, and hence lacks global planning for the future. To address this problem, we introduce another decoder, called seer decoder, into the encoder-decoder framework during training, which involves future information in target predictions. Meanwhile, we force the conventional decoder to simulate the behaviors of the seer decoder via knowledge distillation. In this way, at test the conventional decoder can perform like the seer decoder without the attendance of it. Experiment results on the Chinese-English, English-German and English-Romanian translation tasks show our method can outperform competitive baselines significantly and achieves greater improvements on the bigger data sets. Besides, the experiments also prove knowledge distillation the best way to transfer knowledge from the seer decoder to the conventional decoder compared to adversarial learning and L2 regularization.

For agents

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

get_harvested_code_for_paper("2106.06751")
get_code_for_paper("2106.06751")
have("2106.06751")

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

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

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

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

Connect an agent — have() is free.