arXiv Science⌕ Search

arXiv subjects

Ritvij Sharma

Publications and source records attributed to Ritvij Sharma.

3 recordsLinked to original sources

Verification Beats Voting, If the Verifier Is Stronger: Gold-Free Answer Selection Without Re-Solving

Self-consistency returns the majority answer over several chains of thought, selecting by frequency alone, so it cannot see whether the reasoning behind a candidate is valid. For small open-weight models the best answer already present among four samples beats their majority vote by 6 points on GSM8K, 12 on MATH-500 and 18 on JEEBench. We introduce ESV (Explicit Strategy Verification), a gold-free procedure that closes part of that gap without re-solving: a zero-cost disagreement gate, one contrastive verification call binding each candidate's strategy to quoted givens and discharging its preconditions, and a deterministic rule accepting only candidates with no mismatched binding and no violated condition. Across 2,918 instances ESV improves on CoT maj@4 by 5.0, 5.9 and 3.5 points (148 repairs against 4 regressions, p <= 10^-7 each), and by 3.8, 6.7 and 2.8 points on the untouched originals alone, which no checker helped select. Universal Self-Consistency reaches significance on none. Two experiments then locate that gain, and the second is a negative result we report in full. The checker's identity decides the sign of the effect: under the identical prompt, candidates and rule, the solver checking its own samples instead loses 3.3, 2.3 and 2.2 points, and a likelihood-ratio criterion fixed on development data predicts both outcomes in advance. But the structured form is not what pays. Free-form adjudication by the same checker beats ESV by 0.6, 3.7 and 9.2 points, a shortfall we trace to the checker's verdict rather than to our rule; what the form adds is an interpretable failure label, on GSM8K only. Every problem is paired with a structural perturbation that breaks or preserves the strategy the original invites, manufacturing selection errors of known cause.

cs.AI↗

Shortcut or Overlap? Separating Demographic Reliance from Genuine Biology in Medical Vision Foundation Models

If age and sex are removed from a medical foundation model's features, its disease predictions usually get worse. This drop has two very different explanations. The model may use age or sex as a shortcut, which is a fairness problem. Alternatively, the disease may change the image in the same way that aging does, as glaucoma and aging both change the optic disc, which is sound biology. Standard erasure analyses cannot tell these apart. We propose a test that can. It compares diseased and healthy patients of the same age and sex, so that demographics no longer predict the diagnosis, and asks whether removing age and sex from the features still hurts. A control that removes randomly reassigned demographics calibrates the answer. In experiments with known answers, the test ignores age confounding that we add to a dataset and detects disease signal that we plant along the age direction. We apply it to six foundation models on retinal photographs and chest radiographs. After matching on age and sex, no measured cost exceeds the test's resolution of 0.005 AUC, so each is best explained as a shortcut. On PAPILA, removing age and sex costs up to 0.09 AUC, and the cost is no longer detectable after matching 79 pairs on age. On ODIR-5K and for cardiomegaly, matching on age leaves a residual that disappears once sex is matched as well. Fine-tuning can deepen a shortcut: on PAPILA it leaves AUC unchanged yet nearly doubles how strongly the glaucoma score tracks age in healthy eyes.

cs.CV↗

Defense-in-Depth for LLMs: Evaluating Memory Gates Against Activation-Induced and Memory-Induced Sycophancy

Long-term memory allows Large Language Models (LLMs) to maintain personalized context across interactions, but retrieved user history can induce memory-induced sycophancy, causing models to favor stored user beliefs over objective evidence. Existing defenses primarily operate on retrieved context and are rarely evaluated jointly with internal behavioral bias. We introduce a $2 \times 2$ defense-in-depth framework separating internal activation steering from external memory handling. We extract sycophancy steering directions from 100 paired prompts and evaluate four open-weight models across 10 steering coefficients and five memory-defense configurations on MemSyco-Bench (answers for all 1,550 items; defense conditions judged on a fixed 250-item subsample), with three LLM judges. Three of the five configurations are new (rewriting every memory, a Router Gate that keeps, rewrites, or drops each memory, and dropping all memory); the other two are MemSyco's baselines. Selective Router Gate filtering preserves substantially more of MemSyco's average accuracy than complete memory removal, and this separation persists when the models are steered toward sycophancy. On Llama 3.1 8B with Router Gate, mild inverse steering ($α= -1.5$) lowers judge-averaged sycophancy from 35.80% to 31.32% while average accuracy moves from 43.99% to 43.31%; this reduction has the same direction under all three judges but is not statistically significant (paired $p = 0.08$ to $0.63$ on 149 items). External memory filtering is the part of the design that holds up; our data do not show that inverse steering adds to it.

cs.AI↗