SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1809.04157 · 2018

Heated-Up Softmax Embedding

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 4 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/1809.04157.json · badge: /api/ran/1809.04157.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
ColumbiaDVMM/Heated_Up_Softmax_Embedding canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
crc32c Ran
ran on a synthesized input
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/crc32c.py
code served (permissive licence) · get_code("6a10e91275b9fa20")
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 int, ndim 0, dtype family int, 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 array

ARGS = {
    "data": b"hello world"
}
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 int, ndim 0, dtype family int, 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
crc_finalize Ran
ran on a synthesized input
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/crc32c.py
code served (permissive licence) · get_code("aefa7f66567ae42a")
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 int, ndim 0, dtype family int, 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

_MASK = 4294967295

def crc_finalize(crc):
    """Finalize CRC-32C checksum.

    This function should be called as last step of crc calculation.

    Args:
      crc: 32-bit checksum as long.

    Returns:
      finalized 32-bit checksum as long
    """
    return crc & _MASK


ARGS = {
    "crc": 12345678
}
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 int, ndim 0, dtype family int, 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
crc_update Ran
ran on a synthesized input
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/crc32c.py
code served (permissive licence) · get_code("bd3941c9231fdeb6")
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 int, ndim 0, dtype family int, 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 array

# The function crc_update takes:
# - crc: a 32-bit checksum (long/int)
# - data: byte array, string or iterable over bytes

# Create test data
crc_value = 0  # Initial CRC value
data_bytes = array.array('B', [1, 2, 3, 4, 5])  # Byte array

ARGS = {
    'crc': crc_value,
    'data': data_bytes
}
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 int, ndim 0, dtype family int, 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
dense_to_one_hot Ran
ran on a synthesized input
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/mnist.py
code served (permissive licence) · get_code("cd2dd7d4d3a3dff6")
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 ndarray, 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 numpy

# Set random seed for reproducibility
numpy.random.seed(0)

# Create a small dense labels array with shape (num_samples,)
# Values should be valid class indices (0 to num_classes-1)
num_samples = 2
num_classes = 4
labels_dense = numpy.array([0, 3], dtype=numpy.int64)

ARGS = {
    "labels_dense": labels_dense,
    "num_classes": num_classes,
}
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 ndarray, 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
nca_loss Ran
ran on a synthesized input
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/layers.py
code served (permissive licence) · get_code("1df18732e8c6b704")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# Create small test tensors for NCA loss
batch_size = 2
num_classes = 4

# distance_matrix: shape (batch_size, num_classes)
# Contains distances from each sample to each class
distance_matrix = tf.constant([
    [0.1, 0.5, 0.8, 1.2],
    [0.3, 0.2, 0.9, 1.1]
], dtype=tf.float32)

# one_hot_label: shape (batch_size, num_classes)
# One-hot encoded labels indicating the true class for each sample
one_hot_label = tf.constant([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0]
], dtype=tf.float32)

ARGS = {
    "distance_matrix": distance_matrix,
    "one_hot_label": one_hot_label
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
trim Ran
ran on a synthesized input
ColumbiaDVMM/Heated_Up_Softmax_Embedding/dataset/bird200.py
code served (permissive licence) · get_code("56d62fbe02062398")
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 Image. 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.

from PIL import Image
import numpy as np

# Create a small test image with some content and white background
# The function expects a PIL Image object
width, height = 100, 80
# Create an image with white background
im = Image.new('RGB', (width, height), color='white')

# Add some non-white pixels to create a region that will be detected
# This simulates content that should be trimmed around
pixels = im.load()
for x in range(30, 60):
    for y in range(25, 55):
        pixels[x, y] = (0, 0, 0)  # Black pixels in the middle

ARGS = {
    'im': im
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
GeMPooling Not yet run
unverified (harvested, no recorded run)
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/nets/inception_v1.py
code served (permissive licence) · get_code("b083ebe764bd88c8")
How it ran

no invocation recorded.

extract_images Not yet run
unverified (harvested, no recorded run)
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/mnist.py
code served (permissive licence) · get_code("24b10f0c7a83f999")
How it ran

no invocation recorded.

extract_labels Not yet run
unverified (harvested, no recorded run)
ColumbiaDVMM/Heated_Up_Softmax_Embedding/tensorflow/mnist.py
code served (permissive licence) · get_code("1318c92a86283291")
How it ran

no invocation recorded.

pad Not yet run
unverified (harvested, no recorded run)
ColumbiaDVMM/Heated_Up_Softmax_Embedding/dataset/bird200.py
code served (permissive licence) · get_code("dc83b74103e1aaff")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 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
dense_to_one_hot 1 other paper
1 dated earlier
1803.01500 (2018-03)
Memorization Precedes Generation: Learning Unsupervised GANs with Memory Networks
extract_images 1 other paper
1 dated earlier
1803.01500 (2018-03)
Memorization Precedes Generation: Learning Unsupervised GANs with Memory Networks
extract_labels 1 other paper
1 dated earlier
1803.01500 (2018-03)
Memorization Precedes Generation: Learning Unsupervised GANs with Memory Networks

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

Metric learning aims at learning a distance which is consistent with the semantic meaning of the samples. The problem is generally solved by learning an embedding for each sample such that the embeddings of samples of the same category are compact while the embeddings of samples of different categories are spread-out in the feature space. We study the features extracted from the second last layer of a deep neural network based classifier trained with the cross entropy loss on top of the softmax layer. We show that training classifiers with different temperature values of softmax function leads to features with different levels of compactness. Leveraging these insights, we propose a "heating-up" strategy to train a classifier with increasing temperatures, leading the corresponding embeddings to achieve state-of-the-art performance on a variety of metric learning benchmarks.

For agents

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

get_harvested_code_for_paper("1809.04157")
get_code_for_paper("1809.04157")
have("1809.04157")

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

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

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

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

Connect an agent — have() is free.