Manuscript Offprint

arXiv:2610.08174

FBAN: A Fully Homomorphic Encryption Compatible Bottleneck Attention Network for Privacy-Preserving Behavioral Authentication

Jichao Xiong, Atsuko Miyaji, Jiageng Chen

Jichao Xiong 1^{1}, Atsuko Miyaji 1∗^{1*}, and Jiageng Chen 2^{2}

1^{1} Department of Information and Communications Technology, The University of Osaka, Suita, Osaka 565-0871, Japan

2^{2} School of Computer Science, Central China Normal University, Wuhan 430079, China

{miyaji}@comm.eng.osaka-u.ac.jp

Abstract. Continuous authentication (CA) strengthens session security by repeatedly verifying the user during device interaction, yet it inherently relies on highly sensitive behavioral traces (e.g., fine-grained touch dynamics) that are often outsourced to cloud/edge services for scalable inference. This raises a fundamental privacy-in-use challenge: protecting behavioral features during computation, not only in transit or at rest. Fully homomorphic encryption (FHE) offers a principled solution, but deploying modern CA models under FHE remains difficult due to non-linearities and attention-style operations that incur high ciphertext cost. We propose FBAN, a TFHE-compatible Bottleneck Attention Network and an end-to-end encrypted CA framework. FBAN is designed for integer-only execution via a two-stage pipeline (floating-point pretraining followed by quantization-aware training) and is compiled into TFHE circuits for homomorphic inference. We further specify a client–server protocol with session-bound blinding and decrypt-and-return verification, enabling the server to authenticate users without observing raw behavioral features. We provide a cryptographic security analysis against an honest-but-curious server under TFHE IND-CPA security, and formalize resistance to replay and impersonation without the TFHE secret key. Experiments on two public touchscreen datasets demonstrate that FBAN achieves strong authentication utility under encrypted inference while maintaining a lightweight model footprint, with TFHE parameters instantiated at ≥\geq128-bit security.

Keywords: Continuous Authentication · Privacy-preserving · Fully Homomorphic Encryption (FHE) · Biometrics security

1 Introduction

Smartphones and wearables increasingly mediate security-critical actions—mobile payments, healthcare access, enterprise messaging, and location-dependent ser-

∗^{*} This paper has been accepted at the 28th International Conference on Information and Communications Security (ICICS 2026).

∗^{*} Corresponding author.

Jichao Xiong, Atsuko Miyaji, and Jiageng Chen

vices—making user authentication a first-order security primitive [12]. Traditional mechanisms, including passwords/PINs and physiological biometrics (e.g., face or fingerprint), are widely deployed but remain vulnerable to credential theft and presentation or replay attacks, and—crucially—only verify the user at session entry [1]. Once a session is unlocked, an adversary who gains short-term access can operate under the legitimate identity until the session terminates [3].

Continuous authentication (CA) has emerged as a promising complement to entry-point authentication by continuously verifying the user in a passive and transparent manner during device interaction [20]. Recent CA systems leverage behavioral biometrics such as keystroke dynamics [29], touch gestures, and inertial signals, often augmented by context or temporal modeling [21]; complementary schemes exploit richer physiological cues such as auditory-pupillary response for emerging platforms [32]. For example, touchscreen-based approaches model fine-grained touchpoints and contextual dependencies across consecutive swipes to improve recognition performance while controlling model complexity. Transformer-based frameworks further exploit attention to extract discriminative spatio-temporal representations from multimodal behavioral streams, achieving strong error rates on public datasets [23] [8].

Despite this progress, a critical gap remains underexplored in most research prototypes: the behavioral and contextual signals enabling CA are intrinsically sensitive personal data [17]. CA continuously captures and processes fine-grained behavioral traces (e.g., timing, pressure, motion, and usage context), which can reveal not only identity but also private attributes and usage patterns. CA surveys explicitly recognize that such continuous monitoring raises privacy concerns because personal data are collected, transmitted, and processed outside the user's direct control, particularly in cloud-assisted settings [2]. In practice, many deployed applications already rely on cloud resources for scalability and on-demand computation [25]; however, outsourcing CA inference to an untrusted server exacerbates privacy risk: the server can observe raw behavioral features, intermediate representations, or authentication scores, enabling profiling or unintended secondary use [4].

A straightforward response—running CA entirely on-device—does not fully resolve the problem. Existing continuous authentication (CA) systems largely focus on recognition accuracy and efficiency, while overlooking a fundamental issue: the behavioral stream itself is highly sensitive and is typically processed in the clear. This creates a clear gap between current CA designs and practical privacy requirements. Meanwhile, modern CA models increasingly employ deep architectures with temporal modeling and attention-style components, whose computation, memory, and energy costs can exceed the budget of mobile devices, thereby motivating inference offloading to the edge or cloud [28]. As a result, trustworthy CA requires privacy-in-use, i.e., protection of behavioral features throughout inference rather than only in transit or at rest.

Fully homomorphic encryption (FHE) offers a principled way to realize privacy-in-use by enabling computation directly over encrypted data [26]. However, bringing FHE into modern CA remains difficult. On the one hand, nonlinear layers [13], normalization [31], and especially attention-style interactions [18] can significantly increase circuit depth and ciphertext cost, leading to substantial latency [15]; recent work on quantized attention under FHE for health sensing [27] further highlights the tension between model expressiveness and encrypted-inference efficiency. On the other hand, typical CA models are designed in floating-point arithmetic with standard activations, whereas efficient encrypted deployment often favors tightly controlled quantized computation [5]. Although approximate-arithmetic schemes such as CKKS [6] support real-valued operations, they are less suitable for our setting, where CA is repeatedly executed over many short behavioral windows and requires stable threshold-based decisions; in this regime, repeated approximate nonlinear evaluation and precision management can still incur expensive refresh operations. We therefore target TFHE [7], which naturally supports exact integer-domain computation after quantization and better matches the discrete inference-and-verification workflow considered here.

To address the above challenges—namely, (i) the lack of privacy protection in existing CA despite the sensitivity of behavioral data, (ii) the high homomorphic cost induced by deep nonlinear and attention-based CA models, and (iii) the mismatch between floating-point model design and efficient encrypted execution—we propose FBAN, an FHE-compatible Bottleneck Attention Network for privacy-preserving behavioral continuous authentication. FBAN is designed from the ground up for TFHE-style integer-domain execution: we introduce a bottlenecked serial attention formulation that avoids FHE-unfriendly operators and can be compiled into efficient encrypted circuits after quantization-aware training (QAT). Our end-to-end workflow supports (i) floating-point pretraining for strong baseline accuracy, (ii) integer-only QAT for faithful deployment under FHE constraints, and (iii) secure inference over encrypted behavioral streams, optionally combined with lightweight ensemble aggregation to further improve robustness.

Our main contributions are as follows:

– Privacy-in-use continuous authentication: We formulate privacy preserving behavioral continuous authentication under an untrusted inference setting and present an end-to-end FHE-based inference pipeline that keeps sensitive behavioral inputs encrypted throughout computation, addressing privacy concerns highlighted in CA surveys.

– FBAN: FHE-compatible bottleneck attention: We propose FBAN and an integer-only deployment pipeline via QAT, enabling attention-based modeling to be compiled and executed efficiently under TFHE-style FHE constraints.

– Strong accuracy-latency trade-offs with rigorous evaluation: We empirically show that FBAN achieves competitive authentication performance against representative CA baselines (including Transformer-based context-aware models) while reducing model complexity and delivering end-to-end FHE latency practical for periodic or risk-triggered re-verification, supported by an evaluation protocol aligned with realistic threat models.

Jichao Xiong, Atsuko Miyaji, and Jiageng Chen

References (31)

  • Sensor-based continuous authentication of smartphones' users using behavioral biometrics: A contemporary survey
  • A comprehensive review on secure biometric-based continuous authentication and user profiling
  • Cryptomask: Privacy-preserving face recognition
  • Security, privacy, and usability in continuous authentication: A survey
  • The-x: Privacy-preserving transformer inference with homomorphic encryption (opens arXiv in a new tab)
  • Homomorphic encryption for arithmetic of approximate numbers
  • Tfhe: fast fully homomorphic encryption over the torus
  • Behaveformer: a framework with spatio-temporal dual attention transformers for imu enhanced keystroke dynamics
  • Touchalytics: On the applicability of touchscreen input as a behavioral biometric for continuous authentication
  • A fully homomorphic encryption scheme
  • Common evaluation pitfalls in touch-based authentication systems
  • Techniques for continuous touch-based authentication
  • Cryptonets: Applying neural networks to encrypted data with high throughput and accuracy
  • Dakota: Sensor and touch screen-based continuous authentication on a mobile banking application
  • A lightweight privacy-preserving federated learning framework for heterogeneity-resilient skin cancer diagnosis
  • A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
  • Multi-factor authentication: A survey
  • Powerformer: Efficient privacy-preserving transformer with batch rectifier-power max function and optimized homomorphic attention
  • Ensemble learning: A survey
  • Hmog: New behavioral biometric features for continuous authentication of smartphone users
  • Behavioral biometrics & continuous user authentication on mobile devices: A survey
  • Omni-scale cnns: a simple and effective kernel size configuration for time series classification (opens arXiv in a new tab)
  • Tsca: Enhancing smartphone security with a touchpoints-sensitive and context-aware model for touchscreen-based authentication
  • Timesnet: Temporal 2d-variation modeling for general time series analysis (opens arXiv in a new tab)
  • A privacy-preserving computer-aided diagnosis framework for medical applications using federated learning and homomorphic encryption
  • Enhancing privacy-preserving machine learning with self-learnable activation functions in fully homomorphic encryption
  • Stressentry-fhe: A transformer-based privacy-preserving framework for stress detection using quantized attention
  • A novel biometric authentication scheme with privacy preserving
  • Strokepin: Enhancing pin authentication with keystroke dynamics for mobile devices
  • Secure transformer inference made non-interactive
  • Soundlock: A novel user authentication scheme for vr devices using auditory-pupillary response