paper-with-me

Papers

GALLa: Graph Aligned Large Language Models for Improved Source Code Understanding

2024-09-06 · Ziyin Zhang, Hang Yu, Shijie Li, Peng Di, Jianguo Li, Rui Wang

Programming languages possess rich semantic information such as data flow that is represented by graphs and not available from the surface form of source code. Recent code language models have scaled to billions of parameters, but model source code solely as text tokens while ignoring any other structural information. Conversely, models that do encode structural information of code make modifications to the Transformer architecture, limiting their scale and compatibility with pretrained LLMs. In this work, we take the best of both worlds with GALLa - Graph Aligned Large Language Model. GALLa utilizes graph neural networks and cross-modal alignment technologies to inject the structural information of code into LLMs as an auxiliary task during finetuning. This framework is both model-agnostic and task-agnostic, as it can be applied to any code LLM for any code downstream task, and requires the structural graph data only at training time from a corpus unrelated to the finetuning data, while incurring no cost at inference time over the baseline LLM. Experiments on five code tasks with four different baseline LLMs ranging in size from 350M to 8B validate the effectiveness of GALLa, demonstrating consistent improvement over the baseline, even for powerful models such as LLaMA3.

📄 PDF Abstract BibTeX arXiv:2409.04183

Code (0)

등록된 구현이 없습니다.

Tasks

cross-modal alignmentLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

Attention 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

Gallant: Voxel Grid-based Humanoid Locomotion and Local-navigation across 3D Constrained Terrains

2025-11-18 · Qingwei Ben, Botian Xu, Kailin Li, Feiyu Jia 외 arxiv

Robust humanoid locomotion requires accurate and globally consistent perception of the surrounding 3D environment. However, existing perception modules, mainly based on depth images or elevation maps, offer only partial …

Learning Norms from Stories: A Prior for Value Aligned Agents

2019-12-07 · Spencer Frazier, Md Sultan Al Nahian, Mark Riedl, Brent Harrison

Value alignment is a property of an intelligent agent indicating that it can only pursue goals and activities that are beneficial to humans. Traditional approaches to value alignment use imitation learning or preference …

Imitation Learning

Passenger Mobility Prediction via Representation Learning for Dynamic Directed and Weighted Graph

2021-01-04 · Yuandong Wang, Hongzhi Yin, Tong Chen, Chunyang Liu 외

In recent years, ride-hailing services have been increasingly prevalent as they provide huge convenience for passengers. As a fundamental problem, the timely prediction of passenger demands in different regions is vital …

Graph AttentionPredictionRepresentation LearningTime Series Analysis

LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Development

2023-05-12 · Ilias Chalkidis, Nicolas Garneau, Catalina Goanta, Daniel Martin Katz 외

In this work, we conduct a detailed analysis on the performance of legal-oriented pre-trained language models (PLMs). We examine the interplay between their original objective, acquired knowledge, and legal language unde…

Knowledge ProbingLanguage ModelingLanguage Modelling

One Side of the Coin: Development of an ASL-English Parallel Corpus by Leveraging SRT Files

2020-05-01 · LREC 2020 5 · Rafael Trevi{\~n}o, Julie A. Hochgesang, Emily P. Shaw, Nic Willow

We report on a method used to develop a sizable parallel corpus of English and American Sign Language (ASL). The effort is part of the Gallaudet University Documentation of ASL (GUDA) project, which is currently coordina…

Translation