SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1710.10467 · 2017

Generalized End-to-End Loss for Speaker Verification

arXiv · PDF · Open in the Atlas

Code that ran

19 of 27 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, 2 violated it and 7 have no contract verdict; 8 failures of our instrument; 8 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/1710.10467.json · badge: /api/ran/1710.10467.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
JeffT13/rd-diarization community (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
zhangmin4215/PyTorch_Speaker_Verification community (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
HarryVolek/PyTorch_Speaker_Verification community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
luomingshuang/GE2E-SV-TI-Timit-LMS reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
hanqingguo/GE2E community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
Aurora11111/speaker-recognition-pytorch community (classifier label)
classifier basis not recorded on the link
1 ran · 4 no recorded run
Janghyun1230/Speaker_Verification community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
gkv856/speaker_embedding_GE2E_loss reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
luomingshuang/GE2E-SV-TI-Chinese-LMS community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Diarize Ran
ran; our contract draft was wrong, not the code
JeffT13/rd-diarization/RDSV/rdsv.py
code served (permissive licence) · get_code("31b96b748f3b2650")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
import torch

torch.manual_seed(0)

# Create a small stand-in class for the RAL object
class RAL_Container:
    def __init__(self):
        self.uid = "judge_default"
        self.RAL = {
            "Speaker_A": [np.random.randn(4).astype(np.float32) for _ in range(2)],
            "Speaker_B": [np.random.randn(4).astype(np.float32) for _ in range(2)]
        }

# Create instances
ral = RAL_Container()

# Create embeddings: shape (num_time_steps, embedding_dim)
# Using 5 time steps and embedding dimension 4
cont_embeds = np.random.randn(5, 4).astype(np.float32)

# Create embed_times: list of [start_ms, end_ms] tuples for each embedding
# 5 time steps, each with start and end times in milliseconds
embed_times = [
    [0, 100],
    [100, 200],
    [200, 300],
    [300, 400],
    [400, 500]
]

ARGS = {
    "ral": ral,
    "cont_embeds": cont_embeds,
    "embed_times": embed_times,
    "sim_thresh": 0.1,
    "score_thresh": 0.9,
    "min_seg": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
align_embeddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
luomingshuang/GE2E-SV-TI-Timit-LMS/dvector_create.py
code served (permissive licence) · get_code("d628e47b97ec4d2d")
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) and returned ndarray, ndim 2, dtype family float, shape (4, 256) 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 numpy as np

# The function takes embeddings as input
# It expects embeddings to be indexable and support slicing
# It also expects embeddings to work with np.average along axis 0
# The function iterates through embeddings and accesses them by index

# Create a small set of embeddings
# Each embedding should have dimension 256 (as seen in avg_embeddings initialization)
embeddings = np.random.randn(10, 256).astype(np.float32)

ARGS = {
    "embeddings": embeddings
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 256) — shape (4, 256) 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
concat_segs Ran
ran, honoured the contract we drafted
luomingshuang/GE2E-SV-TI-Timit-LMS/dvector_create.py
code served (permissive licence) · get_code("fa3887e58fe3d162")
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) and returned list. 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 numpy as np

# Create sample times: list of tuples where each tuple is (start, end)
# times[i][1] should equal times[i+1][0] for some consecutive pairs to test concatenation
times = [
    (0, 5),      # segment 0: times[0] = (0, 5)
    (5, 10),     # segment 1: times[1] = (5, 10) - connects to previous (5 == 5)
    (10, 15),    # segment 2: times[2] = (10, 15) - connects to previous (10 == 10)
    (20, 25),    # segment 3: times[3] = (20, 25) - does NOT connect (15 != 20)
]

# Create sample segs: list of numpy arrays
# Each array represents a segment of data
segs = [
    np.array([[1, 2, 3], [4, 5, 6]]),           # shape (2, 3)
    np.array([[7, 8, 9], [10, 11, 12]]),        # shape (2, 3)
    np.array([[13, 14, 15], [16, 17, 18]]),     # shape (2, 3)
    np.array([[19, 20, 21], [22, 23, 24]]),     # shape (2, 3)
]

ARGS = {
    "times": times,
    "segs": segs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
getAudio Ran
ran; our contract draft was wrong, not the code
JeffT13/rd-diarization/SCOTUS/mp3_curl_commands.py
code served (permissive licence) · get_code("527bd051353c260e")
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 list. 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 torch

# Construct valid arguments for getAudio function
# The function expects a list of transcript dicts, where each dict has a 'media_file' key
# containing a list of media dicts, each with an 'href' key

ARGS = {
    'transcripts': [
        {
            'media_file': [
                {'href': 'audio1.mp3'},
                {'href': 'audio2.wav'}
            ]
        },
        {
            'media_file': [
                {'href': 'audio3.mp3'}
            ]
        }
    ]
}
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 list — a list 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
getMeta Ran
ran; our contract draft was wrong, not the code
JeffT13/rd-diarization/SCOTUS/make_transcripts.py
code served (permissive licence) · get_code("a3894bb8fc3101e3")
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 re

# Build a minimal data structure that matches what getMeta expects
# The function accesses data[docket] which should return a tuple of:
# (transcript, speakers, speaker_roles, times)

transcript = "This is a test transcript with some spoken content."

speakers = ["Justice Smith", "Mr. Attorney-at-Law", "Ms. Counsel"]

# speaker_roles is a list where each element is either empty or a list with at least one element
speaker_roles = [
    ["Judge"],
    ["Petitioner"],
    []  # This one is empty, will be converted to 'Other'
]

# times is a list of lists of lists (nested structure that gets flattened)
# The function flattens each element and removes the last element of the last list
times = [
    [[0, 5], [10, 15]],
    [[20, 25], [30, 35]],
    [[40, 45], [50, 55]]
]

# Create the data dictionary
data = {
    "docket_123": (transcript, speakers, speaker_roles, times)
}

docket = "docket_123"

ARGS = {
    "docket": docket,
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_centroid Ran
ran on a synthesized input
HarryVolek/PyTorch_Speaker_Verification/utils.py
code served (permissive licence) · get_code("0709e60b0d9e8ae5")
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 1, dtype family float, shape (4,) 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
import torch.nn as nn

torch.manual_seed(0)

# The function expects:
# - embeddings: a list-like object where embeddings[speaker_num] is a list/sequence of utterances
# - speaker_num: an integer index
# - utterance_num: an integer index
# 
# The function iterates through embeddings[speaker_num], skips the utterance at utterance_num,
# and computes the mean of the remaining utterances.
# Each utterance should be a tensor that supports addition and division.

# Create embeddings: list of speakers, each speaker has multiple utterances (tensors)
# Speaker 0: 3 utterances of dimension 4
# Speaker 1: 2 utterances of dimension 4
embeddings = [
    [torch.randn(4), torch.randn(4), torch.randn(4)],  # speaker 0: 3 utterances
    [torch.randn(4), torch.randn(4)]                    # speaker 1: 2 utterances
]

speaker_num = 0
utterance_num = 1

ARGS = {
    "embeddings": embeddings,
    "speaker_num": speaker_num,
    "utterance_num": utterance_num
}
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 1, dtype family float, shape (4,) — shape (4,) 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
get_centroids Ran
ran on a synthesized input
HarryVolek/PyTorch_Speaker_Verification/utils.py
code served (permissive licence) · get_code("5c03130d658096c8")
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 (2, 3) 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)

# The function takes embeddings and computes mean across dim=1
# embeddings needs to be a tensor with at least 2 dimensions
# dim=1 reduction suggests shape like (batch_size, sequence_length, embedding_dim)
# or similar where we average over dimension 1

embeddings = torch.randn(2, 4, 3)  # (batch=2, seq_len=4, embed_dim=3)

ARGS = {
    "embeddings": embeddings
}
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 (2, 3) — shape (2, 3) 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
get_centroids Ran
ran, honoured the contract we drafted
hanqingguo/GE2E/utils.py
code served (permissive licence) · get_code("b21b997a285edb93")
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 (2, 4) 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)

# The function expects embeddings to be iterable of speakers,
# where each speaker contains an iterable of utterance embeddings (tensors).
# It iterates through speakers, then through utterances per speaker,
# sums them, divides by count, and stacks the results.

# Create a list of speakers, each containing utterances (tensors)
speaker_1_utterances = [
    torch.randn(4),  # utterance 1 for speaker 1
    torch.randn(4),  # utterance 2 for speaker 1
    torch.randn(4),  # utterance 3 for speaker 1
]

speaker_2_utterances = [
    torch.randn(4),  # utterance 1 for speaker 2
    torch.randn(4),  # utterance 2 for speaker 2
]

embeddings = [speaker_1_utterances, speaker_2_utterances]

ARGS = {
    "embeddings": embeddings
}
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 (2, 4) — shape (2, 4) 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
get_centroids_prior Ran
ran on a synthesized input
HarryVolek/PyTorch_Speaker_Verification/utils.py
code served (permissive licence) · get_code("06be3bf4f63f2b74")
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 (2, 4) 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)

# The function expects embeddings to be an iterable of speakers,
# where each speaker is an iterable of utterances (tensors).
# Each utterance should be a 1D tensor that can be summed and divided.

# Create a list of speakers, where each speaker has multiple utterances
speaker_1_utterances = [
    torch.randn(4),  # utterance 1 for speaker 1
    torch.randn(4),  # utterance 2 for speaker 1
    torch.randn(4),  # utterance 3 for speaker 1
]

speaker_2_utterances = [
    torch.randn(4),  # utterance 1 for speaker 2
    torch.randn(4),  # utterance 2 for speaker 2
]

embeddings = [speaker_1_utterances, speaker_2_utterances]

ARGS = {
    "embeddings": embeddings
}
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 (2, 4) — shape (2, 4) 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
get_cossim Ran
ran; our contract draft was wrong, not the code
hanqingguo/GE2E/utils.py
code served (permissive licence) · get_code("bd0b923fc30cfbab")
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 3, dtype family float, shape (2, 3, 2) 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create embeddings tensor with shape (num_speakers, num_utterances, embedding_dim)
# Using distinct sizes: 2 speakers, 3 utterances per speaker, 4 embedding dimension
embeddings = torch.randn(2, 3, 4)

# Create centroids tensor with shape (num_speakers, embedding_dim)
# One centroid per speaker
centroids = torch.randn(2, 4)

ARGS = {
    "embeddings": embeddings,
    "centroids": centroids,
}
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 3, dtype family float, shape (2, 3, 2) — shape (2, 3, 2) 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
get_pre_trained_embedding_model Ran
ran; our contract draft was wrong, not the code
gkv856/speaker_embedding_GE2E_loss/embedding_model_GE2E/s2_model_GE2E_loss_speach_embed.py
pointer only (licence: NONE) · get_code("853ff1d60d8fe25d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gkv856/speaker_embedding_GE2E_loss 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.

logit_thresh Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
JeffT13/rd-diarization/RDSV/run_LR.py
code served (permissive licence) · get_code("f148b7b019bd0110")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# The function logit_thresh expects:
# - log: an iterable of items where each item supports max() and argmax()
# - l: a threshold value (scalar)

# log should be a list of array-like objects (e.g., numpy arrays or lists)
# Each item represents logits/scores that will be compared against threshold l

log_data = [
    np.array([0.1, 0.5, 0.3, 0.2]),
    np.array([0.9, 0.8, 0.7, 0.6]),
    np.array([0.2, 0.1, 0.15, 0.25]),
]

threshold = 0.5

ARGS = {
    "log": log_data,
    "l": threshold,
}
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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
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
merge_dict Ran
ran on a synthesized input
Aurora11111/speaker-recognition-pytorch/hparam.py
code served (permissive licence) · get_code("0cfe2baee7e49f75")
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 dict. 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 torch
import numpy as np

torch.manual_seed(0)

# The function merge_dict recursively merges a user dict into a default dict.
# It requires two parameters: user and default, both should be dicts.
# The function checks isinstance for dict, iterates over items, and handles nested dicts.

# Create a simple nested user dict
user_dict = {
    "model": {
        "layers": 2,
    },
    "learning_rate": 0.01,
}

# Create a simple nested default dict with some overlapping and new keys
default_dict = {
    "model": {
        "layers": 3,
        "hidden_size": 128,
    },
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
}

ARGS = {
    "user": user_dict,
    "default": default_dict,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
read_wave Ran
ran; our contract draft was wrong, not the code
luomingshuang/GE2E-SV-TI-Chinese-LMS/vad.py
code served (permissive licence) · get_code("aa4702b2823edf0c")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 contextlib
import wave
import tempfile
import os
import struct

# Create a temporary .wav file with valid parameters
temp_dir = tempfile.gettempdir()
temp_wav_path = os.path.join(temp_dir, "test_audio.wav")

# Create a minimal valid .wav file
# Parameters: mono (1 channel), 16-bit samples (2 bytes), 16000 Hz sample rate
num_channels = 1
sample_width = 2
sample_rate = 16000
num_frames = 100

# Generate simple PCM data (100 frames of silence)
pcm_data = struct.pack('<' + 'h' * num_frames, *([0] * num_frames))

# Write the .wav file
with wave.open(temp_wav_path, 'wb') as wf:
    wf.setnchannels(num_channels)
    wf.setsampwidth(sample_width)
    wf.setframerate(sample_rate)
    wf.writeframes(pcm_data)

ARGS = {
    'path': temp_wav_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
regularization_loss Ran
ran on a synthesized input
zhangmin4215/PyTorch_Speaker_Verification/uis-rnn/uisrnn/loss_func.py
code served (permissive licence) · get_code("23bad4461ca9d747")
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 0, dtype family float, shape () 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
import torch.nn as nn

torch.manual_seed(0)

# Create a small neural network with parameters
model = nn.Sequential(
    nn.Linear(4, 3),
    nn.ReLU(),
    nn.Linear(3, 2)
)

# Get all parameters from the model
params = list(model.parameters())

# Weight for the regularization term
weight = 0.01

ARGS = {
    "params": params,
    "weight": weight
}
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 0, dtype family float, shape () — shape () 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
sigma2_prior_loss Ran
ran on a synthesized input
zhangmin4215/PyTorch_Speaker_Verification/uis-rnn/uisrnn/loss_func.py
code served (permissive licence) · get_code("cd29a997e2d51ed2")
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 0, dtype family float, shape () 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)

# Construct arguments for sigma2_prior_loss
num_non_zero = 10
sigma_alpha = 2.0
sigma_beta = 3.0
sigma2 = torch.tensor([1.5, 2.0, 0.8, 1.2])

ARGS = {
    "num_non_zero": num_non_zero,
    "sigma_alpha": sigma_alpha,
    "sigma_beta": sigma_beta,
    "sigma2": sigma2,
}
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 0, dtype family float, shape () — shape () 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
str2bool Ran
ran, violated the contract we drafted
Janghyun1230/Speaker_Verification/configuration.py
code served (permissive licence) · get_code("f017532fc389cbfe")
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) and returned bool, ndim 0, dtype family float, shape () 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 argparse

def str2bool(v):
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Setup code to construct valid arguments
ARGS = {
    'v': 'true'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
str2bool Ran
ran, violated the contract we drafted
zhangmin4215/PyTorch_Speaker_Verification/uis-rnn/uisrnn/arguments.py
code served (permissive licence) · get_code("c6ef3c918426ce63")
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 bool, ndim 0, dtype family float, shape () 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 argparse

def str2bool(value):
    """A function to convert string to bool value."""
    if value.lower() in {'yes', 'true', 't', 'y', '1'}:
        return True
    if value.lower() in {'no', 'false', 'f', 'n', '0'}:
        return False
    raise argparse.ArgumentTypeError('Boolean value expected.')

ARGS = {
    'value': 'true'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
weighted_mse_loss Ran
ran on a synthesized input
zhangmin4215/PyTorch_Speaker_Verification/uis-rnn/uisrnn/loss_func.py
code served (permissive licence) · get_code("720fd03354ee7041")
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 0, dtype family float, shape () 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)

# Create small tensors for input and target
# observation_dim = 4 (last dimension)
# batch size = 2
input_tensor = torch.randn(2, 4)
target_tensor = torch.randn(2, 4)

# weight is used as a diagonal weight matrix with nelement() called on it
# It should have shape (4,) to match observation_dim
weight = torch.ones(4)

ARGS = {
    "input_tensor": input_tensor,
    "target_tensor": target_tensor,
    "weight": weight,
}
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 0, dtype family float, shape () — shape () 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
batch_cosine_similarity Not yet run
unverified (harvested, no recorded run)
Aurora11111/speaker-recognition-pytorch/triplet_loss.py
code served (permissive licence) · get_code("89800dcb89ac9137")
How it ran

no invocation recorded.

deep_speaker_loss Not yet run
unverified (harvested, no recorded run)
Aurora11111/speaker-recognition-pytorch/triplet_loss.py
code served (permissive licence) · get_code("30c3a463de241489")
How it ran

no invocation recorded.

get_case Not yet run
unverified (harvested, no recorded run)
JeffT13/rd-diarization/SCOTUS/mp3_curl_commands.py
code served (permissive licence) · get_code("bdd6ae5c8ffd396e")
How it ran

no invocation recorded.

get_http_json Not yet run
unverified (harvested, no recorded run)
JeffT13/rd-diarization/SCOTUS/mp3_curl_commands.py
code served (permissive licence) · get_code("61045b44f5159adc")
How it ran

no invocation recorded.

getdata Not yet run
unverified (harvested, no recorded run)
Aurora11111/speaker-recognition-pytorch/data.py
code served (permissive licence) · get_code("b19223789c3048c4")
How it ran

no invocation recorded.

load_hparam Not yet run
unverified (harvested, no recorded run)
Aurora11111/speaker-recognition-pytorch/hparam.py
code served (permissive licence) · get_code("946edc002ef7c1b6")
How it ran

no invocation recorded.

normalize Not yet run
unverified (harvested, no recorded run)
Janghyun1230/Speaker_Verification/utils.py
code served (permissive licence) · get_code("fb1e5bf517bebed1")
How it ran

no invocation recorded.

read_wave Not yet run
unverified (harvested, no recorded run)
zhangmin4215/PyTorch_Speaker_Verification/webrtcvad/example.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from wiseman/py-webrtcvad, is pointer only (licence: NOASSERTION) · get_code("2c4ba80fd768dc88")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from wiseman/py-webrtcvad, 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. No invocation recorded.

Also present in other papers' code

Of 27 samples lifted from this paper's linked repositories, 27 carry a function identity and 0 do not. Of the 27 distinct functions with an identity, 10 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 10 later) and 17 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
str2bool 82 other papers
2 dated earlier, 80 later
1510.03055 (2015-10)
A Diversity-Promoting Objective Function for Neural Conversation Models
1703.06490 (2017-03)
Generating Multi-label Discrete Patient Records using Generative Adversarial Networks
1802.05983 (2018-02)
Disentangling by Factorising
and 79 more not named here
merge_dict 3 other papers
1 dated earlier, 2 later
1703.10135 (2017-03)
Tacotron: Towards End-to-End Speech Synthesis
2010.11607 (2020-10)
Backdoor Attack against Speaker Verification
2111.06063 (2021-11)
On the Equivalence between Neural Network and Support Vector Machine
get_centroids 2 other papers
2 later
2010.11607 (2020-10)
Backdoor Attack against Speaker Verification
2109.00181 (2021-09)
CTAL: Pre-training Cross-modal Transformer for Audio-and-Language Representations
load_hparam 2 other papers
1 dated earlier, 1 later
1703.10135 (2017-03)
Tacotron: Towards End-to-End Speech Synthesis
2010.11607 (2020-10)
Backdoor Attack against Speaker Verification
read_wave 2 other papers
2 later
2110.07607 (2021-10)
HumBugDB: A Large-scale Acoustic Mosquito Dataset
2507.00472 (2025-07)
ARIG: Autoregressive Interactive Head Generation for Real-time Conversations
get_centroid 1 other paper
1 later
2010.11607 (2020-10)
Backdoor Attack against Speaker Verification
get_centroids_prior 1 other paper
1 later
2010.11607 (2020-10)
Backdoor Attack against Speaker Verification
regularization_loss 1 other paper
1 later
1902.10107 (2019-02)
Utterance-level Aggregation For Speaker Recognition In The Wild
sigma2_prior_loss 1 other paper
1 later
1902.10107 (2019-02)
Utterance-level Aggregation For Speaker Recognition In The Wild
weighted_mse_loss 1 other paper
1 later
1902.10107 (2019-02)
Utterance-level Aggregation For Speaker Recognition In The Wild

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

In this paper, we propose a new loss function called generalized end-to-end (GE2E) loss, which makes the training of speaker verification models more efficient than our previous tuple-based end-to-end (TE2E) loss function. Unlike TE2E, the GE2E loss function updates the network in a way that emphasizes examples that are difficult to verify at each step of the training process. Additionally, the GE2E loss does not require an initial stage of example selection. With these properties, our model with the new loss function decreases speaker verification EER by more than 10%, while reducing the training time by 60% at the same time. We also introduce the MultiReader technique, which allows us to do domain adaptation - training a more accurate model that supports multiple keywords (i.e. "OK Google" and "Hey Google") as well as multiple dialects.

For agents

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

get_harvested_code_for_paper("1710.10467")
get_code_for_paper("1710.10467")
have("1710.10467")

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

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

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

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

Connect an agent — have() is free.