SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.20192 · NeurIPS · 2024

TAIA: Large Language Models are Out-of-Distribution Data Learners

Yu Wang, Ya Zhang, Yanfeng Wang, Shuyang Jiang, Yusheng Liao

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
pixas/taia_llm canonical 0 of 1
pixas/TAIA_LLM — 2 of 5
FunctionStatusWhere it lives
BaseModelOutputWithPastLogitLoss Ran pixas/TAIA_LLM/taia/model/modeling_molora_llama.py
pointer only (licence: NONE) · get_code("bf3460a19530da22")
MoLoRALlamaMLP Ran pixas/TAIA_LLM/taia/model/modeling_molora_llama.py
pointer only (licence: NONE) · get_code("2aee7c286eb10fe8")
MoLoRALlamaDecoderLayer Not yet run pixas/TAIA_LLM/taia/model/modeling_molora_llama.py
pointer only (licence: NONE) · get_code("700af2fc8dd6876b")
MoLoRALlamaForCausalLM Not yet run pixas/TAIA_LLM/taia/model/modeling_molora_llama.py
pointer only (licence: NONE) · get_code("c05245b47150fcc7")
MoLoRALlamaModel Not yet run pixas/TAIA_LLM/taia/model/modeling_molora_llama.py
pointer only (licence: NONE) · get_code("bfee72985d8aa2e4")
calc_attention_fluctuation Not yet run pixas/taia_llm/taia/model/modeling_molora_llama.py
pointer only (licence: NONE) · get_code("0a1c7b7fd806c8f9")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Fine-tuning on task-specific question-answer pairs is a predominant method for enhancing the performance of instruction-tuned large language models (LLMs) on downstream tasks. However, in certain specialized domains, such as healthcare or harmless content generation, it is nearly impossible to obtain a large volume of high-quality data that matches the downstream distribution. To improve the performance of LLMs in data-scarce domains with domain-mismatched data, we re-evaluated the Transformer architecture and discovered that not all parameter updates during fine-tuning contribute positively to downstream performance. Our analysis reveals that within the self-attention and feed-forward networks, only the fine-tuned attention parameters are particularly beneficial when the training set's distribution does not fully align with the test set. Based on this insight, we propose an effective inference-time intervention method: Training All parameters but Inferring with only Attention (TAIA). We empirically validate TAIA using two general instruction-tuning datasets and evaluate it on seven downstream tasks involving math, reasoning, and knowledge understanding across LLMs of different parameter sizes and fine-tuning techniques. Our comprehensive experiments demonstrate that TAIA achieves superior improvements compared to both the fully fine-tuned model and the base model in most scenarios, with significant performance gains. The high tolerance of TAIA to data mismatches makes it resistant to jailbreaking tuning and enhances specialized tasks using general data. Code is available in https://github.com/pixas/TAIA_LLM. * Equal contribution, alphabetical order.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.20192")
get_code_for_paper("2405.20192")
have("2405.20192")

Connect an agent — have() is free.