SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.06679 · 2019

Towards Near-imperceptible Steganographic Text

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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 7 have no contract verdict; 1 failure of our instrument; 1 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/1907.06679.json · badge: /api/ran/1907.06679.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
falcondai/lm-steganography canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
bitblock_to_tokens Ran
ran on a synthesized input
falcondai/lm-steganography/bucket.py
code served (permissive licence) · get_code("fe878fbff5cf0d22")
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 torch

# Construct a small vocabulary
vocab = ['token_a', 'token_b', 'token_c', 'token_d', 'token_e', 'token_f', 'token_g', 'token_h']

# N_blocks_length determines number of bit blocks (2^N_blocks_length)
# Must be < 8
# With N_blocks_length=3, we get 2^3=8 blocks
# vocab has 8 tokens, so batch_size = 8/8 = 1 token per block
N_blocks_length = 3

ARGS = {
    'vocab': vocab,
    'N_blocks_length': N_blocks_length,
}
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 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
build_min_heap Ran
ran on a synthesized input
falcondai/lm-steganography/huffman.py
code served (permissive licence) · get_code("4930777f0aa3efd2")
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 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 heapq
import numpy as np

torch = None  # Not needed for this function

# Analyze the function:
# - freqs: used with len() and indexing [ind], so needs to be a sequence
# - inds: optional parameter, defaults to range(len(freqs))
# - The function creates tuples of (freqs[ind], i, ind) for each index
# - It calls heapq.heapify() on the list

# Create valid arguments
freqs = [5, 2, 8, 1, 3]  # List of frequencies for different tokens

# Option 1: Test with default inds (None)
ARGS = {
    "freqs": freqs,
    "inds": None
}

# Alternative test: explicitly provide inds
# ARGS = {
#     "freqs": freqs,
#     "inds": [0, 2, 4]  # Select specific indices
# }
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 2, 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
get_encoder_custom Ran
ran on a synthesized input
falcondai/lm-steganography/encoder.py
code served (permissive licence) · get_code("0865b8d103fa31fc")
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 Encoder. 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 os
import json
import tempfile
import shutil

# Create a temporary directory structure for the test
temp_dir = tempfile.mkdtemp()
models_dir = os.path.join(temp_dir, 'models', 'test_model')
os.makedirs(models_dir, exist_ok=True)

# Create a minimal encoder.json file
encoder_dict = {
    'hello': 0,
    'world': 1,
    ' ': 2,
    'h': 3,
    'e': 4,
    'l': 5,
    'o': 6,
    'w': 7,
    'r': 8,
    'd': 9,
}
encoder_path = os.path.join(models_dir, 'encoder.json')
with open(encoder_path, 'w') as f:
    json.dump(encoder_dict, f)

# Create a minimal vocab.bpe file
# Format: header line, then merge pairs, then empty line
vocab_bpe_content = "#version: 0.2\nhello world\nhe ll\nwor ld\n"
vocab_bpe_path = os.path.join(models_dir, 'vocab.bpe')
with open(vocab_bpe_path, 'w', encoding='utf-8') as f:
    f.write(vocab_bpe_content)

ARGS = {
    'base_path': temp_dir,
    'model_name': 'test_model',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
regex — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Encoder — a Encoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Encoder 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
get_pairs Ran
ran; our contract draft was wrong, not the code
falcondai/lm-steganography/encoder.py
code served (permissive licence) · get_code("4f76173dfe4b0c11")
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 set. 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

# The function get_pairs takes a word parameter
# Looking at the function body:
# - word is indexed with [0] to get the first element
# - word is iterated over with word[1:] 
# - Elements are added to a set as tuples (prev_char, char)
# So word should be a sequence/tuple of symbols (strings or any hashable objects)

# Create a simple word as a tuple of symbols
word = ("h", "e", "l", "l", "o")

ARGS = {
    "word": word
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
huffman_tree Ran
ran on a synthesized input
falcondai/lm-steganography/huffman.py
code served (permissive licence) · get_code("d652fd8743401817")
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 2, 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 heapq

# The function expects a min-heap of tuples
# Each tuple is: (frequency, unique_index, indicator)
# For leaf nodes, the indicator is just an index
# The function builds a tree by combining nodes

heap = []
heapq.heappush(heap, (5, 0, 0))      # (freq=5, unique_id=0, leaf_indicator=0)
heapq.heappush(heap, (9, 1, 1))      # (freq=9, unique_id=1, leaf_indicator=1)
heapq.heappush(heap, (12, 2, 2))     # (freq=12, unique_id=2, leaf_indicator=2)
heapq.heappush(heap, (13, 3, 3))     # (freq=13, unique_id=3, leaf_indicator=3)

ARGS = {
    "heap": heap
}
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 2, dtype family int — 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
softmax Ran
ran on a synthesized input
falcondai/lm-steganography/bucket.py
code served (permissive licence) · get_code("5bed7d25d3a24a2f")
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 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 numpy as np

# The function softmax takes a single parameter 'x' which is used as:
# - x.max() - needs to be a numpy array or compatible
# - np.exp(x - b) - arithmetic operations on numpy array
# - y.sum() - sum method on numpy array
# So x should be a numpy array

x = np.array([1.0, 2.5, 0.5, 3.2])

ARGS = {
    "x": x
}
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 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
total_variation Ran
ran on a synthesized input
falcondai/lm-steganography/bucket.py
code served (permissive licence) · get_code("5c50495d583afb43")
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 float64, ndim 0, 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

# total_variation expects two probability distributions (p and q)
# over a finite set, represented as 1D numpy arrays that sum to 1
p = np.array([0.2, 0.3, 0.5])
q = np.array([0.1, 0.4, 0.5])

ARGS = {
    "p": p,
    "q": q,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
tv_huffman Ran
ran on a synthesized input
falcondai/lm-steganography/huffman.py
code served (permissive licence) · get_code("22a1c668367ce8cf")
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 numpy as np

def build_code_tree():
    """Builds a simple binary tree representing Huffman codes.
    
    The tree structure uses tuples for internal nodes and integers for leaf nodes (token indices).
    This tree will have tokens at indices 0, 1, 2 at various depths.
    
    Structure:
           ((0, 1), 2)
    Where 0 and 1 are at depth 2, and 2 is at depth 1.
    """
    return ((0, 1), 2)

def build_distribution():
    """Builds a probability distribution over 3 tokens.
    
    The distribution should sum to 1 and be valid for log operations.
    """
    p = np.array([0.5, 0.3, 0.2], dtype=np.float64)
    return p

ARGS = {
    "code_tree": build_code_tree(),
    "p": build_distribution(),
}
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, 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
get_encoder Not yet run
unverified (harvested, no recorded run)
falcondai/lm-steganography/encoder.py
code served (permissive licence) · get_code("aefc93690db453b0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 8 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
get_pairs 258 other papers
5 dated earlier, 1 the same month, 251 later, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 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-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

We show that the imperceptibility of several existing linguistic steganographic systems (Fang et al., 2017; Yang et al., 2018) relies on implicit assumptions on statistical behaviors of fluent text. We formally analyze them and empirically evaluate these assumptions. Furthermore, based on these observations, we propose an encoding algorithm called patient-Huffman with improved near-imperceptible guarantees.

For agents

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

get_harvested_code_for_paper("1907.06679")
get_code_for_paper("1907.06679")
have("1907.06679")

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

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

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

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

Connect an agent — have() is free.