SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.05329 · 2021

FaceFormer: Speech-Driven 3D Facial Animation with Transformers

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2112.05329.json · badge: /api/ran/2112.05329.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
EvelynFan/FaceFormer canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
enc_dec_mask Ran
ran, violated the contract we drafted
EvelynFan/FaceFormer/faceformer.py
code served (permissive licence) · get_code("d7523a5532d72598")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (3, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "device": "cpu",
    "dataset": "BIWI",
    "T": 3,
    "S": 6
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (3, 6) — shape (3, 6) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init_biased_mask Ran
ran, honoured the contract we drafted
EvelynFan/FaceFormer/faceformer.py
pointer only (licence: MIT); the stored copy get_code serves, from psyai-net/SelfTalk_release, is pointer only (licence: NOASSERTION) · get_code("f7b0318637b0548a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from psyai-net/SelfTalk_release, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

linear_interpolation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EvelynFan/FaceFormer/wav2vec.py
pointer only (licence: MIT); the stored copy get_code serves, from psyai-net/EmoTalk_release, is pointer only (licence: NOASSERTION) · get_code("e45a37313dcbbaac")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from psyai-net/EmoTalk_release, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

load_data Ran
ran; our contract draft was wrong, not the code
EvelynFan/FaceFormer/vocaset/process_voca_data.py
code served (permissive licence) · get_code("4661f90ac3060cd4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pickle
import numpy as np
import tempfile
import os

# Create temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a temporary .npy file for face_vert_mmap
verts_path = os.path.join(temp_dir, "verts.npy")
face_verts_data = np.random.randn(10, 68, 3).astype(np.float32)
np.save(verts_path, face_verts_data)

# Create a temporary pickle file for raw_audio
raw_audio_path = os.path.join(temp_dir, "raw_audio.pkl")
raw_audio_data = np.random.randn(16000).astype(np.float32)
with open(raw_audio_path, 'wb') as f:
    pickle.dump(raw_audio_data, f)

# Create a temporary pickle file for data2array_verts
data2array_verts_path = os.path.join(temp_dir, "data2array_verts.pkl")
data2array_verts_data = {0: np.array([0, 1, 2]), 1: np.array([3, 4, 5])}
with open(data2array_verts_path, 'wb') as f:
    pickle.dump(data2array_verts_data, f)

# Create args object with required attributes
class Args:
    def __init__(self, verts_path, raw_audio_path, data2array_verts_path):
        self.verts_path = verts_path
        self.raw_audio_path = raw_audio_path
        self.data2array_verts_path = data2array_verts_path

ARGS = {
    'args': Args(verts_path, raw_audio_path, data2array_verts_path)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 1 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
init_biased_mask 4 other papers
4 later
2303.11089 (2023-03)
EmoTalk: Speech-Driven Emotional Disentanglement for 3D Face Animation
2306.10799 (2023-06)
SelfTalk: A Self-Supervised Commutative Training Diagram to Comprehend 3D Talking Faces
2403.17694 (2024-03)
AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animation
and 1 more not named here
enc_dec_mask 2 other papers
2 later
2301.02379 (2023-01)
CodeTalker: Speech-Driven 3D Facial Animation with Discrete Motion Prior
2507.12001 (2025-07)
AU-Blendshape for Fine-grained Stylized 3D Facial Expression Manipulation
linear_interpolation 2 other papers
2 later
2303.11089 (2023-03)
EmoTalk: Speech-Driven Emotional Disentanglement for 3D Face Animation
2406.09326 (2024-06)
PianoMotion10M: Dataset and Benchmark for Hand Motion Generation in Piano Performance

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-23.

Repositories linked to this paper

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

Abstract

Speech-driven 3D facial animation is challenging due to the complex geometry of human faces and the limited availability of 3D audio-visual data. Prior works typically focus on learning phoneme-level features of short audio windows with limited context, occasionally resulting in inaccurate lip movements. To tackle this limitation, we propose a Transformer-based autoregressive model, FaceFormer, which encodes the long-term audio context and autoregressively predicts a sequence of animated 3D face meshes. To cope with the data scarcity issue, we integrate the self-supervised pre-trained speech representations. Also, we devise two biased attention mechanisms well suited to this specific task, including the biased cross-modal multi-head (MH) attention and the biased causal MH self-attention with a periodic positional encoding strategy. The former effectively aligns the audio-motion modalities, whereas the latter offers abilities to generalize to longer audio sequences. Extensive experiments and a perceptual user study show that our approach outperforms the existing state-of-the-arts. The code will be made available.

For agents

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

get_harvested_code_for_paper("2112.05329")
get_code_for_paper("2112.05329")
have("2112.05329")

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

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

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

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

Connect an agent — have() is free.