All models

hConvGRU

A convolutional recurrent layer that learns horizontal connections to link visual features across long distances.

Neuroscience signals · 235 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (49 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1M
Operations
235
Framework
PyTorch
Recurrent
Yes
Published
NeurIPS 2018
Cited by
85 (as of 23 October 2026)
Authors
Drew Linsley, Junkyung Kim, Vijay Veerabadran, Thomas Serre
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m5285
Graph hash
7aa1760412e811007b76b21741564b95aef6ec1175db6d0de66de73854903e60
Skeleton hash
0bd82012dc62b3179db11977665b1a317ea3fe9a4531b599a5fbb05ea0b216be
Architecture hash
8140697f043411318f55099a63f78c4c06b4dbb8d53d03b6e5c0b8340f987483
Diagram SHA-256
0e29583020c7f15af6419e2d1be4543ca5d122f27a28202157f3739056d9f862
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The horizontal gated recurrent unit (hGRU) is a recurrent layer for images that learns horizontal connections, the interactions between units within a single processing layer. It targets recognition tasks where related visual features must be detected far apart in the image, which the paper shows convolutional networks struggle with. The idea comes from the visual cortex, which contains abundant horizontal connections between neurons across distant regions of the visual field.

The authors describe the hGRU as an extension of the gated recurrent unit (GRU). It adds learnable gates borrowed from the GRU framework. It also makes excitation symmetric with inhibition, so the circuit can learn linear and quadratic interactions at each of the two stages. The recurrent layers tested in the paper had 15×15 horizontal connection kernels, the kernel size this model uses. An hGRU run for 8 timesteps was more effective than any other recurrent model the paper tested, including a standard GRU.

The test is Pathfinder, a task in which a model must detect whether two circles are connected by a path. Its three datasets have path lengths of 6, 9 and 14 paddles, each with 1,000,000 unique images of 150×150 pixels. The paper reports that a single hGRU layer matches or outperforms all the feedforward hierarchical baselines it tested. It does so with one layer and a fraction of the parameters and training samples that CNNs need.

Key idea. The paper introduces the horizontal gated recurrent unit (hGRU), which learns horizontal connections within and across feature columns, and a visual challenge called Pathfinder.

  • hGRU
  • hConvGRU
  • horizontal gated recurrent unit
  • horizontal GRU
  • horizontal connections
  • Pathfinder
  • long-range spatial dependencies
  • convolutional recurrent network
  • contour detection

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{linsley2019learninglongrangespatialdependencies,
      title={Learning long-range spatial dependencies with horizontal gated-recurrent units}, 
      author={Drew Linsley and Junkyung Kim and Vijay Veerabadran and Thomas Serre},
      year={2019},
      eprint={1805.08315},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1805.08315}, 
}