Paper Reading AI Learner

CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment

2025-02-16 10:18:15
Nura Aljaafari, Danilo S. Carvalho, Andr\'e Freitas

Abstract

Large language models (LLMs) struggle with compositional generalisation, limiting their ability to systematically combine learned components to interpret novel inputs. While architectural modifications, fine-tuning, and data augmentation improve compositionality, they often have limited adaptability, face scalability constraints, or yield diminishing returns on real data. To address this, we propose CARMA, an intervention that enhances the stability and robustness of compositional reasoning in LLMs while preserving fine-tuned performance. CARMA employs mutual information regularisation and layer-wise stability constraints to mitigate feature fragmentation, ensuring structured representations persist across and within layers. We evaluate CARMA on inverse dictionary modelling and sentiment classification, measuring its impact on semantic consistency, performance stability, and robustness to lexical perturbations. Results show that CARMA reduces the variability introduced by fine-tuning, stabilises token representations, and improves compositional reasoning. While its effectiveness varies across architectures, CARMA's key strength lies in reinforcing learned structures rather than introducing new capabilities, making it a scalable auxiliary method. These findings suggest that integrating CARMA with fine-tuning can improve compositional generalisation while maintaining task-specific performance in LLMs.

Abstract (translated)

大型语言模型(LLMs)在组合泛化方面存在困难,限制了它们系统地结合已学组件来解释新输入的能力。尽管架构修改、微调和数据增强可以改善组合性,但这些方法通常适应性有限、面临规模扩展的约束或在实际数据上收益递减。为解决这一问题,我们提出了CARMA干预措施,旨在提高大型语言模型中组合推理的稳定性和鲁棒性,同时保持微调后的性能。 CARMA采用互信息正则化和逐层稳定性约束来缓解特征碎片化现象,确保跨层和内部层次结构化的表示持续存在。我们在逆词典建模和情感分类任务上评估了CARMA的效果,并对其对语义一致性、性能稳定性和词汇扰动鲁棒性的效果进行了测量。结果显示,CARMA减少了微调引入的变异性,稳定了令牌表示,并提高了组合推理能力。尽管其有效性在不同的架构中有所不同,但CARMA的关键优势在于强化已学结构而不是引入新的功能,使其成为一种可扩展的支持性方法。 这些发现表明,在大型语言模型中结合使用CARMA和微调可以改进组合泛化同时保持特定任务的性能。

URL

https://arxiv.org/abs/2502.11066

PDF

https://arxiv.org/pdf/2502.11066.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