Fixing an LLM fault without fine-tuning: six neurons in Nemotron Nano

December 2, 2026 By: Mahesh CR

Fixing a language fault in NVIDIA’s Nemotron Nano by editing its weights directly

Mahesh CR, CTO, JK Tech

Why would a model that writes good Hindi answer an English question in Hindi? And if the fault sits somewhere in the weights, could you find the spot and fix it, the way you fix a bug in code?

A great many people in India write in Hindi and English, often in the same hour. An assistant that answers them in the wrong language is of no use, however good the answer. So when we tested NVIDIA’s Nemotron 3 Nano 4B, a small open model we would happily run on modest hardware, the first thing we checked was whether it answers in the language it is asked in.

That makes language control a practical consideration when evaluating a small language model on-premise or other small language models for enterprise use, where an LLM answers in wrong language can undermine an otherwise useful assistant. The experiment below uses Nemotron Nano 4B (NVIDIA Nemotron 3 Nano 4B) to investigate that specific failure mode.

Without any instructions, it does. English questions get English answers, nearly every time, and Hindi questions get Hindi. Then we gave it a system line of the kind every deployment carries: “Answer in the language of the question: a Hindi question gets a Hindi answer, an English question an English answer.” With thinking switched off, it answered about half of our English test questions in Hindi. The system line is one part of what a deployed assistant reads before it answers, the standing instructions the user never sees; this post is about that part.

Here is one. We asked, “What are Umbilical Cord Knots?” It replied, “उम्बिलिक कोर्ड कट्स क्या हैं?” That is our question, transliterated into Hindi, with a question mark. No answer at all.

Why this is hard to fix

The usual remedy is fine-tuning. You collect examples of the behaviour you want and train the model on them. It works, but you change millions of numbers you cannot read, and the change reaches places you did not mean to touch. You find out what broke later, if you find out.

This is why targeted weight editing is worth examining as an alternative to fine-tuning LLMs in cases where the model already has the capability but a specific instruction or interaction suppresses it. It also offers a way to study LLM fine-tuning risks and potential fine-tuning side effects before choosing a broader training intervention.

A recent post from MIT CSAIL, Sparks of Weight-Space Programming (Takehi, Teoh, Zhang and Khattab), tried something else. Give a frontier model the weights of a small model inside a Python session. Let it read them, run the small model on a limited number of prompts, and change the weights itself, with no gradients and no training loop. On one small model it removed a reasoning fault by editing 0.016% of the weights. On another it failed, and the authors say why: editing can remove an obstacle that hides an ability, but it cannot add an ability that is missing.

The approach explored here is to edit model weights without retraining: inspect the model’s existing representations, make a bounded change, and evaluate it on held-out prompts. Keeping the change as a separate difference file also creates a record that can support auditable AI model changes.

Our fault looked like the first kind. Nano can write English. Something was stopping it.

What we weighed before starting

This is not the fault we came looking for. Our agent tests had shown Nano answering some Hindi questions in English, and that was the fault we meant to fix. The first measurement seemed to agree: with no instructions, 13 to 16% of the Hindi prompts got English answers. Then we read the prompts. 27 of the 200 in the Hindi set we had held out were written in English. Scored by the script each question was actually written in, the model answered Hindi in Hindi 97% of the time. The fault we came for was mostly in our labels. The same measurements showed the real one, in the runs with the system line.

The distinction matters for diagnosing an LLM answers in wrong language failure: first establish whether the model misunderstood the question’s language or whether a later instruction overrode what it had already recognized.

My own first guess came from how I picture these models. A model learns the patterns of each language, and those patterns line up across languages, the way king and queen sit like father and mother in Hindi as in English. Somewhere along the way it settles which language to answer in, and every layer after that can keep the choice or drift from it. Nothing marks that early choice as one the later layers must hold, and Hindi is the adjacent lane, close by and easy to slip into. So I expected the choice to be made right and then lost, somewhere downstream.

Three choices shaped everything after that.

Which model. NVIDIA’s Nano comes in a 4B and a 30B. We started with the 4B. One GPU holds it, an editable copy of its weights and a serving engine, and a session costs little, so it was the cheap place to learn whether the method works at all. The cost of that choice is that a result on 4B says nothing yet about 30B.

The 4B choice also made the experiment relevant to teams assessing a small language model on-premise and the practical constraints of small language models for enterprise. The results here, however, apply to the tested 4B model and do not establish performance for the 30B version or a production deployment.

Whether this fault suits the method. The MIT post’s failure told us what to look for: a fault that hides an ability the model already has. A language mix-up looked like one, since Nano writes both languages well. We had two other faults ready in case the measurements disagreed: tool calls going wrong with thinking off, and a data-sensitivity check that put some restricted items in a lower level.

Who does the editing. We could have done the interpretability work ourselves, layer by layer, and written the edit by hand. We let a frontier model do it, under the same rules as the MIT post, with the same three budgets. What we wanted to know was whether the MIT method carries over to another model and another fault, so we kept to it.

One more decision was made before any edit: every edit would be compared with an ordinary fine-tune on the same practice data, because that is the first question anyone would ask.

The setup

We used OpenAI’s GPT-6.2 Astra as the editor. It got the weights of Nano 4B in a Python session on one GPU, 700 practice prompts from the public Aya dataset in English and Hindi, and a small budget of runs. Reading and changing the weights was free. Training was blocked. More on how the editor worked.

For search clarity, the tested model is also referred to here as Nemotron Nano 4B, meaning NVIDIA’s Nemotron 3 Nano 4B described above.

We scored every edit on prompts the editor never saw: held-out Aya prompts, our own English and Hindi data questions, and three wordings of the language rule it was never shown. More on how we measured.

To keep this readable I am simplifying the editor’s mathematics, and leaving out most of its dead ends. The full transcripts run to dozens of turns each.

Finding the place

How do you find where in four billion numbers a habit lives?

The editor ran the model four ways, with the rule and without it, on English questions and on Hindi ones, and compared the internal states layer by layer.

At layer 25, at the exact point where the answer begins, the model’s internal state still separated English questions from Hindi ones, even in the cases where it went on to answer in the wrong language. The model knew what language it had been asked in. We had not expected that. Somewhere after that point, the rule was winning. It was close to the guess I had started with.

At layer 25, at the exact point where the answer begins, the model’s internal state still separated English questions from Hindi ones, even in the cases where it went on to answer in the wrong language. The model knew what language it had been asked in. We had not expected that. Somewhere after that point, the rule was winning. It was close to the guess I had started with.

Three budgets, three edits

We ran the editor three times, with budgets of 10, 25 and 50 units. Each time it found something different.

With 50 units it found the narrowest cause. Most of the fault came from the word “Hindi” itself, the two times it appears in the rule. Swap that word for a neutral one and the fault mostly went away. The editor rewrote a single neuron in layer 5 so that those two mentions stopped pulling the answer towards Hindi. On the exact rule it was shown, English questions answered in English went from 52% to 100%.

Then we tried the same edit with rules it had not seen. It did nothing. Reworded slightly, or written in Hindi, the rule broke the model just as before.

With 10 units, the smallest budget, it built something more general. It replaced six neurons in layer 25 with two small gates of three neurons each. One gate fires when there is a language rule and the question is English, and pushes the answer back towards English. The other nudges Hindi questions towards Hindi when there is no rule at all. Each gate’s push levels off past a point, instead of growing with the strength of whatever triggered it.

That is 37,619 numbers out of four billion, 0.0009% of the model. On held-out prompts with the rule, English answered in English went from 52% to 98%. On our own English data questions it went from 73% to 100%. Hindi questions answered in Hindi went from 89% to 96%.

And this one carried over. On the three rules it had never seen, English stayed English 97 to 99% of the time. The hardest was the rule written in Hindi. Without the edit the model answered English questions in Hindi three times out of four under that rule; with the edit, 3% of the time.

The umbilical cord question now gets this: “Umbilical cord knots are a condition where the umbilical cord is twisted or knotted around the baby’s neck or body during birth.”

Is this just fine-tuning by hand?

That was our question too, so we fine-tuned the same model to fix the same fault. A standard LoRA fine-tune, rank 16, trained on the same 700 practice prompts, with the unedited model’s own answers (given without the rule) as the targets.

On the target it did as well as the edit, a little better on some sets. It also carried over to the unseen rules.

Merged, it had changed 1.35 billion weights, a third of the model. Hindi answers to ordinary prompts, where nothing had been wrong, got worse: a judge model preferred the original answers 79 times to 43. With thinking switched on, accuracy on our text-to-SQL questions fell from 61 to 51 out of 100. We trained only on thinking-off answers, and that is probably why.

In this run, the broader adaptation also showed a LoRA regression on some behaviour outside the target task. That observed regression illustrates one of the fine-tuning side effects and LLM fine-tuning risks to test for: changes intended to correct one behaviour may affect other capabilities. It is a result from this experiment, not a claim that every LoRA fine-tune will regress.

What it cost

The six-neuron edit is not free either. On our text-to-SQL questions, which carry a long system prompt that itself mentions Hindi, the gate fires and nudges the SQL. With thinking off the model got four questions wrong that it used to get right, and none right that it used to get wrong. With thinking on there was no difference.

Figure 4. The unedited model, the six-neuron edit and the LoRA on the same held-out sets. Thinking off unless stated. *Within run-to-run noise; see how we measured.

What we are not claiming: this is one model, one fault and one small set of tests, and one run at each budget. Small differences in answer quality mean little, because the unedited model does not repeat itself exactly from one run to the next.

For that reason, the comparison should not be read as a universal verdict on fine-tuning or as proof that every LoRA regression will occur. It identifies a trade-off observed in this specific setup and reinforces the need to test for LLM fine-tuning risks across unrelated tasks.

Where this sits

If you follow mechanistic interpretability, much of this will look familiar. That field tries to read a network’s computation out of its weights and activations in pieces small enough to name: this neuron responds to that, this attention head copies from there. Part of it goes on to edit. Meng and colleagues traced where GPT stored a fact, such as the city a landmark is in, and changed it with a single update to one MLP layer.

The editor’s first moves were the interpretability workflow. It ran prompts that differ in one thing, looked for where the internal states part ways, and swapped one word to test a guess. The finding about the word “Hindi” is the kind of result those papers report. So is the finding that layer 25 still carried the question’s language. Anthropic’s researchers, tracing how Claude handles several languages, found much of the middle of the model shared across languages, with the language itself tracked separately and applied near the output. Our model looked similar from the outside: it knew the language, and something later overrode it.

Two things were different here. Nobody on our side did the analysis; we read it afterwards in the transcript. And the editor wrote new mechanism into the model, two gates small enough that their working can be read from six rows and six columns of numbers. We have not yet checked its account with the usual interpretability tests, such as copying the gate’s output into runs where it should stay silent and seeing what changes.

Because the edit is represented as a separate weight difference, the team can inspect what changed and retain the transcript describing the process. This is a useful pattern for auditable AI model changes, rather than an opaque update to the entire model.

Where this leaves us

A language fault in a small open model could be found at one layer and fixed by replacing six neurons, with ten small batches of runs and no training. The fix carried over to wordings of the rule it had never seen, including one in Hindi. It cost four text-to-SQL questions with thinking off. The LoRA fixed the same fault and moved a third of the model to do it.

For this narrow class of fault, targeted editing may be an alternative to fine-tuning LLMs: it can edit model weights without retraining when the capability is already present. The experiment does not establish that this method can add missing capabilities or replace fine-tuning for other tasks.

The smallest budget gave the most general edit. That may be the luck of three single runs. We would want several runs at each budget before reading anything into it.

The edit is a file of 37,619 numbers. It can sit beside the model, be applied when the model loads, and be taken off again. Our next tests are the interpretability checks above, several runs per budget, and a larger Nemotron.

Since the difference file can be applied at load time and removed again, it provides a concrete example of reversible model fixes. Retaining the edit file and its accompanying explanation also supports auditable AI model changes and makes these reversible model fixes easier to evaluate and roll back. This is a potential operational pattern, not a claim that the current experiment has completed production validation.

The six neurons are rows 190, 11969, 33, 12320, 133 and 618 of layer 25.

References

1. Takehi, Teoh, Zhang, Khattab. Sparks of Weight-Space Programming. MIT CSAIL, November 2026. https://rikiyat.github.io/blog/weight-space-programming/

2. NVIDIA. NVIDIA-Nemotron-3-Nano-4B-BF16 model card, Hugging Face. https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16

3. Singh et al. Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning. 2024. https://arxiv.org/abs/2402.06619

4. Hu et al. LoRA: Low-Rank Adaptation of Large Language Models. 2021. https://arxiv.org/abs/2106.09685

5. Meng, Bau, Andonian, Belinkov. Locating and Editing Factual Associations in GPT. NeurIPS 2022. https://arxiv.org/abs/2202.05262

6. Geva, Schuster, Berant, Levy. Transformer Feed-Forward Layers Are Key-Value Memories. EMNLP 2021. https://arxiv.org/abs/2012.14913

7. Olah et al. Zoom In: An Introduction to Circuits. Distill, 2020. https://distill.pub/2020/circuits/zoom-in/

8. Wang, Variengien, Conmy, Shlegeris, Steinhardt. Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small. ICLR 2023. https://arxiv.org/abs/2211.00593

9. Lindsey et al. On the Biology of a Large Language Model. Anthropic, 2025. https://transformer-circuits.pub/2025/attribution-graphs/biology.html

Explainers

What an assistant reads before it answers

When someone in an organisation asks an assistant a question, what does the model actually see?

The question, and a good deal more. A model answers from whatever text is placed in front of it, and in a working system that text is put together, piece by piece, every time someone asks. We call that step context assembly. Most of what goes right or wrong in these systems happens there, before the model has written a word.

Take a question an analyst might ask: “Why did LPG refills fall in June?” By the time it reaches the model, it sits among several other things.

The system line. Standing instructions the deployment writes once and puts before every question: who the assistant is, what it may do, which language to answer in. The user never sees it. In Six Neurons, one sentence of it was enough to make a model answer English questions in Hindi.

Retrieved passages, from documents. Reports, circulars, manuals and emails are split into passages and indexed. The system searches them for passages that look relevant to the question and puts the best few in. This is what people usually mean by retrieval-augmented generation, or RAG. The model can only use what retrieval found, and it cannot tell what was missed.

Data, from tables. Numbers mostly live in databases. For a question like the one above, the system either shows the model the table structure and lets it write a query, or gives it a set of named, pre-defined measures to ask for. The query runs, and the rows come back into the context. Here the failure that matters is a query that runs, returns a sensible-looking table, and is wrong.

Tool results. An agent is a model that is allowed to call tools in a loop: run a query, look something up, do a calculation, read the result, decide what to do next. Each result is added to the context for the next step. Over several steps the context grows, and early mistakes are carried forward.

The conversation so far. Earlier questions and answers, so that “and in July?” makes sense.

Everything above competes for a limited space, and the model weighs all of it together. It has no separate channel for “instructions” and “evidence”. A system line, a retrieved passage and a table header are all just text in the same window, which is why a word in one of them can change what the model does with another.

Each of our posts looks at one part of this picture. Six Neurons is about the system line. The posts on Hindi questions over data, on silent wrong answers and on explaining anomalies are about the data path. The post on thinking settings is about agents and their tools.

How the editor worked

What exactly could the editing model do, and what stopped it from cheating?

The editor was GPT-6.2 Astra, talking to a Python session that held Nemotron 3 Nano 4B’s weights on one GPU. It had four tools.

1. Run Python. Read any weight tensor, do arithmetic on it, write it back. This was free.

2. Generate. Run the model on up to 64 practice prompts and read the answers. One unit of budget.

3. Look inside. Record the model’s internal activations, layer by layer, on up to 128 texts. One unit of budget.

4. Save the edit. Write the changed weights as a difference against the original, with a note on what was done.

A budget of 10 units meant ten of those batches in the whole session. The editor spent them on finding the fault, testing ideas and checking its edit. Everything else, the reading and the arithmetic, it did on the weights themselves.

What was blocked. Gradients and training. Autograd was switched off, and any code that mentioned backward passes, optimisers or gradient tracking was refused before it ran. So the editor could not quietly run a fine-tune inside the session. Every change had to be one it computed and could describe.

What it could see. Only the 700 practice prompts, from the public Aya dataset in English and Hindi. The prompts we scored on were held out, and the session refused to generate on them even if asked by id.

What it gave back. The changed weights, a short account of the edit in its own words, and the full transcript. For the six-neuron session that was 26 turns. Its account of the gate runs to one dense paragraph: which rows it replaced, how it built the detectors from averages of the model’s activations, and why it combined three neurons in each gate. The post simplifies that paragraph; What Rewriting a Neuron Means goes one level deeper.

How edits reached the model. The session kept two copies: one the editor could change, and a serving copy that ran the prompts. After each change the edited tensors were pushed into the serving copy, so every batch of prompts ran on the current edit at normal serving speed.

We ran three sessions, with budgets of 10, 25 and 50 units, one run each.

What rewriting a neuron means

When we say the editor replaced six neurons, what changed, physically, in the file?

Nemotron 3 Nano 4B is a stack of layers of three kinds: Mamba layers, attention layers and MLP layers. Each word position carries a vector of 3,136 numbers up the stack, and each layer reads that vector and adds something back to it. The edit was in one MLP layer, layer 25.

Layer 25’s MLP has 12,544 neurons. Each neuron is two pieces of weights:

  • an input row, 3,136 numbers. The neuron takes the dot product of this row with the incoming vector. That is how strongly it responds.

  • an output column, also 3,136 numbers. The response, after passing through the layer’s activation, scales this column, and the result is added back into the vector.

So a neuron is a detector and a push. The row decides what it responds to; the column decides which way it pushes. Geva and colleagues described MLP neurons this way, as keys and values, and it is a fair picture for this edit. Replacing six neurons means overwriting six rows and six columns. Six times roughly 6,270 numbers gives the 37,619 weights in the post.

Which neurons. The editor picked six neurons in layer 25 that contributed little to the model’s output on its practice prompts, and overwrote them. Their old jobs were small enough to give up.

The detectors. For each condition it cared about, such as “a language rule is present and the question is English”, the editor computed a direction from the model’s own activations: the average state in that condition, adjusted so that it ignored ordinary words and explicit requests to answer in a given language. That direction became the input row.

Why three neurons per gate. Nano’s MLP uses a squared ReLU: a neuron’s output is zero below its threshold and grows as the square above it. One neuron alone would push harder and harder the more strongly it fired, which is how you get an edit that overshoots. The editor gave three neurons the same detector at three thresholds, evenly spaced, and combined their outputs with weights 1, −2 and 1. Past the third threshold the squares cancel out to a constant. The push rises, then stays flat at the size the editor chose.

What each gate pushes. One gate, firing on “rule present, English question”, pushes the state towards where it would be with no rule, and away from the Hindi-output direction. The other, firing on “no rule, Hindi question”, pushes gently towards Hindi. The other two cases get no push.

The six neurons are rows 190, 11969, 33, 12320, 133 and 618 of layer 25’s MLP.

LoRA, and why it touched a third of the model

LoRA is sold as a small fine-tune. So how did ours end up changing 1.35 billion weights?

LoRA (Hu and colleagues, 2021) trains a correction to a weight matrix instead of the matrix itself. For a matrix W, it learns two thin matrices, B and A, whose product has the same shape as W. Rank 16 means the inner dimension is 16. The trained pieces are small: for a 3,136 by 3,136 matrix, about a hundred thousand numbers instead of nearly ten million.

That small set is what you train and what you ship as an adapter. The model in use is W plus B times A. And B times A is a full matrix. Every one of its entries is, in general, non-zero. Merge the adapter into the model and every number in every targeted matrix changes, by a little.

We targeted the usual places: the attention projections, the MLP up and down projections, and the input projection of the Mamba layers. Those matrices hold about a third of Nano 4B’s weights, so the merged model differs from the original in 1.35 billion of them.

The comparison with the six-neuron edit is not about size alone. Small changes spread across a third of the model are hard to read, and they reach behaviour you were not training. In our run, Hindi answers to ordinary prompts changed, and thinking-on answers got worse.

How we trained it. We gave it the same information the editor had: the 700 practice prompts and the one system line. The targets were the unedited model’s own answers with no system line, thinking off, which are already in the right language. We kept the ones that finished and were in the right script, 390 of the 700, and trained each with and without the line: 780 examples, one epoch, 97 steps, about six minutes on one GPU. We then merged it and scored it on exactly the same held-out sets as the edits.

Two things in that recipe probably shaped the result. The kept answers skew short, because long answers were the ones that did not finish. And every target was a thinking-off answer, which is our best guess for why thinking-on behaviour degraded.

How we measured

How do you tell whether an answer is in the right language, and whether an edit has quietly made answers worse?

The question’s language, and the answer’s. We decide both by script. A question written in Devanagari is Hindi; one in Latin script is English. We started with Aya’s own labels and found 27 of the 200 held-out prompts in its Hindi split were written in English, so we stopped trusting labels and read the text. An answer counts as Hindi if it is mostly Devanagari.

The held-out sets. 457 prompts the editor never saw: held-out Aya prompts in both languages, and our own English and Hindi data questions. Each is run with the system line and without it, with thinking off and with it on. Generation is greedy, at temperature 0.

Unseen rules. Three other wordings of the language rule, which neither the editor nor the LoRA saw. One is a close paraphrase, one is looser, and one is written in Hindi.

Text-to-SQL. 100 questions of our own, synthetic, in English and Hindi, over a small database of Indian energy statistics. The model writes SQL; we run it and compare the result rows with the correct ones. This set matters because its system prompt is long and mentions Hindi, so it shows what the edit does in a prompt it was not built for.

Quality. Being in the right language is not enough; the answer has to be as good. A separate model, Gemini 3.8 Flash, compared pairs of answers to the same prompt and said which was better, with the order shuffled so position could not decide it.

The noise floor. Greedy decoding should give the same answer every time. On a GPU it does not quite: batching changes the order of additions, and in 16-bit arithmetic that changes the sums. Two runs of the unedited model agreed word for word on only 180 of 457 prompts. So when a judge prefers one model’s answers a little more often, that is mostly noise. We treat a quality difference as real only when it is large, like the LoRA’s 79 to 43, or when the changes all run one way, like the four SQL questions the edit lost and none it gained.

What we did not measure. Answer quality on tasks far from these, longer conversations, and other Indian languages.

About the Author

Mahesh CR

LinkedIn Profile URL Learn More.
Chatbot Aria

Hello, I am Aria!

Would you like to know anything in particular? I am happy to assist you.

    JK Tech
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.