arXiv Science⌕ Search

arXiv subjects

Harvey Dam

Publications and source records attributed to Harvey Dam.

8 recordsLinked to original sources

Closed Gates Leak: Decomposing Adjacent-Layer Cancellation in Gated Language Models

Adjacent layers of transformer language models write partly against each other into the residual stream. Previous work interprets this cancellation as propose-and-reject: a layer proposes candidate features and the next layer removes those that are irrelevant or incorrect, a hypothesis that work states it did not test. We test it in ten gated language models by comparing the next layer's damping of the previous layer's write, how much less it outputs along the write because the write is in its input, with its damping of same-norm comparators put in the write's place. We show that, measured without each layer's mean write and the few residual dimensions that are large at every token, adjacent-layer cancellation comes almost entirely from damping that Gaussian draws with the covariance of the previous layer's writes also receive, and 40% to 70% of it from damping that any random direction receives, the least where the cancellation is small next to the damping. With these kept, both statements still hold in most models we tested. Parts of the write that raise the loss and parts that lower it are damped alike, and the write is not damped more where it fits the context poorly, in tests that detect planted rejectors. In gated MLPs the damping comes mainly from neurons whose gate is closed: SiLU and GELU are slightly negative there, so a neuron whose output weight points along its up-projection weight writes back a small negative multiple of its input. Setting these values to zero, in one MLP or by annealing in continued pretraining, removes the damping and most or all of the cancellation. Adjacent-layer cancellation therefore overstates how much the next layer rejects content, and readings of its opposition as a judgment about content should first account for this damping.

cs.LG↗

First Attack, Final Offensive: The Dark Forest on an Open Roster

The Dark Forest argument holds that a civilization that detects another should strike it at once. The choice it addresses is general: an agent that has located another nearby must decide whether to strike it, collaborate with it, or do neither, without knowing who else is there. Of sixteen treatments of this decision that we examined, ten assume a known set of players; the other six add unobserved agents only in games in which strikes and replies arrive instantly, in simulations, or in informal arguments. We show that when the roster is open, so that no agent knows even its list of nearby agents to be complete, the course that maximizes an agent's expected survival time if no unobserved agent acts still maximizes it, whatever else the agent believes, if and only if the agent gives at most a threshold probability to an unobserved agent acting, by attacking or helping the agent or by striking the located agent. Without further assumptions the threshold is below one half whatever the course, because an unobserved agent may reply to one course with help and to another with an attack, as soon as an agent as near as the located one could reply. If the agent knows the located agent completely and assumes that it would receive no help from unobserved agents, the threshold for collaboration can approach one. Even below the threshold the agent cannot know that the course it favors is in fact better: however much it knows of the one it has located, some world consistent with all it has observed makes another course better. These results do not apply to an agent that knows all but one of its courses would destroy it. For every other agent, no case for striking first, or for any other course, that assumes nothing about the unobserved agents withstands an even chance that one of them acts: some belief that gives that chance favors another course.

cs.CR↗

CXL Coherence Writes Back What Surviving Hosts See, Leaving Flushes Only for Ordering

Hosts that share memory over Compute Express Link (CXL) cache its lines, and a host that crashes loses the lines it has modified and not written back. Designs for such memory stop every host when one crashes, assume stored energy, or flush after each operation. We show that when a crashing host's clients die with it, the flushes a host crash requires are those that keep one line from reaching the memory device before a line it depends on, and not those that make a finished operation durable. The reason is a property that CXL requires of the fabric: a modified line is written back before another host accesses it. Whatever a surviving host has seen is then on the device, and our crash condition lets a crash drop operations that only the crashed host observed. We prove the claim for operations that take effect in a single store, and test it on small instances of models of three published designs, whose operations store several times. A lock table needs no flush to keep the locks of surviving hosts. A persistent hash index keeps every operation a survivor has observed, and in two workloads it writes fewer than half as many lines to the device as its published code does. An allocator's flush of each new reference is neither sufficient nor necessary for the survivors' safety: the allocator lacks ordering flushes, one of them when a reference changes hands.

cs.DC↗

Local-Order Auxiliary Losses Can Improve Autoencoder Reconstruction

Mean-squared error is the default objective for training autoencoders, yet compressed reconstructions often depend not only on pointwise accuracy but also on preserving local spatial order. We study whether structural auxiliary losses can improve, rather than trade off against, MSE in finite-capacity autoencoders. We introduce finite-difference sign error (FDSE), a local-order auxiliary objective that penalizes disagreements between the signs of neighboring finite differences in the target and reconstruction. FDSE is simple, architecture-agnostic, and differentiable through smooth sign surrogates. Across four tensor reconstruction tasks, we find that moderate mixtures of MSE and FDSE can substantially reduce validation MSE relative to pure MSE training. In coefficient sweeps, FDSE mixtures reduce validation MSE by 2.3$\times$--7.0$\times$ over pure MSE on these tasks, while comparisons with other auxiliary objectives show FDSE to be among the strongest structural objectives tested. The effect is not universal: pure FDSE performs poorly, and gains are largest for coherent spatial fields where local order carries information about the underlying signal. These results suggest that, in compressed-latent reconstruction, appropriately weighted local-structure supervision can guide optimization toward solutions with better pointwise accuracy, rather than merely improving perceptual or structural metrics at MSE's expense.

cs.LG↗

Derailing Non-Answers via Logit Suppression at Output Subspace Boundaries in RLHF-Aligned Language Models

We introduce a method to reduce refusal rates of large language models (LLMs) on sensitive content without modifying model weights or prompts. Motivated by the observation that refusals in certain models were often preceded by the specific token sequence of a token marking the beginning of the chain-of-thought (CoT) block ( ) followed by a double newline token (\n\n), we investigate the impact of two simple formatting adjustments during generation: suppressing \n\n after and suppressing the end-of-sequence token after the end of the CoT block ( ). Our method requires no datasets, parameter changes, or training, relying solely on modifying token probabilities during generation. In our experiments with official DeepSeek-R1 distillations, these interventions increased the proportion of substantive answers to sensitive prompts without affecting performance on standard benchmarks. Our findings suggest that refusal behaviors can be circumvented by blocking refusal subspaces at specific points in the generation process.

cs.CL↗

What Operations can be Performed Directly on Compressed Arrays, and with What Error?

In response to the rapidly escalating costs of computing with large matrices and tensors caused by data movement, several lossy compression methods have been developed to significantly reduce data volumes. Unfortunately, all these methods require the data to be decompressed before further computations are done. In this work, we develop a lossy compressor that allows a dozen fairly fundamental operations directly on compressed data while offering good compression ratios and modest errors. We implement a new compressor PyBlaz based on the familiar GPU-powered PyTorch framework, and evaluate it on three non-trivial applications, choosing different number systems for internal representation. Our results demonstrate that the compressed-domain operations achieve good scalability with problem sizes while incurring errors well within acceptable limits. To our best knowledge, this is the first such lossy compressor that supports compressed-domain operations while achieving acceptable performance as well as error.

cs.DC↗

MPGemmFI: A Fault Injection Technique for Mixed Precision GEMM in ML Applications

Emerging deep learning workloads urgently need fast general matrix multiplication (GEMM). To meet such demand, one of the critical features of machine-learning-specific accelerators such as NVIDIA Tensor Cores, AMD Matrix Cores, and Google TPUs is the support of mixed-precision enabled GEMM. For DNN models, lower-precision FP data formats and computation offer acceptable correctness but significant performance, area, and memory footprint improvement. While promising, the mixed-precision computation on error resilience remains unexplored. To this end, we develop a fault injection framework that systematically injects fault into the mixed-precision computation results. We investigate how the faults affect the accuracy of machine learning applications. Based on the error resilience characteristics, we offer lightweight error detection and correction solutions that significantly improve the overall model accuracy if the models experience hardware faults. The solutions can be efficiently integrated into the accelerator's pipelines.

cs.DC↗

Understanding the Effect of the Long Tail on Neural Network Compression

Network compression is now a mature sub-field of neural network research: over the last decade, significant progress has been made towards reducing the size of models and speeding up inference, while maintaining the classification accuracy. However, many works have observed that focusing on just the overall accuracy can be misguided. E.g., it has been shown that mismatches between the full and compressed models can be biased towards under-represented classes. This raises the important research question, can we achieve network compression while maintaining "semantic equivalence" with the original network? In this work, we study this question in the context of the "long tail" phenomenon in computer vision datasets observed by Feldman, et al. They argue that memorization of certain inputs (appropriately defined) is essential to achieving good generalization. As compression limits the capacity of a network (and hence also its ability to memorize), we study the question: are mismatches between the full and compressed models correlated with the memorized training data? We present positive evidence in this direction for image classification tasks, by considering different base architectures and compression schemes.

cs.LG↗