Relinearization is a cryptographic operation that reduces a ciphertext from three ring elements back to two after a homomorphic multiplication. In schemes like BFV and CKKS, multiplying two ciphertexts produces a result with a quadratic polynomial structure, increasing its size and the cost of subsequent operations. Relinearization applies a key-switching procedure using a public evaluation key to compress this expanded product back into a standard, linear-sized ciphertext without decrypting the data.
Glossary
Relinearization

What is Relinearization?
Relinearization is a key-switching technique in homomorphic encryption that reduces a ciphertext's size after multiplication, preventing quadratic growth in dimensions and maintaining computational efficiency.
Without relinearization, each successive multiplication would cause the ciphertext dimension to grow exponentially, rendering deep circuits computationally infeasible. The process consumes a portion of the noise budget but is essential for bounding ciphertext growth. The evaluation key used for relinearization is generated from the secret key and can be shared publicly without compromising security, preserving the IND-CPA guarantee of the underlying scheme.
Key Characteristics of Relinearization
Relinearization is a critical key-switching technique that prevents the quadratic explosion of ciphertext dimensions following homomorphic multiplications, ensuring computational efficiency in lattice-based schemes.
The Quadratic Growth Problem
In schemes like BFV and CKKS, a ciphertext is typically a pair of polynomials. A homomorphic multiplication of two ciphertexts produces a result with three polynomial components instead of two. Without intervention, subsequent multiplications cause the size to grow exponentially, making storage and further computation impractical. Relinearization reduces this triple back to a canonical two-component ciphertext.
Key-Switching Mechanics
Relinearization is a specific application of key-switching. It requires the public key holder to provide a special evaluation key (often called a relinearization key). This key is essentially an encryption of specific powers of the secret key under the secret key itself. The operation homomorphically evaluates a decryption-like circuit to transform the extended (degree-2) ciphertext back into a linear (degree-1) ciphertext without decrypting the data.
Noise Budget Consumption
While essential for size control, relinearization is not computationally free. It consumes a portion of the noise budget because it involves multiplying the ciphertext components by the relinearization key and adding them together. The operation adds a fixed amount of noise, which must be accounted for in the total budget alongside the noise introduced by the multiplication itself.
Decomposition and Gadgets
To manage noise growth during the key-switching step, the ciphertext is often decomposed into a smaller base (a gadget decomposition). Instead of multiplying by a large integer directly, the operation breaks the integer into digits of a smaller radix. This trades off a slight increase in computational cost for a significant reduction in the noise added during relinearization, keeping the overall noise budget viable for deeper circuits.
Relinearization in CKKS
In the CKKS scheme, which operates on approximate numbers, relinearization is tightly coupled with rescaling. After a multiplication, the ciphertext modulus is too large. The operation first reduces the three-component ciphertext to two components via key-switching, and then applies rescaling to truncate the least significant bits and manage the scale factor. This combined step ensures the ciphertext maintains a constant size and stable precision.
Performance and Security
The size of the relinearization key is substantial, often dominating the public key material. The security of the operation relies on the Ring Learning With Errors (RLWE) assumption, ensuring the evaluation key hides the secret key. Optimized implementations often use Number Theoretic Transform (NTT) to accelerate the polynomial multiplications involved in the key-switching procedure.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear answers to the most common questions about relinearization, the critical key-switching technique that prevents ciphertext size explosion during homomorphic multiplications.
Relinearization is a key-switching technique that reduces the size of a ciphertext back to its original dimension after a homomorphic multiplication. In schemes like BFV and CKKS, multiplying two ciphertexts of size n produces a result of size n+1 (typically growing from 2 to 3 ring elements). Without relinearization, each subsequent multiplication would increase the ciphertext dimension quadratically, making storage and further computation prohibitively expensive. Relinearization applies a special evaluation key—derived from the secret key—to transform the expanded three-element ciphertext back into a standard two-element ciphertext, maintaining a constant size regardless of the number of multiplications performed. This operation is essential for building deep homomorphic circuits where dozens or hundreds of multiplications are required.
Related Terms
Relinearization is a critical noise and size management technique. It relies on and enables several other core concepts in homomorphic encryption.
Key Switching
The foundational cryptographic building block that relinearization is built upon. Key switching transforms a ciphertext decryptable under one secret key into a ciphertext decryptable under a different secret key. In the context of relinearization, the target key is the original secret key itself, but the input ciphertext is treated as if it were encrypted under a squared key (s^2). This is achieved by providing a public evaluation key (relinearization key), which is an encryption of the old key under the new key.
Noise Budget Management
Every homomorphic operation, especially multiplication, injects cryptographic noise into the ciphertext. If the noise exceeds a critical threshold, decryption fails. Relinearization itself adds a small, controlled amount of noise. However, it is essential because it prevents the noise from growing quadratically in subsequent multiplications by keeping the ciphertext size small. Without it, the noise would compound much faster, exhausting the noise budget prematurely and forcing a costly bootstrapping operation sooner.
Ciphertext Expansion
A primary performance bottleneck in homomorphic encryption. A fresh ciphertext in schemes like BGV or BFV is typically a pair of polynomials. After a multiplication, the result is a triple of polynomials. Without relinearization, another multiplication would produce a quintuple, leading to exponential growth. Relinearization reduces the size back to a pair, maintaining a constant ciphertext expansion factor. This is crucial for controlling both memory overhead and computational complexity in deep circuits.
Modulus Switching
A complementary noise management technique often used alongside relinearization. While relinearization reduces the ciphertext size, modulus switching reduces the ciphertext noise magnitude. It works by scaling down the ciphertext modulus q to a smaller modulus q', which proportionally scales down the absolute noise. In many leveled homomorphic encryption schemes, a multiplication is immediately followed by both relinearization (to reduce size) and modulus switching (to reset the noise scale), together enabling the next level of computation.
Evaluation Key Generation
The process by which the data owner creates the auxiliary keys required for relinearization. The owner encrypts a representation of their own secret key s under a secondary key, often using a base decomposition to control noise growth. This produces the relinearization key, which is sent to the evaluating server as a public parameter. The security of the scheme relies on the fact that this key allows transformation of ciphertexts without revealing the underlying secret key s itself.
Homomorphic Multiplication Depth
The maximum number of sequential multiplications a circuit can support before decryption becomes impossible. Relinearization is the mechanism that makes deep circuits practical. By resetting the ciphertext size after each multiplication, it ensures that the computational cost per multiplication remains linear rather than quadratic in the circuit depth. This directly increases the achievable multiplicative depth of a leveled homomorphic encryption scheme without requiring bootstrapping.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us