LoRA-BAM: Input Filtering for Fine-tuned LLMs via Boxed Abstraction Monitors over LoRA Layers
Not on the map. Why?
Abstract (arXiv)
Fine-tuning large language models (LLMs) improves performance on domain-specific tasks but can lead to overfitting, making them unreliable on out-of-distribution (OoD) queries. We propose LoRA-BAM - a method that adds OoD detection monitors to the LoRA layer using boxed abstraction to filter questions beyond the model's competence. Feature vectors from the fine-tuning data are extracted via the LLM and clustered. Clusters are enclosed in boxes; a question is flagged as OoD if its feature vector falls outside all boxes. To improve interpretability and robustness, we introduce a regularization loss during fine-tuning that encourages paraphrased questions to stay close in the feature space, and the enlargement of the decision boundary is based on the feature variance within a cluster. Our method complements existing defenses by providing lightweight and interpretable OoD detection.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 21 references that are in the map. First posted on arXiv 1 Jun 2025.
Builds on
12 of 21 references.
References · 12
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 256
- 2023Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancementcited by 77
- 2022Detection of out-of-distribution samples using binary neuron activation patternscited by 15
- 2024BAM: Box Abstraction Monitors for Real-time OoD Detection in Object Detectioncited by 5
- 2024Out-of-Distribution Detection with Prototypical Outlier Proxycited by 4
Built on by
Not cited yet.