LangFIR: Discovering Sparse Language-Specific Features from Monolingual Data for Language Steering

Sing Hieng Wong, Hassan Sajjad, A.b. Siddique

TL;DR

LangFIR is a data-efficient method that identifies a tiny set of "language-specific" features in LLMs using only a handful of monolingual sentences. By filtering out features that activate for random gibberish, it discovers highly precise steering vectors that outperform methods relying on expensive parallel data.

What Problem Does This Paper Address?

Large Language Models (LLMs) are impressively multilingual, but they are notoriously difficult to control. If you ask a model to translate a sentence into French, it might occasionally slip back into English or produce a mix of languages—a problem known as "multilingual generation control."

Researchers have found that we can "steer" models by adding specific vectors to their internal activations (the residual stream) during inference. However, finding the right "French vector" usually requires parallel data (e.g., thousands of pairs of English and French sentences that mean the same thing). This data is expensive to curate and often unavailable for low-resource languages.

While Sparse Autoencoders (SAEs) have helped by decomposing complex activations into interpretable "features," existing SAE-based steering methods still fall into the same trap: they need multilingual data to identify which features belong to which language.

Methods

The authors introduce LangFIR (Language Feature Identification via Random-token Filtering). The core intuition is clever: many features that fire when a model sees French aren't actually "French" features—they are "punctuation," "whitespace," or "generic text" features.

The LangFIR pipeline works in three stages:

  1. Random-token Generation: For a target language, they take a few monolingual sentences and generate "nonsense" sequences of random tokens from the tokenizer's vocabulary.
  2. SAE Encoding: They pass both the real sentences and the random noise through the LLM, capturing activations at a specific layer and encoding them via a pre-trained SAE.
  3. The Filtering "Trick":
    • They identify features that activate consistently for the target language (Language-consistent).
  4. They identify features that activate consistently for the random noise (Language-agnostic).
  5. By subtracting the agnostic features from the consistent ones, they isolate a sparse set of Language-specific features.

Finally, they build a steering vector by decoding these specific features back into the model's activation space.

Datasets

The researchers evaluated LangFIR across twelve languages (including Spanish, Chinese, Turkish, and Vietnamese) using three major benchmarks:

  • FLORES+: A high-quality parallel translation dataset.
  • WikiMatrix: Aligned sentences mined from Wikipedia.
  • Tatoeba: A community-contributed corpus of short translations.
  • XQuAD: Used to test if the steering generalizes to cross-lingual question-answering tasks.

The experiments were conducted on Gemma 3 (1B and 4B) and Llama 3.1 (8B) using publicly available SAEs (Gemma Scope and Llama Scope).

Key Insights and Ideas

  • The Power of Gibberish: Using random tokens as a "negative set" is a highly effective proxy for filtering out non-linguistic structural features. It turns out that if a feature fires for both French and a string of random symbols, it’s probably just a "comma detector" or a "newline detector."
  • Extreme Sparsity: Language identity is incredibly localized. The authors found that fewer than 5 features per language are typically enough to define a language's identity within the model.
  • Causal Importance: Through "directional ablation" (zeroing out specific feature directions), they proved these features are causally necessary. Ablating the "Portuguese features" significantly increased the model's loss when processing Portuguese, but had zero effect on other languages.
  • The English Bias: English consistently yielded the fewest specific features. This suggests that in English-centric models, "Englishness" is the default state, entangled with general concepts, making it harder for SAEs to isolate it as a distinct "feature."

Key Results

  • Superior Performance: LangFIR achieved the highest average $Accuracy \times BLEU$ score across all three models tested.
  • Monolingual Dominance: It outperformed the strongest monolingual baseline (Zhong’s method) by up to 4.7× on Gemma 3 1B.
  • Beating Parallel Data: Remarkably, LangFIR often outperformed methods that had access to full parallel corpora (like DiffMean), suggesting that SAE features provide a "cleaner" basis for steering than raw residual stream activations.
  • Data Efficiency: The method is stable with as few as 10 monolingual sentences, making it viable for extremely low-resource settings.
  • Overcoming "Momentum": In Q&A tasks, standard prompting often fails because the English context creates too much "momentum." LangFIR's activation-level steering successfully forced the model into the target language where prompts could not.

Limitations and Future Work

  • SAE Dependency: LangFIR requires high-quality, pre-trained SAEs. Currently, these are only widely available for a few model families (like Llama and Gemma).
  • Language Scope: The study focused on mid-to-high resource languages. It remains to be seen if the "sparsity" of language identity holds for truly low-resource languages that the model barely saw during pre-training.
  • Generalization: The authors suggest that this "target-concept vs. agnostic-proxy" framework could be extended beyond languages to other concepts, like sentiment or toxicity, using different types of noise as filters.

Summary updated

BibTeX
@inproceedings{wong2026langfir,
  author = {Sing Hieng Wong and Hassan Sajjad and A.B. Siddique},
  title = {{LangFIR: Discovering Sparse Language-Specific Features from Monolingual Data for Language Steering}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=AjHvP7oMIG},
}
Figure