L3 Ensembles: Lifelong Learning Approach for Ensemble of Foundational Language Models

Aidin Shiri, Kaushik Roy, Amit Sheth, Manas GaurarXiv 2023

TL;DR

$L^3$ Ensembles introduces a lifelong learning framework that combines ensembles of smaller foundational language models (FLMs) with external knowledge infusion to combat "catastrophic forgetting." By leveraging modular adapters and structured knowledge, the approach achieves significant accuracy gains (4%–36%) over standard fine-tuning, even outperforming massive models like T5 on specific benchmarks while remaining efficient enough for edge devices.

What Problem Does This Paper Address?

The standard paradigm for using Foundational Language Models (FLMs) involves fine-tuning them on specific downstream tasks. However, this approach faces two major hurdles:

  1. Resource Constraints: Fine-tuning and deploying billion-parameter models is often impractical for edge devices (like smartphones or IoT sensors) with limited compute and memory.
  2. Catastrophic Forgetting (CF): When a model is sequentially trained on new tasks, it tends to abruptly lose the knowledge it acquired from previous tasks.

The authors seek a "Lifelong Learning" ($L^3$) approach that allows models to continuously adapt to a stream of NLP tasks without losing prior knowledge, specifically targeting efficient, smaller-scale models.

Methods

The authors propose a framework that moves away from monolithic model scaling in favor of Ensemble Learning and Knowledge Infusion (KI).

  • Ensemble of FLMs: Instead of one large model, the system uses an ensemble of smaller, diverse FLMs (e.g., BERT, RoBERTa, DistilBERT, ELECTRA).
  • Knowledge Infused (KI) Ensemble: This is a key novelty. The framework incorporates external structured knowledge from sources like the Wikipedia Knowledge Graph. This "infused knowledge" acts as a stabilizer for the model's representations.
  • LLM Ensemble: The authors also experiment with incorporating frozen embeddings from high-performing models (specifically text-embedding-ada-002) to fortify the vectorized representations of the smaller ensemble members.
  • Modular Task Adapters: To maintain training efficiency, the framework uses modular adapters that allow for task-specific tuning without altering the underlying frozen weights of the foundational models.
Figure 2: A framework for Lifelong Learning using Ensemble of FLMs. Blue tasks are the parts that have been implemented, and green parts are works in progress.

Datasets

The researchers validated their approach using several standard NLP benchmarks:

  • GLUE (General Language Understanding Evaluation): Tasks included CoLA (linguistic acceptability), SST2 (sentiment), QQP (question pairs), and QNLI/WNLI (natural language inference).
  • SuperGLUE: A more challenging successor to GLUE, specifically using the BoolQ (boolean questions) and RTE (recognizing textual entailment) tasks.
  • STS (Semantic Textual Similarity) benchmark: Used to evaluate the ensemble methods' performance on regression-style similarity tasks.

Key Insights and Ideas

  • The "Related Task" Trap: The paper demonstrates that catastrophic forgetting occurs even between semantically similar tasks. As shown in Figure 1, training BERT on one task and then testing on a related one leads to a sharp performance drop.
  • Small Ensembles > Giant Models: One of the most striking findings is that an ensemble of small models (totaling under 500M parameters) can outperform a single state-of-the-art model like T5 (11B parameters) on the STS benchmark. This suggests that diversity of representation can be more valuable than raw parameter count for certain tasks.
  • Knowledge as an Anchor: Infusing external knowledge (via Knowledge Graphs or LLM embeddings) helps "anchor" the model's understanding, making it more resilient to the shifts in data distribution that typically cause forgetting during sequential learning.
Figure 1: Performance (%) of the Fine-Tuned 𝐵𝐸𝑅𝑇𝑏𝑎𝑠𝑒on Continual Se- quence of Similar GLUE Benchmark Tasks (C: CoLA, S: SST2, QQ: QQP, W: WNLI, QN: QNLI). Notation “𝐶→𝑆” denotes training on CoLA and testing on SST2. Notation “𝑄𝑄→𝑊→𝑄𝑁” indicates that the model underwent training on QQP, followed by WNLI, and was subsequently tested on QNLI.

Key Results

  • Accuracy Gains: The $L^3$ ensemble method increased model accuracy by 4% to 36% compared to standard fine-tuned individual FLMs.
  • Mitigating Forgetting: In sequential task testing (e.g., moving from QQP to MRPC), standard models showed a performance drop (CF) of 7% to 28.9%. The ensemble approach significantly mitigated these losses.
  • Efficiency on STS: On the STS benchmark, the KI and LLM ensembles achieved lower Mean Squared Error (MSE) than individual models. Notably, the LLM Ensemble achieved an MSE of 0.262, outperforming the 11-billion parameter T5 model (MSE 0.31).
Table 1: The Knowledge transfer of single FLM “𝐵𝐸𝑅𝑇𝑏𝑎𝑠𝑒” on the four sample GLUE and SuperGLUE tasks. Notation “𝐵𝐸𝑅𝑇𝑏𝑎𝑠𝑒→𝑄𝑄𝑃” denotes that the base model is fine-tuned on QQP task.

Limitations and Future Work

While the results are promising, the authors note that parts of the framework are still "works in progress." Specifically:

  • Reinforcement Learning: The authors plan to extend the Knowledge Infused ensemble using a reinforcement learning-based approach to better select and "plug in" relevant knowledge for specific tasks.
  • Task Breadth: Future research will look at expanding the framework to a wider variety of knowledge-intensive NLP tasks beyond the current benchmarks.
  • Complexity of Integration: While the individual models are small, managing an ensemble with external knowledge graphs adds architectural complexity that needs further optimization for seamless deployment.

Summary updated

Abstract

Fine-tuning pre-trained foundational language models (FLM) for specific tasks is often impractical, especially for resource-constrained devices. This necessitates the development of a Lifelong Learning (L3) framework that continuously adapts to a stream of Natural Language Processing (NLP) tasks efficiently. We propose an approach that focuses on extracting meaningful representations from unseen data, constructing a structured knowledge base, and improving task performance incrementally. We conducted experiments on various NLP tasks to validate its effectiveness, including benchmarks like GLUE and SuperGLUE. We measured good performance across the accuracy, training efficiency, and knowledge transfer metrics. Initial experimental results show that the proposed L3 ensemble method increases the model accuracy by 4% ~ 36% compared to the fine-tuned FLM. Furthermore, L3 model outperforms naive fine-tuning approaches while maintaining competitive or superior performance (up to 15.4% increase in accuracy) compared to the state-of-the-art language model (T5) for the given task, STS benchmark.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
STS Benchmark · datasetKI EnsembleMSE loss0.264-0.02 vs baselineSemantic Textual Similarity · params=345M · backbone=BERT + RoBERTa + ELECTRA
Source quote
L35: T5 │ 11B │ 0.31 │ BERT\ │ RoBERTa \ │ ELECTRA │ 345M │ 0.286 │ 0.282 │ 0. 262 │ 0.264
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
STS Benchmark · datasetT5 baselineMSE loss0.31Semantic Textual Similarity · params=11B · backbone=T5
Source quote
L35: T5 │ 11B │ 0.31 │ BERT\ │ RoBERTa \ │ ELECTRA │ 345M │ 0.286 │ 0.282 │ 0. 262 │ 0.264
STS Benchmark · datasetWeighted Ensemble baselineMSE loss0.282Semantic Textual Similarity · params=345M · backbone=BERT + RoBERTa + ELECTRA
Source quote
L35: T5 │ 11B │ 0.31 │ BERT\ │ RoBERTa \ │ ELECTRA │ 345M │ 0.286 │ 0.282 │ 0. 262 │ 0.264
BibTeX
@misc{shiri2023l,
  author = {Aidin Shiri and Kaushik Roy and Amit Sheth and Manas Gaur},
  title = {{L3 Ensembles: Lifelong Learning Approach for Ensemble of Foundational Language Models}},
  year = {2023},
  eprint = {2311.06493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.06493},
}
Figure