Can Bits Seal Language?
Jia Xu
NeurIPS 2026
TL;DR. its replaces the embedding table with random bit codes and one shared network, closing the gradient-inversion channel with 99% fewer embedding parameters, from 75K-parameter classifiers to a 7B language model.
Abstract. We present Bits, an encoder that maps each input token to a random sequence of binary values. By working at the finest representational granularity and compressing the result with one small shared network, Bits reduces the input vocabulary to two symbols, 0 and 1, and removes every input parameter indexed by token identity. We evaluate it on 32 tasks in six modalities: human text, genomic and clinical data, code, system logs, EEG signals, and tabular records. It resists six gradient-inversion attacks better than six encoder baselines and four defenses, with TAG recovering up to 167× fewer tokens. Without any defense, it leaks less under TAG than a subword table protected by DP-SGD, gradient compression, InstaHide, or federated DP. It cuts embedding parameters by up to 99% at competitive accuracy and with no computational overhead, and transfers across datasets without re-initialization, since no parameter is tied to a token. Trained from scratch at the Qwen2.5-7B scale, it reaches lower held-out perplexity than an embedding table at every checkpoint of every seed, with a 277× smaller embedding. Code and checkpoints: https://github.com/bit2vec/bitsseal, pip install bitsseal.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper presents a replacement for token embedding tables with compelling memory savings and competitive performance
Please address the following prioritized questions:
-
Clarify the scope of the privacy claims and address if Bits remains robust to an adaptive attacker that optimizes candidate text through the shared encoder and matches full gradients, particularly for batch size one or small batches.
-
Explain how the expressivity theorem (it requires width scaling with vocabulary size) support the much narrower networks used in practice.
-
Justify the random binary mapping and clarify sensitivity to code length or alternative encoding schemes.
Final justification
The rebuttal addressed the main concerns, including privacy robustness, theory practice gap, encoding choices, and scalability. I maintain my recommendation.
Read meta-review
Meta-review
The paper presents a replacement for token embedding tables with compelling memory savings and competitive performance
Please address the following prioritized questions:
-
Clarify the scope of the privacy claims and address if Bits remains robust to an adaptive attacker that optimizes candidate text through the shared encoder and matches full gradients, particularly for batch size one or small batches.
-
Explain how the expressivity theorem (it requires width scaling with vocabulary size) support the much narrower networks used in practice.
-
Justify the random binary mapping and clarify sensitivity to code length or alternative encoding schemes.
Final justification
The rebuttal addressed the main concerns, including privacy robustness, theory practice gap, encoding choices, and scalability. I maintain my recommendation.
1 comment
- Rating
- 4/6
- Confidence
- 1/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces Bits, an encoding scheme. Instead of a per-token embedding table, it maps each token to a random binary string and generates embeddings through a shared small network. This addresses three problems: privacy leakage from gradient attacks, parameter count that grows linearly with vocabulary size, and poor handling of unseen tokens in cross-lingual/cross-domain transfer.
Strengths and weaknesses
The main advantage of Bits is that it removes the per‑token embedding row, so gradient updates are mixed across all tokens, which effectively defends against gradient attacks that rely on row‑wise sparsity. Parameter count is fixed and does not grow with vocabulary size, significantly reducing memory overhead. At the same time, all tokens share the same encoder, so even unseen tokens are handled naturally. On the downside, the method only closes the leakage at the embedding layer; gradients from the main body and output‑side predictions remain vulnerable and still require extra defenses like DP‑SGD. The paper does not evaluate on large‑scale LLMs, leaving scalability uncertain. Also, while theory shows a wide network can represent any embedding table exactly, it is not guaranteed that the narrow network used in practice can reach that capacity through training.
Questions
Q1. On Page 4, the bit length n is a key hyperparameter of the Bits encoder, with a default of 64. However, the paper provides no clear guideline for selecting n based on task scale or vocabulary size, nor does it systematically analyse the trade‑offs among privacy strength, classification accuracy, and memory footprint. In practice, one must tune it empirically.
Q2. On Page 4, each client is required to hold and safeguard the PRP key, yet the paper does not discuss key initialization, distribution, periodic rotation, revocation, or recovery from client‑side key compromise or hardware failure. Overall, a complete system‑level key management scheme is lacking.
Q3. On Page 6, a feed‑forward network with width W \ge V can exactly represent any subword embedding table, but all experiments use W = 256, far smaller than the vocabulary size V (typically tens of thousands). The paper attributes this gap to an empirical question of the optimization landscape, whether a narrow network can actually attain that theoretical capacity through training remains unproven.
Q4, All experiments are conducted on relatively small models. The paper openly admits that its effectiveness on large‑scale language models (LLMs) has not been evaluated, leaving scalability and practical performance in real‑world, large‑parameter, long‑sequence scenarios uncertain.
Limitations
It only blocks gradients at the embedding layer; the body and output side still require differential privacy. Large‑scale LLMs are not evaluated. Whether a narrow network can achieve the theoretical expressive capacity is unproven, and system‑level key management is lacking.
Final justification
The author has addressed all of my concerns; therefore, I am inclined to accept the manuscript.
Formatting concerns
None
3 comments
Rebuttal
Thank you for identifying Bits as addressing "three problems: privacy leakage, parameter count, and unseen tokens", and for noting that "even unseen tokens are handled naturally". That framing is exactly the paper's intent. Your four questions helped us clarify each of these problems, and we completed the corresponding experiments during the rebuttal period.
Q1: How should the code length n be chosen? (Meta Q3)
Thank you for raising this practical question. We performed a code-length sweep on CIViC (Body D, W=256; injective threshold ⌈log₂V⌉ = 13):
| Bits | Test accuracy |
|---|---|
| 8 | 0.595 ± 0.076 |
| 16 | 0.736 ± 0.035 |
| 32 | 0.815 ± 0.051 |
| 64 | 0.804 ± 0.034 |
| 128 | 0.833 ± 0.017 |
| 256 | 0.858 ± 0.007 |
| 512 | 0.869 ± 0.024 |
| 1024 | 0.862 ± 0.005 |
| 2048 | 0.876 ± 0.015 |
Performance is poor below the injective threshold because collisions dominate (for example, 95% collisions at n=8). Once collisions disappear, accuracy improves and saturates around n ≈ 256, with little benefit from larger codes. This suggests a simple guideline:
Choose n ≥ max(⌈log₂V⌉, 256).
Beyond this point, accuracy plateaus, privacy is essentially unchanged (the shared FFN removes the per-token embedding-gradient channel regardless of n), and memory grows only linearly with n. The revision will include this guideline and ablation.
Q2: Key management for the keyed variant
Thank you for this question. We clarify that all experiments in the paper use the unkeyed variant under the Kerckhoffs threat model: the attacker knows the codebook, FFN, seed, and model weights. Therefore none of our reported privacy results depend on secrecy.
The keyed variant is an optional enhancement for deployments where key management is practical. The revision will add a discussion covering:
- generation from a cryptographically secure random seed (or a 128-bit PRP key),
- client-side storage (for example KMS or HSM),
- distribution only among trusted participants,
- periodic rotation by regenerating the codebook,
- revocation, compromise, and hardware failure: all handled by re-drawing the key (no retraining), with safe fallback to the unkeyed guarantee,
- and the trust assumptions.
The key neutralizes our strongest adaptive attack at every sequence length, not only the single-token case. At batch size 1 it drives recovery to chance everywhere, including the lengths where the unkeyed variant still leaks (0.235 at length 4, 0.033 at length 16):
| Sequence length | Unkeyed | Keyed |
|---|---|---|
| 1 | 1.000 | 0.001 |
| 4 | 0.235 | 0.001 |
| 16 | 0.033 | 0.001 |
| 64 | 0.003 | 0.001 |
| 128 | 0.002 | 0.001 |
| 256 | 0.001 | 0.001 |
Denied the codebook, the keyed attacker can only guess, so keyed recovery is at chance = 1/V = 0.001 for this V=1000 proxy. The key prevents reconstruction attacks because the attacker cannot evaluate candidate token to code mappings. Aggregate attacks such as TAG and FILM are unaffected since they do not depend on the codebook. We report the keyed variant for every attack:
| Attack type | Keyed result |
|---|---|
| Reconstruction (DLG, iDLG, IG, TAG-opt, LAMP, adaptive) | 0.001 (chance = 1/V at V=1000), since the attacker can only guess |
| Aggregate (FILM, TAG-read) | Same as unkeyed (never used the codebook; Bits already wins structurally) |
The paper's main privacy claims rely on the unkeyed setting; keying is an optional extension. The revision will make this scope explicit.
Q3: The expressivity theorem requires W ≥ V, but experiments use W=256 (Meta Q2)
Thank you for this observation. The theorem is an expressivity guarantee, not a practical width requirement. It shows that a sufficiently wide encoder can represent any embedding table in the worst case, but does not claim that W ≥ V is necessary in practice. Extending the width ablation with W=64:
| Hidden width | Test accuracy | Encoder params |
|---|---|---|
| 64 | 0.862 | 62.7K |
| 128 | 0.866 | 75.0K |
| 256 | 0.849 | 99.7K |
| 512 | 0.790 | 149K |
| 1024 | 0.814 | 248K |
Although the theorem would require W ≥ 5474, W=64 (about 85 times smaller) already achieves essentially the best accuracy, and larger widths do not improve performance. The bound is highly conservative for practical embedding distributions. The revised paper will present the theorem as a worst-case expressivity result rather than a practical design guideline.
Q4: Scalability to modern LLMs
We now trained Bits from scratch at 1.5B and 7B parameters, evaluated on held-out C4 validation under identical conditions (same 100M-token budget, same 2.05M-token set, same metric for both arms):
| Model | Bits (held-out loss / ppl / emb.) | Standard (held-out loss / ppl / emb.) | Compression |
|---|---|---|---|
| Qwen2.5-1.5B | 4.51 / 91.2 / 0.92M | 4.69 / 108.8 / 233M | 254× |
| Qwen2.5-7B | 4.45 / 85.9 / 1.97M | 4.57 / 96.3 / 545M | 277× |
Bits gives the lower perplexity at both scales (1.5B: 91.2 vs 108.8; 7B: 85.9 vs 96.3) while the encoder stays approximately 1 to 2M parameters regardless of vocabulary size (254 to 277 times embedding compression here, up to 587 times at 72B).
At 7B the advantage holds at every 100M checkpoint through 500M tokens. Held-out loss (Bits vs Standard) = 4.45/4.57 (100M), 4.04/4.12 (200M), 3.84/3.91 (300M), 3.79/3.85 (400M), 3.79/3.85 (500M); Bits is lower throughout. Optimization is stable throughout; these are controlled 100M-token comparisons, not converged models.
Privacy also holds at scale. On the trained 1.5B model (batch size 1):
| Attack | Scale | Standard (L=4→256) | Bits (L=4→256) |
|---|---|---|---|
| FILM | 1.5B | 0.75 → 0.996 | 2.6e-5 → 0.0012 |
| TAG | 1.5B | 0.75 → 0.996 | 2.6e-5 → 0.0012 |
| FILM | 7B | 0.75 → 0.996 | 2.6e-5 → 0.0013 |
| TAG | 7B | 0.75 → 0.996 | 2.6e-5 → 0.0013 |
Standard leaks 75 to 99.6% of tokens; Bits stays at chance (= L/V for these set-recovery attacks, 2.6e-5 at L=4 to 1.7e-3 at L=256; V ≈ 152K). The 7B result matches 1.5B exactly because this leakage is structural rather than scale-dependent, so Bits removes it at both scales. These new experiments directly address the scalability concern and will be included in the revision.
We hope the guidelines and additional experiments above make the practical use of Bits clearer at both small and LLM scale. We would be grateful if you would consider improving your positive assessment in the discussion, and we welcome any follow-up questions.
My previous concerns have been solved.
Thank you, and we are glad your concerns have been resolved. Your questions produced the code-length rule and the key-management discussion that are valuable for the revision.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Bits, a token encoder that replaces a standard token embedding table with fixed random binary codes followed by a small shared FFN. The claimed benefits are improved resistance to gradient inversion, much smaller embedding memory, and better cross-lingual transfer. The main observation is removing token-specific embedding rows removes a very visible leakage channel in standard embedding gradients. The compression results are also potentially useful.
Strengths and weaknesses
Strengths
- The paper identifies a real issue with standard embedding tables: token-specific gradient sparsity can expose token identity.
- The method is simple and easy to implement.
- The memory reduction can be meaningful for large vocabularies.
- The low-resource cross-lingual results are interesting.
Weaknesses
-
The main contribution is an observation about removing embedding-row sparsity, rather than a fundamentally new representation-learning method.
-
Privacy claims are too strong. Removing token-specific rows clearly weakens attacks that rely on row-level embedding gradients. But this does not imply that gradients are generally non-invertible or that token recovery is bounded by roughly . The attacker can still use full-gradient matching, language priors, known labels, partial text, repeated rounds, or search over candidate sequences. The theorem and language around “sealing” privacy appear much stronger than what the experiments establish.
-
The attack evaluation is not sufficiently adaptive. Most evaluated attacks are well suited to ordinary embedding tables. The paper should test attackers designed specifically for Bits: optimizing candidate text through the shared FFN and matching the full observed gradient. Multi-round, known-text, partial-text, and malicious-server settings are especially important in federated learning.
Questions
See Weaknesses.
Limitations
See Weaknesses
Final justification
See final comments.
Formatting concerns
No significant concerns
5 comments
Rebuttal
Thank you for the careful review, and especially for identifying that "the attack evaluation is not sufficiently adaptive". This pushed us to run the specific adaptive setups you named: full-gradient matching, LAMP language priors, iDLG known labels, inverting gradients, TAG, multi-round FL, malicious server, and known/partial text. We also agree the original privacy wording overstated what the experiments support, and revise the claim accordingly.
W1: Observation vs. a new method
You are right that removing embedding-row sparsity is the core observation. Our contribution is the concrete instantiation, fixed binary codes with a shared FFN, and showing that this instantiation delivers three properties simultaneously that a lookup table cannot:
- Privacy: removes the per-token embedding-gradient leakage channel.
- Memory: embedding parameters become independent of vocabulary size (up to 587 times smaller at LLM scale).
- Generalization: unseen tokens are embedded through the shared encoder (+57 ChrF on endangered-language MT).
To test whether the gains come merely from "dense gradients", we ran an encoding ablation. Every method below except Standard uses the same shared FFN (all remove embedding-row sparsity); only the token representation differs.
| Code | Test acc. | Params | TAG ↓ |
|---|---|---|---|
| Standard | 0.872±0.014 | 350K | 1.000 |
| Random | 0.872±0.009 | 148K | 0.095 |
| MD5 | 0.866±0.025 | 148K | 0.095 |
| Surface | 0.874±0.007 | 148K | 0.099 |
| Learned | 0.885±0.008 | 1.48M | 0.097 |
| Gray | 0.430 | 148K | 0.103 |
| Hierarchical | 0.430 | 148K | 0.096 |
If removing sparsity alone explained the results, all shared-FFN encodings would perform similarly. They do not. Gray and hierarchical codes collapse despite identical dense-gradient optimization. The key factor is the representation: codes that utilize the full bit space (random, MD5, surface, learned) preserve accuracy, while poorly distributed codes fail. The specific instantiation, not the mechanism alone, is what matters.
W2: Strength of the privacy claims
You are right that the original wording overstated what the experiments support. In particular, we no longer claim recovery is bounded by n/V; remaining leakage is bounded by input aggregation.
We implemented the Bits-aware adaptive attack you requested. The attacker knows the model, FFN, binary codes, and seed (Kerckhoffs), and optimizes candidate tokens through the shared FFN to match the full observed gradient at batch size 1.
| Seq. length | Standard | Bits |
|---|---|---|
| 1 | 1.000 | 1.000 |
| 4 | 0.240 | 0.235 |
| 16 | 0.058 | 0.033 |
| 64 | 0.014 | 0.003 |
| 128 | 0.009 | 0.002 |
| 256 | 0.006 | 0.001 |
The adaptive attack does not break Bits. A single isolated token is recoverable under any embedding method, but as aggregation increases Bits is consistently no worse than standard and reaches chance-level recovery by sequence length 256.
We also ran the full set of attacks you named (batch 1; recovery at sequence length 1 then 256):
| Attack | Standard | Bits | Bits (keyed) |
|---|---|---|---|
| DLG (full-gradient) | 1.00 → 0.006 | 1.00 → 0.002 | 0.001 → 0.001 |
| iDLG (known labels) | 1.00 → 0.006 | 1.00 → 0.002 | 0.001 → 0.001 |
| Inverting Gradients | 1.00 → 0.006 | 1.00 → 0.002 | 0.001 → 0.001 |
| TAG | 1.00 → 0.005 | 1.00 → 0.002 | 0.001 → 0.001 |
| LAMP (language priors) | 1.00 → 0.008 | 1.00 → 0.002 | 0.001 → 0.001 |
| FILM (row-support) | 1.00 → 0.88 | 0.001 → 0.23 | 0.001 → 0.23 |
Across every attack you listed (full-gradient matching, language priors via LAMP, known labels via iDLG, inverting gradients, TAG, and candidate-sequence search), Bits recovers at or below the standard baseline; FILM is a structural win for Bits (no per-token rows to read): the standard 0.88 and residual Bits 0.23 above are measured on a small V=1000 proxy, and at realistic LLM vocabulary scale (V ≈ 152K, Qwen2.5-1.5B and 7B) FILM recovery for Bits falls to chance (2.6e-5 → 0.0012); and the optional keyed variant reduces recovery to chance at every length, including a single token. The revised claim is:
Bits removes the per-token embedding-gradient leakage channel entirely (FILM and TAG rows above). Remaining leakage is bounded by input aggregation and is reported per-attack above. Bits does not provide differential-privacy-style formal guarantees, and single-token recovery is unavoidable under any embedding scheme without keying. The optional keyed variant reduces recovery to chance at every attack and sequence length we tested.
W3: Adaptive and FL attacks
We implemented the FL-specific attacks you requested under the same strong white-box threat model.
| Attack | Setting | Standard | Bits |
|---|---|---|---|
| Malicious server | Trap reconstruction | 0.072 | 0.003 |
| Known text | 0% | 1.000 | 0.016 |
| 25% | 1.000 | 0.013 | |
| 50% | 1.000 | 0.006 | |
| 75% | 1.000 | 0.001 | |
| Multi-round | 1 | 1.000 | 0.013 |
| 2 | 1.000 | 0.013 | |
| 4 | 1.000 | 0.014 | |
| 8 | 1.000 | 0.014 |
These attacks add exactly the side information you flagged. While side information generally makes inversion easier, Bits remains consistently better than the standard embedding baseline. Even under malicious-server attacks, leakage is reduced by roughly 24 times, and repeated rounds or partial text do not recover the per-token signal removed by Bits.
Bits is complementary to DP-SGD, not competing with it. Bits removes the per-token embedding-gradient leakage channel structurally (through architecture), while DP-SGD provides formal noise-based guarantees on the remaining gradient. The two mechanisms address different attack surfaces and can be combined: Bits + DP-SGD gives structural removal of the embedding channel plus formal privacy on what remains. Our paper does not claim to replace DP-SGD; the revised wording will state this position explicitly.
Scaling to LLMs. We also trained Bits from scratch at Qwen2.5-1.5B and 7B (identical 100M-token budget, held-out C4 validation). The embedding column below is exactly the per-token channel this thread is about, shrunk structurally at scale:
| Model | Bits (ppl / emb) | Standard (ppl / emb) | Compression | Bits FILM/TAG | Standard FILM/TAG |
|---|---|---|---|---|---|
| Qwen2.5-1.5B | 91.2 / 0.92M | 108.8 / 233M | 254× | 2.6e-5→0.0012 | 0.75→0.996 |
| Qwen2.5-7B | 85.9 / 1.97M | 96.3 / 545M | 277× | 2.6e-5→0.0013 | 0.75→0.996 |
The FILM/TAG columns report set-recovery at batch 1 over L=4→256 (lower is better).
Bits gives the lower perplexity at both scales, and at 7B the advantage holds at every 100M checkpoint through 500M tokens (held-out loss Bits/Standard = 4.45/4.57, 4.04/4.12, 3.84/3.91, 3.79/3.85, 3.79/3.85). Optimization is stable throughout.
Overall, these new experiments support a more precise conclusion than our original paper: Bits does not eliminate all gradient leakage, but it consistently removes the dominant per-token embedding leakage channel while remaining substantially more resistant than standard embedding tables under adaptive and federated-learning attacks. It complements rather than replaces existing privacy methods.
With the adaptive-attack coverage, the FL-attack results, the DP-SGD framing, and the revised precision of the privacy claim, we believe the empirical evidence now supports a substantive but scoped claim. We would be grateful if you would consider reconsidering your evaluation of the paper in light of these results, and we welcome any follow-up questions on the additional experiments.
Thank you again for noting that our attack evaluation was "not sufficiently adaptive". We ran every attack you named: full-gradient matching (DLG), language priors (LAMP), known labels (iDLG), partial text (25/50/75%), repeated rounds (multi-round FL 1–8), shared-FFN candidate-sequence search, TAG, FILM, and malicious-server settings for coverage. Bits stays at or below standard throughout. We would be grateful if you would consider reflecting this additional evidence in your assessment.
Dear Reviewer UwAT,
Thank you again for pushing us to clarify the privacy contribution. Your comments gave us a valuable opportunity to make the mechanism and its impact more explicit. We hope the explanation below better conveys what the contribution is and why we believe it goes beyond simply "removing per-token rows."
The key idea is a two-step construction rather than a single observation.
-
Decomposition into shared bits. Each token is represented by an n-bit code instead of its own embedding row. Every bit is shared by roughly half the vocabulary, so many tokens contribute to every bit. Unlike a standard embedding table, no gradient component belongs uniquely to a single token, and therefore no component serves as a token fingerprint.
-
Aggregation over shared representations. These shared bit contributions are combined by a shared FFN into a single gradient. Recovering an individual token therefore requires inverting an underdetermined mixture of many overlapping contributions, and that inference becomes increasingly difficult as more tokens are present. This is exactly what we observe empirically: token recovery drops from 0.235 at sequence length 4 to approximately 0.001 (near chance) at length 256.
From this perspective, eliminating per-token embedding rows is a consequence of the construction, not the contribution by itself. It is necessary, but not sufficient. Our encoding ablation illustrates this directly: structured encodings such as Gray and hierarchical codes also eliminate per-token rows and achieve similar privacy (TAG about 0.10), yet their downstream accuracy collapses to 0.430. In contrast, encodings that span the full bit space achieve 0.872 accuracy while retaining the same privacy benefits. The contribution is therefore the specific construction that simultaneously provides privacy, accuracy, vocabulary-independent memory, and generalization to unseen tokens.
An intuitive way to view the mechanism is through two everyday analogies. Turning a token into shared bits and blending them through a shared FFN is like blending many fruits into a single juice: once combined, the individual fruits cannot be recovered, even when the recipe is fully known. Aggregating across tokens is like being given only the total of a group's bill: the total is visible, but no individual order can be reconstructed, and the more people share the bill, the harder any single order becomes to infer, exactly as token recovery becomes harder as sequence length grows. Importantly, this length-dependent privacy is observed even under a fully white-box attacker who knows the codebook, random seed, FFN architecture, and model weights, following Kerckhoffs's principle. Privacy comes from the shared representation itself, not from obscurity.
We also expanded the empirical evaluation accordingly. Under a white-box threat model, Bits performs at or below the standard embedding baseline across every attack we evaluated: DLG, iDLG, Inverting Gradients, TAG, LAMP, FILM, three federated learning settings (malicious server, multi-round, and known or partial text), and the Bits-aware adaptive attack implemented following your suggestion. At realistic LLM vocabulary scale (V about 152K), standard embeddings recover 75 to 99.6 percent of tokens, whereas Bits recovers only 0.003 to 0.12 percent, a reduction of up to approximately 29,000 times. In the malicious-server setting, recovery decreases from 0.072 to 0.003 (24 times lower), while in the known-text federated setting it decreases from 100 percent to 1.6 percent.
We sincerely appreciate your careful review and the opportunity to improve the paper. If any aspect of the mechanism or evaluation remains unclear, or if there is another experiment that you believe would be decisive, we would be very glad to carry it out. If these additions have addressed your concerns, we would be grateful if you would consider reflecting that in your final assessment. Thank you again for your feedback.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Bits, a token encoding framework that replaces the conventional embedding table with a shared neural encoder operating on randomized binary token representations. The goal is to improve privacy by eliminating the per-token embedding structure while substantially reducing embedding parameters. The authors provide theoretical analyses and evaluate the approach on multiple tasks, demonstrating strong resistance to gradient inversion attacks, competitive downstream performance, and improved cross-lingual generalization.
Strengths and weaknesses
Strength:
- Novel and well-motivated idea
- Addresses multiple objectives within a unified framework
- Good theoretical analysis
Weakness:
- Theory–practice gap
Several theoretical guarantees, such as the expressivity theorem, are established under assumptions that are not satisfied by the practical model used in the experiments (e.g., requiring the hidden width to scale with the vocabulary size). In practice, the encoder is much smaller than the vocabulary, making it unclear how directly the theoretical results explain the empirical performance.
- The encoder essentially replaces the embedding table rather than eliminating it.
Although the explicit embedding lookup table is removed, its functionality is effectively transferred to a shared neural encoder. From a representation learning perspective, this can be viewed as a different parameterization of token embeddings rather than a fundamentally new representation paradigm. The paper could better clarify what advantages arise specifically from this reparameterization.
- Random mapping lacks justification
The paper adopts a uniformly random mapping from tokens to bit sequences as a core design choice, but provides little discussion on why this mapping is preferable. It would be valuable to compare against alternative encoding strategies, such as hash-based mappings, learned codes, hierarchical encodings, Gray codes, or semantically-aware encodings, to demonstrate whether randomness is indeed the best choice.
- Optimization is unexplained
Random binary codes remove virtually all token-level structure before training, yet the encoder is still able to learn competitive representations. This is an interesting empirical observation, but the paper provides limited insight into why optimization remains stable or how semantic structure gradually emerges during training.
- The privacy analysis appears to rely on sufficiently large batches.
The theoretical intuition is based on gradients being aggregated over multiple tokens, making individual token contributions difficult to isolate. However, it is unclear how well this protection holds under small-batch or batch-size-one settings, which are common in certain federated learning or on-device training scenarios.
- Not demonstrated on modern LLMs
Most experiments are conducted on relatively small encoder models and moderate-scale datasets. Since optimization dynamics and representation learning can change substantially at the scale of modern LLMs, it remains uncertain whether the proposed encoder can maintain comparable performance, efficiency, and optimization stability when integrated into billion-parameter models.
Questions
See weakness
Limitations
The paper discusses several important limitations, including the limited privacy protection beyond the embedding layer and the deployment challenges of the keyed variant. However, it would be beneficial to further discuss the scalability to modern LLMs, the dependence of the privacy guarantees on training settings (e.g., batch size), and the absence of comparisons with alternative token-to-bit encoding strategies.
Final justification
The authors address my main concerns in this paper. I maintain the score.
Formatting concerns
None
3 comments
Rebuttal
Thank you for recognizing the paper as a "novel and well-motivated idea" with "good theoretical analysis" that "addresses multiple objectives within a unified framework". Your six specific weaknesses gave us a clear plan for strengthening the paper. We completed each of the requested experiments during the rebuttal period.
W1: Theory and practice gap (Meta Q2)
You are right that the expressivity theorem assumes W ≥ V while our experiments use much narrower networks. The theorem is an existence guarantee about representation power, not a claim that W ≥ V is required in practice. To make this concrete, we extended our width ablation with W=64 on CIViC (V=5474):
| Hidden width | Test acc. | Encoder params |
|---|---|---|
| 64 | 0.862 | 62.7K |
| 128 | 0.866 | 75.0K |
| 256 | 0.849 | 99.7K |
| 512 | 0.790 | 149K |
| 1024 | 0.814 | 248K |
Although the theorem allows W ≥ 5474, W=64 (about 85 times smaller) already achieves the best accuracy, and larger widths provide no benefit. The revision will present the theorem as a worst-case expressivity result and determine practical width empirically.
W2: Reparameterization rather than a new paradigm
You are right that Bits is a reparameterization of the embedding layer, and we will adjust the framing accordingly. Our contribution is that this specific reparameterization provides three practical advantages simultaneously that a lookup table cannot:
- Privacy: removing per-token embedding rows removes the embedding-gradient leakage channel exploited by FILM, TAG, and DLG.
- Memory: encoder size is independent of vocabulary (up to 587 times smaller for LLM vocabularies).
- Generalization: unseen tokens are embedded by the shared encoder rather than receiving randomly initialized rows (+57 ChrF on endangered-language MT).
To our knowledge, no prior reparameterization delivers all three simultaneously. The revised framing will describe Bits as a reparameterization with a combined benefit profile.
W3: Justification for random binary codes (Meta Q3)
We ran two new ablations you suggested.
Encoding comparison (n=256, W=256):
| Code | Test acc. | Params | TAG ↓ |
|---|---|---|---|
| Standard | 0.872±0.014 | 350K | 1.000 |
| Random | 0.872±0.009 | 148K | 0.095 |
| MD5 hash | 0.866±0.025 | 148K | 0.095 |
| Surface | 0.874±0.007 | 148K | 0.099 |
| Learned | 0.885±0.008 | 1.48M | 0.097 |
| Gray | 0.430 | 148K | 0.103 |
| Hierarchical | 0.430 | 148K | 0.096 |
Random codes match standard embeddings with 2.4 times fewer parameters and substantially lower leakage. They also match other data-independent encodings, while Gray and hierarchical fail because they use only a small fraction of the available bit space. The only slightly better result (Learned) uses 10 times more parameters. Fully utilizing the bit space, not imposing structure, is what matters, which makes random codes a simple and effective default.
Code-length sweep:
| Bits | Test acc. |
|---|---|
| 8 | 0.595±0.076 |
| 16 | 0.736±0.035 |
| 32 | 0.815±0.051 |
| 64 | 0.804±0.034 |
| 128 | 0.833±0.017 |
| 256 | 0.858±0.007 |
| 512 | 0.869±0.024 |
| 1024 | 0.862±0.005 |
| 2048 | 0.876±0.015 |
Below the injective threshold, collisions severely degrade performance. Above it, accuracy plateaus, indicating that 256 bits are sufficient for vocabularies of this scale.
W4: Why optimization is stable
The shared FFN receives dense gradients. Unlike a lookup table, where only the embedding rows of tokens in the current batch are updated, every token updates the same FFN, so nearly all encoder parameters receive gradients every step. This produces stable optimization from random initialization.
Semantic structure is learned by the shared FFN, not stored in the binary codes. The codes are fixed random addresses; during training the FFN learns task-specific embeddings that bring functionally similar tokens together. The revision will include training-loss curves illustrating this.
W5: Privacy under small batches (Meta Q1)
We evaluate the batch-size-one setting you flagged, using a Bits-aware adaptive attack. The attacker knows the model, FFN, and token-bit mapping.
At batch size 1, sweeping sequence length:
| Seq length | Standard | Bits (unkeyed) | Bits (keyed) |
|---|---|---|---|
| 1 | 1.000 | 1.000 | 0.001 |
| 4 | 0.240 | 0.235 | 0.001 |
| 16 | 0.058 | 0.033 | 0.001 |
| 64 | 0.014 | 0.003 | 0.001 |
| 256 | 0.006 | 0.001 | 0.001 |
Both methods recover a single isolated token (an unavoidable limit of any embedding method), but as sequence length increases Bits is consistently no worse than standard, reaching chance-level recovery by long sequences while standard embeddings continue to leak. The optional keyed variant reduces recovery to chance at every length, including a single token.
Recovery also falls with batch size (seq len 8):
| batch size | 1 | 2 | 4 | 8 | 16 | 32 |
|---|---|---|---|---|---|---|
| Standard | 0.143 | 0.128 | 0.055 | 0.053 | 0.016 | 0.007 |
| Bits | 0.143 | 0.112 | 0.065 | 0.013 | 0.010 | 0.002 |
| Bits (keyed) | 0.003 | 0.001 | 0.001 | 0.001 | 0.001 | 0.001 |
Recovery decreases with batch size for both arms (aggregation), Bits is comparable to standard at most batch sizes, and the keyed variant is at chance throughout.
W6: Scaling to modern LLMs
We trained Bits from scratch at Qwen2.5-1.5B and Qwen2.5-7B under identical conditions: same 100M-token budget, same held-out 2.05M-token C4 validation set, same metric for both arms.
| Model | Bits (held-out loss / ppl) | Standard (held-out loss / ppl) | Emb. compression |
|---|---|---|---|
| Qwen2.5-1.5B | 4.51 / 91.2 | 4.69 / 108.8 | 254× |
| Qwen2.5-7B | 4.45 / 85.9 | 4.57 / 96.3 | 277× |
At billion-parameter scale from random initialization, Bits achieves the lower perplexity at both scales (1.5B: 91.2 vs 108.8, 16% reduction; 7B: 85.9 vs 96.3, 11% reduction) while reducing embedding parameters by 254 to 587 times (277× at 7B: a 1.97M encoder replaces the 545M embedding; up to 587× at 72B).
At 7B the Bits advantage holds at every 100M checkpoint through 500M tokens. Held-out loss (Bits vs Standard) = 4.45/4.57 (100M), 4.04/4.12 (200M), 3.84/3.91 (300M), 3.79/3.85 (400M), 3.79/3.85 (500M); Bits is lower throughout. This is a consistent trend, not a single checkpoint. Optimization is stable throughout.
Privacy also holds at LLM scale:
| Attack | Standard | Bits |
|---|---|---|
| FILM/TAG (Qwen2.5-1.5B) | 0.75→0.996 | 2.6e-5→0.0012 |
| FILM/TAG (Qwen2.5-7B) | 0.75→0.996 | 2.6e-5→0.0013 |
Standard embeddings leak 75 to 99.6% of tokens, whereas Bits stays at chance (chance = L/V for these set-recovery attacks, from 2.6e-5 at L=4 to 1.7e-3 at L=256; V ≈ 152K). The 7B result is identical to 1.5B because this leakage is structural—only present tokens have nonzero embedding-gradient rows—so it does not depend on scale, and Bits removes it at both sizes. We are candid about scope: in a frozen-body swap parity requires co-training, but it holds wherever the body trains (genomic 117M from scratch: matches/improves; CIViC: Bits = standard 0.872; WikiText-103: 2.17 perplexity reduction at 79 times smaller embedding).
Limitations addressed
- Scale. Now trained from scratch at 1.5B and 7B (W6), Bits winning at both. Caveat: a fixed 100M-token budget, so a controlled comparison, not a converged model (the 7B advantage persists to 500M tokens).
- Batch size. Privacy measured across batch sizes (W5). Caveat: protection is aggregation-bounded; a lone token leaks under any scheme, which the keyed variant closes.
- Encodings. Six token-to-bit codes compared (W3). Caveat: random is the simplest full-bit-space default, not claimed uniquely optimal.
Your review substantively strengthened both the empirical evidence and the framing of the paper's contribution. We would be grateful if you would consider maintaining or improving your positive assessment, and we welcome any follow-up questions on the additional experiments.
The response addresses my main concerns of this paper. Therefore, I will maintain my score.
Thank you for confirming that our response addressed your concerns and for maintaining your positive assessment. Your six identified weaknesses directly shaped our revisions.
Comments on the paper
1 comment
Dear Reviewers,
Thank you for your review efforts. The authors have posted their rebuttal. Please read the response and discuss with the authors (and other reviewers that has a different opinion to the paper).
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear Area Chair,
Thank you again for your thoughtful and prioritized questions. We greatly appreciated the opportunity to strengthen the paper and addressed all three during the rebuttal:
Adaptive attacker (batch size 1). We implemented a Bits-aware adaptive attacker under a Kerckhoffs white-box model, optimizing candidate text through the shared encoder to match the full observed gradient. Token recovery for Bits falls from 1.000 at length 1 to ~0.001 (near chance) by length 256, versus 0.006 for standard embeddings. We also revised the n/V-bound wording to more accurately reflect the scope of our results.
Expressivity theorem. The theorem's W >= V condition is a loose sufficient bound, not a practical requirement. We added a W=64 ablation (~85x below the V=5474 bound), which already achieves the best accuracy. We now present the theorem as a worst-case existence result rather than a practical width requirement.
Random mapping. An encoding ablation shows that full-bit-space codes preserve accuracy, while poorly distributed codes (Gray and hierarchical) collapse under the same architecture, demonstrating that the encoding instantiation, not merely removing embedding-row sparsity, is what matters.
Reviewers BorD and KRdz have acknowledged that their concerns are addressed. We also addressed UwAT's three remaining points: the encoding ablation clarifies the "observation vs. method" question (W1); the revised wording appropriately scopes the privacy claims, clarifying that Bits removes the per-token embedding-gradient channel, residual leakage is bounded by input aggregation, and Bits complements rather than replaces DP-SGD (W2); and the complete suite of requested adaptive and federated learning attacks (DLG, iDLG, Inverting Gradients, TAG, LAMP, FILM, together with malicious-server, multi-round, and known/partial-text settings) addresses W3, with Bits performing at or below the standard baseline throughout. We also followed up with UwAT after posting these results but have not received any further questions.
We would be very grateful if you could consider this complete body of new evidence in your final assessment. We will be happy to conduct any additional analyses that may be helpful before the discussion concludes.
Thank you again for your time and thoughtful consideration.