SearcharxivSearch

arXiv subjects

Urbas Ekka

Publications and source records attributed to Urbas Ekka.

3 recordsLinked to original sources

Beyond Red-Teaming: Formal Guarantees of LLM Guardrail Classifiers

Guardrail Classifiers defend production language models against harmful behavior, but although results seem promising in testing, they provide no formal guarantees. Providing formal guarantees for such models is hard because "harmful behavior" has no natural specification in a discrete input space: and the standard epsilon-ball properties used in other domains do not carry semantic meaning. We close this gap by shifting verification from the discrete input space to the classifier's pre-activation space, where we define a harmful region as a convex shape enclosing the representations of known harmful prompts. Because the sigmoid classification head is monotonic, certifying the worst-case point is sufficient to certify the entire region, yielding a closed-form soundness proof without approximation in O(d) time. To formally evaluate these classifiers, we propose two constructions of such regions: SVD-aligned hyper-rectangles, which yield exact SAT/UNSAT certificates, and Gaussian Mixture Models, which yield probabilistic certificates over semantically coherent clusters. Applying this framework to three author-trained Guardrail Classifiers on the toxicity domain, every hyper-rectangle configuration returns SAT, exposing verifiable safety holes across all classifiers, despite seemingly high empirical metrics. Probabilistic GMM certificates also expose a divergent structural stability in how these models represent harm. While GPT-2 and Llama-3.1-8B maintain robust coverage of 90% and 80% across varying boundaries, BERT's safety guarantees prove uniquely volatile. This 'coverage collapse' to 55% at the optimal threshold reveals a sparsely populated safety margin in BERT, which only achieves full coverage by adopting an extremely conservative pessimistic threshold. These approaches combined, provide new insights on how effective Guardrail Classifiers really are, beyond traditional red-teaming.

cs.LG

Building Machine Learning Challenges for Anomaly Detection in Science

Scientific discoveries are often made by finding a pattern or object that was not predicted by the known rules of science. Oftentimes, these anomalous events or objects that do not conform to the norms are an indication that the rules of science governing the data are incomplete, and something new needs to be present to explain these unexpected outliers. The challenge of finding anomalies can be confounding since it requires codifying a complete knowledge of the known scientific behaviors and then projecting these known behaviors on the data to look for deviations. When utilizing machine learning, this presents a particular challenge since we require that the model not only understands scientific data perfectly but also recognizes when the data is inconsistent and out of the scope of its trained behavior. In this paper, we present three datasets aimed at developing machine learning-based anomaly detection for disparate scientific domains covering astrophysics, genomics, and polar science. We present the different datasets along with a scheme to make machine learning challenges around the three datasets findable, accessible, interoperable, and reusable (FAIR). Furthermore, we present an approach that generalizes to future machine learning challenges, enabling the possibility of large, more compute-intensive challenges that can ultimately lead to scientific discovery.

cs.LG

An Analysis of Muon Flux from Angle Variation of the QuarkNet Cosmic Ray Detector

We present one of the first cosmic ray muon flux-angle variation experiments on the QuarkNet Cosmic Ray Detector (QNCRD). We first describe QNCRD and its calibration. The main focus is then quantifying muon flux decrease as a function of angle from the zenith. The angle of counters of QNCRD were incremented 15 degrees on average every $3.1$ days over the range of 0 degrees to 90 degrees for a period of approximately one month. Results showed that as the angle of the detector increased from the zenith, muon flux decreased, which agrees with previous studies. An estimate for the flux based on the model $I(θ)=I_0cos(θ)^n$ had an exponent value of $n=1.39 \pm 0.01$ for $θ< 75$ degrees, an underestimate of values in other literature. These findings provided a reasonable, although not entirely accurate, estimate for the value of $n$ considering the duration of the study and sensitivity of the instrument. Our results constrain the accuracy of QNCRD and provide a source for future long-term experiments. This study also demonstrates the feasibility of conducting science experiments in high school classrooms, increasing science accessibility.

astro-ph.HE