---
title: 'Sherry: Quantization, Caching & Quasar Survey'
url: https://www.emergentmind.com/topics/sherry
type: topic
---

# Sherry: Quantization, Caching & Quasar Survey

Sherry refers to several distinct, influential concepts and research frameworks within modern computational and astronomical literature. It is used as (1) a hardware-efficient ternary quantization framework for neural networks, (2) a key analytical innovator in online caching theory, and (3) the acronym "SHERRY" for a landmark submillimetre survey of high-redshift quasars. Each domain is outlined below with rigor, contextualization, and linkage to research priorities.

## 1. Sherry: Hardware-Efficient Ternary Quantization Framework

Sherry is a ternary quantization method designed to reduce memory/computation bottlenecks in LLM deployment on resource-constrained hardware. It achieves a hardware-optimal bit-width of 1.25 bits per network weight using a fine-grained 3:4 sparsity scheme and introduces mechanistic solutions for training pathologies unique to structured ternary constraints [2601.07892].

### Formalization: 3:4 Fine-Grained Sparsity

The principal insight is to enforce, for each block of size 4 in the weight matrix $W \in \mathbb{R}^{d_{\rm in} \times d_{\rm out}}$, a ternary approximation $T_{i,j} \in \{-1,0,1\}$ such that exactly 3 of every 4 weights in each block are nonzero. For each column, the quantization objective is:
$$
\min_{T_{:,j},\,\alpha_j} \|W_{:,j} - T_{:,j}\alpha_j\|_2^2
$$
subject to $T_{i,j} \in \{-1, 0, +1\}$ and $\|T_{b:b+3,j}\|_0 = 3$ for all $b$ (block indices). The optimal block ternarization (Sparse-AbsMean) is constructed by zeroing the weight with the smallest magnitude in each block, setting the remaining three to $\pm1$, and averaging their absolute value for the scaling factor $\alpha_j$.

Each block’s 32 ternary patterns ($\binom{4}{3} \times 2^3 = 32$) fit precisely in 5 bits—thus, when storing 4 weights into a 5-bit word, the effective bit-width is $1.25$ with perfect alignment to 128-bit SIMD instructions.

### Weight Trapping Phenomenon

Direct QAT under this ternary sparsification results in "gradient homogenization." The backward-pass gradient through the straight-through estimator (STE) exhibits strongly reduced rank due to the uniform sparsity mask, leading to "representational collapse": model parameters are driven toward binary values, and the ternary codebook flexibility is unexploited, with a measurable loss in expressivity.

### Arenas: Annealing Residual Synapse Mechanism

To counteract weight trapping, Sherry augments each quantized linear layer during training with a bypass branch carrying full-precision weights, scaled by an annealing coefficient $\lambda_t \to 0$ over the training schedule. The forward pass is:
$$
Y = X(T\alpha) + \lambda_t XW
$$
The resulting backward gradients propagate both ternary and full-precision signal until late-stage annealing, maintaining high Effective Rank and preventing collapse. At inference, only the ternary branch remains, ensuring zero-cost for the Arenas solution.

### Empirical and Hardware Efficiency Results

On LLaMA-3.2 (1B, 3B parameters), Sherry matches or exceeds the leading 1.67-bit schemes (e.g., TL2) in accuracy across ARC-Easy, ARC-Challenge, HellaSwag, PIQA, and WinoGrande, while affording a $25\%$–$37.5\%$ bit-width reduction over 2-bit and 1.67-bit baselines. Inference throughput improves by $10\%$–$18\%$ on consumer Intel CPUs; model memory usage shrinks proportionately. Sherry's packing/unpacking uses routine AVX2 vector instructions and local LUTs, requiring no exotic hardware [2601.07892].

## 2. Sherry in Online Caching Theory: Delayed-Hits Model

In the context of online algorithms, "Sherry" denotes a principal contributor to the theoretical analysis of the delayed-hits caching model, a generalization of classical paging where the latency to accommodate a miss is parameterized by a delay $Z$ [2501.16535].

### Delayed-Hits Model Definition

Given universe size $n$, cache size $k$, and delay window $Z \in \mathbb{N}$, requests $r(t)$ are served over $T$ timesteps. Fetches take $Z$ steps to complete; a request during an in-flight fetch may incur reduced penalty ("delayed-hit"). The instantaneous cost $c_A(t)$ is:
- $c_A(t) = 0$ (cache hit)
- $c_A(t) = Z - i$ (hit during delay window)
- $c_A(t) = Z$ (miss, no in-flight fetch)

The goal is to minimize total latency $\mathrm{cost}(r, A) = \sum_{t=1}^T c_A(t)$.

### $O(Zk)$ Competitiveness of LRU

Sherry, with collaborators, developed the "superphase" analysis, refining classical phase partitioning to group phases into superphases of length at least $Z$. Their key result is that Least Recently Used (LRU) and more generally any "marking algorithm" incurs at most $O(Zk)$ times the optimal offline cost:
$$
\mathrm{CR}(\mathrm{LRU}) \leq 8Zk
$$

The proof leverages:
- Phase and superphase decomposition
- Marking invariants (a requested page remains persistent in cache throughout the phase)
- Tight bounding of LRU cost within superphases
- Matching lower-bound constructions

For $Z=1$, the result recovers Sleator–Tarjan's $O(k)$ bound for classical paging.

### Novel Techniques

Sherry's introduction of superphase decomposition generalizes competitive analysis to a pipelined delay model, enabling tight asymptotics in $Z$ and $k$. The analysis applies directly to marking-style algorithms and paves the way for further exploration of delayed-service models.

### Prospective Directions

Subsequent research directions include incorporating prediction, handling weighted or variable-sized pages, exploiting parallel fetches ($M>1$), and robustness to fluctuating or uncertain $Z$. The framework is positioned as broadly applicable to resource-lockin phenomena in online scheduling [2501.16535].

## 3. SHERRY: SCUBA2 High Redshift Bright Quasar Survey

SHERRY (SCUBA2 High rEdshift bRight quasaR surveY) is a submillimeter continuum survey targeting the far-infrared properties and spectral signatures of $z\sim6$ quasars using the SCUBA2 instrument on JCMT [2009.00877].

### Survey Design and Objectives

- **Sample:** 54 optically/NIR-detected quasars with $5.6 < z < 6.9$, $M_{1450} < -25$, avoiding duplication with previous mm/submm surveys.
- **Instrument:** SCUBA2 at 450 $\mu$m and 850 $\mu$m, with $\sim$1.2 mJy beam$^{-1}$ rms at 850 $\mu$m.
- **Detection Criterion:** $\geq3.5\sigma$ at source position.
- **Goals:**
  - Quantify FIR luminosity ($L_\mathrm{FIR}$) and dust-continuum emission.
  - Derive star formation rates (SFRs) and dust masses in host galaxies.
  - Systematically analyze weak-line quasar (WLQ) incidence ($\mathrm{EW}$(Ly$\alpha$+Nv)$<15.4\,$Å).

### Key Observational Results

- **Detection Rate:** 16/54 (30%) have secure $850\,\mu$m detections; median flux $\langle S_{850}\rangle=5.0\pm0.3$ mJy for detections.
- **FIR/SFR:** $L_\mathrm{FIR}=3.5\times10^{12}$–$1.4\times10^{13}\,L_\odot$; SFR$=90$–$1060\,M_\odot$ yr$^{-1}$ inferred from greybody dust models ($T_\mathrm{dust}=47$ K, $\beta=1.6$).
- **Comparison:** At $z\sim6$, ultra-luminous FIR hosts ($L_\mathrm{FIR}>10^{13}L_\odot$) are rarer than in $z=2$–$5$ samples.

### Ultraviolet Spectral Diagnostics

- **Weak-Line Incidence:** 11% (6/54) classified as WLQs ($\mathrm{EW}<$15.4 Å).
- Detections have systematically lower $\mathrm{EW}$: mean $\log \mathrm{EW}=1.34$ ($\sim$22 Å) versus $1.78$ ($\sim$60 Å) for non-detections; K–S test $p\simeq0.017$.
- This suggests a statistically significant link between strong dust emission and weak UV emission lines.

### Interpretive Framework

The SHERRY results are consistent with two scenarios for coevolving AGN and host: (a) extremely high Eddington ratio accretion creating a thick "shielding gas" structure, with UV lines suppressed and ISM fueling intense starbursts; or (b) evolutionary phases with underdeveloped broad line regions and high SFRs during rapid black hole and stellar mass assembly.

A plausible implication is that SHERRY is probing an early, formative AGN–galaxy phase at cosmic dawn—high SFRs, strong dust continuum, and weak-line regions that reflect the interplay between accretion geometry and ISM conditions [2009.00877].

## 4. Summary Table: Key Dimensions of "Sherry"

| Context                | Domain & Purpose                                                | Foundational Reference   |
|------------------------|----------------------------------------------------------------|-------------------------|
| Quantization Framework | Hardware-efficient, 1.25-bit ternary LLM quantization          | [2601.07892]            |
| Caching Theory         | Analysis of delayed-hits model, $O(Zk)$ competitive LRU bounds | [2501.16535]            |
| Astronomy Survey       | SHERRY: Submm continuum/properties of $z\sim6$ quasars         | [2009.00877]            |

## 5. Research Impact and Future Directions

In quantized neural inference, Sherry establishes the practical bit-width lower bound for ternary models compatible with modern SIMD hardware, addresses training instabilities, and demonstrates scalable performance on LLMs up to 3B parameters. Extending to even larger models, integrating activation quantization, and leveraging sparse tensor cores remain open challenges [2601.07892].

In online caching, Sherry's analytical techniques for the delayed-hits setting provide the field's first matching $\Theta(Zk)$ guarantees. Future work will likely explore augmentations with predictions, cost-scaling in more complex resource landscapes, and generalization to multi-channel or dynamic-delay architectures [2501.16535].

As a survey, SHERRY robustly characterizes both the incidence of starbursting hosts and their correspondence to weak emission lines, informing AGN–galaxy coevolutionary models in the early universe. Additional spectral follow-up and extension to fainter luminosities or higher redshifts are prospective avenues [2009.00877].

Source: https://www.emergentmind.com/topics/sherry