Multi-language mastery: Minimized hardware, maximized efficiency

December 08, 2023

Multilingual language models, or MLMs, are machine learning models that can predict, generate, and extract text from more than one language. As language models grow larger, their performance improves—as long as they only operate in a single language. "Giving each child a full set of paints to express themselves—or perform tasks in their language—would require massive amounts of pigment, or model parameters. Crucially, this allows for a significant reduction in a language model's size without compromising its performance. Other co-authors of this work include Benjamin Van Durme, an assistant professor of computer science and a member of HLTCOE and CLSP; his advisee Yunmo Chen, a third-year PhD student in Computer Science; Weiting Tan, a doctoral candidate in Computer Science; and Shuyue Stella Li, Engr '22, '23 (MS), a former research assistant at CLSP.

Multilingual language models, or MLMs, are machine learning models that can predict, generate, and extract text from more than one language. They're useful for cross-lingual communication, translation, and more—but tend to work best when they're only focused on a few languages.

As language models grow larger, their performance improves—as long as they only operate in a single language. Despite increasing the size of a model, the addition of more languages can undermine its performance due to "language interference," where the parameters (or variables) of a model that control its behavior in one language negatively impact its performance in another.

Haoran Xu

Doctoral candidate, Department of Computer Science

"Our findings indicate the feasibility of deploying truly multilingual AI models in devices of all sizes."

However, a team of Johns Hopkins computer scientists has developed a new approach to optimizing MLMs for multiple languages. Called Language-Specific Matrix Synthesis, their method reduces the number of parameters needed for a model to function in each new language.

The researchers are presenting their work this week at the 2023 Conference on Empirical Methods in Natural Language Processing in Singapore.

"Our focus was on achieving comparable performance while using fewer parameters," explains team member Haoran Xu, a doctoral candidate in the Whiting School of Engineering's Department of Computer Science who is advised by co-authors Philipp Koehn, a professor of computer science affiliated with the Center for Language and Speech Processing, and Kenton Murray, a research scientist at the Human Language Technology Center of Excellence and a member of CLSP.

As opposed to the traditional approach of designing separate dense neural networks—computing systems that loosely mimic the workings of the human brain—for each additional language in an MLM, the team opted to use low-rank matrices, which organize information by compressing data, to reduce the number of parameters needed to accommodate a new language. This allowed to the team to add new languages without needing as many parameters, avoiding what Xu calls an "explosion of parameters" at scale.

"Imagine a classroom with 100 children, each representing a different language," explains Xu. "Giving each child a full set of paints to express themselves—or perform tasks in their language—would require massive amounts of pigment, or model parameters. Instead, if you have them share only red, yellow, and blue, the children can still create the full color spectrum while using far less pigment and far fewer parameters. And since only one child can paint at a time, all 100 children can share that single three-color palette, drastically reducing parameter needs."

The team has proven in tests with a model capable of understanding up to 95 different languages that their method achieves superior performance in multilingual settings, all while using fewer parameters. Crucially, this allows for a significant reduction in a language model's size without compromising its performance. Due to the reduced hardware requirements needed to deploy a smaller language model, a single, portable AI application using the Language-Specific Matrix Synthesis method may soon be capable of handling hundreds of languages instead of just a few, the team predicts.

"Our findings indicate the feasibility of deploying truly multilingual AI models in devices of all sizes," adds Xu.

The researchers say their objective is to apply their method to unwieldy MLMs and develop robust AI systems that can comprehend multiple languages while performing as effectively as they do in English.

Other co-authors of this work include Benjamin Van Durme, an assistant professor of computer science and a member of HLTCOE and CLSP; his advisee Yunmo Chen, a third-year PhD student in Computer Science; Weiting Tan, a doctoral candidate in Computer Science; and Shuyue Stella Li, Engr '22, '23 (MS), a former research assistant at CLSP.

The source of this news is from Johns Hopkins University

Popular in Research

1

Jul 7, 2024

Scientists use generative AI to answer complex questions in physics

2

Jul 7, 2024

First language song book a hit in the APY Lands

3

Jul 7, 2024

Navigating longevity with industry leaders at MIT AgeLab PLAN Forum

4

Jul 7, 2024

Dismissed and discharged: health systems still failing people with poor mental health

5

Jul 7, 2024

Elaine Liu: Charging ahead

Biden’s ABC Interview Was a Necessary Appointment With the Public — and a Botched One

Jul 7, 2024

No “Serious Condition”: Watch Biden Tell George Stephanopoulos Of Debate Debacle In First Clip From ABC Interview

Jul 6, 2024

American Air, Gate Gourmet Face Pressure on Contracts to Avoid Strikes

Jul 7, 2024

MSN

Jul 7, 2024

NYU Dentistry Names Implant Dentistry Fellowship in Recognition of Major Gift from Alumni Noel Liu and Nazish Jafri

Jul 7, 2024

Biden Aides Provided Questions in Advance for His Radio Interviews

Jul 7, 2024