Papers for

hardware designers for ai chips

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Power analysis struggles to recover deep neural network weights fully

ML Models Are Not Ciphers: Power Analysis for Weight Extraction Is Harder Than You Think

Abstract: Can power-analysis techniques reveal secret weights of machine-learning models? Multiple recent works demonstrate proof-of-concept attacks that can partially recover such weights. To that end, these works build on techniques from cryptographic engineering, treating the model as a ``cipher'' and its secret weights as keys. We question the basic assumption behind such straightforward adaptations of cryptographic attacks and highlight the challenges arising when applying past techniques to fully recover all layers of deep neural networks. Unlike past works, which extract only a few weights, typically from shallow layers, we investigate the recovery of complete networks. Moreover, we target fully trained and functional models, rather than untrained, randomly initialized networks. To focus on fundamental challenges, we assume an unrealistically strong side-channel adversary that can directly observe the output of the leakage model without any added noise. With this adversary, we show that machine-learning models differ significantly from cryptographic implementations, giving rise to unique challenges that have not been observed in the prior art. We observe two main differences between machine-learning models and ciphers. First, in contrast to the high-diffusion nonlinear integer arithmetic prevalent in cryptographic schemes, machine-learning models tend to use limited-precision floating-point arithmetic and low-diffusion linear operations. We show that these operations introduce difficulties in weight recovery, often requiring an unexpectedly large number of traces, even under ideal channel conditions. Second, we observe that, unlike ciphers, which aim to increase the data entropy, machine-learning models aim to reduce it. This reduces data variability as the algorithm progresses, hampering weight recovery in deep layers of the model. (details can be found in the paper)

Mon 9 NovCryptography and Security
The gist
The paper looks at whether attackers can steal all the secret numbers (weights) inside trained AI models by watching their power usage. Unlike cryptography where secret keys can sometimes be uncovered this way, the authors find that AI models behave very differently. AI computations use floating-point math and reduce data randomness as they work deeper, making it much harder to extract every weight, even under perfect spying conditions. This means stealing a complete AI model’s secrets through power analysis is much more difficult than earlier work suggested.
Open → 2611.12532v1

How stochastic rounding affects training accuracy and computation cost

Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding

Abstract: Low-precision training reduces computation but introduces additional rounding error. We theoretically study how stochastic rounding (SR) affects prediction risk as model size, training time, and precision change. We consider a two-layer linear network with a fixed random first layer, trained by mini-batch SGD on fresh Gaussian data with power-law spectra. At each SGD step, the features used in forward and backward computations are rounded independently. We prove matched upper and lower bounds on prediction error for the final model and for uniform parameter averaging, with general learning-rate and precision schedules chosen before training. For fixed precisions and constant learning rates with parameter averaging, we derive how the smallest prediction error decreases with compute, and we identify model sizes and training times that achieve this optimal-compute scaling. Rounding only the forward features preserves the compute scaling of exact arithmetic, while rounding backward features changes it. Averaging parameters can change which computation needs higher precision and when higher precision is useful. Our results also give bit requirements for a given accuracy tolerance and show how backward rounding can change learning-rate schedule design. At a fixed compute budget, lower precision can improve prediction when the benefit of a larger model or longer training outweighs the additional SR-induced error. Model simulations illustrate these tradeoffs, and experiments with an MLP and a small transformer examine rounding choices beyond the theoretical model.

Thu 29 OctMachine LearningArtificial Intelligence
The gist
Training AI models with low numerical precision saves time but causes errors due to rounding numbers. The authors study how a method called stochastic rounding influences prediction errors as the model size, training length, and number of bits vary. They prove mathematical bounds for error and find which parts of training need more precision to get the best results for a given compute budget. Their experiments confirm how decisions about rounding forward or backward data, and averaging parameters, affect performance in real models.
Open → 2610.41074v1