Searcharxiv⌕ Search

arXiv subjects

Niccolò Ronchetti

Publications and source records attributed to Niccolò Ronchetti.

7 recordsLinked to original sources

Auditing and Adapting kNNGuard for Long-Context Prompts

Training-free activation guardrails such as kNNGuard score prompts by comparing last-token LLM hidden states (the Layer Ensemble branch, kNNGuard LE) and sentence embeddings (all-MiniLM-L6-v2, Embedding-kNN) against a small reference bank (50 examples per class), combining the two branches into a Fused Ensemble (kNNGuard FE). While effective on short inputs (up to 256 tokens), standard kNNGuard degrades substantially on long inputs (over 1000 tokens): averaged across Qwen3.5-4B and Gemma-4-E4B-it, kNNGuard LE AUROC drops from 0.742 (0.777 and 0.706) to 0.554 (0.587 and 0.521) on Content Harm Moderation (Aegis-2.0), and from 0.994 (0.995 and 0.992) to 0.556 (0.598 and 0.513) on RAG Hallucination Detection (HaluBench). We trace this degradation to three causes: (1) hidden-state drift as sequence length increases, (2) hard 256-token truncation in MiniLM, and (3) signal dilution when a long document is compressed into a single final-token vector. We then evaluate three training-free adaptations: a Length-Routed Dual Bank, a long-context embedding model (Qwen3-Embedding-0.6B), and Strided Window Pooling across intermediate token positions. On Content Harm Moderation, dual-bank routing and strided window pooling raise long-context kNNGuard LE AUROC from 0.554 to 0.828 (+0.274 AUROC) and fused kNNGuard FE AUROC from 0.721 to 0.886 (+0.164 AUROC) with no latency overhead from bank routing. On RAG Hallucination Detection, where the guardrail must verify logical consistency between a generated answer and a retrieved passage, sentence-embedding kNN remains near random chance across all lengths, while length-matched LLM hidden states (kNNGuard LE) recover medium-length detection (AUROC = 0.853) but remain limited on over-1000-token passages (AUROC = 0.607) due to final-token dilution over long contexts.

cs.LG↗

Orthogonal Boundary Unlearning for Dual-Use Concepts in Large Language Models

Mitigating catastrophic risks from large language models requires excising hazardous operational capabilities, such as cyberwarfare exploitation and pathogen enhancement, without degrading benign scientific utility. In these dual-use domains, legitimate defensive science and malicious attacks share vocabulary, syntax, and internal model representations, causing standard unlearning methods to induce severe collateral damage (concept bleeding). In this work, we present Orthogonal Boundary Unlearning (OBU), a mathematically grounded framework designed to eliminate collateral damage on benign dual-use capabilities. OBU extracts a domain-matched capability subspace from paired calibration queries via singular value decomposition on empirical activation covariances, and restricts parameter updates strictly to the orthogonal null space. This guarantees that benign representations experience zero parameter perturbation along the spanned calibration subspace. We present two complementary realizations of OBU: Projected LoRA, which applies the orthogonal constraint during iterative gradient-based fine-tuning, and Closed-Form Weight Surgery, which directly edits model weights in a single analytical step without training. Across four modern open-weight foundation models (Gemma-3-4B, Qwen3.5-4B, SmolLM3-3B, and Granite-4.2-3B), OBU achieves strong dual-use concept separation, substantially mitigates in-context priming attacks, and demonstrates durable resistance against adversarial relearning without degrading benign domain competence.

cs.LG↗

Conditional Idempotent Generative Networks

We propose Conditional Idempotent Generative Networks (CIGN), a novel approach that expands upon Idempotent Generative Networks (IGN) to enable conditional generation. While IGNs offer efficient single-pass generation, they lack the ability to control the content of the generated data. CIGNs address this limitation by incorporating conditioning mechanisms, allowing users to steer the generation process towards specific types of data. We establish the theoretical foundations for CIGNs, outlining their scope, loss function design, and evaluation metrics. We then present two potential architectures for implementing CIGNs: channel conditioning and filter conditioning. Finally, we discuss experimental results on the MNIST dataset, demonstrating the effectiveness of both approaches. Our findings pave the way for further exploration of CIGNs on larger datasets and with more powerful computing resources to determine the optimal implementation strategy.

cs.LG↗

Derived Hecke action at $p$ and the ordinary $p$-adic cohomology of arithmetic manifolds

We study the derived Hecke action at $p$ on the ordinary $p$-adic cohomology of arithmetic subgroups of semisimple groups $\mathrm G(\mathbb Q)$, i.e., we study the derived version of Hida's theory for ordinary Hecke algebras. This is the analog at $\ell=p$ of derived Hecke actions studied by Venkatesh in the tame case. We show that properties of the derived Hecke action at $p$ are related to deep conjectures in Galois cohomology which are higher analogs of the classical Leopoldt conjecture.

math.NT↗

On the cohomology of integral $p$-adic unipotent radicals

Let $\mathrm G / F$ be a reductive split $p$-adic group and let $\mathrm U$ be the unipotent radical of a Borel subgroup. We study the cohomology with trivial $\mathbb Z_p$-coefficients of the profinite nilpotent group $N = \mathrm U(\mathcal O_F)$ and its Lie algebra $\mathfrak n$, by extending a classical result of Kostant to our integral $p$-adic setup. The techniques used are a combination of results from group theory, algebraic groups and homological algebra.

math.RT↗

A Satake homomorphism for the $\bmod \, p$ derived Hecke algebra

We explore the structure of the derived spherical Hecke algebra of a $p$-adic group, a graded associative algebra whose degree $0$ subalgebra is the classical spherical Hecke algebra. Working with $\mathbb Z/ p^a$ coefficients, we establish a Satake homomorphism relating this graded algebra to the corresponding graded algebra for the torus. We investigate the image of this homomorphism in degree $1$, as well as other properties, such as transitivity with respect to inclusion of Levi subgroups.

math.RT↗

Local Base Change via Tate Cohomology

In this paper we propose a new way to realize cyclic base change (a special case of Langlands functoriality) for prime degree extensions of characteristic zero local fields. Let $F / E$ be a prime degree $l$ extension of local fields of residue characteristic $p \neq l$. Let $π$ be an irreducible cuspidal $l$-adic representation of $\mathrm{GL}_n(E)$ and $ρ$ be an irreducible cuspidal $l$-adic representation of $\mathrm{GL}_n(F)$ which is Galois-invariant. Under some minor technical conditions on $π$ and $ρ$ (for instance, we assume that both are level zero) we prove that the $\bmod l$-reductions $r_l(π)$ and $r_l(ρ)$ are in base change if and only if the Tate cohomology of $ρ$ with respect to the Galois action is isomorphic, as a modular representation of $\mathrm{GL}_n(E)$, to the Frobenius twist of $r_l(π)$. This proves a special case of a conjecture of Treumann and Venkatesh as they investigate the relationship between linkage and Langlands functoriality.

math.RT↗