Search arXiv⌕ Search

arXiv subjects

Hrishikesh Karmarkar

Publications and source records attributed to Hrishikesh Karmarkar.

4 recordsLinked to original sources

Family-Conditioned Hidden Markov Models for Cross-Architecture Out-of-Distribution Monitoring

Deep Neural Networks (DNNs) are transforming perception tasks across a wide range of applications, yet their reliability can degrade when inputs at deployment differ from the training distribution. This work presents a family-conditioned runtime monitor for detecting such out-of-distribution (OOD) inputs. The monitor extracts per-layer activation representations, converts them into normalized anomaly scores, and discretizes these scores into ordered severity levels. The resulting sequence of levels across the network is used to train a Hidden Markov Model (HMM) for each structural family, capturing characteristic activation patterns shared across its constituent networks. The central hypothesis is that networks within the same structural family exhibit stronger alignment in their activation behavior than networks from different families. Empirical evaluation across 13 networks from three structural families supports this hypothesis, with within-family alignment 5.25x better than cross-family alignment. The family-conditioned HMM also generalizes to unseen network architectures: under a leave-one-network-out protocol, the AUROC gap between networks used to train the monitor and held-out networks is at most 0.009. Furthermore, the proposed monitor achieves OOD detection performance comparable to per-network baseline methods while eliminating the need to construct and calibrate a separate monitor for every network. These results demonstrate the potential of family-level monitoring as a scalable approach to runtime OOD detection across diverse neural network architectures.

cs.LG↗

A shallow dive into the depths of non-termination checking for C programs

Checking for Non-Termination (NT) of a given program P, i.e., determining if P has at least one non-terminating run, is an undecidable problem that continues to garner significant research attention. While unintended NT is common in real-world software development, even the best-performing tools for NT checking are often ineffective on real-world programs and sometimes incorrect due to unrealistic assumptions such as absence of overflows. To address this, we propose a sound and efficient technique for NT checking that is also effective on realworld software. Given P, we encode the NT property as an assertion inside each loop of P to check for recurrent states in that loop, up to a fixed unwinding depth, using a Bounded Model Checker. The unwinding depth is increased iteratively until either NT is found or a predefined limit is reached. Our experiments on wide ranging software benchmarks show that the technique outperforms state-of-the-art NT checkers

cs.SE↗

Efficiently Finding Adversarial Examples with DNN Preprocessing

Deep Neural Networks (DNNs) are everywhere, frequently performing a fairly complex task that used to be unimaginable for machines to carry out. In doing so, they do a lot of decision making which, depending on the application, may be disastrous if gone wrong. This necessitates a formal argument that the underlying neural networks satisfy certain desirable properties. Robustness is one such key property for DNNs, particularly if they are being deployed in safety or business critical applications. Informally speaking, a DNN is not robust if very small changes to its input may affect the output in a considerable way (e.g. changes the classification for that input). The task of finding an adversarial example is to demonstrate this lack of robustness, whenever applicable. While this is doable with the help of constrained optimization techniques, scalability becomes a challenge due to large-sized networks. This paper proposes the use of information gathered by preprocessing the DNN to heavily simplify the optimization problem. Our experiments substantiate that this is effective, and does significantly better than the state-of-the-art.

cs.LG↗

Determinization of $ω$-automata unified

We describe a uniform construction for converting $ω$-automata with arbitrary acceptance conditions (based on the notion of infinity sets i.e. the set of states visited infinitely often in a run of the automaton) to equivalent deterministic parity automata (DPW). Given a non-deterministic automaton with $n$ states, our construction gives a DPW with at most $2^{O(n^2 \log n)}$ states and $O(n^2)$ parity indices. The corresponding bounds when the original automaton is deterministic are O(n!) and O(n), respectively. Our algorithm gives better asymptotic bounds on the number of states and parity indices vis-a-vis the best known technique when determinizing Rabin or Streett automata with $Ω{(2^n)}$ acceptance pairs, where $n > 1$. We demonstrate this by describing a family of Streett (and Rabin) automata with $2^{n}$ non-redundant acceptance pairs, for which the best known determinization technique gives a DPW with at least $Ω{(2^{(n^3)})}$ states, while our construction constructs a DRW/DPW with $2^{O(n^2\log n)}$ states. An easy corollary of our construction is that an $ω$-language with Rabin index $k$ cannot be recognized by any $ω$-automaton (deterministic or non-deterministic) with fewer than $O(\sqrt{k})$ states.

cs.FL↗