arXiv Science⌕ Search

arXiv subjects

Eyal Hadad

Publications and source records attributed to Eyal Hadad.

3 recordsLinked to original sources

Spontaneous reasoning reorders language models' gains from chain-of-thought

Chain-of-thought prompting asks a language model to reason in writing before answering. Its benefit is measured against a direct answer, for which the model is asked for the answer alone. In 16 of 20 published comparisons, nothing stopped the model from writing out its reasoning anyway. Many models do: told to show no working, 29 open-weight models answered at length a third of the time. We compared this requested answer with a forced one, which we began for the model and cut short after a few words. The most accurate of 36 models, a commercial model with reasoning off, gained 2.7 points from chain-of-thought against its requested answers and 16.0 against its forced ones. Measuring gains against the forced answer instead of the requested one reversed which of two models gained more in about one pair in five, shrank the measured advantage of stronger models and reversed the measured effect of five-shot prompting in arithmetic. Flagship models no longer let reasoning be switched off, so their measured gains depend on how the direct answer is built.

cs.CL↗

Shape and Substance: Dual-Layer Side-Channel Attacks on Local Vision-Language Models

On-device Vision-Language Models (VLMs) promise data privacy via local execution. However, we show that the architectural shift toward Dynamic High-Resolution preprocessing (e.g., AnyRes) introduces an inherent algorithmic side-channel. Unlike static models, dynamic preprocessing decomposes images into a variable number of patches based on their aspect ratio, creating workload-dependent inputs. We demonstrate a dual-layer attack framework against local VLMs. In Tier 1, an unprivileged attacker can exploit significant execution-time variations using standard unprivileged OS metrics to reliably fingerprint the input's geometry. In Tier 2, by profiling Last-Level Cache (LLC) contention, the attacker can resolve semantic ambiguity within identical geometries, distinguishing between visually dense (e.g., medical X-rays) and sparse (e.g., text documents) content. By evaluating state-of-the-art models such as LLaVA-NeXT and Qwen2-VL, we show that combining these signals enables reliable inference of privacy-sensitive contexts. Finally, we analyze the security engineering trade-offs of mitigating this vulnerability, reveal substantial performance overhead with constant-work padding, and propose practical design recommendations for secure Edge AI deployments.

cs.CR↗

Learning Test Traces

Modern software projects include automated tests written to check the programs' functionality. The set of functions invoked by a test is called the trace of the test, and the action of obtaining a trace is called tracing. There are many tracing tools since traces are useful for a variety of software engineering tasks such as test generation, fault localization, and test execution planning. A major drawback in using test traces is that obtaining them, i.e., tracing, can be costly in terms of computational resources and runtime. Prior work attempted to address this in various ways, e.g., by selectively tracing only some of the software components or compressing the trace on-the-fly. However, all these approaches still require building the project and executing the test in order to get its (partial, possibly compressed) trace. This is still very costly in many cases. In this work, we propose a method to predict the trace of each test without executing it, based only on static properties of the test and the tested program, as well as past experience on different tests. This prediction is done by applying supervised learning to learn the relation between various static features of test and function and the likelihood that one will include the other in its trace. Then, we show how to use the predicted traces in a recent automated troubleshooting paradigm called Learn Diagnose and plan (LDP), instead of the actual, costly-to-obtain, test traces. In a preliminary evaluation on real-world open-source projects, we observe that our prediction quality is reasonable. In addition, using our trace predictions in LDP yields almost the same results comparing to when using real traces, while requiring less overhead.

cs.SE↗