Consider the problem: given a symmetric, positive-definite, quadractic form with matrix $A = A^T \in \mathbb R^{n \times n}$ compute the vector $y \in \{-1,1\}^n$ achieving the maximum
$$\max_{x \in \{-1,1\}^n } x^TAx$$
Is there an efficient algorithm?
Two possibilities I was considering. Do they work for almost every example? If both work, which is more computationally efficient?
The function $f(x)=x^TAx$ achieves its maximum (the spectral radius of $A$) on the unit sphere $\{\|x\|_2=1\}$ exactly when $x$ is a eigenvector for the the dominant eigenvalue. So you could get a decent estimate to the problem by computing the dominant eigenvector $u$ with $\|u\|_\infty =1$ and then rounding every component of $u$ to $\pm 1$. Is there a reason this could fail generically? Computing eigenvectors is hard, but here don't need to be very concerned with precision, as you're rounding anyway.
The gradient of $f$ is $\nabla f(x) = 2Ax$. You could perform a gradient flow in the unit sphere $[-1,1]^n$ to find a point $p$ achieving at least a local maximum on $[-1,1]^n$. Would $p$ be a lattice point for a generic $A$? If not, what could prevent the nearest lattice point from being the desired maximum?
Unfortunately, your problem is NP-Hard, so you can't expect to find an efficient algorithm. In practice, these problems are often approached using heuristic algorithms. If you really want a provably optimal solution, branch and bound methods are appropriate.
To see that this problem is NP-Hard, start with the MAX-CUT problem on a graph. This problem is well known as an NP-Hard problem. Let $L$ be the graph Laplacian. A property of the graph Laplacian is that $L$ is positive semidefinite. The MAX-CUT problem can be formulated as
$\max_{x_{i}=\pm 1} \frac{1}{4} x^{T}Lx$
Thus an efficient (polynomial time) algorithm for your problem could be used to solve MAX-CUT in polynomial time.