AI Glossary / AI and machine learning / Intermediate
Tower
Definition
A tower is a substantial neural-network component within a larger neural network. It processes part of the input or performs part of the overall calculation before its output interacts with other components.
What it means
The term is architectural rather than a specific learning algorithm. A system may have separate towers for two kinds of input, such as a search query and a candidate document.
Each tower can transform its input into a numerical representation. The larger system then compares or combines those representations. Other architectures allow connections between towers during processing, so complete independence is not part of the definition.
Two-tower retrieval is a common example, but tower is broader than that one design. The number of towers, their inputs and how they communicate all need explanation when reviewing a system diagram.
For business readers, towers often matter because they affect which calculations can be prepared in advance. That can influence search speed, update requirements and the ability to handle new items.
How it works
The designer assigns inputs and responsibilities to each component. A query tower might encode a user's current request, while an item tower encodes documents or products.
In a separable retrieval design, the outputs live in a compatible representation space. A similarity calculation helps retrieve promising candidates. Because item representations do not depend on a particular query, they may be calculated and indexed ahead of time.
Training teaches the components to produce representations useful for the shared task. The training examples, negative examples and scoring function influence what similarity means.
Not every tower architecture supports precomputation. If components exchange information that depends on the current pair of inputs, their calculations may need to happen together. The precise data dependencies determine the performance options.
Three practical examples
- Product search: one component represents the shopper's query and another represents catalog items for candidate retrieval.
- Content recommendation: separate components represent a user's context and available content before a matching score is calculated.
- Multimodal analysis: specialized components process text and images before their representations are combined for a downstream task.
Think of it this way
Think of two specialists preparing compatible summaries before a coordinator compares them. Each specialist focuses on a different source of information, but their summaries must use a shared language.
The analogy has a limit. Learned representations may not be readable summaries, and architectural independence varies. Some components consult one another during processing, so the diagram's connections matter more than the informal name tower.
Worked example
Understanding what can be prepared ahead
Suppose an invented catalog contains 50,000 products. A separable item tower generates one representation per product before customers search. When a query arrives, only its query representation needs to be generated before searching the stored index.
If 500 products change, the system may need to refresh those representations and the relevant index entries. If the item tower itself is retrained, however, many or all stored representations may need regeneration to remain compatible.
The saving is therefore conditional on stable inputs and compatible model versions. It is not enough to count the query-time operations and ignore index maintenance.
This example illustrates dependency management. It makes no claim about a particular speed-up, because hardware, index choice and scoring requirements determine actual latency.
Illustrative case study
A fictional learning platform updates its query tower while leaving course representations generated by an older item tower unchanged. Search results become less relevant even though both components appear to function normally.
The team introduces model-version compatibility checks and rebuilds the representation index when required. It evaluates retrieval quality before the final ranking stage so that missing candidates are visible.
The lesson is that component separation creates an interface to manage. A tower can be technically healthy while its outputs no longer align with the representations expected elsewhere in the system.
Common misconceptions and mistakes
- A tower is a separate business application. It is a component within a model architecture.
- All towers operate independently. Some communicate through cross-connections or shared calculations.
- Fast candidate retrieval proves final recommendation quality. Retrieval determines the available shortlist, while ranking and business rules still affect the final result.
Business use
Tower architectures are useful to understand when buying or designing retrieval, recommendation and multimodal systems. They explain some trade-offs between query-time work and precomputed representations.
Ask which components can change independently and what must be rebuilt after an update. Measure candidate recall, final relevance and maintenance cost separately. A quick system that omits the right candidate cannot recover it through a perfect final ranking stage.
People also ask
Must a tower have many layers?
The term usually refers to a substantial neural-network component, but usage varies and does not specify a fixed layer count.
Do two towers always have identical structures?
No. They may process different input types and use different architectures.
Can a two-tower system handle a new item?
Potentially, if the item tower can encode its available features. The resulting quality and index update process still require evaluation.
Check your understanding
A query tower changes its representation space, but the item index stays unchanged. Can compatibility be assumed because both outputs have the same number of dimensions?
Answer: No. Equal dimensions do not guarantee that the coordinates have compatible learned meaning. The combination needs validation and possibly regenerated item representations.
Related terms
- Embedding
- Candidate generation
- Encoder
- Similarity
- two-tower model
- retrieval
Learn next
Read embedding and candidate generation. Draw the inputs, stored representations and version dependencies of a proposed retrieval system before estimating the cost of model updates.
More in AI and machine learning
- Time travel (for features) - Time travel for features is the ability to retrieve historical versions of model-input values.
- Timestep - A timestep is one position in a sequential calculation.
- Totally Random Trees Embedding - Totally random trees embedding is an unsupervised method that represents an input by the leaves it reaches in a collection of randomly constructed trees.
- Training - Training is the process of adjusting a machine-learning model using data or experience.
- Training set - A training set is the collection of examples used to fit a model's learned parameters.
- Transduction - Transduction is learning or inference directed at a particular supplied collection of cases, rather than producing a general prediction rule for arbitrary...
Sources
Google, Machine Learning Glossary, tower: https://developers.google.com/machine-learning/glossary#tower. Core architectural meaning consulted. Retrieval examples and version-management analysis are original teaching material.
Previous: Tournament Next: Toxicity