arXiv ScienceSearch

arXiv subjects

Alan Ferrari

Publications and source records attributed to Alan Ferrari.

4 recordsLinked to original sources

Meta-Attention: Bayesian Per-Token Routing for Efficient Transformer Inference

Standard transformer architectures apply a single attention mechanism uniformly across all tokens and sequence positions, irrespective of local context or computational budget. We propose Meta-Attention, a framework that dynamically routes each token to the most appropriate attention strategy -- full softmax attention, linear (kernel) attention, or sliding-window local attention -- via a Bayesian Meta-Controller. Unlike prior routing approaches that use deterministic or prior-free learned routing, the Meta-Controller treats per-token mechanism selection as posterior inference under a compute-aware Dirichlet prior: routing weights are the output of an amortised variational posterior q(alpha | x_t; phi) trained with an Evidence Lower Bound (ELBO) objective that jointly encodes task performance and attention-mechanism cost. This design produces principled routing uncertainty estimates that govern the soft-to-hard routing transition, mitigates routing collapse without ad hoc load-balancing losses, and yields better compute-performance trade-offs than deterministic or prior-free learned routing at negligible overhead. Phase 1 empirical results on a Tiny LM benchmark confirm core predictions: the Bayesian controller's learned routing distribution implies a projected normalised FLOP cost of 25.1% under hard routing, vs. 59.3% for the prior-free baseline (-34.2 pp), and reduces routing entropy from 55.8% to 43.3% (-12.5 pp), demonstrating that the Dirichlet prior prevents routing collapse while the non-Bayesian model defaults to full attention. We present the Bayesian architecture, ELBO training objective, and a Phase 1 PyTorch prototype validating forward-pass correctness, posterior diversity, and a controlled ablation against a prior-free baseline. Code available at: https://github.com/KFEAL/meta-attention

cs.LG

A study on users' privacy perception with smart devices

Nowadays, privacy has become a very serious issue with smart and mobile platforms. Users tend to allow intrusive apps access much sensible information without really knowing the potential threats. To solve this issue several solutions (e.g. GDPR) have been provided. Our claim is that the users currently are not sufficiently involved in this process for being able to use such solutions. To do this we developed an application that provides a form of awareness to the users and we asked them to reply a set of questions. Our conclusions are that users must be better informed of the risks and value of their personal information.

cs.CY

Building accurate HAV exploiting User Profiling and Sentiment Analysis

Social Engineering (SE) is one of the most dangerous aspect an attacker can use against a given entity (private citizen, industry, government, ...). In order to perform SE attacks, it is necessary to collect as much information as possible about the target (or victim(s)). The aim of this paper is to report the details of an activity which took to the development of an automatic tool that extracts, categorizes and summarizes the target interests, thus possible weaknesses with respect to specific topics. Data is collected from the user's activity on social networks, parsed and analyzed using text mining techniques. The main contribution of the proposed tool consists in delivering some reports that allow the citizen, institutions as well as private bodies the screening of their exposure to SE attacks, with a strong awareness potential that will be reflected in a decrease of the risks and a good opportunity to save money.

cs.CR

B-Maniac

Mobile Data Offloading permits users to use cheap communication media, whenever feasible, for delivering their personal data instead of using the infrastructure which is more expensive. Having good procedures to assess and compare the different possibilities a device has to send his data is crucial. In the following paper, we propose an evaluating approach that takes into consideration the topology changes history in order to provide an efficient way to calculate the quality of a specific medium. In particular \textit{Bayesian Networks} are used as basis to provide our solution to the Maniac Challenge 2013. Bayesian Networks is a statistical model for the generation of inferences starting with very little information. In the next sections we will give a definition of the Bayesian Networks focusing on the simplest and computationally efficient of the Bayesian Networks versions, named \textit{\naive Bayes}. Finally, we will show our method for the challenge to evaluate the medium and the bid strategy.

cs.NI