Paper Reading AI Learner

A BERTology View of LLM Orchestrations: Token- and Layer-Selective Probes for Efficient Single-Pass Classification

2026-01-19 18:40:29
Gonzalo Ariel Meyoyan, Luciano Del Corro

Abstract

Production LLM systems often rely on separate models for safety and other classification-heavy steps, increasing latency, VRAM footprint, and operational complexity. We instead reuse computation already paid for by the serving LLM: we train lightweight probes on its hidden states and predict labels in the same forward pass used for generation. We frame classification as representation selection over the full token-layer hidden-state tensor, rather than committing to a fixed token or fixed layer (e.g., first-token logits or final-layer pooling). To implement this, we introduce a two-stage aggregator that (i) summarizes tokens within each layer and (ii) aggregates across layer summaries to form a single representation for classification. We instantiate this template with direct pooling, a 100K-parameter scoring-attention gate, and a downcast multi-head self-attention (MHA) probe with up to 35M trainable parameters. Across safety and sentiment benchmarks our probes improve over logit-only reuse (e.g., MULI) and are competitive with substantially larger task-specific baselines, while preserving near-serving latency and avoiding the VRAM and latency costs of a separate guard-model pipeline.

Abstract (translated)

生产环境中的大型语言模型(LLM)系统通常依赖于单独的安全性和其他分类密集型步骤的模型,这会增加延迟、VRAM占用和操作复杂性。我们则重新利用已经由服务模型支付计算成本的部分:我们在其隐藏状态上训练轻量级探测器,并在生成过程中同一前向传递中预测标签。我们将分类视为在整个令牌层隐藏状态张量上的表示选择问题,而不是固定于特定的令牌或层次(例如,首个令牌的logits或最终层次的池化)。为实现这一点,我们引入了一个两阶段聚合器,该聚合器首先在每一层内总结令牌,然后跨层级摘要进行聚合以形成单个分类表示。我们将此模板实例化为直接池化、一个包含10万参数评分注意力门以及最多含3500万可训练参数的降级多头自注意力(MHA)探测器。在安全性和情感基准测试中,我们的探测器比仅使用logits重用的方法(例如MULI)表现出更好的性能,并且与显著更大的特定任务基线相当,同时保持了接近服务延迟,并避免了单独防护模型管道所需的VRAM和延迟成本。

URL

https://arxiv.org/abs/2601.13288

PDF

https://arxiv.org/pdf/2601.13288.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot